/* Velyqua Shopify pay chrome — scoped to #ss-shopify-pay */
/* Source: LDY/velyqua-checkout/_assets/styles.css */

/* Velyqua — Shopify-style one-page checkout (static visual mock) */
#ss-shopify-pay {
  --bg: var(--brand-paper, #fbf8f3);
  --bg-page: var(--brand-paper, #fbf8f3);
  --bg-summary: var(--brand-paper, #fbf8f3);
  --border: var(--brand-line, #d8cdd5);
  --border-focus: var(--brand-primary, var(--accent-color, #4b315c));
  --text: var(--brand-ink, #332b35);
  --text-muted: var(--brand-muted, #726774);
  --heading: var(--brand-ink, #332b35);
  --accent: var(--brand-primary, var(--accent-color, #4b315c));
  --btn: var(--btn-bg, var(--brand-primary, #4b315c));
  --btn-hover: var(--btn-bg, #644477);
  --error: #dc2626;
  --error-bg: #fff4f4;
  --paypal: #ffc439;
  --radius: var(--brand-radius-lg, 12px);
  --field-h: 49px;
  --font: var(--brand-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  --max: 560px;
  --sticky-h: 64px;
}
#ss-shopify-pay *, #ss-shopify-pay *::before, #ss-shopify-pay *::after { box-sizing: border-box; }
#ss-shopify-pay {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: calc(var(--sticky-h) + 24px);
  -webkit-font-smoothing: antialiased;
}
#ss-shopify-pay a { color: var(--accent); text-decoration: underline; }
#ss-shopify-pay button, #ss-shopify-pay input, #ss-shopify-pay select { font: inherit; color: inherit; }
#ss-shopify-pay .page {
  max-width: var(--max);
  margin: 0 auto;
}
#ss-shopify-pay .right-col { display: none; }
/* Header */
#ss-shopify-pay .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
}
#ss-shopify-pay .brand {
  font-family: var(--font);
  font-size: 21.6px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
}
#ss-shopify-pay .cart-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--accent);
}
#ss-shopify-pay .cart-btn svg { display: block; width: 22px; height: 22px; }
/* Order summary toggle (mobile) */
#ss-shopify-pay .summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #fbf8f3;
  border: 0;
  border-top: 1px solid #d8cdd5;
  border-bottom: 1px solid #d8cdd5;
  cursor: pointer;
  text-align: left;
}
#ss-shopify-pay .summary-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #332b35;
  font-weight: 500;
}
#ss-shopify-pay .summary-bar-left svg {
  width: 12px;
  height: 12px;
  transition: transform .2s;
}
#ss-shopify-pay .summary-bar.open .summary-bar-left svg { transform: rotate(180deg); }
#ss-shopify-pay .summary-total { font-weight: 600; color: #332b35; font-size: 15px; }
#ss-shopify-pay .summary-panel {
  display: none;
  background: var(--bg-summary);
  padding: 16px;
  border-bottom: 1px solid #d8cdd5;
}
#ss-shopify-pay .summary-panel.open { display: block; }
#ss-shopify-pay .product-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
#ss-shopify-pay .thumb-wrap {
  position: relative;
  flex-shrink: 0;
}
#ss-shopify-pay .summary-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e4e7;
  background: #fff;
  display: block;
}
#ss-shopify-pay .qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-primary, var(--accent, #4b315c));
  color: var(--brand-paper, #fbf8f3);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-paper, #fbf8f3);
}
#ss-shopify-pay .summary-meta { flex: 1; min-width: 0; }
#ss-shopify-pay .summary-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
#ss-shopify-pay .summary-title {
  font-size: 13px;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.35;
}
#ss-shopify-pay .summary-price-row {
  margin: 0 0 6px;
  white-space: nowrap;
  font-size: 13px;
}
#ss-shopify-pay .summary-price-row .strike {
  color: #8c8c8c;
  text-decoration: line-through;
  margin-right: 6px;
}
#ss-shopify-pay .summary-price-row .now { font-weight: 650; color: #111; }
#ss-shopify-pay .promo-line {
  margin: 0 0 4px;
  font-size: 12px;
  color: #333;
  line-height: 1.35;
}
#ss-shopify-pay .promo-line.muted { color: #6b6b6b; }
#ss-shopify-pay .summary-rows { margin-top: 14px; }
#ss-shopify-pay .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
#ss-shopify-pay .summary-row.total {
  border-top: 1px solid #e5e4e7;
  margin-top: 6px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 650;
  align-items: baseline;
}
#ss-shopify-pay .summary-row.total .cur {
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
  margin-right: 4px;
}
#ss-shopify-pay .savings {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 650;
  color: #111;
  display: flex;
  align-items: center;
  gap: 6px;
}
#ss-shopify-pay .savings .tag { font-size: 13px; line-height: 1; }
#ss-shopify-pay .main { padding: 20px 16px 8px; }
/* Express — mobile: PayPal full, then Apple/Google */
#ss-shopify-pay .express { margin-bottom: 8px; }
#ss-shopify-pay .express-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px;
}
#ss-shopify-pay .express-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#ss-shopify-pay .express-row .express-paypal {
  grid-column: 1 / -1;
}
#ss-shopify-pay .express-paypal {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paypal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ss-shopify-pay .express-paypal:hover { filter: brightness(0.97); }
#ss-shopify-pay .express-dark {
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ss-shopify-pay .express-dark:hover { background: #1a1a1a; }
#ss-shopify-pay .or-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 20px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
#ss-shopify-pay .or-sep::before, #ss-shopify-pay .or-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e4e7;
}
/* Sections */
#ss-shopify-pay .section { margin-bottom: 22px; }
#ss-shopify-pay .section-title {
  margin: 0 0 12px;
  font-size: 21.6px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.01em;
}
#ss-shopify-pay .section-sub {
  margin: -6px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
}
#ss-shopify-pay .grid-2, #ss-shopify-pay .grid-3 {
  display: block;
}
#ss-shopify-pay .field { margin-bottom: 10px; position: relative; }
#ss-shopify-pay .field input, #ss-shopify-pay .field select {
  width: 100%;
  height: var(--field-h);
  padding: 18px 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
