/* Page2: glue MPL payment-first into Velyqua left column (header/summary kept). */
#ss-shopify-pay .ss-mpl-pay-main {
  margin-top: 8px;
  max-width: 100%;
}
#ss-shopify-pay .ss-mpl-pay-main .form-content,
#ss-shopify-pay .ss-mpl-pay-main .form-sections {
  width: 100%;
  max-width: 100%;
}
#ss-shopify-pay #mpl-payment {
  scroll-margin-top: 12px;
}
/* Hide Velyqua sticky order bar on pay (summary already in header/aside). */
#ss-shopify-pay .sticky-bar { display: none !important; }
/* Offer-only chrome stays on page1; pay uses MPL submit */
body[data-ss-shopify-view="pay"] #pc-shopify-express-offer { display: none !important; }

/*
 * Slotted card chrome — three in-box labels share empty metrics:
 * 14px/400/#9ca3af, top ~10px (8–12), no clip. Focus/filled → same float.
 * Do NOT float on mere iframe mount (that misaligned number/cvv vs expiry).
 */
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .checkout-card-pay {
  margin: 0;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .checkout-spreedly-fields {
  display: grid;
  gap: 10px;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group {
  display: block;
  position: relative;
  margin: 0;
  overflow: visible;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group > label {
  position: absolute !important;
  left: 14px !important;
  top: 10px !important; /* empty: ~8–12px from top; same for all three */
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  color: #9ca3af !important;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  clip: auto !important;
  width: auto;
  max-width: calc(100% - 28px);
  height: auto !important;
  transform: none;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group > label .req {
  display: none !important;
}
/* Focused or filled → unified float (not hide-on-iframe). */
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(#expiry:focus) > label,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(#expiry:not(:placeholder-shown)) > label,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-field.is-focused) > label,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-plain-input:focus) > label,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-plain-input:not(:placeholder-shown)) > label {
  top: 8px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  color: #9ca3af !important;
  opacity: 1;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-row > .form-group {
  flex: 1 1 0;
  min-width: 0;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #expiry,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .spreedly-field,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #spreedly-number,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #spreedly-cvv {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: static !important;
  left: auto !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin: 0;
  /* Empty: content vertically centered under/with label at top:10px */
  padding: 10px 14px !important;
  border: 1px solid #c9ccd1;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: #111;
  overflow: visible;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #expiry::placeholder {
  color: transparent;
  opacity: 0;
}
/* Focused/filled: pad so value sits under floated micro-label */
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(#expiry:focus) #expiry,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(#expiry:not(:placeholder-shown)) #expiry,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-field.is-focused) .spreedly-field,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-plain-input:focus) .spreedly-field,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(.spreedly-plain-input:not(:placeholder-shown)) .spreedly-field {
  align-items: flex-end !important;
  padding: 20px 14px 8px !important;
  height: 52px !important;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #expiry:focus,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .spreedly-field.is-focused {
  border-color: #005bd1;
  box-shadow: 0 0 0 1px #005bd1;
  outline: none;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .spreedly-field iframe {
  display: block !important;
  width: 100% !important;
  height: 22px !important;
  border: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .spreedly-field > input.spreedly-plain-input {
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 22px !important;
  background: transparent !important;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .form-group:has(#cardholder_name) {
  display: none !important;
}
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .checkout-card-hint,
#ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .checkout-card-submit {
  display: none !important;
}

/* —— Mobile density (≤768): light-DOM chrome around CE —— */
@media (max-width: 768px) {
  /* Lighter order summary fold bar */
  #ss-shopify-pay .summary-bar {
    padding: 10px 14px;
    background: var(--brand-paper, #fbf8f3);
    border-color: var(--brand-line, #d8cdd5);
    font-size: 13px;
  }
  #ss-shopify-pay .summary-bar-left {
    font-weight: 500;
    color: var(--brand-ink, #332b35);
    font-size: 13px;
  }
  #ss-shopify-pay .summary-total {
    font-size: 14px;
    font-weight: 600;
  }
  #ss-shopify-pay .summary-panel {
    padding: 12px 14px;
  }

  #ss-shopify-pay .ss-mpl-pay-main {
    margin-top: 4px;
  }
  #ss-shopify-pay .ss-mpl-pay-main .checkout-step__text,
  #ss-shopify-pay .ss-mpl-pay-main .section-title {
    margin-bottom: 8px;
  }

  /* CTA: primary brand purple */
  #ss-shopify-pay .submit-section {
    margin-top: 12px;
  }
  #ss-shopify-pay .submit-button,
  #ss-shopify-pay .submit-button[data-mpl-submit-cta] {
    width: 100%;
    min-height: 52px;
    height: auto;
    padding: 14px 16px;
    border-radius: var(--buttons-radius, var(--brand-radius-md, 8px));
    border: 0;
    background: var(--btn-bg, #4b315c) !important;
    border-color: var(--btn-bg, #4b315c) !important;
    box-shadow: none;
  }
  #ss-shopify-pay .submit-button:hover,
  #ss-shopify-pay .submit-button[data-mpl-submit-cta]:hover {
    filter: brightness(0.92);
    border-color: var(--btn-bg, #4b315c) !important;
  }
  #ss-shopify-pay .submit-button__main-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--btn-text, #ffffff) !important;
    line-height: 1.25;
  }
  #ss-shopify-pay .submit-button[data-mpl-method="paypal"] {
    background: #ffc439 !important;
    border-color: #ffc439 !important;
    min-height: 48px;
  }

  /* Trust strip: tighter */
  #ss-shopify-pay .checkout-footer {
    margin-top: 10px;
    padding-top: 0;
  }
  #ss-shopify-pay .trust-badges {
    gap: 16px;
    margin: 8px 0 6px;
  }
  #ss-shopify-pay .trust-badge {
    gap: 6px;
  }
  #ss-shopify-pay .trust-badge__icon {
    width: 16px;
    height: 16px;
  }
  #ss-shopify-pay .badge-text {
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #6b7280;
  }
  #ss-shopify-pay .card-flags {
    margin-top: 6px;
    max-height: 20px;
  }

  #ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] #expiry,
  #ss-shopify-pay #ss-spreedly-mounts[slot="card-fields"] .spreedly-field {
    border-radius: 8px;
  }
}

