/* RHIC 2026 Workshops — listing/cart/checkout theme (RHIC-WS-2026-R1).
   Builds on the congress form's design tokens (--rhic-*) from ../assets/css/rhic.css. */

/* ---------------------------------------------------------------- hero */
.ws-header { padding-bottom: 3rem; }
.ws-tagline {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rhic-accent);
    position: relative;
    z-index: 2;
}
.ws-hero-actions {
    display: flex;
    justify-content: center;
    gap: .7rem;
    margin-top: 1.15rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.ws-hero-cta { text-decoration: none; }
.ws-hero-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .35);
}
.ws-hero-ghost:hover { background: rgba(255, 255, 255, .2); }

/* ---------------------------------------------------------------- layout */
.ws-main { max-width: 1180px; margin: -1.4rem auto 3rem; padding: 0 1rem; }

/* ---------------------------------------------------------------- embedded (iframe) mode */
.is-embedded .ws-header,
.is-embedded .rhic-footer { display: none; }
.is-embedded .ws-main { margin-top: .9rem; }

/* ---------------------------------------------------------------- scroll lock (drawer/modal open) */
body.ws-scroll-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}
html.ws-scroll-locked {
    overflow: hidden;
    /* stop wheel/touch momentum escaping to the parent page when embedded */
    overscroll-behavior: none;
}

/* ---------------------------------------------------------------- toolbar */
.ws-toolbar-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--rhic-bg);
    padding: .8rem 0 .35rem;
    margin-bottom: .9rem;
    scroll-margin-top: .5rem;
}
/* date tabs — calendar-style pills, horizontally scrollable on small screens */
.ws-tabs {
    display: flex;
    gap: .55rem;
    margin-bottom: .75rem;
    overflow-x: auto;
    padding: .2rem .2rem .45rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tab {
    appearance: none;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .05rem;
    min-width: 78px;
    position: relative;
    border: 1.5px solid var(--rhic-line);
    background: var(--rhic-surface);
    color: var(--rhic-ink);
    border-radius: 14px;
    padding: .55rem .95rem .6rem;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
}
.ws-tab:hover { border-color: var(--rhic-primary); transform: translateY(-1px); }
.ws-tab-wd { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rhic-muted); }
.ws-tab-day { font-size: 1.2rem; font-weight: 800; line-height: 1.05; }
.ws-tab-mon { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rhic-muted); }
.ws-tab-sub { font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rhic-accent); margin-top: .1rem; }
.ws-tab-count {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--rhic-bg);
    border: 1.5px solid var(--rhic-line);
    color: var(--rhic-muted);
    font-size: .66rem;
    font-weight: 700;
}
.ws-tab-all { justify-content: center; }
.ws-tab-all .ws-tab-day { font-size: 1rem; padding-top: .25rem; }
.ws-tab.is-active {
    background: var(--rhic-primary);
    border-color: var(--rhic-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 79, 108, .28);
}
.ws-tab.is-active .ws-tab-wd,
.ws-tab.is-active .ws-tab-mon { color: rgba(255, 255, 255, .78); }
.ws-tab.is-active .ws-tab-sub { color: #f4d18b; }
.ws-tab.is-active .ws-tab-count {
    background: var(--rhic-accent);
    border-color: var(--rhic-accent);
    color: #fff;
}

/* search + filters — one floating bar */
.ws-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    background: var(--rhic-surface);
    border: 1px solid var(--rhic-line);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(10, 37, 64, .07);
    padding: .6rem .65rem;
}
.ws-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.ws-search-ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; opacity: .55; }
.ws-search input {
    width: 100%;
    padding: .6rem .8rem .6rem 2.15rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    background: var(--rhic-bg);
}
.ws-search input:focus { outline: none; border-color: var(--rhic-primary); background: var(--rhic-surface); box-shadow: 0 0 0 3px rgba(11,79,108,.12); }
.ws-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ws-filter {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    background: var(--rhic-bg);
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 0 .35rem 0 .7rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ws-filter:hover, .ws-filter:focus-within { border-color: var(--rhic-primary); background: var(--rhic-surface); }
.ws-filter-ico { font-size: .8rem; opacity: .65; }
.ws-filter select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right .55rem center;
    padding: .55rem 1.4rem .55rem .45rem;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: var(--rhic-ink);
    max-width: 160px;
    cursor: pointer;
}
.ws-filter select:focus { outline: none; }
.ws-avail {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--rhic-muted);
    white-space: nowrap;
    cursor: pointer;
    background: var(--rhic-bg);
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: .55rem .8rem;
    transition: border-color .15s;
}
.ws-avail:hover { border-color: var(--rhic-primary); }
.ws-avail input { width: 15px; height: 15px; accent-color: var(--rhic-primary); }
.ws-filter-toggle {
    display: none;
    appearance: none;
    align-items: center;
    gap: .35rem;
    border: 1.5px solid var(--rhic-line);
    background: var(--rhic-bg);
    color: var(--rhic-ink);
    border-radius: 999px;
    padding: .55rem .95rem;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.ws-filter-toggle.has-active { border-color: var(--rhic-primary); color: var(--rhic-primary); }
.ws-filter-badge[hidden] { display: none; }
.ws-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--rhic-primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 0 .25rem;
}
.ws-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .82rem;
    color: var(--rhic-muted);
    padding: .5rem .3rem 0;
}
.ws-clear {
    appearance: none;
    border: 0;
    background: none;
    color: var(--rhic-primary);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.ws-result-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
}
.ws-mine-link {
    color: var(--rhic-primary);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ws-mine-link::before {
    content: "👤";
    margin-right: .3rem;
}
.ws-mine-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .ws-filter-toggle { display: inline-flex; }
    .ws-filters { display: none; flex-basis: 100%; }
    .ws-filters.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; padding-top: .15rem; }
    .ws-filter, .ws-avail { width: 100%; justify-content: flex-start; }
    .ws-filter select { width: 100%; max-width: none; flex: 1 1 auto; }
    .ws-tab { min-width: 70px; padding: .5rem .75rem .55rem; }
}

