/* Customer web app (/{slug}/app). Colors come from the tenant: --brand, --on-brand, --brand-soft. */

.ca {
    --ink: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --card: #ffffff;
    --page: #fafaf9;
    --plus: #15803d;
    --min: #b45309;
    --radius: 16px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--page);
    color: var(--ink);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

/* :where keeps these base rules weaker than the component classes below */
:where(.ca) * { box-sizing: border-box; }
:where(.ca) p { margin: 0; }
:where(.ca) a { color: inherit; text-decoration: none; }
:where(.ca) svg { width: 22px; height: 22px; fill: currentColor; }
/* Blazor focuses the page title after navigating (screen readers announce the page); no frame for that */
.ca h1:focus, .ca [tabindex="-1"]:focus { outline: none; }

.ca-main {
    max-width: 480px;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top)) 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ca-main.ca-with-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.ca-h1 { font-size: 24px; font-weight: 600; margin: 4px 0 0; color: var(--ink); }
.ca-h2 { font-size: 17px; font-weight: 600; margin: 10px 0 0; color: var(--ink); }
.ca-text { color: #44403c; }
.ca-muted { color: var(--muted); font-size: 13px; }
.ca-center { text-align: center; }
.ca-error { background: #fef2f2; color: #b91c1c; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ca-notice { background: var(--brand-soft); border-radius: 12px; padding: 12px; text-align: center; font-weight: 500; }

/* header */
.ca-header { display: flex; align-items: center; gap: 12px; }
.ca-header-text { flex: 1; min-width: 0; }
.ca-hello { font-size: 18px; font-weight: 600; }
.ca-logo { height: 40px; max-width: 120px; object-fit: contain; }
.ca-badge {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--brand); color: var(--on-brand);
    display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.ca-badge-large { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; margin: 24px auto 0; }
/* the store's logo on the login screen, where the badge with initials stood */
.ca-logo-large { display: block; height: 72px; max-width: 220px; object-fit: contain; margin: 24px auto 0; }
.ca-icon-btn {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
    display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.ca-back { width: 44px; height: 44px; display: flex; align-items: center; margin-left: -10px; justify-content: center; }

/* balance */
.ca-balance { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 18px 18px 20px; }
.ca-balance-label { font-size: 13px; opacity: .85; }
.ca-balance-value { font-size: 44px; font-weight: 600; line-height: 1.1; margin: 2px 0 10px; }
.ca-balance-value span { font-size: 16px; font-weight: 500; }
.ca-balance-goal { font-size: 13px; margin-bottom: 8px; }

/* progress bars */
.ca-bar { height: 8px; border-radius: 4px; background: var(--brand-soft); overflow: hidden; }
.ca-bar > div { height: 100%; border-radius: 4px; background: var(--brand); }
.ca-bar-on-brand { background: rgba(255, 255, 255, .3); }
.ca-bar-on-brand > div { background: var(--on-brand); }

/* banners */
.ca-banner {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius);
    background: var(--card); border: 1px dashed var(--brand); font-size: 14px;
}
.ca-banner[hidden] { display: none; }
.ca-push-status { font-size: 13px; color: var(--muted); }

/* deal card */
.ca-deal-card {
    display: block; background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius); padding: 14px 16px;
}
.ca-deal-card.soldout { border-color: var(--line); opacity: .7; }
.ca-deal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ca-deal-tag { font-size: 12px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.ca-deal-card.soldout .ca-deal-tag { color: var(--muted); }
.ca-deal-title { font-size: 17px; font-weight: 600; margin-top: 4px !important; }
.ca-deal-price { font-weight: 500; }
.ca-deal-price s, .ca-facts s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.ca-deal-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.ca-deal-when { font-size: 14px; color: var(--ink); }
.ca-deal-hero.ca-deal-photo { height: auto; overflow: hidden; }
.ca-deal-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ca-deal-hero {
    height: 140px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.ca-deal-hero svg { width: 64px; height: 64px; fill: none; }
.ca-stock { color: var(--brand); font-weight: 600; text-align: center; }

/* checkout of a day deal */
.ca-checkout-sub { font-size: 18px; font-weight: 500; color: var(--muted); }
/* which store a deal is for: a label on the card, a block with a route on the deal page, a warning at the pay button */
.ca-deal-store { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; margin-top: 6px !important; }
.ca-deal-store svg, .ca-pickup-at > svg, .ca-pickup-warning svg { width: 16px; height: 16px; flex: none; fill: var(--brand); }
.ca-pickup-at { display: flex; align-items: center; gap: 12px; }
.ca-pickup-at > svg { width: 24px; height: 24px; }
.ca-pickup-at > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ca-pickup-at strong { font-size: 17px; }
.ca-pickup-warning { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; margin: 4px 0 0; }
.ca-pickup-warning svg { margin-top: 2px; }
.ca-pickup-warning a { color: inherit; }
.ca-slot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px;
}
.ca-slot strong { font-size: 18px; }
.ca-slot span { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 17px; }
.ca-checkout { display: flex; flex-direction: column; gap: 12px; }
.ca-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.ca-methods-title { font-weight: 600; margin-bottom: 4px; }
.ca-method { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ca-methods-title + .ca-method { border-top: none; }
.ca-method input { flex: none; width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.ca-method img { flex: none; width: 40px; height: 30px; object-fit: contain; }
.ca-method span { flex: 1; min-width: 0; }
.ca-total { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.ca-pay-row { display: flex; gap: 10px; align-items: stretch; }
.ca-pay-row .ca-btn { flex: 1; }
.ca-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ca-stepper button { width: 40px; height: 100%; border: none; background: none; font-size: 22px; color: var(--ink); cursor: pointer; }
.ca-stepper button:disabled { color: var(--line); cursor: default; }
.ca-stepper input {
    width: 36px; border: none; background: none; text-align: center; font: inherit; font-weight: 600; font-size: 17px;
    -moz-appearance: textfield; appearance: textfield;
}
.ca-stepper input::-webkit-inner-spin-button, .ca-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* rewards */
.ca-rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ca-reward { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.ca-reward img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.ca-reward-name { font-weight: 500; font-size: 14px; line-height: 1.3; }

/* lists */
.ca-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ca-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ca-list li:last-child { border-bottom: none; }
.ca-plus { color: var(--plus); font-weight: 600; white-space: nowrap; }
.ca-min { color: var(--min); font-weight: 600; white-space: nowrap; }

/* pass */
.ca-pass { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.ca-pass img { width: 100%; max-width: 280px; image-rendering: pixelated; }
.ca-pass-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: 1px; margin: 8px 0 12px !important; }
.ca-pass-name { font-weight: 600; }
.ca-pass-balance { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); }
.ca-notice[hidden] { display: none; }
.ca-pickup-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 3px; }
.ca-pass .ca-pickup-code { font-size: 28px; margin: 8px 0 4px !important; }
.ca-order-banner { border-style: solid; border-width: 2px; background: var(--brand-soft); }

/* buttons and forms */
.ca-btn {
    display: block; width: 100%; padding: 14px 16px; border: none; border-radius: 14px; cursor: pointer;
    background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600; text-align: center;
}
.ca-btn[hidden] { display: none; }
.ca-btn-small { width: auto; padding: 9px 14px; font-size: 14px; align-self: flex-start; margin-top: 6px; }
.ca-btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.ca-link { color: var(--brand); font-weight: 500; font-size: 14px; display: block; }
.ca-link-btn { background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 8px; }
.ca-logout { text-align: center; margin-top: 8px; }
.ca-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ca-login { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.ca-login .ca-h1 { text-align: center; }
.ca-login form { display: flex; flex-direction: column; gap: 8px; }
.ca-label { font-size: 13px; font-weight: 500; color: #44403c; }
.ca-input {
    width: 100%; padding: 13px 14px; border: 1px solid #d6d3d1; border-radius: 12px; font: inherit; font-size: 16px; background: #fff;
}
.ca-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.ca-code-input { text-align: center; font-size: 26px; letter-spacing: 8px; }

/* iPhone home screen guide (InstallGuide.razor; app.js sets data-ios and the in-app part) */
.ca-guide[data-ios="26"] .ca-guide-iosold,
.ca-guide[data-ios="old"] .ca-guide-ios26 { display: none; }
.ca-guide [hidden] { display: none !important; }
.ca-guide-title { font-weight: 600; font-size: 17px; margin-bottom: 6px !important; }
.ca-guide-list { margin: 8px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ca-guide-steps { list-style: none; counter-reset: guide; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ca-guide-steps > li { counter-increment: guide; position: relative; padding-left: 40px; }
.ca-guide-steps > li::before {
    content: counter(guide); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 14px;
    background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.ca-guide-steps p { margin-bottom: 8px !important; line-height: 1.45; }
/* step 1: the two Safari layouts (Compact, or a toolbar), each with its own drawing */
.ca-guide-steps p.ca-guide-variant { margin: 12px 0 6px !important; font-size: 14px; color: #44403c; }
.ca-guide-shot { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 14px; }
.ca-guide-shot text { font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; }
.ca-guide-bounce { animation: ca-bounce 1.1s ease-in-out infinite; }
@keyframes ca-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ca-guide-bounce { animation: none; } }
.ca-guide-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.ca-guide-icon img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.ca-guide-overlay {
    position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45);
    display: flex; align-items: flex-end; justify-content: center;
}
.ca-guide-overlay[hidden] { display: none; }
.ca-guide-sheet {
    width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--page);
    border-radius: 20px 20px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 10px;
}

/* asking for notifications */
.ca-push-sheet { align-items: stretch; padding-top: 24px; }
.ca-push-bell {
    width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
    display: flex; align-items: center; justify-content: center; align-self: center;
}
.ca-push-bell svg { width: 32px; height: 32px; }
.ca-push-preview {
    display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); margin: 4px 0 6px;
}
.ca-push-preview img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.ca-push-preview div { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; min-width: 0; }
.ca-push-preview span { color: var(--muted); }
.ca-push-status:empty, .ca-stock[hidden] { display: none; }
/* notifications on: the question goes, the thank-you stays a moment */
.ca-push-answered > :not(.ca-push-bell):not(#ca-push-done) { display: none; }
.ca-push-answered #ca-push-done { font-size: 18px; padding: 10px 0 18px; }

/* install steps */
.ca-steps { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ca-steps .ca-h2 { margin: 0 0 6px; }
.ca-steps ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ca-steps[hidden] { display: none; }
.ca-inline-icon { width: 18px !important; height: 18px !important; vertical-align: -3px; color: #2563eb; }

/* bottom navigation */
.ca-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; justify-content: space-around;
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
}
.ca-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); min-width: 64px; padding: 4px; }
.ca-nav a.active { color: var(--brand); font-weight: 600; }
.ca-nav-icon { position: relative; display: inline-flex; }
.ca-nav-badge {
    position: absolute; top: -5px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: #dc2626; color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

/* settings */
.ca-settings-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 4px -4px; }
.ca-settings[hidden] { display: none; }
.ca-settings li { font-size: 15px; }
.ca-settings li > a, .ca-switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.ca-settings small { font-size: 13px; }
.ca-chevron { font-size: 22px; color: var(--muted); line-height: 1; }
.ca-settings li.ca-birthday { display: block; }
.ca-birthday-known { display: flex; justify-content: space-between; gap: 12px; }
.ca-nowrap { white-space: nowrap; }
.ca-segmented { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ca-segmented button {
    flex: 1; padding: 10px; border: none; border-radius: 12px; background: none; font: inherit; font-size: 15px;
    color: var(--ink); cursor: pointer;
}
.ca-segmented button.active { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.ca-birthday-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ca-birthday-row .ca-input { flex: 1; min-width: 0; padding: 10px 12px; }
.ca-birthday-row .ca-btn-small { margin-top: 0; align-self: stretch; }
/* date of birth as day, month and year (BirthdayFields): fits a phone, nothing filled in by itself */
.ca-birthday-fields { display: grid; grid-template-columns: 1fr 1.7fr 1.2fr; gap: 8px; margin-top: 4px; }
.ca-birthday-fields .ca-input { min-width: 0; padding: 12px 8px; }
.ca-birthday-save { margin-top: 10px; }
.ca-switch {
    -webkit-appearance: none; appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; margin: 0;
    background: var(--line); position: relative; cursor: pointer; transition: background .2s;
}
.ca-switch::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.ca-switch:checked { background: var(--brand); }
.ca-switch:checked::after { transform: translateX(20px); }
.ca-switch:disabled { opacity: .5; cursor: default; }

/* my stores */
.ca-check { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ca-check:last-child { border-bottom: none; }
.ca-check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.ca-checks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ca-welcome {
    background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
}
.ca-welcome-title { font-size: 20px; font-weight: 700; }
.ca-btn.ca-btn-on-brand { background: var(--on-brand); color: var(--brand); }
.ca-check.ca-check-plain { padding: 8px 0; border-bottom: none; font-size: 14px; }
.ca-register .ca-label { margin-top: 6px; }
.ca-profile, .ca-guest { display: flex; flex-direction: column; gap: 8px; }
.ca-profile .ca-label { margin-top: 4px; }
.ca-success { background: #f0fdf4; color: #15803d; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ca-others summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.ca-others[open] summary { margin-bottom: 10px; }
.ca-others .ca-deal-card { margin-bottom: 10px; border-width: 1px; }

/* news */
.ca-news-teaser { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.ca-news-teaser img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.ca-news-teaser .ca-news-new { font-size: 11px; font-weight: 700; color: #dc2626; text-transform: uppercase; letter-spacing: .04em; }
.ca-news-list { display: flex; flex-direction: column; gap: 12px; }
.ca-news-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ca-news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ca-news-card-body { padding: 12px 14px 14px; }
.ca-news-card-title { font-size: 16px; font-weight: 600; margin: 2px 0 4px !important; }
.ca-news-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ca-news-dot { width: 8px; height: 8px; border-radius: 4px; background: #dc2626; display: inline-block; }
.ca-article-image { width: calc(100% + 32px); margin: -4px -16px 0; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ca-article p + p { margin-top: 12px !important; }
.ca-article a { color: var(--brand); text-decoration: underline; word-break: break-word; }

/* ---------- store screen (/{slug}/winkel): tablet or phone at the counter ---------- */
.ws-header {
    display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 0 auto;
    padding: calc(14px + env(safe-area-inset-top)) 16px 4px;
}
.ws-header .ca-logo { max-height: 44px; }
.ws-header .ca-header-text { flex: 1; min-width: 0; }
.ws-gear { display: flex; padding: 8px; margin-right: -8px; color: var(--muted); }
.ws-gear svg { width: 26px; height: 26px; fill: currentColor; }
.ws-settings dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.ws-settings dt { color: var(--muted); }
.ws-settings dd { margin: 0; font-weight: 600; }
.ws-main { max-width: 1100px; margin: 0 auto; padding: 12px 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.ws-message { margin: 0; }
.ws-grid { display: flex; flex-direction: column; gap: 16px; }
.ws-side { display: flex; flex-direction: column; gap: 16px; }
.ws-side section { display: flex; flex-direction: column; gap: 10px; }
.ws-form { display: flex; flex-direction: column; gap: 8px; }
.ws-form .ca-label { margin-top: 6px; }
.ws-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ws-kind {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px;
    position: relative; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--card);
    text-align: center; font-weight: 600; cursor: pointer;
}
.ws-kind img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ws-kind input { position: absolute; opacity: 0; pointer-events: none; }
.ws-kind:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ws-own { display: flex; flex-direction: column; gap: 8px; }
.ws-own[hidden] { display: none; }
.ws-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-row > div { display: flex; flex-direction: column; gap: 6px; }
.ws-stepper { align-self: flex-start; height: 52px; }
.ws-stepper button { width: 56px; font-size: 26px; }
.ws-stepper input { width: 64px; font-size: 20px; }
.ws-days label { flex: 1; position: relative; cursor: pointer; }
.ws-days input { position: absolute; opacity: 0; pointer-events: none; }
.ws-days span {
    display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.ws-days small { font-weight: 400; font-size: 12px; opacity: .85; }
.ws-days input:checked + span { background: var(--brand); color: var(--on-brand); }
.ws-start { font-size: 18px; padding: 16px; margin-top: 6px; }
.ws-deal { display: flex; flex-direction: column; gap: 6px; }
.ws-deal-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ws-count { font-size: 22px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-actions .ca-btn-small { margin-top: 0; padding: 11px 16px; font-size: 15px; }
.ws-actions .ca-btn:disabled { opacity: .45; }
.ws-adjust { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.ws-adjust[hidden] { display: none; }
.ws-adjust-row { display: flex; gap: 10px; align-items: center; }
.ws-adjust-row .ca-btn-small { margin-top: 0; padding: 14px 22px; font-size: 16px; }
.ws-side .ca-list li form .ca-btn-small { margin-top: 0; }
.ws-unpaired { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto; width: 100%; }
.ws-unpaired ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ws-request-code {
    font-size: 48px; font-weight: 700; letter-spacing: 6px; text-align: center; color: var(--brand);
    background: var(--brand-soft); border-radius: var(--radius); padding: 14px; font-variant-numeric: tabular-nums;
}
.ws-result { border-radius: var(--radius); padding: 24px 20px; text-align: center; color: #fff; }
.ws-result-green { background: #16a34a; }
.ws-result-orange { background: #d97706; }
.ws-result-red { background: #dc2626; }
.ws-result-title { font-size: 34px; font-weight: 700; }
.ws-result-what { font-size: 22px; font-weight: 600; margin-top: 4px !important; }
.ws-scan-btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; padding: 18px; }
.ws-scan-btn svg { width: 28px; height: 28px; }
.ws-code-form { display: flex; gap: 8px; }
.ws-code-form .ca-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 3px; }
.ws-code-form .ca-input::placeholder { text-transform: none; letter-spacing: normal; }
.ws-code-form .ca-btn { width: auto; }
/* the camera, full screen; one scan and it closes (store screen, and linking a card in the app) */
.ws-camera, .ca-camera {
    position: fixed; inset: 0; z-index: 30; background: #000;
    display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.ws-camera[hidden], .ca-camera[hidden] { display: none; }
.ws-camera video, .ca-camera video { width: 100%; max-height: 70vh; object-fit: cover; border-radius: 16px; }
.ws-camera p, .ca-camera p { color: #fff; text-align: center; }
.ws-camera .ca-btn, .ca-camera .ca-btn { max-width: 420px; margin: 0 auto; }

/* linking a card: scan or type, or a digital card */
.ca-card-link { display: flex; flex-direction: column; gap: 10px; }
.ca-card-link form { display: flex; flex-direction: column; gap: 8px; }
/* two fields next to each other (postal code + house number) */
.ca-row-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.ca-row-2 > div { display: flex; flex-direction: column; gap: 6px; }
/* points voucher (receipt): the points big, the receipt below */
.ca-voucher { text-align: center; }
.ca-voucher-points { font-size: 40px; font-weight: 700; line-height: 1.1; margin: 4px 0 6px; }
.ca-voucher-points span { font-size: 18px; font-weight: 600; }
.ca-card-code { text-transform: uppercase; letter-spacing: 2px; }
.ca-card-code::placeholder { text-transform: none; letter-spacing: normal; }
.ca-or { text-align: center; color: var(--muted); font-size: 14px; }

/* three tabs at the bottom, one task each: Afhalen, Nieuwe deal, Actief (phone and iPad alike,
   so a long pick-up list gets the whole screen) */
.ws-side { display: contents; }
.ws-grid:not([data-ws-tabs="afhalen"]) [data-ws-pane="afhalen"],
.ws-grid:not([data-ws-tabs="nieuw"]) [data-ws-pane="nieuw"],
.ws-grid:not([data-ws-tabs="actief"]) [data-ws-pane="actief"] { display: none; }
.ws-tabs a { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; }
.ws-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* iPad: one column of readable width, bigger tabs closer together */
@media (min-width: 768px) {
    .ws-header, .ws-main { max-width: 760px; }
    .ws-tabs { justify-content: center; gap: 24px; }
    .ws-tabs a { flex: 0 1 180px; font-size: 15px; }
    .ws-tabs svg { width: 26px; height: 26px; }
}
