/* ==========================================================================
   Holiday Flight Passes: /p2/passes/ (passes.js)

   A public page: anyone can buy a pass without signing in. Loaded after
   hig-theme.css, which supplies the Apple HIG tokens (--hig-*) and the
   Light / Dark / Auto appearance set by theme.js. No Bootstrap: the page
   draws itself, in the style of an Apple Store checkout: inset grouped
   lists, segmented controls, a stepper and filled buttons.

   The accent is the logo's gold in both appearances (dark ink on gold is
   about 6:1), so the page reads as SayIntentions and as a gift.
   ========================================================================== */

:root[data-theme] body.passes {
    --ps-accent: var(--hig-gold);
    --ps-accent-hover: color-mix(in srgb, var(--hig-gold) 88%, #000);
    --ps-accent-ink: #1C1400;
    --ps-accent-text: var(--hig-gold-text);
    --ps-accent-soft: color-mix(in srgb, var(--hig-gold) 16%, transparent);
    --ps-focus: color-mix(in srgb, var(--hig-gold) 45%, transparent);
    --ps-radius: 12px;
    margin: 0;
    min-height: 100vh;
    background: var(--hig-bg);
    color: var(--hig-label);
    font-family: var(--hig-font);
    font-size: 15px;
    line-height: 1.47;
    letter-spacing: -0.01em;
}
:root[data-theme] body.passes :focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
:root[data-theme] body.passes a { color: var(--ps-accent-text); text-decoration: none; }
:root[data-theme] body.passes a:hover { text-decoration: underline; }
:root[data-theme] body.passes [hidden] { display: none !important; }

.passes .visually-hidden-label {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---- Page frame ----------------------------------------------------------- */
.passes .ps-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px calc(32px + env(safe-area-inset-bottom));
}
.passes .ps-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding-top: env(safe-area-inset-top);
}
:root[data-theme] body.passes .ps-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hig-label);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.passes .ps-nav-brand img { width: 28px; height: 22px; object-fit: contain; }
:root[data-theme] body.passes .ps-nav-link { font-size: 14px; color: var(--hig-label2); }
:root[data-theme] body.passes .ps-nav-link:hover { color: var(--hig-label); text-decoration: none; }

.passes .ps-view { padding-top: 16px; }
.passes .ps-view-center { display: grid; place-items: center; min-height: 50vh; }
.passes .ps-narrow { max-width: 560px; margin: 0 auto; }

.passes .ps-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 48px;
    padding-top: 18px;
    border-top: var(--hig-hairline) solid var(--hig-separator);
    font-size: 12px;
    color: var(--hig-label3);
}
:root[data-theme] body.passes .ps-footer a { color: var(--hig-label2); }

/* ---- Buy: the card and features beside the form on wide screens; on phones the form comes
   right after the card, and the features after the form. ------------------------------- */
.passes .ps-shop {
    display: grid;
    gap: 28px;
    grid-template-areas: "art" "form" "features";
}
.passes .ps-shop-art { grid-area: art; }
.passes .ps-shop-form { grid-area: form; }
.passes .ps-shop > .ps-features { grid-area: features; }
@media (min-width: 920px) {
    .passes .ps-shop {
        grid-template-columns: minmax(0, 1fr) 440px;
        grid-template-rows: auto 1fr;
        grid-template-areas: "art form" "features form";
        column-gap: 64px;
        row-gap: 0;
        align-items: start;
        padding-top: 40px;
    }
}

.passes .ps-eyebrow {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ps-accent-text);
}
:root[data-theme] body.passes .ps-title {
    margin: 0 0 14px;
    font-family: var(--hig-font-display);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: var(--hig-label);
    outline: none;
}
.passes .ps-lede {
    max-width: 34em;
    margin: 0;
    font-size: 19px;
    line-height: 1.42;
    color: var(--hig-label2);
}

.passes .ps-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.passes .ps-features li { display: flex; gap: 14px; align-items: flex-start; }
.passes .ps-features svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    fill: none;
    stroke: var(--ps-accent-text);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.passes .ps-features strong { display: block; font-size: 15px; font-weight: 600; color: var(--hig-label); }
