/* Functional checkout styling, contained entirely inside the article continuation. */
.sbgf #sbgf-purchase {
  --sb-display: "Times New Roman", Times, serif;
  --sb-ui: "Times New Roman", Times, serif;
  --sb-night: #171a35;
  --sb-indigo: #293366;
  --sb-twilight: #394990;
  --sb-mist: #a9c9d8;
  --sb-moon: #e7d7b5;
  --sb-gutter: clamp(18px, 4vw, 64px);
  color-scheme: light;
}

.sbgf #sbgf-purchase [hidden] { display: none !important; }

.sbgf #sbgf-purchase .purchase-payment-card {
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 5vw, 54px);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fffdf8;
  box-shadow: none;
}

.sbgf #sbgf-purchase .purchase-payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.sbgf #sbgf-purchase .purchase-payment-heading h2,
.sbgf #sbgf-purchase .purchase-order-details h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--sb-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.sbgf #sbgf-purchase .purchase-payment-heading h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.sbgf #sbgf-purchase .purchase-payment-heading > div > p {
  margin: 7px 0 0;
  color: #6d636d;
  font-size: .82rem;
  font-weight: 700;
}

.sbgf #sbgf-purchase .purchase-decision-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
}

.sbgf #sbgf-purchase .purchase-decision-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d9c7dc;
  border-radius: 10px;
  background: #fff;
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sbgf #sbgf-purchase .purchase-checkout-stage { padding-top: 30px; }
.sbgf #sbgf-purchase .purchase-checkout-stage--payment {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.sbgf #sbgf-purchase .purchase-checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--plum);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.sbgf #sbgf-purchase .purchase-checkout-step > span {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d7c5df;
  border-radius: 999px;
  background: var(--lilac);
  color: #56375d;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sbgf #sbgf-purchase .purchase-flex-price--open {
  overflow: hidden;
  border: 1px solid #d5c4d7;
  border-radius: 22px;
  background: #fff;
}

.sbgf #sbgf-purchase .purchase-price-choice-heading {
  padding: 22px;
  background: linear-gradient(135deg, #f7ecf9, #fff1e6);
}

.sbgf #sbgf-purchase .purchase-price-choice-heading > span { display: grid; gap: 6px; }
.sbgf #sbgf-purchase .purchase-price-choice-heading strong {
  color: var(--plum);
  font-size: 1.25rem;
  line-height: 1.15;
}
.sbgf #sbgf-purchase .purchase-price-choice-heading small {
  color: #5f555f;
  font-size: .82rem;
  line-height: 1.55;
}

.sbgf #sbgf-purchase .purchase-flex-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 22px;
}

.sbgf #sbgf-purchase .purchase-currency-choice,
.sbgf #sbgf-purchase .purchase-custom-price {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
  color: var(--plum);
  font-size: .82rem;
  font-weight: 700;
}

.sbgf #sbgf-purchase .purchase-currency-choice { grid-column: 1; }
.sbgf #sbgf-purchase .purchase-custom-price { grid-column: 2; grid-row: 1; }
.sbgf #sbgf-purchase .purchase-currency-help { grid-column: 1; }
.sbgf #sbgf-purchase .purchase-price-help { grid-column: 2; grid-row: 2; }
.sbgf #sbgf-purchase .purchase-amount-error,
.sbgf #sbgf-purchase .purchase-selected-amount { grid-column: 1 / -1; }

.sbgf #sbgf-purchase .purchase-currency-choice select {
  width: 100%;
  min-height: 50px;
  padding: 0 38px 0 12px;
  border: 1px solid #907a91;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
}

.sbgf #sbgf-purchase .purchase-custom-input {
  display: grid;
  min-height: 50px;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #907a91;
  border-radius: 12px;
  background: #fffdf8;
}

.sbgf #sbgf-purchase .purchase-custom-input > b {
  display: grid;
  min-width: 46px;
  place-items: center;
  padding: 0 10px;
  border-right: 1px solid #d4c4d4;
  background: #f6eef8;
  color: var(--plum);
}

.sbgf #sbgf-purchase .purchase-custom-input input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline-offset: -3px;
}

.sbgf #sbgf-purchase .purchase-currency-help,
.sbgf #sbgf-purchase .purchase-price-help {
  margin: 0;
  color: #776d77;
  font-size: .72rem;
  line-height: 1.4;
}
.sbgf #sbgf-purchase .purchase-price-help strong { color: var(--plum); }

