/* ==========================================================================
   Guardians of Blockchain · purchase flow
   cart.html, cart-empty.html, checkout.html and order-summary*.html

   Figma "Funnel (#23)": 3 Košík /cart, 4 Objednávka /checkout,
   6 Potvrzení /order/summary/{hash} and "Stavy platby po návratu z BTCPay".
   ========================================================================== */

@layer pages {
  /* ------------------------------------------------------------------------
     Page head: title, optional status icon and lead, order steps
     ------------------------------------------------------------------------ */

  .shop-head {
    /* Figma: page title 36/40 on phones, 56/64 on desktop (no text style) */
    --shop-title-size: clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);
    --shop-title-leading: clamp(2.5rem, 1.943rem + 2.286vw, 4rem);
    display: grid;
    justify-items: center;
    padding-block: 1.75rem var(--space-40);
    text-align: center;
  }

  .shop-head__title {
    font: 600 var(--shop-title-size) / var(--shop-title-leading) var(--font-display);
    letter-spacing: -0.027em;
  }

  .shop-head__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: var(--space-12);
    color: var(--color-teal);
  }

  .shop-head__lead {
    max-width: 20.625rem;
    margin-top: var(--space-12);
    color: var(--color-mist);
  }

  .shop-head__steps {
    margin-top: var(--space-16);
  }

  .shop-head__steps:first-child {
    margin-top: 0;
  }

  .shop-head--status {
    padding-block: var(--space-24) var(--space-32);
  }

  /* Figma: the phone confirmation has no steps, the order is finished. */
  @media (width < 36rem) {
    .shop-head--status .shop-head__steps {
      display: none;
    }
  }

  @media (min-width: 48rem) {
    .shop-head {
      padding-block: 4.25rem 5.375rem;
    }

    .shop-head__icon {
      width: 3.5rem;
      height: 3.5rem;
      margin-bottom: var(--space-16);
    }

    .shop-head__lead {
      max-width: 62.5rem;
      font-size: 1.25rem;
      line-height: 1.75rem;
    }

    .shop-head__steps {
      margin-top: var(--space-32);
    }

    .shop-head--status {
      padding-block: 3.25rem 4.5rem;
    }

    .shop-head--status .shop-head__steps {
      margin-top: var(--space-40);
    }
  }

  /* ------------------------------------------------------------------------
     Page layout
     One column on phones and tablets. From 64rem the main column sits left
     and the summary with its actions right. The DOM order is the phone order,
     so the grid places the three parts explicitly.
     ------------------------------------------------------------------------ */

  .shop-main {
    padding-bottom: var(--space-48);
  }

  .shop-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
  }

  .shop-layout__main {
    display: grid;
    gap: var(--space-16);
  }

  @media (min-width: 64rem) {
    .shop-main {
      padding-bottom: var(--space-96);
    }

    .shop-layout {
      display: grid;
      grid-template-columns: minmax(0, 760fr) minmax(0, 416fr);
      /* The last row takes whatever the main column is taller by. */
      grid-template-rows: auto auto 1fr;
      align-items: start;
      gap: 0 var(--space-24);
    }

    .shop-layout--equal {
      align-items: stretch;
    }

    .shop-layout__main {
      grid-area: 1 / 1 / -1 / 2;
      gap: var(--space-24);
    }

    .shop-layout__summary {
      grid-area: 1 / 2;
    }

    .shop-layout__actions {
      grid-area: 2 / 2;
    }

    .shop-layout__aside {
      grid-area: 1 / 2 / -1 / 3;
    }
  }

  /* ------------------------------------------------------------------------
     Card of the flow
     .card from base.css plus padding, a vertical rhythm and an optional glow.
     ------------------------------------------------------------------------ */

  .shop-card {
    --card-gap: var(--space-12);
    /* Glow (Figma: Záře): a soft elliptical light clipped by the card.
       Off until a component sets --glow-alpha. */
    --glow-color: var(--color-teal);
    --glow-alpha: 0%;
    --glow-size: 18.75rem 12.5rem;
    --glow-position: 0 0;
    display: grid;
    align-content: start;
    gap: var(--card-gap);
    padding: var(--space-24) var(--space-16);
    background-image: radial-gradient(closest-side, color-mix(in srgb, var(--glow-color) var(--glow-alpha), transparent), transparent);
    background-position: var(--glow-position);
    background-size: var(--glow-size);
    background-repeat: no-repeat;
  }

  .shop-card > * {
    min-width: 0;
  }

  /* Figma: GoB/Desktop/H4 24, used at this size on phones too */
  .shop-card__title {
    font: 600 1.5rem/2rem var(--font-display);
  }

  .cart-items,
  .checkout-contact {
    --glow-alpha: 20%;
    --glow-position: left -7.5rem bottom -5rem;
  }

  .order-summary {
    --glow-alpha: 22%;
    --glow-size: 18.75rem 13.75rem;
    --glow-position: right -3.875rem top -7.5rem;
  }

  @media (min-width: 48rem) {
    .shop-card {
      padding: var(--space-32);
    }

    .cart-items,
    .checkout-contact,
    .order-details {
      --glow-alpha: 17%;
      --glow-size: 32.5rem 18.75rem;
      --glow-position: left -12.5rem bottom -8rem;
    }

    .order-summary,
    .next-steps {
      --glow-alpha: 22%;
      --glow-size: 28.75rem 18.75rem;
      --glow-position: right -10.25rem top -8.75rem;
    }

    .upsell,
    .checkout-payment {
      --glow-alpha: 15%;
      --glow-size: 32.5rem 18.75rem;
      --glow-position: right -9.375rem top -8.75rem;
    }
  }

  /* ------------------------------------------------------------------------
     Icon link
     A text link or a button with a leading icon. The 44 px target hangs
     outside the 20 px text line, so the rhythm around it stays as drawn.
     ------------------------------------------------------------------------ */

  .icon-link {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: var(--space-8);
    min-height: 2.75rem;
    margin-block: -0.75rem;
    color: var(--color-mist);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    transition: color var(--duration-fast) ease;
  }

  .icon-link:hover {
    color: var(--color-white);
  }

  .icon-link__icon {
    color: var(--color-white);
  }

  .icon-link--accent,
  .icon-link--accent:hover {
    color: var(--color-teal);
  }

  .icon-link--accent:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }

  /* ------------------------------------------------------------------------
     Cart: items
     Figma: V košíku (2283:711), Položka (2288:1102)
     ------------------------------------------------------------------------ */

  .cart-item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info info"
      "thumb price price"
      "quantity quantity remove";
    align-items: center;
    column-gap: var(--space-12);
  }

  .cart-item__thumb {
    grid-area: thumb;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-button);
    background-color: var(--color-night);
  }

  .cart-item__thumb img {
    width: 84%;
  }

  .cart-item__info {
    grid-area: info;
    display: grid;
    gap: var(--space-4);
  }

  .cart-item__name {
    font: 500 1rem/1.5rem var(--font-text);
  }

  .cart-item__variant {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-mist);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  /* Figma: Tečka barvy. data-color (base.css) brings the case colour. */
  .cart-item__swatch {
    display: none;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--swatch);
  }

  .cart-item__price {
    grid-area: price;
    margin-top: var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
  }

  .cart-item__quantity {
    grid-area: quantity;
    justify-self: start;
    margin-top: var(--space-12);
  }

  .cart-item__remove {
    grid-area: remove;
    justify-self: end;
    margin-block: var(--space-12) 0;
    font-weight: 400;
  }

  @media (min-width: 48rem) {
    .cart-items {
      --card-gap: var(--space-24);
    }

    .cart-item {
      grid-template-columns: 7.5rem minmax(0, 1fr) auto auto;
      grid-template-areas:
        "thumb info quantity price"
        "thumb remove quantity price";
      column-gap: var(--space-24);
    }

    .cart-item__thumb {
      aspect-ratio: 120 / 88;
      border: 1px solid var(--color-line);
      /* Figma: Záře under the product */
      background-image: radial-gradient(closest-side, color-mix(in srgb, var(--color-teal) 35%, transparent), transparent);
      background-position: center bottom -0.5rem;
      background-size: 100% 2.5rem;
      background-repeat: no-repeat;
    }

    .cart-item__info {
      gap: var(--space-8);
    }

    .cart-item__swatch {
      display: block;
    }

    .cart-item__price {
      display: grid;
      justify-items: end;
      gap: 0.125rem;
      margin-top: 0;
      font-size: 1rem;
      line-height: 1.5rem;
    }

    .cart-item__vat {
      color: var(--color-mist);
      font-size: 0.75rem;
      line-height: 1rem;
    }

    .cart-item__quantity {
      margin-top: 0;
    }

    .cart-item__remove {
      justify-self: start;
      margin-top: var(--space-8);
    }
  }

  /* ------------------------------------------------------------------------
     Cart: second Guardian with 20 % off
     Figma: Upsell (2283:747, 2288:1133)
     ------------------------------------------------------------------------ */

  .upsell__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-8);
  }

  .upsell__badge {
    padding: 0.125rem var(--space-8);
    border-radius: var(--radius-pill);
    background-color: var(--color-gold);
    color: var(--color-ink);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
  }

  .upsell__text {
    color: var(--color-mist);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  /* Figma: the two reasons are on the desktop frame only. */
  .upsell__benefits {
    display: none;
  }

  .upsell__benefit {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .upsell__benefit-title {
    font: 500 0.875rem/1.25rem var(--font-text);
  }

  .upsell__benefit-text {
    margin-top: var(--space-4);
    color: var(--color-mist);
  }

  .upsell__action {
    display: grid;
    gap: var(--space-12);
  }

  .upsell__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-8);
  }

  .upsell__price-old {
    color: var(--color-mist);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .upsell__price-new {
    color: var(--color-teal);
    font: 600 1.5rem/2rem var(--font-display);
  }

  @media (min-width: 48rem) {
    .upsell {
      --card-gap: var(--space-24);
    }

    .upsell__head {
      column-gap: var(--space-12);
    }

    .upsell__badge {
      padding: 0.1875rem var(--space-12);
    }

    .upsell__text {
      font-size: 1rem;
      line-height: 1.5rem;
    }

    .upsell__benefits {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-24);
    }

    .upsell__action {
      display: flex;
      align-items: center;
      gap: var(--space-16);
    }
  }

  /* ------------------------------------------------------------------------
     Order summary
     Figma: Order Summary (2283:777, 2288:1141, 2284:908), Souhrn (2288:1226)
     ------------------------------------------------------------------------ */

  .order-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
  }

  .order-summary__currency {
    padding: 0.1875rem var(--space-12);
    border-radius: 0.375rem;
    background-color: var(--color-teal);
    color: var(--color-ink);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  .order-summary__lead,
  .order-summary__note {
    color: var(--color-mist);
  }

  .order-summary__lead {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .order-summary__note {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  .order-summary__items {
    padding-bottom: var(--card-gap);
    border-bottom: 1px solid var(--color-line);
  }

  /* Rows of label and amount. Used by the summary and the order details. */

  .summary-list {
    display: grid;
    gap: var(--card-gap);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .summary-list__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-16);
  }

  .summary-list dt {
    color: var(--color-mist);
  }

  /* Amounts stay on one line; the label wraps instead. */
  .summary-list dd {
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
  }

  .summary-list__row--text dd {
    white-space: normal;
  }

  .summary-list__row--total {
    align-items: center;
    padding-top: var(--card-gap);
    border-top: 1px solid var(--color-line);
  }

  .summary-list__row--total dt {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
  }

  .summary-list__row--total dd {
    color: var(--color-teal);
    font: 600 1.5rem/2rem var(--font-display);
  }

  /* The cart lists the item right above, so below 64rem its summary keeps
     the totals only. */
  @media (width < 64rem) {
    .order-summary--totals-only .order-summary__lead,
    .order-summary--totals-only .order-summary__items {
      display: none;
    }
  }

  /* Collapsible variant: a <details> that is closed on phones (checkout). */

  .order-summary--collapsible {
    --glow-alpha: 0%;
    display: block;
    padding: 0;
  }

  .order-summary__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    min-height: 3.5rem;
    padding: var(--space-16);
    border-radius: inherit;
  }

  .order-summary__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-teal);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
  }

  .order-summary__chevron {
    color: var(--color-white);
    transition: rotate var(--duration) var(--ease-out);
  }

  .order-summary[open] .order-summary__chevron {
    rotate: 180deg;
  }

  .order-summary__when-open,
  .order-summary[open] .order-summary__when-closed {
    display: none;
  }

  .order-summary[open] .order-summary__when-open {
    display: inline;
  }

  .order-summary__toggle-total {
    font-weight: 500;
    white-space: nowrap;
  }

  .order-summary__body {
    display: grid;
    gap: var(--card-gap);
    padding: var(--space-16);
    border-top: 1px solid var(--color-line);
  }

  /* The toggle already names the block. */
  .order-summary--collapsible .order-summary__head {
    display: none;
  }

  @media (min-width: 48rem) {
    .order-summary {
      --card-gap: var(--space-16);
    }

    .order-summary__note {
      font-size: 0.875rem;
      font-weight: 400;
      line-height: 1.25rem;
    }

    .summary-list {
      font-size: 1rem;
      line-height: 1.5rem;
    }
  }

  @media (min-width: 64rem) {
    /* The summary and its actions read as one card: two grid items in the
       right column that share one outline. */
    .order-summary {
      padding-bottom: 0;
      border-bottom: 0;
      border-radius: var(--radius-card) var(--radius-card) 0 0;
    }

    /* Always open on wide screens. A closed <details> hides its content with
       content-visibility on ::details-content, which CSS may override.
       Browsers without the pseudo-element keep the working toggle. */
    @supports selector(::details-content) {
      .order-summary--collapsible {
        --glow-alpha: 22%;
        padding: var(--space-32) var(--space-32) 0;
      }

      .order-summary--collapsible::details-content {
        display: block;
        content-visibility: visible;
      }

      .order-summary__toggle {
        display: none;
      }

      .order-summary__body {
        padding: 0;
        border-top: 0;
      }

      .order-summary--collapsible .order-summary__head {
        display: flex;
      }
    }
  }

  /* ------------------------------------------------------------------------
     Order actions: consent, the call to action and assurances
     On phones the price and the button form a sticky bar (Figma: Lepkavá
     lišta 2288:1158, 2288:1266); from 64rem they close the summary card.
     ------------------------------------------------------------------------ */

  /* Children become items of .shop-layout, so the bar can stick along the
     whole page instead of inside this short block. */
  .order-actions {
    display: contents;
  }

  .order-actions__consent {
    color: var(--color-mist);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  /* Figma: on phones this is said by the payment card and the page above. */
  .order-actions__next,
  .order-actions__assurances {
    display: none;
  }

  .order-bar {
    position: sticky;
    z-index: 10;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: var(--space-12);
    /* Full bleed, flush with the end of <main>: never over the footer. */
    margin: var(--space-32) calc(-1 * var(--gutter)) 0;
    padding: var(--space-12) var(--gutter) calc(var(--space-12) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-line);
    background-color: var(--color-deep);
  }

  .order-bar__price {
    display: grid;
    flex: none;
    white-space: nowrap;
  }

  .order-bar__amount {
    font-weight: 500;
  }

  .order-bar__note {
    color: var(--color-mist);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  .order-bar__button {
    flex: 1;
    min-width: 0;
    padding-inline: var(--space-16);
  }

  @media (width < 64rem) {
    .shop-main:has(.order-bar) {
      padding-bottom: 0;
    }

    /* Focused fields scroll clear of the sticky bar. */
    :root:has(.order-bar) {
      scroll-padding-bottom: 6rem;
    }
  }

  @media (min-width: 64rem) {
    .order-actions {
      display: grid;
      gap: var(--space-16);
      padding: var(--space-16) var(--space-32) var(--space-32);
      border: 1px solid var(--color-line);
      border-top: 0;
      border-radius: 0 0 var(--radius-card) var(--radius-card);
      background-color: var(--color-deep);
    }

    .order-actions__consent {
      font-size: 0.875rem;
      font-weight: 400;
      line-height: 1.25rem;
    }

    .order-actions__next {
      display: block;
      color: var(--color-mist);
      font-size: 0.875rem;
      line-height: 1.25rem;
      text-align: center;
    }

    .order-actions__assurances {
      display: grid;
      gap: var(--space-8);
    }

    .order-bar {
      position: static;
      display: block;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
    }

    .order-bar__price {
      display: none;
    }

    .order-bar__button {
      display: flex;
      width: 100%;
      padding-inline: var(--space-32);
    }
  }

  /* ------------------------------------------------------------------------
     Checkout: contact and shipping
     Figma: Kontakt a doprava (2284:844, 2288:1233)
     ------------------------------------------------------------------------ */

  .checkout-contact {
    --card-gap: var(--space-16);
  }

  .checkout__fields,
  .checkout__address {
    gap: var(--space-16);
  }

  .checkout__fields {
    display: grid;
  }

  /* Street address: only for countries with home delivery (see below). */
  .checkout__address {
    display: none;
  }

  .shipping {
    display: grid;
    gap: var(--card-gap);
  }

  .shipping__legend {
    margin-bottom: var(--card-gap);
    padding: 0;
  }

  .shipping__options {
    display: grid;
    gap: var(--space-16);
  }

  /* One shipping method: a label around a visually hidden radio. Its look
     is a set of custom properties, so a state is one block of assignments. */

  .shipping-option {
    --option-outline: var(--color-control);
    --option-ring: transparent;
    --option-price: var(--color-white);
    --option-fade: 1;
    --option-note: block;
    --option-reason: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4) var(--space-16);
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--option-outline);
    border-radius: var(--radius-button);
    background-color: var(--color-night);
    /* Second pixel of the selected outline, as in .field__control */
    box-shadow: inset 0 0 0 1px var(--option-ring);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
    transition:
      border-color var(--duration-fast) ease,
      box-shadow var(--duration-fast) ease;
  }

  .shipping-option:has(:focus-visible) {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
  }

  .shipping-option__title,
  .shipping-option__price {
    opacity: var(--option-fade);
  }

  .shipping-option__price {
    color: var(--option-price);
    white-space: nowrap;
  }

  .shipping-option__note,
  .shipping-option__reason {
    grid-column: 1 / -1;
    color: var(--color-mist);
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .shipping-option__note {
    display: var(--option-note);
  }

  /* Why the method cannot be chosen. Stays at full contrast. */
  .shipping-option__reason {
    display: var(--option-reason);
  }

  /* States. `checked` and `disabled` are what the server renders for the
     chosen country. Until then the country <select> drives the same two
     looks and the address block: every <option> says in data-delivery
     whether its country gets a pickup point or home delivery, and :has()
     reads the checked one. No script involved. */

  .shipping-option:has(:checked),
  .checkout:has([data-delivery="home"]:checked) .shipping-option--home {
    --option-outline: var(--color-teal);
    --option-ring: var(--color-teal);
    --option-price: var(--color-teal);
    --option-fade: 1;
    --option-note: block;
    --option-reason: none;
    cursor: pointer;
  }

  .shipping-option:has(:disabled),
  .checkout:has([data-delivery="home"]:checked) .shipping-option--pickup {
    --option-outline: var(--color-line);
    --option-ring: transparent;
    --option-price: var(--color-mist);
    --option-fade: 0.5;
    --option-note: none;
    --option-reason: block;
    color: var(--color-mist);
    cursor: not-allowed;
  }

  .checkout:has([data-delivery="home"]:checked) .shipping-option--home {
    color: var(--color-white);
  }

  .checkout:has([data-delivery="home"]:checked) .checkout__address {
    display: grid;
  }

  .checkout:has([data-delivery="home"]:checked) .shipping__pickup {
    display: none;
  }

  /* The totals were rendered for the `selected` country. Once the visitor
     picks another one they are stale until the server renders them again:
     dim them and say so, rather than show an old total as the price. */
  .order-summary__stale {
    display: none;
  }

  .checkout:has([name="country"] option:checked:not([selected])) .order-summary__stale {
    display: block;
  }

  .checkout:has([name="country"] option:checked:not([selected])) :is(
      .summary-list:not(.order-summary__items) .summary-list__row:not(:first-child),
      .order-summary__toggle-total,
      .order-bar__amount
    ) {
    opacity: 0.4;
  }

  @media (min-width: 48rem) {
    .checkout-contact {
      --card-gap: var(--space-24);
    }

    .checkout__fields,
    .checkout__address,
    .shipping__options {
      grid-template-columns: 1fr 1fr;
    }

    .checkout__address-line {
      grid-column: 1 / -1;
    }

    .shipping__pickup {
      justify-self: start;
    }

    .shipping-option {
      row-gap: var(--space-8);
      padding: var(--space-16) var(--space-24);
      font-size: 1rem;
      line-height: 1.5rem;
    }

    .shipping-option__note,
    .shipping-option__reason {
      font-size: 0.875rem;
      font-weight: 400;
      line-height: 1.25rem;
    }
  }

  /* ------------------------------------------------------------------------
     Checkout: payment
     Figma: Platba (2284:888, 2288:1259)
     ------------------------------------------------------------------------ */

  /* The only method, drawn as the selected one. Phones put the text under
     the icon and the name, wide screens beside the icon. */
  .payment-method {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-8) var(--space-12);
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--color-teal);
    border-radius: var(--radius-button);
    background-color: var(--color-night);
    box-shadow: inset 0 0 0 1px var(--color-teal);
  }

  .payment-method__icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .payment-method__name {
    font-weight: 500;
  }

  .payment-method__description {
    grid-column: 1 / -1;
    color: var(--color-mist);
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .payment-help__steps {
    display: grid;
    gap: var(--space-8);
    margin-top: var(--space-16);
    padding-left: 2.75rem;
    color: var(--color-mist);
    font-size: 0.875rem;
    line-height: 1.25rem;
    list-style: decimal;
  }

  @media (min-width: 48rem) {
    .checkout-payment {
      --card-gap: var(--space-16);
    }

    .payment-method {
      gap: var(--space-4) var(--space-16);
      padding: var(--space-16) var(--space-24);
    }

    .payment-method__icon {
      grid-row: 1 / 3;
      width: 2rem;
      height: 2rem;
    }

    .payment-method__description {
      grid-column: 2;
    }
  }

  /* ------------------------------------------------------------------------
     Order summary page: order details and next steps
     Figma: Order Details (2286:1015, 2289:1259), Next Steps (2286:1048, 2289:1280)
     ------------------------------------------------------------------------ */

  .status-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: var(--space-8);
    padding: 0.3125rem var(--space-12);
    border-radius: var(--radius-pill);
    background-color: color-mix(in srgb, var(--color-teal) 12%, transparent);
    color: var(--color-teal);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
  }

  .status-pill__icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .next-steps__list {
    display: grid;
    gap: var(--space-12);
  }

  .next-step {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-button);
    background-color: var(--color-night);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition:
      background-color var(--duration-fast) ease,
      border-color var(--duration-fast) ease;
  }

  .next-step--link:hover {
    border-color: var(--color-line-hover);
    background-color: var(--color-slate);
  }

  .next-step__icon--accent {
    color: var(--color-teal);
  }

  .next-step__text {
    display: grid;
    flex: 1;
    gap: 0.125rem;
    min-width: 0;
  }

  .next-step__title {
    font-weight: 500;
  }

  .next-step__description {
    color: var(--color-mist);
  }

  .next-step__arrow {
    transition: transform var(--duration) var(--ease-out);
  }

  .next-step--link:hover .next-step__arrow {
    transform: translateX(0.25rem);
  }

  /* The list ends the card on every width: a Telegram button under it would
     repeat "Join the Movement" right above. */

  @media (min-width: 48rem) {
    .order-details {
      --card-gap: var(--space-16);
    }

    .status-pill {
      padding-block: var(--space-8);
      font-size: 0.875rem;
      line-height: 1.25rem;
    }

    .status-pill__icon {
      width: 1rem;
      height: 1rem;
    }

    .next-step {
      padding: var(--space-16);
    }
  }

  /* ------------------------------------------------------------------------
     Notice: a centred card with an icon, a title, a text and one action
     Payment states after returning from BTCPay (Figma: Karta stavu
     2287:1027, 2287:1043, 2287:1057, 2287:1073) and the empty cart.
     ------------------------------------------------------------------------ */

  .notice {
    --card-gap: var(--space-16);
    --glow-alpha: 20%;
    --glow-size: 22.5rem 13.75rem;
    --glow-position: center top -6.875rem;
    justify-items: center;
    width: 100%;
    margin-inline: auto;
    padding: var(--space-48) var(--space-24) var(--space-40);
    text-align: center;
  }

  /* Expired and mismatched payments glow gold instead of teal. */
  .notice--attention {
    --glow-color: var(--color-gold);
  }

  .notice__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-block: -0.875rem;
    color: var(--color-mist);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    transition: color var(--duration-fast) ease;
  }

  .notice__link:hover {
    color: var(--color-white);
  }

  @media (min-width: 36rem) {
    .notice {
      max-width: 21.25rem;
      padding-inline: var(--space-32);
    }
  }

  /* ------------------------------------------------------------------------
     Forced colours (Windows contrast themes) drop shadows and author
     colours, so the selected shipping method gets a system-colour outline.
     ------------------------------------------------------------------------ */

  @media (forced-colors: active) {
    .shipping-option:has(:checked) {
      outline: 3px solid Highlight;
      outline-offset: 2px;
    }

    .shipping-option:has(:disabled) {
      color: GrayText;
    }
  }
}