.passes .ps-features span { display: block; font-size: 14px; color: var(--hig-label2); }

/* ---- The gift card (hero and print) ------------------------------------------ */
.passes .ps-giftcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 1.586;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(120% 90% at 88% 0%, rgba(232, 196, 106, 0.30), transparent 55%),
        radial-gradient(80% 70% at 0% 100%, rgba(184, 137, 42, 0.18), transparent 60%),
        linear-gradient(150deg, #2C2C2E 0%, #121214 70%, #0A0A0B 100%);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.passes .ps-giftcard-hero {
    max-width: 400px;
    margin: 32px 0 36px 6px;
    transform: rotate(-3deg);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 24px 48px -16px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* A ribbon around the card: one band down, one across. */
.passes .ps-giftcard-ribbon::before,
.passes .ps-giftcard-ribbon::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, #A8781C, #E8C46A 45%, #C89A3A);
    opacity: 0.92;
}
.passes .ps-giftcard-ribbon::before { top: 0; bottom: 0; right: 20%; width: 16px; }
.passes .ps-giftcard-ribbon::after {
    left: 0; right: 0; top: 34%; height: 16px;
    background: linear-gradient(180deg, #A8781C, #E8C46A 45%, #C89A3A);
}
.passes .ps-giftcard-brand {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.92);
}
.passes .ps-giftcard-brand img { width: 26px; height: 20px; object-fit: contain; }
.passes .ps-giftcard-name {
    position: relative;
    font-family: var(--hig-font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
}
.passes .ps-giftcard-sub {
    position: relative;
    margin-top: 2px;
    font-size: 13px;
    color: #E8C46A;
}
/* The code along the bottom of a printed card, like the number on a gift card. */
.passes .ps-giftcard-code {
    position: relative;
    margin-top: 12px;
    font-family: var(--hig-font-mono);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.92);
}
.passes .ps-giftcard-code:empty { display: none; }

/* ---- Grouped lists ----------------------------------------------------------- */
.passes .ps-group {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}
.passes .ps-group-title {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 16px 7px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--hig-label2);
}
.passes .ps-group-foot {
    margin: 7px 16px 0;
    font-size: 13px;
    line-height: 1.38;
    color: var(--hig-label2);
}
.passes .ps-group-foot:empty { display: none; }
.passes .ps-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--hig-bg2);
    border-radius: var(--ps-radius);
    box-shadow: var(--hig-card-shadow);
    overflow: hidden;
}
.passes .ps-list > * { position: relative; }
.passes .ps-list > * + *::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 0;
    border-top: var(--hig-hairline) solid var(--hig-separator);
}
.passes .ps-row,
.passes .ps-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 17px;
}
.passes .ps-row-label { color: var(--hig-label); }
.passes .ps-row-value { color: var(--hig-label); font-variant-numeric: tabular-nums; text-align: right; }
.passes .ps-muted { color: var(--hig-label2); }

/* Text fields: a label on the left, the field filling the row */
.passes .ps-field { cursor: text; }
.passes .ps-field-label { flex: 0 0 76px; color: var(--hig-label); }
.passes .ps-field input,
.passes .ps-field textarea {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 13px 0;
    border: 0;
    background: transparent;
    color: var(--hig-label);
    font: inherit;
    font-size: 17px;
    letter-spacing: -0.01em;
    outline: none;
    box-shadow: none;
}
.passes .ps-field textarea { resize: none; line-height: 1.4; min-height: 72px; }
.passes .ps-field-tall { align-items: flex-start; }
.passes .ps-field-tall .ps-field-label { padding-top: 13px; }
.passes .ps-field input::placeholder,
.passes .ps-field textarea::placeholder { color: var(--hig-label3); opacity: 1; }
.passes .ps-field:focus-within { background: color-mix(in srgb, var(--ps-accent) 7%, var(--hig-bg2)); }
/* The row's tint shows focus; the global ring would be clipped by the rounded list. */
:root[data-theme] body.passes .ps-field input:focus-visible,
:root[data-theme] body.passes .ps-field textarea:focus-visible { outline: none; }
.passes .ps-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--hig-bg2) inset;
    -webkit-text-fill-color: var(--hig-label);
}
.passes .ps-field.is-invalid input { color: var(--hig-red-text); }