/* ---------------------------------------------------------------- grid + cards */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 1020px) { .ws-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .ws-grid { grid-template-columns: 1fr; } }

/* flip card: front = essentials, back = who it's for + description */
.ws-card {
    display: flex;
    perspective: 1400px;
    position: relative;
    cursor: pointer;
}
.ws-card.is-muted { opacity: .78; }
.ws-flip {
    flex: 1 1 auto;
    display: grid;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.3, .7, .3, 1);
}
.ws-card.is-flipped .ws-flip { transform: rotateY(180deg); }
.ws-face {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--rhic-surface);
    border: 1px solid var(--rhic-line);
    border-radius: var(--rhic-radius);
    box-shadow: 0 4px 18px rgba(10, 37, 64, .06);
    padding: 1.05rem 1.1rem 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow .16s ease, border-color .16s;
}
.ws-card:hover .ws-face { box-shadow: 0 14px 34px rgba(10, 37, 64, .13); border-color: #cdd9e3; }
.ws-face-back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, #fdfefe, #f4f8fb);
}
.ws-card .ws-back-title {
    margin: 0 1.6rem .55rem 0;
    font-size: .92rem;
    min-height: 0;
    color: var(--rhic-primary);
}
.ws-back-desc {
    font-size: .82rem;
    color: var(--rhic-ink);
    line-height: 1.55;
    margin: 0 0 .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ws-back-obj { font-size: .74rem; font-weight: 600; color: var(--rhic-muted); margin: 0 0 .8rem; }
.ws-flip-back {
    position: absolute;
    top: .7rem;
    right: .7rem;
    appearance: none;
    border: 0;
    background: #eef2f6;
    color: var(--rhic-ink);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: .85rem;
    cursor: pointer;
    z-index: 2;
}
.ws-flip-back:hover { background: #e2e8f0; }
.ws-btn-flip { background: #eef2f6; color: var(--rhic-ink); }
.ws-btn-flip:hover { background: #e2e8f0; }

.ws-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.ws-track {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--rhic-primary);
    background: rgba(11, 79, 108, .08);
    border-radius: 999px;
    padding: .28rem .65rem;
}
/* one colour for every price tag (organiser feedback: no per-tier colours) */
.ws-fee {
    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 999px;
    padding: .28rem .7rem;
    color: var(--rhic-primary);
    background: rgba(11, 79, 108, .09);
}

.ws-card h3 {
    margin: 0 0 .5rem;
    font-size: 1.0rem;
    line-height: 1.35;
    color: var(--rhic-ink);
    min-height: 2.7em;
}
.ws-card-meta {
    display: flex;
    flex-direction: column;
    gap: .22rem;
    font-size: .8rem;
    color: var(--rhic-muted);
    margin-bottom: .55rem;
}
.ws-card-meta span { display: flex; align-items: baseline; gap: .4rem; }
.ws-card-meta .ico { flex: 0 0 auto; font-size: .8rem; }

.ws-multi {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124, 58, 237, .09);
    border-radius: 999px;
    padding: .25rem .6rem;
    margin-bottom: .55rem;
    align-self: flex-start;
}
.ws-audience {
    font-size: .78rem;
    color: var(--rhic-muted);
    margin: 0 0 .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ws-audience strong { color: var(--rhic-ink); font-weight: 600; }

.ws-seats {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .26rem .65rem;
    margin-bottom: .75rem;
    align-self: flex-start;
}
.ws-seats::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ws-seats.ok { color: var(--rhic-success); background: rgba(15, 118, 110, .09); }
.ws-seats.low { color: #92600a; background: rgba(200, 160, 74, .16); }
.ws-seats.full { color: var(--rhic-danger); background: rgba(180, 35, 24, .09); }

.ws-card-actions { display: flex; gap: .55rem; margin-top: auto; }
.ws-card-actions .btn { flex: 1 1 auto; padding: .62rem .6rem; font-size: .86rem; }
.ws-btn-details { background: #eef2f6; color: var(--rhic-ink); }
.ws-btn-details:hover { background: #e2e8f0; }
.ws-btn-add.is-added { background: var(--rhic-success); }
/* Already paid for. Deliberately NOT the muted "disabled" look — this is a positive state the
   visitor should read as confirmation, not as something broken or unavailable. */
.ws-btn-enrolled {
    background: #eef7f4;
    color: var(--rhic-success);
    border: 1px solid var(--rhic-success);
    cursor: default;
    opacity: 1;
    font-weight: 700;
}
.ws-btn-wait { background: #fff8ea; color: #92600a; text-decoration: none; text-align: center; }
.ws-ribbon {
    position: absolute;
    top: .9rem;
    right: 0;
    background: var(--rhic-accent);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .3rem .7rem;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 3px 8px rgba(10,37,64,.18);
}

.ws-empty {
    text-align: center;
    background: var(--rhic-surface);
    border-radius: var(--rhic-radius);
    padding: 2.5rem 1rem;
    color: var(--rhic-muted);
}

/* ---------------------------------------------------------------- details modal */
.ws-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, .55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 16px;
    z-index: 900;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ws-modal-overlay.is-open { display: flex; }
.ws-modal {
    position: relative;
    background: #fff;
    border-radius: var(--rhic-radius);
    max-width: 680px;
    width: 100%;
    box-shadow: 0 24px 70px rgba(10, 37, 64, .3);
    animation: rhicFade .18s ease;
}
.ws-modal-body { padding: 1.7rem 1.7rem 1.5rem; }
.ws-modal-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    appearance: none;
    border: 0;
    background: #eef2f6;
    color: var(--rhic-ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: .9rem;
    cursor: pointer;
    z-index: 2;
}
.ws-modal-close:hover { background: #e2e8f0; }
.ws-modal h3 { margin: .6rem 0 .6rem; font-size: 1.25rem; line-height: 1.35; padding-right: 2rem; }
.ws-modal .ws-card-meta { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.1rem; margin-bottom: .8rem; }
.ws-modal-section { margin-top: 1.05rem; }
.ws-modal-section h4 {
    margin: 0 0 .4rem;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rhic-muted);
}
.ws-modal-section p { margin: 0; font-size: .92rem; }
.ws-modal-section ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; }
.ws-modal-section li { margin-bottom: .25rem; }
.ws-sessions { display: grid; gap: .55rem; }
.ws-session-row {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    border: 1px solid var(--rhic-line);
    border-left: 4px solid var(--rhic-primary);
    border-radius: var(--rhic-radius-sm);
    padding: .7rem .9rem;
    font-size: .88rem;
}
.ws-session-row .ws-session-label { font-weight: 700; color: var(--rhic-primary); white-space: nowrap; }
.ws-session-note { font-size: .82rem; color: var(--rhic-muted); margin-top: .45rem; }
.ws-modal-foot { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ws-modal-foot .btn { flex: 1 1 auto; }

/* ---------------------------------------------------------------- cart fab + drawer */
.ws-cart-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 800;
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--rhic-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 999px;
    padding: .85rem 1.3rem;
    box-shadow: 0 12px 34px rgba(10, 37, 64, .35);
    cursor: pointer;
    transition: transform .14s, background .15s;
}
.ws-cart-fab:hover { background: var(--rhic-primary-dark); transform: translateY(-2px); }
.ws-cart-count {
    background: var(--rhic-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    padding: 0 .35rem;
}
.ws-cart-fab.bump { animation: wsBump .3s ease; }
@keyframes wsBump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

.ws-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 950;
}
.ws-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.ws-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(460px, 100vw);
    background: var(--rhic-bg);
    z-index: 1000;
    transform: translateX(105%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -18px 0 50px rgba(10, 37, 64, .25);
    overscroll-behavior: contain;
}
.ws-drawer.is-open { transform: none; }
.ws-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.2rem;
    background: var(--rhic-surface);
    border-bottom: 1px solid var(--rhic-line);
}
.ws-drawer-head h2 { margin: 0; font-size: 1.1rem; }
.ws-drawer-step { padding: 1.1rem 1.2rem 1.4rem; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.ws-cart-items { display: grid; gap: .6rem; margin-bottom: .9rem; }
.ws-cart-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    background: var(--rhic-surface);
    border: 1px solid var(--rhic-line);
    border-radius: var(--rhic-radius-sm);
    padding: .75rem .85rem;
}
.ws-cart-item .info { flex: 1 1 auto; min-width: 0; }
.ws-cart-item .t { font-size: .88rem; font-weight: 600; line-height: 1.3; margin-bottom: .15rem; }
.ws-cart-item .m { font-size: .74rem; color: var(--rhic-muted); }
.ws-cart-item .fee { font-size: .85rem; font-weight: 700; color: var(--rhic-primary); white-space: nowrap; }
.ws-cart-item .rm {
    appearance: none;
    border: 0;
    background: none;
    color: var(--rhic-danger);
    font-size: .78rem;
    cursor: pointer;
    padding: .1rem .2rem;
}
.ws-cart-item.is-dup { border-color: #f0dcae; background: #fffdf4; }
.ws-cart-item .dup-note { font-size: .72rem; color: #92600a; margin-top: .25rem; font-weight: 600; }
.ws-cart-empty { text-align: center; color: var(--rhic-muted); font-size: .9rem; padding: 1.6rem .5rem; }

.ws-conflict {
    background: #fff8ea;
    border: 1px solid #f0dcae;
    border-left: 4px solid var(--rhic-accent);
    border-radius: var(--rhic-radius-sm);
    padding: .7rem .9rem;
    font-size: .8rem;
    margin-bottom: .9rem;
}
/* Explains a disabled Pay button. `[hidden]` is declared FIRST and with higher specificity so a
   `display` here can never beat it — the mistake that made the "Welcome back" note always visible. */
.ws-pay-blocked[hidden] { display: none; }
.ws-pay-blocked {
    display: block;
    margin: 0 0 .55rem;
    padding: .55rem .7rem;
    background: #fff8ea;
    border: 1px solid #f0dcae;
    border-left: 4px solid var(--rhic-accent);
    border-radius: var(--rhic-radius-sm);
    font-size: .78rem;
    font-weight: 600;
    color: #7a5b12;
}

/* The overlap is allowed, but only as a deliberate choice — Pay stays disabled until this is
   ticked. Kept inside the warning box so the consent sits with the thing being consented to. */
.ws-conflict-ack {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid #f0dcae;
    cursor: pointer;
    font-weight: 600;
}
.ws-conflict-ack input {
    margin-top: .15rem;
    flex: 0 0 auto;
    cursor: pointer;
}
.ws-cart-summary {
    background: var(--rhic-surface);
    border: 1px solid var(--rhic-line);
    border-radius: var(--rhic-radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.ws-cart-summary .row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .95rem;
    border-bottom: 1px solid var(--rhic-line);
}
.ws-cart-summary .row:last-child { border-bottom: 0; }
.ws-cart-summary .row.total { background: #f7fafc; font-weight: 700; font-size: 1rem; }
.ws-cart-summary .row.vat-note {
    display: block;
    background: #f7fafc;
    color: var(--rhic-muted);
    font-size: .76rem;
    text-align: center;
}
.ws-drawer-cta { width: 100%; padding: .95rem 1.2rem; font-size: 1rem; font-weight: 700; }
.ws-back-link {
    appearance: none;
    border: 0;
    background: none;
    color: var(--rhic-primary);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: .8rem;
}
.ws-form-hint { font-size: .84rem; color: var(--rhic-muted); margin: 0 0 1rem; }
/* `display:block` here BEAT the HTML `hidden` attribute — the UA rule for [hidden] is only
   `display:none`, and any later `display` declaration overrides it. So the "Welcome back" note
   was visible the moment the cart opened, before the visitor had typed an email at all. The
   [hidden] rule below restores the intended behaviour: the note appears only after
   api/lookup.php actually matches the address. (Owner-reported 2026-08-16.) */
.ws-prefill-note[hidden] {
    display: none;
}

.ws-prefill-note {
    display: block;
    font-size: .78rem;
    color: var(--rhic-success);
    background: rgba(15, 118, 110, .07);
    border-radius: 8px;
    padding: .45rem .6rem;
    margin-top: .4rem;
}
.ws-choice {
    background: var(--rhic-surface);
    border: 1px solid var(--rhic-line);
    border-radius: var(--rhic-radius-sm);
    padding: .8rem .9rem;
    margin-top: .9rem;
}
.ws-choice label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; }
.ws-choice select {
    width: 100%;
    padding: .55rem .7rem;
    border: 1.5px solid var(--rhic-input-line);
    border-radius: var(--rhic-radius-sm);
    font: inherit;
    font-size: .88rem;
}
#wsPaySummary { margin-top: 1.1rem; }
.ws-secure-note { text-align: center; font-size: .76rem; color: var(--rhic-muted); margin: .7rem 0 0; }

/* awaiting payment */
.ws-paywait { text-align: center; padding-top: 2.2rem; }
.ws-paywait h3 { margin: 1rem 0 .4rem; }
.ws-paywait p { color: var(--rhic-muted); font-size: .9rem; margin: 0 0 .6rem; }
.ws-paywait-hint a { font-weight: 600; }
.ws-paywait .btn-danger { margin-top: 1.2rem; }
.ws-paywait-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--rhic-line);
    border-top-color: var(--rhic-primary);
    animation: wsSpin 1s linear infinite;
}
@keyframes wsSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .ws-card, .ws-drawer, .ws-cart-fab, .ws-flip, .ws-face { transition: none; }
    .ws-paywait-spinner { animation-duration: 2.5s; }
}

/* mobile drawer = full-screen sheet + compact cards */
@media (max-width: 560px) {
    .ws-main { padding: 0 .8rem; }
    .ws-drawer { width: 100vw; }
    .ws-cart-fab { right: .8rem; bottom: .8rem; padding: .8rem 1.1rem; }
    .ws-modal-overlay { padding: 0; align-items: stretch; }
    .ws-modal { border-radius: 0; max-width: none; min-height: 100dvh; }
    .ws-toolbar-wrap { padding-top: .55rem; }
    .ws-toolbar { border-radius: 16px; padding: .5rem .55rem; }
    .ws-card h3 { min-height: 0; font-size: .98rem; }
    .ws-face { padding: .95rem .95rem .9rem; }
    .ws-card-actions { flex-direction: row; }
    .ws-card-actions .btn { font-size: .84rem; padding: .6rem .5rem; }
    .ws-result-row { font-size: .78rem; }
    .ws-grid { gap: .8rem; }
}