.sbgf #sbgf-purchase .purchase-amount-error {
  margin: 8px 0 0;
  padding: 11px 13px;
  border: 1px solid #e0bec7;
  border-radius: 12px;
  background: #fff0f3;
  color: #7d263b;
  font-size: .78rem;
  font-weight: 700;
}

.sbgf #sbgf-purchase .purchase-selected-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--plum);
  color: #fffaf1;
}
.sbgf #sbgf-purchase .purchase-selected-amount span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sbgf #sbgf-purchase .purchase-selected-amount strong { font-size: 1.3rem; }

.sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  color: #655b65;
  font-size: .72rem;
  line-height: 1.35;
  text-align: center;
  list-style: none;
}
.sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment li {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 9px;
  border: 1px solid #ddd0dc;
  border-radius: 14px;
  background: #faf6fb;
}
.sbgf #sbgf-purchase .purchase-checkout-assurances a {
  color: var(--plum);
  text-underline-offset: 3px;
}

.sbgf #sbgf-purchase .purchase-paypal-area {
  padding: 20px;
  border: 1px solid #614863;
  border-radius: 20px;
  background: radial-gradient(circle at 14% 0, #68486b 0, #432943 43%, #25172b 100%);
  box-shadow: 0 18px 38px rgba(42, 24, 47, .16);
}

.sbgf #sbgf-purchase .purchase-payment-status {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fffaf1;
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
}
.sbgf #sbgf-purchase .purchase-payment-status.is-ready,
.sbgf #sbgf-purchase .purchase-payment-status.is-method-heading {
  background: transparent;
  text-align: left;
}

.sbgf #sbgf-purchase .purchase-paypal-buttons {
  display: grid;
  min-height: 50px;
  gap: 10px;
}
.sbgf #sbgf-purchase .purchase-wallet-slot { width: 100%; min-width: 0; }
.sbgf #sbgf-purchase .purchase-wallet-slot[data-wallet-ready="true"] { min-height: 50px; }
.sbgf #sbgf-purchase .purchase-wallet-slot > div { max-width: none !important; }
.sbgf #sbgf-purchase .purchase-wallet-slot--googlepay > div {
  width: 100% !important;
  min-width: 100% !important;
  height: 50px !important;
  border-radius: 12px !important;
}
.sbgf #sbgf-purchase .purchase-apple-pay-button {
  display: block;
  width: 100%;
  height: 50px;
  cursor: pointer;
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 50px;
  --apple-pay-button-border-radius: 12px;
  --apple-pay-button-padding: 0;
}

.sbgf #sbgf-purchase .purchase-wallet-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  color: #e9dfe9;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}
.sbgf #sbgf-purchase .purchase-wallet-divider::before,
.sbgf #sbgf-purchase .purchase-wallet-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .24);
}

.sbgf #sbgf-purchase .purchase-more-wallets {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
}
.sbgf #sbgf-purchase .purchase-more-wallets > summary {
  min-height: 44px;
  padding: 11px 14px;
  color: #fffaf1;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-align: center;
}
.sbgf #sbgf-purchase .purchase-more-wallets > summary::-webkit-details-marker { display: none; }
.sbgf #sbgf-purchase .purchase-more-wallets-body { display: grid; gap: 10px; padding: 0 10px 10px; }
.sbgf #sbgf-purchase .purchase-more-wallets-status { margin: 0; color: #e9dfe9; font-size: .72rem; text-align: center; }

.sbgf #sbgf-purchase .purchase-payment-error {
  margin: 11px 0 0;
  padding: 11px 13px;
  border: 1px solid #e1d6b7;
  border-radius: 12px;
  background: #fff9ec;
  color: #5f523b;
  font-size: .78rem;
  font-weight: 700;
}
.sbgf #sbgf-purchase .purchase-retry-checkout,
.sbgf #sbgf-purchase .purchase-verify-payment {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--plum);
  font-weight: 700;
  cursor: pointer;
}
.sbgf #sbgf-purchase .purchase-retry-checkout:disabled,
.sbgf #sbgf-purchase .purchase-verify-payment:disabled { cursor: wait; opacity: .6; }