/* Pass tiles, in the style of the Apple Store's option pickers: the length large, the price
   under it, a note below; the chosen tile takes a gold outline. Radio buttons underneath. */
.passes .ps-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.passes .ps-tiles.is-single { grid-template-columns: minmax(0, 1fr); }
.passes .ps-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 104px;
    padding: 14px 14px 13px;
    border-radius: 14px;
    background: var(--hig-bg2);
    box-shadow: var(--hig-card-shadow), inset 0 0 0 1px var(--hig-separator);
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
:root[data-theme="dark"] body.passes .ps-tile { box-shadow: inset 0 0 0 1px var(--hig-separator); }
.passes .ps-tile:hover { background: color-mix(in srgb, var(--ps-accent) 4%, var(--hig-bg2)); }
.passes .ps-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
:root[data-theme] body.passes .ps-tile.is-selected {
    background: color-mix(in srgb, var(--ps-accent) 7%, var(--hig-bg2));
    box-shadow: inset 0 0 0 2px var(--ps-accent);
}
.passes .ps-tile:has(input:focus-visible) { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
.passes .ps-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.passes .ps-tile-dur { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--hig-label); }
.passes .ps-tile-badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--ps-accent-soft);
    color: var(--ps-accent-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}
.passes .ps-tile-price {
    margin-top: 6px;
    font-family: var(--hig-font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--hig-label);
}
.passes .ps-tile-note { font-size: 13px; color: var(--hig-label2); }

/* The annual bonus: a line on its tile, a callout above the tiles that picks it, a "Free" row. */
.passes .ps-tile-bonus { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--ps-accent-text); }
.passes .ps-free { color: var(--ps-accent-text); font-weight: 600; }
.passes .ps-bonus {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: var(--ps-accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ps-accent) 45%, transparent);
    color: var(--hig-label);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.passes .ps-bonus.is-applied { cursor: default; }
.passes .ps-bonus:focus-visible { outline: 3px solid var(--ps-focus); outline-offset: 2px; }
.passes .ps-bonus svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--ps-accent-text);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.passes .ps-bonus-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.passes .ps-bonus-text strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.passes .ps-bonus-text span { font-size: 13px; line-height: 1.35; color: var(--hig-label2); }
.passes .ps-bonus-text .ps-bonus-when {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ps-accent-text);
}
.passes .ps-bonus-action { margin-left: auto; flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--ps-accent-text); white-space: nowrap; }
@media (max-width: 520px) {
    .passes .ps-bonus { flex-wrap: wrap; row-gap: 6px; }
    .passes .ps-bonus-text { flex: 1 1 0; }
    .passes .ps-bonus-action:not(:empty) { flex-basis: 100%; margin-left: 42px; }
}
.passes .ps-giftcard-sticker {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--hig-gold);
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Segmented control (radio buttons underneath, so it works with a keyboard and screen reader) */
.passes .ps-segmented {
    display: flex;
    padding: 2px;
    margin: 0 0 12px;
    border-radius: 9px;
    background: var(--hig-fill3);
}
.passes .ps-segmented label { position: relative; flex: 1 1 0; margin: 0; cursor: pointer; }
.passes .ps-segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.passes .ps-segmented span {
    display: block;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: var(--hig-label);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.passes .ps-segmented input:checked + span {
    background: var(--hig-seg-selected);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
    font-weight: 600;
}
.passes .ps-segmented input:focus-visible + span { outline: 3px solid var(--ps-focus); outline-offset: 1px; }
.passes .ps-segmented-small { margin: 0; flex: 0 0 auto; }
.passes .ps-segmented-small span { padding: 4px 14px; font-size: 13px; }
.passes .ps-gift-fields { margin-top: 0; }

/* Stepper */
.passes .ps-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    background: var(--hig-fill3);
}
.passes .ps-stepper button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--hig-label);
    cursor: pointer;
}
.passes .ps-stepper button:hover:not(:disabled) { background: var(--hig-fill4); }
.passes .ps-stepper button:disabled { color: var(--hig-label3); cursor: default; }
.passes .ps-stepper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.passes .ps-stepper output {
    min-width: 30px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ---- Buttons ------------------------------------------------------------------- */
:root[data-theme] body.passes .ps-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--ps-radius);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
:root[data-theme] body.passes .ps-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme] body.passes .ps-btn-primary { background: var(--ps-accent); color: var(--ps-accent-ink); }
:root[data-theme] body.passes .ps-btn-primary:hover { background: var(--ps-accent-hover); color: var(--ps-accent-ink); text-decoration: none; }
:root[data-theme] body.passes .ps-btn-secondary { background: var(--hig-fill3); color: var(--hig-label); }
:root[data-theme] body.passes .ps-btn-secondary:hover { background: var(--hig-fill2); color: var(--hig-label); text-decoration: none; }
:root[data-theme] body.passes .ps-btn:disabled { opacity: 0.45; cursor: default; }
:root[data-theme] body.passes .ps-btn.is-busy { opacity: 0.7; cursor: progress; }
:root[data-theme] body.passes .ps-btn-inline { display: inline-flex; width: auto; min-width: 220px; }
.passes .ps-pay { display: grid; gap: 10px; margin: 4px 0 18px; }
.passes .ps-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Small buttons on a code row */
:root[data-theme] body.passes .ps-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 15px;
    background: var(--hig-fill3);
    color: var(--hig-label);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