#ss-shopify-pay .field select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
#ss-shopify-pay .field input:focus, #ss-shopify-pay .field select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}
#ss-shopify-pay .field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
  font-size: 14px;
  pointer-events: none;
  transition: .15s ease;
}
#ss-shopify-pay .field input:focus + label, #ss-shopify-pay .field input:not(:placeholder-shown) + label, #ss-shopify-pay .field select:focus + label, #ss-shopify-pay .field.has-value label,
#ss-shopify-pay .field:has(select option:checked:not([value=""])) label {
  top: 10px;
  transform: none;
  font-size: 11px;
}
#ss-shopify-pay .field[hidden] { display: none !important; }
/* City + postal when Region hidden (SG / no subdivisions) */
#ss-shopify-pay .grid-3.ss-region-hidden {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#ss-shopify-pay .field .icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8c8c;
  pointer-events: none;
}
#ss-shopify-pay .field.error input {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
  background: var(--error-bg);
}
#ss-shopify-pay .field-error {
  color: var(--error);
  font-size: 13px;
  margin: -2px 0 10px;
  display: none;
}
#ss-shopify-pay .field-error.show { display: block; }
#ss-shopify-pay .check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  cursor: pointer;
  user-select: none;
}
#ss-shopify-pay .check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
#ss-shopify-pay .check span { font-size: 14px; color: #333; }
/* Shipping choice */
#ss-shopify-pay .choice {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7fbff;
  gap: 12px;
}
#ss-shopify-pay .choice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
#ss-shopify-pay .choice-left .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 5px solid var(--accent);
  background: #fff;
  box-sizing: border-box;
}
#ss-shopify-pay .choice-price { font-weight: 600; }
/* Payment methods */
#ss-shopify-pay .pay-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
#ss-shopify-pay .pay-card-block {
  border: 2px solid var(--accent);
  border-radius: 8px;
  margin: -1px;
  overflow: hidden;
  background: #f7fbff;
}
#ss-shopify-pay .pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: #fff;
}
#ss-shopify-pay .pay-card-block .pay-option {
  border-bottom: 0;
  background: #f7fbff;
}
#ss-shopify-pay .pay-box > .pay-option:last-child { border-bottom: 0; }
#ss-shopify-pay .pay-option.active { background: #f7fbff; }
#ss-shopify-pay .pay-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
#ss-shopify-pay .pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #bbb;
  box-sizing: border-box;
  background: #fff;
}
#ss-shopify-pay .pay-option.active .pay-radio {
  border: 5px solid var(--accent);
}
#ss-shopify-pay .card-brands {
  display: flex;
  align-items: center;
  gap: 4px;
}
#ss-shopify-pay .card-brands .more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 11px;
  color: #555;
  margin-left: 2px;
}
#ss-shopify-pay .pay-fields {
  padding: 0 14px 14px;
  background: #f7fbff;
  display: none;
}
#ss-shopify-pay .pay-fields.show { display: block; }
#ss-shopify-pay .pay-fields .field { margin-bottom: 10px; }
#ss-shopify-pay .pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#ss-shopify-pay .pay-now {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--btn);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
#ss-shopify-pay .pay-now:hover { background: var(--btn-hover); }
#ss-shopify-pay .legal {
  margin: 14px 0 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