.sbgf #sbgf-purchase .purchase-security-note {
  margin: 12px 0 0;
  color: #584b5a;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
}
.sbgf #sbgf-purchase .purchase-security-note a { color: #432943; font-weight: 700; text-underline-offset: 2px; }

.sbgf #sbgf-purchase .order-details { min-width: 0; }
.sbgf #sbgf-purchase .purchase-order-details {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.sbgf #sbgf-purchase .purchase-order-details__header > p {
  margin: 0 0 5px;
  color: #795d7e;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.sbgf #sbgf-purchase .purchase-order-details__header h2 {
  margin: 0 0 24px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.sbgf #sbgf-purchase .purchase-order-details > details { border-top: 1px solid var(--line); }
.sbgf #sbgf-purchase .purchase-order-details > details:last-child { border-bottom: 1px solid var(--line); }
.sbgf #sbgf-purchase .purchase-order-details summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--plum);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.sbgf #sbgf-purchase .purchase-order-details summary::-webkit-details-marker { display: none; }
.sbgf #sbgf-purchase .purchase-order-details summary > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d6c5d7;
  border-radius: 50%;
  transition: transform .2s ease;
}
.sbgf #sbgf-purchase .purchase-order-details details[open] summary > span { transform: rotate(45deg); }

.sbgf #sbgf-purchase .purchase-detail-content {
  padding: 0 0 20px;
  color: #605760;
  font-size: .8rem;
}
.sbgf #sbgf-purchase .purchase-detail-content > p { margin: 0; }
.sbgf #sbgf-purchase .purchase-detail-content > ul {
  display: grid;
  gap: 7px;
  margin: 16px 0 12px;
  padding-left: 20px;
}

.sbgf #sbgf-purchase .purchase-bundle-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sbgf #sbgf-purchase .purchase-bundle-gallery figure {
  min-width: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid #ddd0dc;
  border-radius: 12px;
  background: #fff;
}
.sbgf #sbgf-purchase .purchase-bundle-gallery img {
  width: 100%;
  aspect-ratio: 916 / 1462;
  border-radius: 8px;
  object-fit: cover;
}
.sbgf #sbgf-purchase .purchase-bundle-gallery figcaption {
  margin-top: 6px;
  color: var(--plum);
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 940px) {
  .sbgf #sbgf-purchase .purchase-payment-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .sbgf #sbgf-purchase .purchase-payment-card { padding: 26px 20px; }
  .sbgf #sbgf-purchase .purchase-payment-heading { display: block; }
  .sbgf #sbgf-purchase .purchase-decision-links { align-items: flex-start; margin-top: 16px; }
  .sbgf #sbgf-purchase .purchase-flex-inner { grid-template-columns: 1fr; }
  .sbgf #sbgf-purchase :is(.purchase-currency-choice, .purchase-currency-help, .purchase-custom-price, .purchase-price-help) {
    grid-column: 1;
    grid-row: auto;
  }
  .sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment { grid-template-columns: 1fr; }
  .sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment li { min-height: 42px; }
}

@media (max-width: 420px) {
  .sbgf #sbgf-purchase .purchase-price-choice-heading,
  .sbgf #sbgf-purchase .purchase-flex-inner,
  .sbgf #sbgf-purchase .purchase-paypal-area { padding: 17px; }
  .sbgf #sbgf-purchase .purchase-bundle-gallery { gap: 5px; }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figure { padding: 4px; }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figcaption { font-size: .58rem; overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
  .sbgf #sbgf-purchase .purchase-bundle-gallery { grid-template-columns: 1fr; gap: 8px; }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figure {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figcaption {
    margin: 0;
    font-size: .68rem;
    text-align: left;
  }
}