:root[data-theme] body.passes .ps-chip:hover { background: var(--hig-fill2); text-decoration: none; color: var(--hig-label); }
:root[data-theme] body.passes .ps-chip-accent { background: var(--ps-accent-soft); color: var(--ps-accent-text); }
:root[data-theme] body.passes .ps-chip-accent:hover { background: color-mix(in srgb, var(--hig-gold) 26%, transparent); color: var(--ps-accent-text); }

/* ---- Messages -------------------------------------------------------------------- */
.passes .ps-banner {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: var(--ps-radius);
    background: var(--hig-bg2);
    box-shadow: var(--hig-card-shadow);
    font-size: 14px;
    line-height: 1.45;
    color: var(--hig-label);
}
.passes .ps-banner-closed { background: color-mix(in srgb, var(--hig-orange) 14%, var(--hig-bg2)); }
.passes .ps-error {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: var(--ps-radius);
    background: color-mix(in srgb, var(--hig-red) 12%, var(--hig-bg2));
    font-size: 14px;
    line-height: 1.45;
    color: var(--hig-label);
}
.passes .ps-fine {
    margin: 0 4px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--hig-label2);
}
.passes .ps-fine-center { text-align: center; font-size: 14px; }

/* ---- Order and redeem states ---------------------------------------------------------- */
.passes .ps-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 8px 24px; }
.passes .ps-state-top { padding-top: 28px; }
:root[data-theme] body.passes .ps-state-title {
    margin: 14px 0 8px;
    font-family: var(--hig-font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--hig-label);
    outline: none;
}
.passes .ps-state-text { max-width: 30em; margin: 0 0 20px; font-size: 17px; line-height: 1.45; color: var(--hig-label2); }
.passes .ps-state-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; }
.passes .ps-state-icon svg { width: 34px; height: 34px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.passes .ps-state-icon-done { background: var(--hig-green-strong, #248A3D); }
.passes .ps-state-icon-done svg { stroke: #fff; stroke-width: 2.6; }
.passes .ps-state-icon-neutral { background: var(--hig-fill3); }
.passes .ps-state-icon-neutral svg { stroke: var(--hig-label2); }
.passes .ps-state-icon-tint { background: var(--ps-accent-soft); }
.passes .ps-state-icon-tint svg { stroke: var(--ps-accent-text); stroke-width: 1.7; }

.passes .ps-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--hig-fill2);
    border-top-color: var(--hig-label2);
    animation: ps-spin 0.8s linear infinite;
}
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .passes .ps-spinner { animation-duration: 2.4s; } }

/* The gift note on a paid gift order */
.passes .ps-gift-note {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: var(--ps-radius);
    background: var(--hig-bg2);
    /* One shadow only: --hig-card-shadow is "none" in dark, which would void a list. */
    box-shadow: inset 3px 0 0 var(--ps-accent);
}
.passes .ps-gift-note-row { display: flex; gap: 10px; font-size: 15px; }
.passes .ps-gift-note-row span { flex: 0 0 44px; color: var(--hig-label2); }
.passes .ps-gift-note-row strong { font-weight: 600; overflow-wrap: anywhere; }
.passes .ps-gift-note-message { margin: 8px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

/* Codes */
.passes .ps-codes > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px 16px;
}
.passes .ps-code {
    display: block;
    font-family: var(--hig-font-mono);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--hig-label);
    user-select: all;
}
.passes .ps-code-status { display: block; margin-top: 2px; font-size: 13px; color: var(--hig-label2); }
.passes .ps-code-status.is-redeemed { color: var(--hig-green-text); }
.passes .ps-code-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* How to redeem */
.passes .ps-steps { list-style: none; margin: 0; padding: 4px 0; background: var(--hig-bg2); border-radius: var(--ps-radius); box-shadow: var(--hig-card-shadow); }
.passes .ps-steps li { display: flex; gap: 12px; padding: 10px 16px; font-size: 15px; line-height: 1.45; }
.passes .ps-steps li > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--ps-accent-soft);
    color: var(--ps-accent-text);
    font-size: 13px;
    font-weight: 700;
}
.passes .ps-code-input {
    font-family: var(--hig-font-mono) !important;
    font-size: 22px !important;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}