#ss-shopify-pay .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 0 20px;
  font-size: 12px;
}
#ss-shopify-pay .footer-links a { color: #707070; }
/* Sticky bottom (mobile) */
#ss-shopify-pay .sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #e5e4e7;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
}
#ss-shopify-pay .sticky-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  min-height: var(--sticky-h);
}
#ss-shopify-pay .sticky-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
  flex-shrink: 0;
}
#ss-shopify-pay .sticky-info { flex: 1; min-width: 0; }
#ss-shopify-pay .sticky-label { font-size: 12px; color: #666; }
#ss-shopify-pay .sticky-total {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
}
#ss-shopify-pay .sticky-total svg { width: 10px; height: 10px; color: #666; }
#ss-shopify-pay .toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(12px);
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
#ss-shopify-pay .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Mid: name side-by-side while still single-column page */
@media (min-width: 520px) {

  #ss-shopify-pay .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

}

/* Desktop: Shopify two-column (≥1000px) */
@media (min-width: 1000px) {

  #ss-shopify-pay {
    padding-bottom: 0;
    background: var(--bg-page);
  }

  #ss-shopify-pay .sticky-bar { display: none; }

  #ss-shopify-pay .toast { bottom: 28px; }


  #ss-shopify-pay .page {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    min-height: 100vh;
    background: #fbf8f3;
  }


  #ss-shopify-pay .left-col {
    background: #fbf8f3;
    border-right: 1px solid #d8cdd5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  #ss-shopify-pay .header, #ss-shopify-pay .main {
    width: 100%;
    max-width: 580px;
    margin-right: clamp(24px, 6vw, 72px);
  }

  #ss-shopify-pay .header {
    padding: 32px 0 8px;
    justify-content: space-between;
  }

  #ss-shopify-pay .main { padding: 8px 0 56px; }


  #ss-shopify-pay .summary-bar, #ss-shopify-pay .mobile-summary { display: none !important; }


  #ss-shopify-pay .right-col {
    display: block;
    background: var(--bg-summary);
    min-height: 100vh;
  }

  #ss-shopify-pay .desktop-summary {
    position: sticky;
    top: 0;
    padding: 48px clamp(24px, 4vw, 56px) 40px;
    max-width: 460px;
  }


  /* Express: PayPal / Apple / Google in one row */
  #ss-shopify-pay .express-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }

  #ss-shopify-pay .express-row .express-paypal {
    grid-column: auto;
  }


  #ss-shopify-pay .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #ss-shopify-pay .grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }


  #ss-shopify-pay .summary-title { font-size: 14px; max-width: 220px; }

  #ss-shopify-pay .summary-top .summary-price-row { margin: 0; text-align: right; }

  #ss-shopify-pay .product-line { margin-bottom: 4px; }

  #ss-shopify-pay .summary-rows { margin-top: 18px; }

}


#ss-shopify-pay {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg-page);
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}
#ss-shopify-pay .brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
#ss-shopify-pay .cart-btn { display: none !important; }
#ss-shopify-pay *, #ss-shopify-pay *::before, #ss-shopify-pay *::after { box-sizing: border-box; }
#ss-shopify-pay[hidden] { display: none !important; }

/*
 * Compact Velyqua card chrome — only .pay-card-block keeps accent border + tint.
 * Override shared checkout-card-pay (54px / label-above / .req *) for tightness.
 */
#ss-shopify-pay .pay-box {
  background: #fff;
  border-color: #e5e4e7;
}
#ss-shopify-pay .pay-card-block {
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 8px;
  margin: -1px;
  /* Keep blue box tight — bottom border sits just under same-billing (no dead air) */
  padding-bottom: 0;
}
#ss-shopify-pay .pay-card-block .pay-option {
  background: #fff;
  padding: 10px 12px;
}
#ss-shopify-pay .pay-fields {
  padding: 0 12px 8px;
  background: #fff;
  gap: 0;
}
#ss-shopify-pay .pay-fields .same-billing {
  margin: 6px 0 0;
  padding: 0;
  font-size: 13px;
}
#ss-shopify-pay .checkout-card-pay {
  margin: 0;
  padding: 0;
  letter-spacing: 0;
  font-family: inherit;
}
#ss-shopify-pay .checkout-spreedly-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
#ss-shopify-pay .checkout-spreedly-fields > .form-group:last-child,
#ss-shopify-pay .checkout-card-pay .form-group {
  margin-bottom: 0;
}
#ss-shopify-pay #card-inline-error:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  border: 0 !important;
}
/* Platform order: number → name → expiry|cvv. Velyqua visual: number → expiry|cvv → name */
#ss-shopify-pay .checkout-spreedly-fields > .form-group:nth-of-type(1) { order: 1; }
#ss-shopify-pay .checkout-spreedly-fields > .form-row { order: 2; }
#ss-shopify-pay .checkout-spreedly-fields > .form-group:nth-of-type(2) { order: 3; }