/* 1.3.0 checkout readability and provider-focus correction. */
.sbgf .purchase-payment-card,
.sbgf .purchase-order-details,
.sbgf .delivery-preview {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sbgf .purchase-paypal-buttons,
.sbgf .purchase-provider-slot { overflow: visible; }
.sbgf .purchase-bundle-gallery figcaption { font-size: .78rem; line-height: 1.35; }

@media (max-width: 520px) {
  .sbgf .purchase-bundle-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sbgf .purchase-bundle-gallery figure:last-child { grid-column: 1 / -1; width: min(50%, 150px); justify-self: center; }
  .sbgf .purchase-bundle-gallery figcaption { font-size: .75rem; }
  .sbgf .purchase-payment-card :where(p, li, small, label, figcaption) { font-size: max(.82rem, 14px); }
}

/* v1.9.0 — calm, conventional payment surface and consistent package art */
.sbgf #sbgf-purchase .purchase-paypal-area {
  border-color: #d4dae5;
  background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
  color: #172033;
  box-shadow: 0 12px 30px rgba(41, 52, 76, .10);
}
.sbgf #sbgf-purchase .purchase-payment-status,
.sbgf #sbgf-purchase .purchase-payment-status.is-ready,
.sbgf #sbgf-purchase .purchase-payment-status.is-method-heading {
  border-color: #d4dae5;
  background: #fff;
  color: #172033;
}
.sbgf #sbgf-purchase .purchase-wallet-divider,
.sbgf #sbgf-purchase .purchase-more-wallets-status { color: #46516a; }
.sbgf #sbgf-purchase .purchase-wallet-divider::before,
.sbgf #sbgf-purchase .purchase-wallet-divider::after { background: #d4dae5; }
.sbgf #sbgf-purchase .purchase-more-wallets { border-color: #d4dae5; }
.sbgf #sbgf-purchase .purchase-more-wallets > summary { color: #172033; }

@media (max-width: 520px) {
  .sbgf #sbgf-purchase .purchase-bundle-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figure:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 916 / 1462;
    object-fit: cover;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figcaption {
    font-size: max(.62rem, 11px);
    line-height: 1.25;
  }
}

@media (max-width: 340px) {
  .sbgf #sbgf-purchase .purchase-bundle-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figure,
  .sbgf #sbgf-purchase .purchase-bundle-gallery figure:last-child {
    display: grid;
    width: auto;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .sbgf #sbgf-purchase .purchase-bundle-gallery img { width: 72px; }
  .sbgf #sbgf-purchase .purchase-bundle-gallery figcaption {
    margin: 0;
    text-align: left;
  }
}

@media (forced-colors: active) {
  .sbgf #sbgf-purchase :is(.purchase-payment-card, .purchase-flex-price--open, .purchase-paypal-area, .purchase-order-details details) {
    border: 2px solid CanvasText;
  }
}

/* v1.8.0 — remove pre-payment repetition and shorten the phone path */
.sbgf #sbgf-purchase .purchase-decision-links { display: none !important; }
.sbgf #sbgf-purchase .purchase-checkout-stage { padding-top: 14px; }
.sbgf #sbgf-purchase .purchase-payment-heading { padding-bottom: 12px; }
.sbgf #sbgf-purchase .purchase-payment-heading h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.sbgf #sbgf-purchase .purchase-payment-heading > div > p { max-width: 54ch; font-size: .78rem; line-height: 1.45; }
.sbgf #sbgf-purchase .purchase-price-choice-heading { padding: 14px 17px; }
.sbgf #sbgf-purchase .purchase-flex-inner { padding: 15px 17px; }
.sbgf #sbgf-purchase .purchase-paypal-area { padding: 17px; }
.sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 17px;
}
.sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment li {
  min-height: 0;
  flex: 1 1 150px;
  padding: 6px 8px;
  font-size: .68rem;
  line-height: 1.3;
}
.sbgf #sbgf-purchase .purchase-order-details summary { min-height: 52px; }
.sbgf #sbgf-purchase .purchase-order-details__header h2 { margin-bottom: 14px; font-size: 1.45rem; }

