/* ==========================================================================
   checkout.css - the signup checkout (signup/index, /assets/js/checkout.js)

   Shared by every site using the checkout. A site restyles it by overriding
   the --checkout-* variables below in its own stylesheet, e.g.

       :root { --checkout-brand: #0a7d6b; --checkout-accent: #0a7d6b; }

   Let's Knit loads this on every page (both layouts), just before
   styles-2026.css, because these rules were in styles-2026.css until the
   checkout was split out and other pages may still lean on some of the
   generic class names (.card, .price, .error ...). Other sites only need
   it on the checkout pages.
   ========================================================================== */
:root {
    /* Text and surfaces */
    --checkout-ink: #111827;
    --checkout-muted: #6b7280;
    --checkout-line: #e5e7eb;
    --checkout-panel: #f9fafb;
    --checkout-radius: 10px;

    /* Buttons, focus rings and the selected plan */
    --checkout-brand: #3b82f6;
    --checkout-brand-dark: #2563eb;
    --checkout-brand-tint: #eff6ff;

    /* Gift packages and badges */
    --checkout-accent: #e8336d;
    --checkout-accent-soft: #f0a5bd;
    --checkout-accent-tint: #fde0e9;
    --checkout-accent-pale: #fde4ea;
    --checkout-accent-wash: #fffafb;
    --checkout-accent-shadow: rgba(232, 51, 109, 0.3);
    --checkout-heading-ink: #1d2645;

    /* Loading spinner */
    --checkout-spinner: #f173ac;

    /* Fonts */
    --checkout-font: "Trebuchet MS", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    --checkout-heading-font: "Source Serif Pro", Georgia, serif;

    /* Behind the whole checkout page: pink wash with two waves at the top */
    --checkout-page-background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23fbd9e3' d='M0 0h1440v150c-160 40-330 70-520 40S560 70 380 80 120 170 0 190z'/%3E%3Cpath fill='%23fde8ee' fill-opacity='.9' d='M0 0h1440v95c-200 70-420 90-640 50S420 40 240 70 60 130 0 150z'/%3E%3C/svg%3E") top center / 100% 300px no-repeat,
        linear-gradient(180deg, #fdebf0 0, #fff5f8 360px, #fffafb 720px, #fff 100%);
}

.loader {
    --color-1: var(--checkout-spinner);
    --size: 0.5px;
    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border: calc(8 * var(--size)) solid var(--color-1);
    border-bottom-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

#loading-indicator-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.loader-white {
    --color-1: #fff;
    --size: 0.5px;
    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border: calc(8 * var(--size)) solid var(--color-1);
    border-bottom-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
  * { box-sizing: border-box; }

  .signup-container {
    margin: 0;
    padding: 24px 16px 56px;
    font-family: var(--checkout-font);
    color: var(--checkout-ink);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  .page {
    max-width: 860px;
    margin: 0 auto;
    padding: 22px 22px 28px;
  }

  /* ---------- Logo ---------- */
  .logo{
    width: 100%;
    max-width: 150px;
    margin-bottom: 22px;
  }

  .error {
    color: #b91c1c;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 12px;
  }

  /* "We found an account with this email": the Log in button under it. */
  .error .error__login {
    display: block;
    margin-top: 10px;
    padding: 11px 0;
    border: 2px solid var(--checkout-brand);
    border-radius: 8px;
    color: var(--checkout-brand);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }
  .error .error__login:hover {
    background: var(--checkout-brand);
    color: #fff;
  }

  .promos-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 12px;
  }
  .promos-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--checkout-line);
    background: #fff;
    cursor: pointer;
  }

  .promos-checkbox label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--checkout-muted);
  }


  /* ---------- Hero ---------- */
  .hero {
    background: var(--checkout-panel);
    text-align: center;
    padding: 20px 28px 26px;
  }
  .hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  .hero p {
    margin: 0 auto;
    max-width: 540px;
    font-size: 15px;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* ---------- Plan cards ---------- */
  .plans {
    background: var(--checkout-panel);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 6px 28px 28px;
    border: 0;          /* fieldset reset */
    margin: 0;
    min-width: 0;
  }

  .plan {
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius);
    padding: 18px 18px 20px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .plan:hover { border-color: #c7d2da; }
  /* A one-per-person offer this shopper has already used. It can still be
     selected, so the notice below the plans can explain why it can't be paid for. */
  .plan.is-unavailable { opacity: 0.55; }
  .plan.is-unavailable.is-selected { opacity: 1; border-color: #b91c1c; box-shadow: 0 0 0 1px #fee2e2; }
  .plan-unavailable-note { margin-top: 10px; font-size: 13px; font-weight: 700; color: #b91c1c; }

  /* Shown while the selected plan is an offer the shopper has already used. */
  .offer-blocked {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    background: #fef2f2;
    color: #7f1d1d;
    font-size: 14px;
  }
  .offer-blocked[hidden] { display: none; }
  .offer-blocked__text { margin: 0; }

  /* ---------- Logged-in notice ---------- */
  .logged-in-as {
    font-size: 14px;
    color: #374151;
    background: var(--checkout-brand-tint);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }
  .logged-in-as__logout { display: inline; margin: 0; }
  .link-button {
    font: inherit;
    color: var(--checkout-brand-dark);
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
    cursor: pointer;
  }

  /* The real radio: kept in the accessibility tree and focusable, just not seen. */
  .plan-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
  }

  .plan:has(.plan-radio:focus-visible) {
    outline: 3px solid var(--checkout-brand);
    outline-offset: 2px;
  }

    .plan.is-selected {
    border: 2px solid var(--checkout-brand);
    background: #fbfdff;
    box-shadow: 0 0 0 1px var(--checkout-brand-tint);
    padding: 17px 17px 19px;
  }

  .plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
  }
  .plan-name { font-size: 19px; font-weight: 700; }

  .tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--checkout-brand-tint);
    color: #1e40af;
    white-space: nowrap;
  }
  .tag--value {
    position: absolute;
    top: -10px;
    right: 14px;
    background: #dbeafe;
  }

  .price { font-size: 34px; font-weight: 700; letter-spacing: -1px; }
  .price-when { color: var(--checkout-muted); font-size: 14px; margin-bottom: 10px; font-weight: 700; }
  .plan-terms { font-size: 13.5px; margin: 0 0 12px; }
  .plan-terms div + div { margin-top: 2px; }

  .benefits { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
  .benefits li { padding-left: 20px; position: relative; margin-bottom: 5px; }
  .benefits li::before {
    content: "✔";
    position: absolute;
    left: 0;
    font-size: 12px;
  }

  /* ---------- Express checkout ---------- */
  .express {
    max-width: 560px;
    margin: 22px auto 0;
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius);
    padding: 14px 16px 16px;
    text-align: center;
  }
  .express-label { font-size: 13.5px; color: #374151; margin-bottom: 10px; }
  /* auto-fit so the row still balances when a wallet is unavailable and
     removes itself. */
  /* align-items: start stops a taller cell stretching the Apple Pay button,
     which sits in the grid directly (Google Pay has a wrapper and didn't). */
  .wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: start; }
  /* Only one wallet available: centre it at about the width it has when
     there are two, instead of stretching it across the whole box. */
  .wallets--single { grid-template-columns: minmax(0, 260px); justify-content: center; }
  /* One fixed height for every wallet, matching the PayPal button's 40px. */
  .wallet {
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: 0;
    border-radius: 6px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .wallet--apple { background: #000; color: #fff; }
  /* PayPal sizes its own iframe to the 40px set in the button style; auto
     here so it is never clipped. */
  .wallet--paypal {
    height: auto;
    min-height: 40px;
    padding: 0;
    background: transparent;
    display: block;
  }
  .paypal-fallback {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: #ffc439;
    font: inherit;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.2px;
    cursor: pointer;
  }
  .wallet--gpay { background: #000; color: #fff; }
  /* .wallet sets display, which outranks the browser's [hidden] rule, so the
     hidden wallets need saying explicitly or they render anyway. */
  .wallet[hidden], #express-checkout[hidden] { display: none; }
  .wallet:disabled { opacity: 0.6; cursor: default; }
  /* Locked while another payment route is submitting, or while the selected
     plan can't be bought. PayPal's button is an iframe, so it is blocked by
     the container rather than a disabled attribute. */
  .express.is-locked .wallets { opacity: 0.5; pointer-events: none; }
  /* Locked while a wallet payment is creating the account. */
  #signup-form.is-locked { opacity: 0.5; pointer-events: none; }
  .wallet svg { display: block; }

  .pp-mark { position: relative; width: 15px; height: 18px; margin-right: 1px; }
  .pp-mark span {
    position: absolute;
    top: 0;
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
  }
  .pp-mark span:first-child { left: 0; color: #009cde; }
  .pp-mark span:last-child { left: 4px; color: #003087; }
  .pp-pay { color: #003087; }
  .pp-pal { color: #009cde; }

  /* ---------- Email form ---------- */
  .email-block {
    background: var(--checkout-panel);
    margin-top: 22px;
    padding: 22px 28px 26px;
  }
  .email-inner { max-width: 560px; margin: 0 auto; }

  .or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--checkout-muted);
    font-size: 13px;
    margin-bottom: 18px;
  }
  /* Only shown when an express wallet sits above it. */
  .or[hidden] { display: none; }
  .or::before, .or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--checkout-line);
  }

  .email-inner h2 { font-size: 16px; margin: 0 0 12px; }

  .field {
    width: 100%;
    font: inherit;
    font-size: 15px;
    padding: 13px 14px;
    border: 1px solid var(--checkout-line);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
  }
  .field::placeholder { color: #9ca3af; }
  .field:focus { outline: none; border-color: var(--checkout-brand); box-shadow: 0 0 0 3px var(--checkout-brand-tint); }

  .password-field {
    position: relative;
  }
  .password-field .field {
    padding-right: 122px;
  }
  .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--checkout-brand);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .password-toggle:focus-visible {
    outline: 2px solid var(--checkout-brand);
    outline-offset: 2px;
  }

  .hosted-field {
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--checkout-line);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
  }
  #new-card-fields.is-locked {
    opacity: 0.5;
  }
  #saved-card-select {
    padding-right: 42px;
  }

  .payment-form-shell {
    position: relative;
  }
  .payment-form-shell.is-loading #payment-form {
    opacity: 0;
    pointer-events: none;
  }
  .payment-skeleton {
    display: none;
  }
  .payment-form-shell.is-loading .payment-skeleton {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    background: var(--checkout-panel);
  }
  .payment-skeleton__label,
  .payment-skeleton__field,
  .payment-skeleton__button {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: payment-skeleton-shimmer 1.4s ease-in-out infinite;
  }
  .payment-skeleton__label {
    width: 86px;
    height: 15px;
    margin-bottom: 7px;
  }
  .payment-skeleton__field {
    height: 48px;
    margin-bottom: 12px;
  }
  .payment-skeleton__button {
    height: 50px;
    margin-top: 4px;
  }
  /* ---------- Payment confirmation ---------- */
  /* The tick draws itself with stroke-dashoffset: each dasharray below equals
     the length of its own path, so animating the offset to 0 reveals it. */
  .payment-success {
    text-align: center;
    padding: 30px 0 26px;
  }
  .payment-success[hidden], #payment-form[hidden] { display: none; }

  /* ---------- Payment processing overlay ---------- */
  .payment-processing {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.45);
  }
  .payment-processing[hidden] { display: none; }
  .payment-processing__box {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: var(--checkout-radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .payment-processing__spinner { --size: 1px; }
  .payment-processing__title { font-size: 17px; font-weight: 700; color: var(--checkout-ink); margin: 16px 0 6px; }
  .payment-processing__note { font-size: 13.5px; color: var(--checkout-muted); margin: 0; }

  /* ---------- Order terms and consent ---------- */
  /* The selected plan's terms, directly above the card pay button. */
  .pay-terms {
    margin: 14px 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--checkout-line);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #374151;
  }
  .pay-terms:empty { display: none; }
  .pay-terms p { margin: 0; }
  .pay-terms p + p { margin-top: 6px; }
  /* Required, so it reads as part of the order rather than small print. */
  .consent-checkbox label { color: var(--checkout-ink); line-height: 1.4; }
  .consent-checkbox input[type="checkbox"] { flex: 0 0 auto; margin-top: 2px; }

  /* ---------- Wallet review ---------- */
  .wallet-review {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.45);
  }
  .wallet-review[hidden] { display: none; }
  .wallet-review__box {
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--checkout-radius);
    padding: 24px 22px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  .wallet-review__title { margin: 0 0 14px; font-size: 19px; color: var(--checkout-ink); }
  .wallet-review__plan {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--checkout-line);
    font-size: 15px;
  }
  .wallet-review__terms { margin: 10px 0 0; font-size: 14px; color: var(--checkout-ink); }
  .wallet-review__terms[hidden], .wallet-review__legal[hidden] { display: none; }
  .wallet-review__legal {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--checkout-panel);
    font-size: 13px;
    color: #374151;
  }
  .wallet-review__legal p { margin: 0; }
  .wallet-review__legal p + p { margin-top: 6px; }
  .wallet-review__method { margin: 12px 0; font-size: 13px; color: var(--checkout-muted); overflow-wrap: anywhere; }
  .wallet-review__cancel { display: block; margin: 12px auto 0; font-size: 14px; }
  .payment-success__tick {
    display: block;
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
  }
  .payment-success__circle {
    stroke: #16a34a;
    stroke-width: 2;
    stroke-dasharray: 151;      /* 2 * pi * r, r = 24 */
    stroke-dashoffset: 151;
    animation: payment-success-draw 0.5s ease-out forwards;
  }
  .payment-success__check {
    stroke: #16a34a;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34;       /* length of the tick path */
    stroke-dashoffset: 34;
    animation: payment-success-draw 0.32s 0.42s ease-out forwards;
  }
  .payment-success__title {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #15803d;
  }
  .payment-success__note {
    margin: 0;
    font-size: 14.5px;
    color: #4b5563;
  }
  @keyframes payment-success-draw {
    to { stroke-dashoffset: 0; }
  }
  /* Respect a reduced-motion preference: show the finished tick, no drawing. */
  @media (prefers-reduced-motion: reduce) {
    .payment-success__circle,
    .payment-success__check {
      animation: none;
      stroke-dashoffset: 0;
    }
  }

  @keyframes payment-skeleton-shimmer {
    to { background-position: -200% 0; }
  }

  .cta {
    width: 100%;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--checkout-brand);
    border: 0;
    border-radius: 8px;
    padding: 15px 0;
    cursor: pointer;
    margin-top: 4px;
  }

  .cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .cta:hover { background: var(--checkout-brand-dark); }

  /* ---------- Summary panels ---------- */
  .summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 26px 22px 4px;
  }
  .card {
    border: 1px solid var(--checkout-line);
    border-radius: var(--checkout-radius);
    padding: 18px;
  }
  .card h3 { margin: 0 0 12px; font-size: 16px; }

  .card .benefits li { font-size: 13.5px; }

  .sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--checkout-line);
  }
  .sum-row strong { font-weight: 700; }
  .sum-note { font-size: 13.5px; color: #4b5563; margin: 12px 0 0; }

  /* ---------- Legal ---------- */
  .legal {
    background: var(--checkout-panel);
    margin-top: 22px;
    padding: 16px 26px;
    font-size: 13px;
    text-align: center;
    color: #374151;
  }
  .links {
    text-align: center;
    font-size: 13px;
    margin-top: 14px;
    color: #4b5563;
  }
  .links a { color: inherit; }

  @media (max-width: 620px) {
    .plans, .summary, .wallets, .wallets--single { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
    .page { padding: 16px 14px 22px; }
    .hero, .plans, .email-block, .legal { padding-left: 14px; padding-right: 14px; }
  }


  .plan-panel { display: none !important; }
  .plan-panel.is-active { display: block !important; }


/* ==========================================================================
   Checkout: background and gift packages (signup/index)
   ========================================================================== */
/* Soft pink wash with two waves across the top, behind the whole page. */
.signup-container {
    background: var(--checkout-page-background);
}
.signup-container .hero,
.signup-container .plans { background: transparent; }
.signup-container .page { max-width: 960px; }

/* A bespoke link (/signup?package=...) shows one package, centred. */
.plans[hidden] { display: none; }
.plans:has(> label.plan:only-of-type) { grid-template-columns: minmax(0, 440px); justify-content: center; }
.plans:has(> label.plan--gift:only-of-type) { grid-template-columns: minmax(0, 640px); }

/* A package with a gift_offer: text on the left, the gift on the right. */
.plan.plan--gift {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 44%);
    grid-template-rows: repeat(8, auto) 1fr;
    column-gap: 18px;
    align-content: start;
    border: 2px solid var(--checkout-accent-soft);
    background: #fff;
}
.plan.plan--gift.is-selected {
    border-color: var(--checkout-accent);
    background: var(--checkout-accent-wash);
    box-shadow: 0 0 0 1px var(--checkout-accent-tint);
}
.plan.plan--gift > :not(.plan-gift) { grid-column: 1; }
/* With two plans, the gift card gets the wider column. */
.plans:has(> label.plan:nth-of-type(2):last-of-type):has(> .plan--gift:last-of-type) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.plans:has(> label.plan:nth-of-type(2):last-of-type):has(> .plan--gift:first-of-type) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.plan--gift .tag--value { background: var(--checkout-accent); color: #fff; font-size: 12px; padding: 5px 14px; top: -14px; }

.plan-gift {
    grid-column: 2;
    grid-row: 1 / -1;
    position: relative;
    align-self: start;
    margin: 4px 0 18px;
}
.plan-gift__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}
.plan-gift__badge {
    position: absolute;
    top: 18%;
    left: -22px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-top: 2px;
    border-radius: 50%;
    background: var(--checkout-accent);
    box-shadow: 0 4px 10px var(--checkout-accent-shadow);
    color: #fff;
    font-family: var(--checkout-heading-font);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}
.plan-gift__name {
    position: relative;
    margin: -22px 8px 0 auto;
    width: fit-content;
    max-width: calc(100% - 8px);
    padding: 6px 12px;
    background: var(--checkout-accent-pale);
    border-radius: 3px 10px 3px 12px;
    transform: rotate(-2deg);
    font-family: var(--checkout-heading-font);
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.25;
    color: var(--checkout-heading-ink);
    text-align: center;
}

@media (max-width: 620px) {
    .plans:has(> .plan--gift) { grid-template-columns: 1fr !important; }
    .plan.plan--gift { display: block; }
    .plan-gift { max-width: 230px; margin: 16px auto 22px; }
    .plan-gift__badge { left: -10px; width: 66px; height: 66px; font-size: 13px; }
}


/* ==========================================================================
   Address step (signup/address): name and address after payment
   ========================================================================== */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}
.field-label {
    display: block;
    margin: 0 0 5px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--checkout-ink);
}
.field-optional {
    font-weight: 400;
    color: var(--checkout-muted);
}
.field[aria-invalid="true"] {
    border-color: #b91c1c;
}
.field[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px #fee2e2;
}
.field-error {
    margin: -6px 0 12px;
    font-size: 13px;
    color: #b91c1c;
}
.field-error:empty {
    display: none;
}
select.field {
    cursor: pointer;
}
.skip-button {
    display: block;
    margin: 16px auto 0;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--checkout-muted);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}
.skip-button:hover { color: var(--checkout-ink); }
.skip-button:disabled { opacity: 0.5; cursor: not-allowed; }
.skip-button:focus-visible {
    outline: 2px solid var(--checkout-brand);
    outline-offset: 2px;
}

@media (max-width: 620px) {
    .field-row { grid-template-columns: 1fr; }
}