/*
 * Pay-step express wallet SET (#ss-shopify-pay only).
 * Optical target: #ss-shopify-offer express-payment (48px bar, ~8px stack gap).
 * PayPal height-led ~27px; Apple/Google width-led 76px; shared max-height 34px.
 * Reset legacy scrape .paypal-gpay-buttons { border; padding:15px } from 1uwidve9jdwak.css.
 * Breakpoint 1000px — mobile one per row; desktop equal-width row (Apple hidden → no hole).
 */
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-start;
  align-content: flex-start;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn {
  box-sizing: border-box;
  position: relative;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 12px;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.cc-paypal {
  background: #ffc439;
  border-color: #f2ba36;
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.cc-dark {
  background: #000;
  border-color: #000;
  color: #fff;
}
/* Shared logo metrics (all three wallets) */
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn > img {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
/* PayPal webp — height-led, optical mass beside 76px GPay/Apple */
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.cc-paypal > img {
  height: 27px;
  max-height: 28px;
  max-width: calc(100% - 12px);
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.cc-paypal > img.img-fluid {
  width: auto;
  max-width: calc(100% - 12px);
}
/* Apple / Google SVG — width-led (offer 64px; pay step +2px optical in 48px bar) */
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn > img.payment-btn__logo {
  width: 76px;
  max-width: calc(100% - 8px);
  max-height: 34px;
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn .payment-btn-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.hide,
#ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn[hidden] {
  display: none !important;
}

@media (max-width: 999.98px) {
  #ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  #ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: 100%;
  }
}

@media (min-width: 1000px) {
  #ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons {
    flex-wrap: nowrap;
  }
  #ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn,
  #ss-shopify-pay .express-checkout__buttons.paypal-gpay-buttons > .payment-btn.cc-paypal.w-100 {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none;
  }
}

body[data-ss-shopify-view="offer"] #he-pay-shell {
  display: none !important;
}
body[data-ss-shopify-view="pay"] #ss-shopify-offer {
  display: none !important;
}
body[data-ss-shopify-view="offer"] #he-pay-sticky {
  display: none !important;
}

/*
 * P0 pay shell — Velyqua / Shopify chrome (brief).
 * Offer keeps Hearthika brand tokens; pay view forces white/gray + Inter + Shopify blue.
 */