@media (max-width: 520px) {
  .sbgf #sbgf-purchase .purchase-payment-card { padding: 13px 13px 15px !important; }
  .sbgf #sbgf-purchase .purchase-payment-heading { display: none !important; }
  .sbgf #sbgf-purchase .purchase-checkout-stage { padding-top: 0; }
  .sbgf #sbgf-purchase .purchase-price-choice-heading { padding: 10px 12px; }
  .sbgf #sbgf-purchase .purchase-price-choice-heading strong { font-size: .94rem; }
  .sbgf #sbgf-purchase .purchase-price-choice-heading small { display: none; }
  .sbgf #sbgf-purchase .purchase-price-choice-heading::after {
    content: "Choose the amount that works for your family today.";
    color: #6a5a67;
    font-size: .72rem;
    line-height: 1.35;
  }
  .sbgf #sbgf-purchase .purchase-flex-inner {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px 12px;
  }
  .sbgf #sbgf-purchase .purchase-flex-inner > * { grid-column: auto; grid-row: auto; }
  .sbgf #sbgf-purchase .purchase-custom-price { order: 1; }
  .sbgf #sbgf-purchase .purchase-price-help { order: 2; margin: 0; }
  .sbgf #sbgf-purchase .purchase-selected-amount { order: 3; margin-top: 1px; padding: 8px 10px; }
  .sbgf #sbgf-purchase .purchase-currency-choice { order: 4; }
  .sbgf #sbgf-purchase .purchase-currency-help { order: 5; margin: 0; }
  .sbgf #sbgf-purchase .purchase-amount-error { order: 6; }
  .sbgf #sbgf-purchase .purchase-currency-choice select,
  .sbgf #sbgf-purchase .purchase-custom-input { min-height: 44px; }
  .sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment {
    display: flex;
    gap: 4px;
    padding: 7px 12px;
  }
  .sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment li {
    min-height: 0;
    flex: 1 1 31%;
    padding: 5px 4px;
    font-size: .61rem !important;
    line-height: 1.2;
    text-align: center;
  }
  .sbgf #sbgf-purchase .purchase-paypal-area { padding: 12px !important; }
  .sbgf #sbgf-purchase .purchase-security-note { margin-top: 8px; font-size: .7rem; }
  .sbgf #sbgf-purchase + * { clear: both; }
  .sbgf #sbgf-purchase .delivery-preview { display: none !important; }
  .sbgf #sbgf-purchase .order-details { padding: 14px 16px !important; }
  .sbgf #sbgf-purchase .purchase-order-details__header { display: none; }
  .sbgf #sbgf-purchase .purchase-order-details summary { min-height: 46px; font-size: .82rem; }
  .sbgf #sbgf-purchase .purchase-order-details summary > span { width: 24px; height: 24px; }
  .sbgf #sbgf-purchase .purchase-detail-content { padding-bottom: 13px; font-size: .75rem; }
}

/*
 * v2.0.0 — compact Workshop portal checkout.
 * The visual language follows the approved midnight entrance: warm paper,
 * jewel-toned night gradients, dimensional gold trim, and tiny string lights.
 */
.sbgf #sbgf-purchase {
  --sbgf-checkout-night: #171c38;
  --sbgf-checkout-plum: #211831;
  --sbgf-checkout-deep: #11283b;
  --sbgf-checkout-cream: #fff8e8;
  --sbgf-checkout-gold: #ffd99c;
  --sbgf-checkout-mint: #b7dccf;
  --sbgf-checkout-coral: #ea8b74;
  --sbgf-checkout-lilac: #c9bee8;
}

.sbgf #sbgf-purchase .purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
}