#ss-shopify-pay .checkout-card-pay .form-group {
  margin: 0;
  position: relative;
}
#ss-shopify-pay .checkout-card-pay .form-group > label {
  position: absolute;
  left: 12px;
  top: 7px;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  letter-spacing: 0;
  pointer-events: none;
}
#ss-shopify-pay .checkout-card-pay .form-group > label .req {
  display: none !important;
}
#ss-shopify-pay .checkout-card-pay .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-direction: unset;
}
#ss-shopify-pay .checkout-card-pay .form-row .form-group {
  flex: unset;
  margin: 0;
}
#ss-shopify-pay .checkout-card-pay input[type=text],
#ss-shopify-pay .spreedly-field,
#ss-shopify-pay #spreedly-number,
#ss-shopify-pay #spreedly-cvv {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 18px 12px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0;
  box-shadow: none;
}
#ss-shopify-pay .checkout-card-pay input[type=text]:focus,
#ss-shopify-pay .spreedly-field.is-focused,
#ss-shopify-pay #spreedly-number:focus-within,
#ss-shopify-pay #spreedly-cvv:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}
#ss-shopify-pay .spreedly-field {
  display: flex;
  align-items: flex-end;
  padding-top: 18px;
  padding-bottom: 6px;
}
#ss-shopify-pay .spreedly-field iframe {
  width: 100%;
  height: 22px;
  border: 0;
  display: block;
}
#ss-shopify-pay .spreedly-field > input.spreedly-plain-input {
  height: 22px;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#ss-shopify-pay .field.error .spreedly-field,
#ss-shopify-pay .field.error #spreedly-number,
#ss-shopify-pay .field.error #spreedly-cvv,
#ss-shopify-pay .spreedly-field.is-error,
#ss-shopify-pay .checkout-card-pay input[type=text].is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}
#ss-shopify-pay #card-inline-error:empty { display: none; }
#ss-shopify-pay #card-inline-error:not(:empty) {
  display: block;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 13px;
}
#ss-shopify-pay #pc-shopify-card-fields { display: none; }
#ss-shopify-pay #pc-shopify-card-fields.show { display: block; }
#ss-shopify-pay .pay-now {
  height: 48px;
  margin-top: 12px;
  border-radius: 8px;
  font-size: 15px;
}
#ss-shopify-pay .pay-option {
  padding: 12px 14px;
}
@media (max-width: 480px) {
  #ss-shopify-pay .checkout-card-pay .form-row {
    grid-template-columns: 1fr 1fr;
    flex-direction: unset;
  }
}
#ss-shopify-pay .express-klarna {
  background: #ffb3c7;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  cursor: pointer;
}
#ss-shopify-pay .express-klarna[hidden],
#ss-shopify-pay .express-paypal[hidden],
#ss-shopify-pay .express-dark[hidden] { display: none !important; }

#ss-shopify-pay select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 36px 6px 12px;
  font: inherit;
  color: var(--text);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
}
#ss-shopify-pay .field:focus-within select {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
#ss-shopify-pay .same-billing {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
#ss-shopify-pay .same-billing input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
#ss-shopify-pay .pay-now[disabled] { opacity: .65; cursor: not-allowed; }
#ss-shopify-pay .paypal-hint {
  padding: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}
#ss-shopify-pay .paypal-hint.show { display: block; }
#ss-shopify-pay .pay-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
#ss-shopify-pay .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
#ss-shopify-pay #payment-form {
  display: contents;
}
/*
 * Mobile Express = Velyqua: PayPal full-width on top, Apple|Google below.
 * Klarna (4th) spans full width on its own row when visible.
 * Do NOT reset .express-paypal grid-column on narrow — that was breaking the layout.
 */
#ss-shopify-pay .express-row .express-klarna {
  grid-column: 1 / -1;
  min-height: 48px;
}
@media (min-width: 1000px) {
  /* Desktop: three wallets in one row (source); Klarna full-width under */
  #ss-shopify-pay .express-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  #ss-shopify-pay .express-row .express-paypal {
    grid-column: auto;
  }
  #ss-shopify-pay .express-row .express-klarna {
    grid-column: 1 / -1;
  }
}