body[data-ss-shopify-view="pay"] {
  --btn-bg: #005bd1;
  --btn-text: #ffffff;
  --accent-color: #005bd1;
  --selected-color: #005bd1;
  --selected-bg: #eef5ff;
  --brand-primary: #005bd1;
  --brand-purple: #005bd1;
  --brand-paper: #ffffff;
  --brand-tint: #f5f5f5;
  --brand-line: #d9d9d9;
  --brand-ink: #202223;
  --brand-muted: #6d7175;
  --brand-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff !important;
  font-family: var(--brand-body);
}
body[data-ss-shopify-view="pay"] .section-checkout {
  background: #ffffff !important;
}
#ss-shopify-pay {
  --bg: #ffffff;
  --bg-page: #ffffff;
  --bg-summary: #f5f5f5;
  --border: #d9d9d9;
  --border-focus: #005bd1;
  --text: #202223;
  --text-muted: #6d7175;
  --heading: #202223;
  --accent: #005bd1;
  --btn: #005bd1;
  --btn-hover: #004aa8;
  --paypal: #ffc439;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
}
#ss-shopify-pay .page.ss-shopify-pay-page {
  max-width: none;
}
@media (min-width: 1000px) {
  #ss-shopify-pay .page.ss-shopify-pay-page {
    display: grid;
    grid-template-columns: minmax(0, 580px) minmax(280px, 1fr);
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
  }
  #ss-shopify-pay .left-col {
    background: #ffffff;
    padding: 0 24px 32px;
  }
  #ss-shopify-pay .right-col {
    display: block !important;
    background: #f5f5f5;
    padding: 24px 28px;
    border-left: 1px solid #e3e3e3;
  }
}
#ss-shopify-pay .summary-bar {
  background: #f5f5f5;
  border-color: #e3e3e3;
}
#ss-shopify-pay .summary-title {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Selected accordion = Shopify blue */
#ss-shopify-pay .payment-methods .payment-method {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 8px;
}
#ss-shopify-pay .payment-methods .payment-method__header {
  background: #fff !important;
  border: 0 !important;
  overflow: visible !important;
  min-height: 52px;
}
#ss-shopify-pay .payment-methods .payment-method:has(.payment-method__input:checked) {
  border-color: #005bd1;
  box-shadow: 0 0 0 1px #005bd1;
  background: #ffffff;
}
#ss-shopify-pay .payment-methods .payment-method:has(.payment-method__input:checked) .payment-method__header {
  background: #eef5ff !important;
}

/* Override scrape / Webflow gray (#e0e0e0) on card shell — content stays white */
#ss-shopify-pay .payment-method__content,
#ss-shopify-pay .payment-method__content.cc-credit,
#ss-shopify-pay .payment-method__form,
#ss-shopify-pay .payment-method__form--expanded,
#ss-shopify-pay [data-mpl-card-form] {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
#ss-shopify-pay .payment-method__content .billing-address {
  background: transparent !important;
}
/* Selected credit: tint header row only, not card fields + billing CE */
#ss-shopify-pay .payment-methods .payment-method:has(#combo_mode_credit:checked) {
  background: #ffffff !important;
}

/* Card CTA default blue; PayPal combo → yellow */
#ss-shopify-pay .submit-button,
#ss-shopify-pay .submit-button[data-mpl-submit-cta] {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 0;
  background: #005bd1 !important;
  border-color: #005bd1 !important;
  color: #fff !important;
  box-shadow: none;
}
#ss-shopify-pay .submit-button__main-text {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
#ss-shopify-pay .submit-button[data-mpl-method="paypal"],
#ss-shopify-pay .submit-button[data-mpl-method="paypal"]:hover {
  background: #ffc439 !important;
  border-color: #ffc439 !important;
}
#ss-shopify-pay .submit-button[data-mpl-method="paypal"] .submit-button__main-text {
  color: #111 !important;
}

/* Billing checkbox: 14px body, no clip */
#ss-shopify-pay .checkbox-wrapper,
#ss-shopify-pay .checkout__checkbox {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  align-items: flex-start;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
#ss-shopify-pay .checkbox__label,
#ss-shopify-pay .checkout__checkbox .checkbox__label {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #202223 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  transform: none !important;
  letter-spacing: normal !important;
}
#ss-shopify-pay .checkbox__input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Billing CE: sibling outside gray .payment-method__content; white card, no extra gray panel */
#ss-shopify-pay #he-billing:not([hidden]) {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: transparent;
}
#ss-shopify-pay #he-billing[hidden] {
  display: none !important;
}