.sbgf #sbgf-purchase .purchase-payment-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  padding: 43px clamp(17px, 4vw, 30px) 18px;
  color: var(--sbgf-checkout-cream);
  border: 1px solid rgba(255, 217, 156, .42);
  border-radius: 23px;
  background:
    radial-gradient(circle at 78% 13%, rgba(255, 201, 119, .13), transparent 25%),
    radial-gradient(circle at 13% 28%, rgba(234, 139, 116, .15), transparent 27%),
    radial-gradient(circle at 88% 76%, rgba(183, 220, 207, .11), transparent 24%),
    linear-gradient(145deg, var(--sbgf-checkout-night) 0%, var(--sbgf-checkout-plum) 55%, var(--sbgf-checkout-deep) 100%);
  box-shadow:
    0 22px 52px rgba(20, 10, 34, .28),
    0 1px 0 rgba(255, 248, 224, .18) inset,
    0 0 34px rgba(255, 196, 99, .08) inset;
  font-family: "Trebuchet MS", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sbgf #sbgf-purchase .purchase-payment-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8px;
  right: 17px;
  left: 17px;
  height: 25px;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 66%, #ffda7d 0 3px, rgba(255, 218, 125, .34) 3.5px, transparent 7px),
    radial-gradient(circle at 19% 56%, #9edacb 0 3px, rgba(158, 218, 203, .32) 3.5px, transparent 7px),
    radial-gradient(circle at 35% 69%, #f3c7cd 0 3px, rgba(243, 199, 205, .32) 3.5px, transparent 7px),
    radial-gradient(circle at 51% 53%, #c9bee8 0 3px, rgba(201, 190, 232, .32) 3.5px, transparent 7px),
    radial-gradient(circle at 67% 68%, #ffda7d 0 3px, rgba(255, 218, 125, .34) 3.5px, transparent 7px),
    radial-gradient(circle at 83% 55%, #9edacb 0 3px, rgba(158, 218, 203, .32) 3.5px, transparent 7px),
    radial-gradient(circle at 97% 66%, #f3c7cd 0 3px, rgba(243, 199, 205, .32) 3.5px, transparent 7px),
    linear-gradient(177deg, transparent 46%, rgba(255, 240, 207, .42) 47% 50%, transparent 51%);
  filter: drop-shadow(0 0 5px rgba(255, 218, 125, .46));
  transform-origin: 50% 0;
}

.sbgf #sbgf-purchase .purchase-payment-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background:
    radial-gradient(circle at 8% 17%, rgba(255,255,255,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 93% 26%, rgba(255,217,156,.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 57%, rgba(183,220,207,.65) 0 1px, transparent 1.5px),
    repeating-linear-gradient(17deg, transparent 0 13px, rgba(255,255,255,.025) 14px 15px),
    repeating-linear-gradient(103deg, transparent 0 20px, rgba(9,13,35,.08) 21px 22px);
  mix-blend-mode: soft-light;
}

.sbgf #sbgf-purchase .purchase-payment-card > * {
  position: relative;
  z-index: 1;
}

.sbgf #sbgf-purchase .purchase-payment-heading {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  min-width: 0;
  padding: 0 44px 10px 0;
  border-bottom: 1px solid rgba(255, 217, 156, .2);
}

.sbgf #sbgf-purchase .purchase-payment-heading::after {
  content: "z Z";
  position: absolute;
  top: 0;
  right: 2px;
  color: var(--sbgf-checkout-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  letter-spacing: .16em;
  opacity: .72;
  text-shadow: 0 0 10px rgba(255, 217, 156, .48);
  transform: rotate(-8deg);
}

.sbgf #sbgf-purchase .purchase-payment-heading h2 {
  color: var(--sbgf-checkout-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 3vw, 1.62rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(255, 224, 170, .14);
}

.sbgf #sbgf-purchase .purchase-payment-heading > div > p {
  margin: 5px 0 0;
  color: #eadfea;
  font-size: max(.7rem, 12px);
  font-weight: 500;
  line-height: 1.35;
}

/* The amount was chosen on the prior screen; retain only its live confirmation. */
.sbgf #sbgf-purchase .purchase-checkout-stage--amount {
  min-height: 0;
  padding: 0;
}

.sbgf #sbgf-purchase .purchase-checkout-stage--amount > .purchase-checkout-step,
.sbgf #sbgf-purchase .purchase-price-choice-heading,
.sbgf #sbgf-purchase .purchase-currency-choice,
.sbgf #sbgf-purchase .purchase-currency-help,
.sbgf #sbgf-purchase .purchase-custom-price,
.sbgf #sbgf-purchase .purchase-price-help,
.sbgf #sbgf-purchase .purchase-amount-error,
.sbgf #sbgf-purchase .purchase-checkout-assurances--before-payment,
.sbgf #sbgf-purchase .purchase-decision-links,
.sbgf #sbgf-purchase .order-details,
.sbgf #sbgf-purchase .delivery-preview,
.sbgf #sbgf-purchase [data-open-included],
.sbgf #sbgf-purchase [href="#purchase-included"] {
  display: none !important;
}

.sbgf #sbgf-purchase .purchase-flex-price--open {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sbgf #sbgf-purchase .purchase-flex-inner {
  display: block;
  padding: 0;
}

.sbgf #sbgf-purchase .purchase-selected-amount {
  width: fit-content;
  min-height: 32px;
  justify-content: flex-start;
  gap: 9px;
  margin: 9px 0 0;
  padding: 6px 10px;
  color: var(--sbgf-checkout-cream);
  border: 1px solid rgba(183, 220, 207, .42);
  border-radius: 999px;
  background: rgba(183, 220, 207, .11);
  box-shadow: 0 0 17px rgba(158, 218, 203, .06);
}