.passes .ps-code-input::placeholder { letter-spacing: 0.1em; }

/* ---- Phones -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .passes .ps-page { padding-left: 16px; padding-right: 16px; }
    :root[data-theme] body.passes .ps-title { font-size: 34px; }
    .passes .ps-lede { font-size: 17px; }
    .passes .ps-giftcard-hero { margin: 24px auto 28px; max-width: 340px; }
    .passes .ps-giftcard-name { font-size: 26px; }
    .passes .ps-field-label { flex-basis: 64px; }
    :root[data-theme] body.passes .ps-state-title { font-size: 26px; }
    .passes .ps-code { font-size: 18px; }
}

/* ---- Printing one gift card -------------------------------------------------------------
   passes.js fills #printCard and adds body.ps-printing just before window.print(). Printing
   the page any other way prints the page. */
.passes .ps-print { display: none; }
@media print {
    @page { margin: 14mm; }
    body.passes.ps-printing { background: #fff !important; }
    body.passes.ps-printing .ps-page { display: none !important; }
    body.passes.ps-printing .ps-print { display: block !important; color: #1d1d1f; }
    body.passes:not(.ps-printing) .ps-nav,
    body.passes:not(.ps-printing) .ps-footer,
    body.passes:not(.ps-printing) .ps-code-actions,
    body.passes:not(.ps-printing) .ps-actions { display: none !important; }
}
.passes .ps-print-card {
    max-width: 150mm;
    margin: 0 auto;
    padding: 10mm;
    border: 0.4mm dashed #c7c7cc;
    border-radius: 6mm;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    color: #1d1d1f;
    background: #fff;
}
.passes .ps-giftcard-print { max-width: 100%; margin: 0 0 8mm; }
.passes .ps-print-body { font-size: 12pt; line-height: 1.45; }
.passes .ps-print-to { margin: 0 0 3mm; font-size: 18pt; font-weight: 700; letter-spacing: -0.02em; }
.passes .ps-print-message { margin: 0 0 3mm; white-space: pre-line; overflow-wrap: anywhere; }
.passes .ps-print-from { margin: 0 0 6mm; color: #6e6e73; }
.passes .ps-print-to:empty,
.passes .ps-print-message:empty,
.passes .ps-print-from:empty { display: none; }
.passes .ps-print-code-label { font-size: 9pt; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6e6e73; }
.passes .ps-print-code { margin: 1mm 0 6mm; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 24pt; font-weight: 700; letter-spacing: 0.12em; }
.passes .ps-print-steps { margin: 0; padding-left: 6mm; color: #3a3a3c; font-size: 11pt; }