.sbgf #sbgf-purchase .purchase-selected-amount span {
  color: #cfe9df;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .09em;
  white-space: nowrap;
}

.sbgf #sbgf-purchase .purchase-selected-amount strong {
  color: #fff4d7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1;
}

/* Homepage already carries the selected amount in its own compact top line. */
:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-checkout-stage--amount {
  display: none !important;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-payment-card {
  isolation: auto;
  overflow: visible;
  padding: 0 !important;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-payment-card::before,
:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-payment-card::after,
:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-payment-heading {
  display: none !important;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-checkout-stage--payment {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-payment-step-heading {
  display: none !important;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-security-note {
  color: #665466;
}

:is(#sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase, .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase, #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase) .purchase-security-note a {
  color: #513a58;
}

.sbgf #sbgf-purchase .purchase-checkout-stage--payment {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 217, 156, .2);
}

.sbgf #sbgf-purchase .purchase-checkout-step {
  gap: 8px;
  margin: 0 0 8px;
  color: #f8ead6;
  font-size: max(.74rem, 12px);
  font-weight: 600;
}

.sbgf #sbgf-purchase .purchase-checkout-step > span {
  min-height: 23px;
  padding: 0 8px;
  color: #fcebc4;
  border-color: rgba(255, 217, 156, .34);
  background: rgba(78, 47, 72, .62);
  font-size: .58rem;
}

.sbgf #sbgf-purchase .purchase-paypal-area {
  padding: 12px;
  color: #172033;
  border: 1px solid rgba(255, 217, 156, .7);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0, rgba(183, 220, 207, .25), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #f8f3ee 100%);
  box-shadow:
    0 10px 25px rgba(8, 12, 32, .2),
    0 1px 0 #fff inset,
    0 0 0 1px rgba(255, 255, 255, .42) inset;
}

.sbgf #sbgf-purchase .purchase-payment-status,
.sbgf #sbgf-purchase .purchase-payment-status.is-ready,
.sbgf #sbgf-purchase .purchase-payment-status.is-method-heading {
  min-height: 0;
  margin: 0 0 7px;
  padding: 0 2px 5px;
  color: #4e4251;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: max(.68rem, 12px);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.sbgf #sbgf-purchase .purchase-payment-status.is-retry {
  padding: 8px 9px;
  border: 1px solid #e5c8a6;
  border-radius: 10px;
  background: #fff7e8;
}

.sbgf #sbgf-purchase .purchase-paypal-buttons {
  min-height: 0;
  gap: 8px;
}

.sbgf #sbgf-purchase .purchase-wallet-slot[data-wallet-ready="true"] {
  min-height: 46px;
}

.sbgf #sbgf-purchase .purchase-wallet-slot--googlepay > div {
  height: 46px !important;
  border-radius: 11px !important;
}

.sbgf #sbgf-purchase .purchase-apple-pay-button {
  height: 46px;
  --apple-pay-button-height: 46px;
  --apple-pay-button-border-radius: 11px;
}

.sbgf #sbgf-purchase .purchase-security-note {
  margin: 8px 0 0;
  color: #d9cedd;
  font-size: max(.64rem, 11px);
  line-height: 1.35;
  text-align: center;
}

.sbgf #sbgf-purchase .purchase-security-note a {
  color: var(--sbgf-checkout-gold);
  font-weight: 600;
}

.sbgf #sbgf-purchase .purchase-payment-error {
  margin-top: 8px;
  padding: 9px 10px;
}

.sbgf #sbgf-purchase :is(.purchase-retry-checkout, .purchase-verify-payment) {
  min-height: 42px;
  margin-top: 8px;
  border-color: #44314e;
  background: #44314e;
  color: #fff8e8;
}

/* Compact, low-visual-weight amount editor controls in both portal owners. */
#sb-sleep-door-portal :is(.sbp-change-amount, .sbp-checkout-back, .sbp-checkout-change) {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 10px !important;
  color: #503b51 !important;
  border: 1px solid rgba(86, 55, 83, .24) !important;
  border-radius: 999px !important;
  background: rgba(255, 253, 248, .78) !important;
  box-shadow: 0 2px 8px rgba(67, 41, 67, .07) !important;
  font-size: max(.66rem, 11px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
}

#sb-sleep-door-portal :is(.sbp-change-amount, .sbp-checkout-back, .sbp-checkout-change):hover {
  color: #2f5347 !important;
  border-color: rgba(83, 155, 130, .45) !important;
  background: #f2fbf6 !important;
  box-shadow: 0 0 14px rgba(126, 199, 174, .16) !important;
}

#sb-sleep-door-portal .sbp-change-amount {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
}

#sb-sleep-door-portal :is(.sbp-checkout-back, .sbp-checkout-change) {
  position: static !important;
}

#sb-sleep-door-portal .sbp-checkout-topline {
  gap: 10px;
  margin-bottom: 9px;
  padding-bottom: 8px;
}

#sb-sleep-door-portal .sbp-checkout-amount strong {
  color: #2f5748;
  font-size: 17px;
}

/* Embedded checkout owners supply the amount/header canvas. Keep only the
 * provider area as a visible payment container. */
:is(
  #sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase,
  .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase,
  #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase
) :is(.purchase-drawer, .purchase-panel, .purchase-payment-card) {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:is(
  #sbgf-home .sbgf-home__checkout-slot .sbgf #sbgf-purchase,
  .sbgf #sb-sleep-door-portal .sbp-checkout-mount #sbgf-purchase,
  #sb-sleep-door-portal .sbp-checkout-slot .sbgf #sbgf-purchase
) .purchase-payment-card {
  padding: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
  .sbgf #sbgf-purchase .purchase-payment-card::before {
    animation: sbgf-checkout-lights 4.2s ease-in-out infinite;
  }

  .sbgf #sbgf-purchase .purchase-paypal-area {
    animation: sbgf-checkout-payment-glow 5.4s ease-in-out infinite;
  }
}

@keyframes sbgf-checkout-lights {
  0%, 100% { opacity: .76; filter: drop-shadow(0 0 4px rgba(255, 218, 125, .32)); }
  42% { opacity: 1; filter: drop-shadow(0 0 7px rgba(255, 218, 125, .64)); }
  65% { opacity: .88; filter: drop-shadow(0 0 5px rgba(158, 218, 203, .46)); }
}

@keyframes sbgf-checkout-payment-glow {
  0%, 100% { box-shadow: 0 10px 25px rgba(8,12,32,.2), 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.42) inset; }
  50% { box-shadow: 0 13px 30px rgba(8,12,32,.25), 0 0 18px rgba(255,217,156,.12), 0 1px 0 #fff inset, 0 0 0 1px rgba(255,255,255,.52) inset; }
}

@media (max-width: 520px) {
  .sbgf #sbgf-purchase .purchase-payment-card {
    padding: 39px 12px 12px !important;
    border-radius: 18px;
  }

  .sbgf #sbgf-purchase .purchase-payment-heading {
    padding: 0 38px 8px 0;
  }

  .sbgf #sbgf-purchase .purchase-payment-heading h2 {
    font-size: 1.13rem;
  }

  .sbgf #sbgf-purchase .purchase-payment-heading > div > p {
    display: block;
    font-size: 11px;
  }

  .sbgf #sbgf-purchase .purchase-selected-amount {
    margin-top: 7px;
    padding: 5px 9px;
  }

  .sbgf #sbgf-purchase .purchase-checkout-stage--payment {
    margin-top: 7px;
    padding-top: 7px;
  }

  .sbgf #sbgf-purchase .purchase-paypal-area {
    padding: 10px !important;
    border-radius: 14px;
  }

  #sb-sleep-door-portal .sbp-checkout-topline {
    margin-right: 42px;
  }

  #sb-sleep-door-portal :is(.sbp-change-amount, .sbp-checkout-back, .sbp-checkout-change) {
    min-height: 44px !important;
    padding: 5px 9px !important;
  }
}

@media (forced-colors: active) {
  .sbgf #sbgf-purchase .purchase-payment-card,
  .sbgf #sbgf-purchase .purchase-paypal-area,
  #sb-sleep-door-portal :is(.sbp-change-amount, .sbp-checkout-back, .sbp-checkout-change) {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  .sbgf #sbgf-purchase .purchase-payment-card::before,
  .sbgf #sbgf-purchase .purchase-payment-card::after,
  .sbgf #sbgf-purchase .purchase-payment-heading::after {
    display: none;
  }
}
