/* ============================================================
   COMPONENTS — Buttons, forms, cards, badges, tables, dropdowns
   ============================================================ */

/* ── Buttons ── */
.theme-toggle,
.header-btn,
.btn,
button.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:36px;
    padding:7px 14px;
    border-radius:9px;
    border:1px solid var(--line);
    background:var(--surface);
    color:var(--text);
    cursor:pointer;
    box-shadow:0 1px 2px rgba(17,24,39,.06);
    font-weight:700;
    letter-spacing:0;
    transition:background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.theme-toggle:hover, .header-btn:hover, .btn:hover {
    transform:translateY(-1px);
    border-color:color-mix(in srgb, var(--text) 18%, var(--line));
    box-shadow:0 8px 20px rgba(17,24,39,.10);
}
.theme-toggle:focus-visible,
.header-btn:focus-visible,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline:3px solid color-mix(in srgb, var(--accent) 26%, transparent);
    outline-offset:2px;
}

.btn-primary { color:#0f172a; border-color:#d7ba16; background:var(--accent-warm); box-shadow:0 8px 18px rgba(245,212,66,.24); }
.btn-primary:hover { background:#f8de5a; border-color:#caa90e; }
.btn-secondary { color:#fff; border-color:transparent; background:var(--accent-2); }
.btn-danger  { color:#fff; border-color:transparent; background:var(--danger); }
.btn-success { color:var(--accent); border-color:color-mix(in srgb, var(--accent) 42%, var(--line)); }
.btn-success:hover { background:var(--accent-soft); }

/* ── Forms & Inputs ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="number"],
textarea,
select {
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid var(--line);
    background:var(--input-bg);
    color:var(--text);
    box-shadow:0 1px 2px rgba(17,24,39,.04);
    transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
textarea { min-height:120px; resize:vertical; }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline:0;
    border-color:color-mix(in srgb, var(--accent) 58%, var(--line));
    box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Datum- en tijdinputs: dezelfde basisstijl + color-scheme zodat het
   browser-icoon (kalender/klok) zichtbaar blijft op donkere achtergronden */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    min-height:44px;
    padding:10px 12px;
    border-radius:8px;
    border:1px solid var(--line);
    background:var(--input-bg);
    color:var(--text);
    color-scheme: light;
}
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="time"] { color-scheme: dark; }

.form-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }

/* ── Card ── */
.card { padding:18px; margin-bottom:16px; }

/* ── Badge ── */
.badge {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    background:var(--accent-soft);
    border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    color:var(--accent);
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    margin-bottom:12px;
}

/* ── Nav links ── */
.nav-links { display:flex; gap:10px; flex-wrap:wrap; }

/* ── Tables ── */
.credentials { width:100%; border-collapse:collapse; }
.credentials th, .credentials td { border:1px solid var(--line); padding:12px; text-align:left; vertical-align:top; }
.credentials th { background:var(--surface-2); color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.table-wrap { overflow-x:auto; }

/* Generic pill */
.pill-sm { display:inline-flex; padding:3px 8px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; }

/* ── Page head pattern ── */
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.page-actions { display:flex; gap:10px; flex-wrap:wrap; }
@media(max-width:960px){ .page-head { flex-direction:column; } }

/* ── Alert ── */
.alert { padding:14px 16px; border-radius:8px; border:1px solid var(--line); background:var(--surface-2); }
.alert strong { display:block; margin-bottom:6px; }
.alert p { margin:0; }
.alert-success { background:rgba(16,185,129,.10); border-color:rgba(16,185,129,.20); }
.alert-warning { background:rgba(245,158,11,.10); border-color:rgba(245,158,11,.25); color:#d97706; }
.alert-error { background:rgba(239,68,68,.10); border-color:rgba(239,68,68,.20); }

/* ── Utility text colours ── */
/* Gebruik .req voor verplicht-markering (*) in formulieren, .text-error/.text-warning voor statusteksten */
.req          { color: var(--danger, #ef4444); font-weight: 700; }
.text-error   { color: var(--danger, #ef4444); }
.text-warning { color: var(--warning, #f59e0b); }
.text-success { color: var(--accent, #10b981); }

/* ── Profile menu & dropdown ── */
.profile-menu { position:relative; }
.profile-trigger { display:flex; align-items:center; gap:10px; min-height:44px; padding:6px 10px 6px 6px; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:0 1px 2px rgba(17,24,39,.06); cursor:pointer; }
.profile-avatar { width:38px; height:38px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:900; color:#04111d; background:linear-gradient(135deg, var(--accent-warm), var(--accent)); flex:0 0 38px; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-copy { display:flex; flex-direction:column; align-items:flex-start; line-height:1.15; }
.profile-copy strong { font-size:14px; }
.profile-copy span { font-size:12px; color:var(--muted); }

.profile-dropdown { position:absolute; right:0; top:calc(100% + 10px); min-width:260px; padding:10px; border-radius:8px; border:1px solid var(--line); background:var(--surface); box-shadow:0 18px 45px rgba(17,24,39,.14); display:none; }
.profile-dropdown.is-open { display:block; }
.profile-dropdown-head { display:flex; align-items:center; gap:12px; padding:8px; border-radius:8px; background:var(--surface-2); margin-bottom:8px; }
.profile-menu-link, .profile-menu button { width:100%; display:flex; align-items:center; gap:10px; padding:10px 11px; border:0; background:transparent; color:var(--text); border-radius:8px; text-align:left; cursor:pointer; }
.profile-menu-link:hover, .profile-menu button:hover { background:var(--accent-soft); }

/* ── Header cart dropdown ── */
.header-cart { position:relative; }
.header-cart-btn { position:relative; min-width:168px; }
.header-cart-count { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 8px; border-radius:999px; font-size:12px; font-weight:800; background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#03131f; }

.header-cart-dropdown { position:absolute; right:0; top:calc(100% + 10px); width:min(360px, calc(100vw - 28px)); padding:12px; border-radius:8px; border:1px solid var(--line); background:var(--surface); box-shadow:0 18px 45px rgba(17,24,39,.14); display:none; z-index:90; }
/* Desktop (pointer): hover opent dropdown. Mobiel (touch): via .is-open class (JS) */
@media (hover: hover) {
    .header-cart:hover .header-cart-dropdown { display: block; }
}
.header-cart:focus-within .header-cart-dropdown { display: block; }
.header-cart-dropdown.is-open { display: block; }
.header-cart-head, .header-cart-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.header-cart-head { margin-bottom:12px; }
.header-cart-head span { color:var(--muted); font-size:12px; }
.header-cart-items { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.header-cart-item { display:flex; align-items:center; gap:12px; padding:10px; border-radius:8px; background:var(--surface-2); }
.header-cart-thumb { width:54px; height:54px; flex:0 0 54px; overflow:hidden; border-radius:8px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--bg-soft); }
.header-cart-thumb img { width:100%; height:100%; object-fit:cover; }
.header-cart-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.header-cart-copy strong { font-size:14px; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-cart-copy span { color:var(--muted); font-size:12px; }
.header-cart-messages { margin:0 0 12px; padding:10px 12px; border-radius:8px; border:1px solid var(--line); background:rgba(47,109,246,.10); font-size:12px; font-weight:700; }
.header-cart-messages.is-error { background:rgba(248,113,113,.12); }
.header-cart-items[hidden], .header-cart-footer[hidden], .header-cart-messages[hidden], .muted[hidden] { display:none !important; }
.header-cart-qty-row { display:flex; align-items:center; gap:8px; margin-top:6px; flex-wrap:wrap; }
.header-cart-qty-btn, .header-cart-remove-btn { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:8px; cursor:pointer; font-weight:800; }
.header-cart-qty-btn { width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.header-cart-remove-btn { padding:6px 10px; font-size:11px; }
.header-cart-qty-value { min-width:16px; text-align:center; font-weight:800; color:var(--text) !important; }
.header-cart-item.is-busy { opacity:.6; pointer-events:none; }
.header-cart-footer-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.is-cart-success .btn-primary { transform:scale(1.03); box-shadow:0 0 0 4px rgba(34,197,94,.18); }

/* ── Card state modifiers ── */
.card--success { border-color:rgba(16,185,129,.3); }
.card--error   { border-color:rgba(239,68,68,.3); }
.card--warning { border-color:rgba(245,158,11,.3); }
.card--info    { border-color:rgba(56,189,248,.18); background:rgba(56,189,248,.04); }

/* ── form-grid alignment modifier ── */
.form-grid--top { align-items:start; }

/* ── Compact button (table row actions) ── */
.btn-xs { min-height:30px !important; padding:4px 10px !important; font-size:12px !important; }
.btn-sm { min-height:36px !important; padding:6px 14px !important; font-size:13px !important; }

/* ── Notification dot ── */
.notif-dot { display:inline-block; width:8px; height:8px; background:#818cf8; border-radius:50%; margin-right:6px; vertical-align:middle; }


/* Product stock / number inputs: keep numeric fields visually aligned with other StreamCards form fields.
   Some browsers keep input[type=number] in the native style unless it is targeted explicitly. */
input[type="number"],
.product-edit-form input[type="number"],
.form-grid input[type="number"] {
    width:100% !important;
    min-height:44px !important;
    padding:10px 12px !important;
    border-radius:8px !important;
    border:1px solid var(--line) !important;
    background:var(--input-bg) !important;
    color:var(--text) !important;
    font:inherit;
    box-sizing:border-box;
}

input[type="number"]:focus,
.product-edit-form input[type="number"]:focus,
.form-grid input[type="number"]:focus {
    outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset:2px;
}

/* ── Empty state ── */
.sc-empty {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:60px 24px;
    gap:12px;
}
.sc-empty-icon { font-size:48px; line-height:1; }
.sc-empty h3   { margin:0; font-size:18px; font-weight:700; }
.sc-empty p    { margin:0; color:var(--muted); font-size:14px; max-width:340px; }
.sc-empty .btn { margin-top:4px; }

/* ── Unified status badges ── */
.sc-status {
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:3px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}
/* Stream */
.sc-status--live      { background:rgba(239,68,68,.15);   color:#ef4444; }
.sc-status--scheduled { background:rgba(148,163,184,.12); color:var(--muted); }
.sc-status--ended     { background:rgba(148,163,184,.10); color:var(--muted); }
/* Orders */
.sc-status--paid      { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--pending   { background:rgba(245,158,11,.12);  color:#f59e0b; }
.sc-status--failed    { background:rgba(239,68,68,.12);   color:#ef4444; }
.sc-status--shipped   { background:rgba(56,189,248,.12);  color:#38bdf8; }
.sc-status--delivered { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--cancelled { background:rgba(239,68,68,.10);   color:#ef4444; }
/* Payout / ledger */
.sc-status--available  { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--hold       { background:rgba(245,158,11,.12);  color:#f59e0b; }
.sc-status--paid-out   { background:rgba(148,163,184,.12); color:var(--muted); }
.sc-status--requested  { background:rgba(245,158,11,.15);  color:#b45309; }
.sc-status--correction { background:rgba(99,102,241,.12);  color:#6366f1; }
.sc-status--refund     { background:rgba(239,68,68,.10);   color:#ef4444; }
/* Order fulfilment */
.sc-status--processing      { background:rgba(59,130,246,.12);  color:#3b82f6; }
.sc-status--pending-payment { background:rgba(245,158,11,.12);  color:#f59e0b; }
.sc-status--unpaid          { background:rgba(245,158,11,.12);  color:#f59e0b; }
.sc-status--refunded        { background:rgba(99,102,241,.12);  color:#6366f1; }
.sc-status--completed       { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--auction         { background:rgba(245,158,11,.12);  color:#f59e0b; }
/* Product / seller */
.sc-status--active    { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--draft     { background:rgba(148,163,184,.12); color:var(--muted); }
.sc-status--hidden    { background:rgba(148,163,184,.12); color:var(--muted); }
.sc-status--paused    { background:rgba(148,163,184,.12); color:var(--muted); }
.sc-status--archived  { background:rgba(100,116,139,.10); color:var(--muted); }
.sc-status--suspended { background:rgba(239,68,68,.10);   color:#ef4444; }
.sc-status--approved  { background:rgba(16,185,129,.12);  color:#10b981; }
.sc-status--review    { background:rgba(245,158,11,.12);  color:#f59e0b; }
.sc-status--rejected  { background:rgba(239,68,68,.12);   color:#ef4444; }

/* ── Action alert widget ── */
.sc-alert-widget {
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px 16px;
    border-radius:12px;
    border:1px solid var(--line);
    background:var(--surface-2);
    margin-bottom:10px;
    text-decoration:none;
    color:var(--text);
    transition:border-color .15s, background .15s;
}
.sc-alert-widget:hover { border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); background:var(--accent-soft); }
.sc-alert-widget--warn    { border-color:rgba(245,158,11,.3); background:rgba(245,158,11,.06); }
.sc-alert-widget--warn:hover { border-color:rgba(245,158,11,.5); background:rgba(245,158,11,.10); }
.sc-alert-widget--success { border-color:rgba(16,185,129,.3); background:rgba(16,185,129,.06); }
.sc-alert-widget--success:hover { border-color:rgba(16,185,129,.5); background:rgba(16,185,129,.10); }
.sc-alert-widget--danger  { border-color:rgba(239,68,68,.3); background:rgba(239,68,68,.06); }
.sc-alert-widget--danger:hover { border-color:rgba(239,68,68,.5); background:rgba(239,68,68,.10); }
.sc-aw-icon { font-size:24px; flex-shrink:0; }
.sc-aw-body { flex:1; min-width:0; }
.sc-aw-body strong { display:block; font-size:14px; margin-bottom:2px; }
.sc-aw-body span   { font-size:12px; color:var(--muted); }
.sc-aw-arrow       { color:var(--muted); font-size:16px; flex-shrink:0; }

/* ── Alert: human-friendly field errors ── */
.alert-field-errors { list-style:none; margin:6px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; }
.alert-field-errors li { display:flex; align-items:flex-start; gap:7px; font-size:13px; }
.alert-field-errors li::before { content:"•"; color:var(--danger,#ef4444); font-weight:900; flex-shrink:0; }

/* ── Checkout responsive ── */
@media (max-width:600px) {
    .checkout-form-grid { grid-template-columns:1fr !important; }
}

/* Recovery pages */
.sc-recovery {
    max-width:720px;
    margin:48px auto;
    padding:34px;
    display:grid;
    gap:12px;
}
.sc-recovery h1 { margin:4px 0 0; font-size:clamp(28px,4vw,42px); line-height:1.08; }
.sc-recovery p { margin:0; max-width:620px; font-size:16px; line-height:1.6; }
.sc-recovery-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
@media(max-width:640px) {
    .sc-recovery { margin:24px 0; padding:24px 18px; }
    .sc-recovery-actions .btn { flex:1 1 auto; justify-content:center; }
}

/* Account overview */
.account-stats-grid {
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:10px;
    margin-bottom:18px;
}
.account-stat-card {
    min-width:0;
    padding:14px 12px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--surface);
    box-shadow:var(--shadow);
    text-align:center;
}
.account-stat-value {
    font-size:24px;
    font-weight:900;
    line-height:1.05;
    letter-spacing:0;
    white-space:nowrap;
}
.account-stat-value--accent { color:var(--accent); }
.account-stat-value--secondary { color:var(--accent-2); }
.account-stat-value--blue { color:#0ea5e9; }
.account-stat-value--violet { color:#8b5cf6; }
.account-stat-value--amber { color:#f59e0b; }
.account-stat-label {
    margin-top:5px;
    color:var(--muted);
    font-size:12px;
    font-weight:700;
    line-height:1.2;
}

@media(max-width:1100px) {
    .account-stats-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media(max-width:640px) {
    .account-stats-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .account-stat-card { padding:12px 10px; }
    .account-stat-value { font-size:21px; }
}
.account-actions-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
    gap:12px;
    margin-bottom:24px;
}
.account-actions-grid .card {
    min-width:0;
    margin-bottom:0;
    border-radius:8px;
}

/* Community / account following */
.account-follow-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.account-follow-card { padding:0; overflow:hidden; display:flex; flex-direction:column; }
.account-follow-media { aspect-ratio:16/9; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(14,165,233,.12)); color:var(--accent); font-size:24px; font-weight:900; text-decoration:none; }
.account-follow-media img { width:100%; height:100%; object-fit:cover; display:block; }
.account-follow-body { padding:14px; display:grid; gap:12px; flex:1; }
.account-follow-title { color:var(--text); text-decoration:none; font-size:16px; font-weight:900; line-height:1.25; }
.account-follow-title:hover { color:var(--accent); }
.account-follow-meta { display:flex; flex-wrap:wrap; gap:6px; }
.account-follow-pill { display:inline-flex; align-items:center; min-height:26px; padding:4px 8px; border-radius:999px; background:rgba(148,163,184,.10); border:1px solid var(--line-soft); color:var(--muted); font-size:11px; font-weight:800; }
.account-follow-pill.is-live { background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.22); color:#ef4444; }
.account-follow-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; }
.account-follow-actions form { margin:0; }
.account-follow-actions .btn { flex:1 1 auto; justify-content:center; }

@media (max-width:520px) {
    .account-follow-grid { grid-template-columns:1fr; }
}

/* ── Info-knop & popover ─────────────────────────────────────────────────── */
.sc-info-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px; height:18px;
    border-radius:50%;
    border:1.5px solid color-mix(in srgb, var(--muted) 50%, transparent);
    background:transparent;
    color:var(--muted);
    font-size:11px;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    vertical-align:middle;
    margin-left:6px;
    padding:0;
    transition:border-color .15s, color .15s, background .15s;
    flex-shrink:0;
    font-style:normal;
}
.sc-info-btn:hover,
.sc-info-btn[aria-expanded="true"] {
    border-color:var(--accent);
    color:var(--accent);
    background:var(--accent-soft);
}

/* Popover wrapper — fixed-position overlay */
#sc-info-pop {
    position:fixed;
    z-index:9800;
    max-width:320px;
    min-width:220px;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid var(--line);
    background:var(--surface);
    box-shadow:0 8px 32px rgba(0,0,0,.35);
    font-size:13px;
    line-height:1.55;
    color:var(--text);
    pointer-events:auto;
    animation:scPopIn .15s ease;
}
#sc-info-pop[hidden] { display:none; }
#sc-info-pop h4 {
    margin:0 0 8px;
    font-size:14px;
    font-weight:800;
    color:var(--accent);
    line-height:1.3;
}
#sc-info-pop p  { margin:0 0 6px; color:var(--muted); }
#sc-info-pop p:last-child { margin-bottom:0; }
#sc-info-pop strong { color:var(--text); }
#sc-info-pop .sc-pop-close {
    position:absolute;
    top:8px; right:10px;
    background:none; border:none;
    font-size:16px; cursor:pointer;
    color:var(--muted); padding:2px 4px;
    line-height:1;
}
#sc-info-pop .sc-pop-close:hover { color:var(--text); }
#sc-info-pop .sc-pop-row {
    display:flex;
    justify-content:space-between;
    gap:8px;
    padding:5px 0;
    border-bottom:1px solid var(--line-soft);
    font-size:12px;
}
#sc-info-pop .sc-pop-row:last-child { border-bottom:none; }
#sc-info-pop .sc-pop-pts {
    font-weight:800;
    color:var(--accent);
    white-space:nowrap;
}

@keyframes scPopIn {
    from { opacity:0; transform:translateY(-6px) scale(.97); }
    to   { opacity:1; transform:translateY(0)    scale(1);   }
}

/* ── Inline confirm bar (vervangt browser confirm()) ────────────────────── */
.sc-confirm-bar {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding:10px 14px;
    margin-top:8px;
    border-radius:10px;
    border:1px solid color-mix(in srgb, var(--danger,#ef4444) 30%, var(--line));
    background:color-mix(in srgb, var(--danger,#ef4444) 6%, var(--surface));
    animation:scPopIn .15s ease;
}
.sc-confirm-msg {
    flex:1;
    min-width:160px;
    font-size:13px;
    font-weight:600;
    color:var(--text);
}

/* ── Trust & service paneel (seller orders/detail) ──────────────────────── */
.trust-card { border-left:3px solid #6366f1; margin-bottom:14px; }
.trust-block {
    margin-bottom:14px;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:12px;
}
.trust-block--dispute { background:rgba(99,102,241,.05); }
.trust-block--cancel  { border-color:rgba(245,158,11,.3); background:rgba(245,158,11,.07); }
.trust-form-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0; }
.trust-form-row input[type="text"] { flex:1; min-width:180px; font-size:13px; padding:7px 9px; }

/* ── Order-card alert badges (dispute / annulering aangevraagd) ─────────── */
.order-card-alert {
    display:inline-flex;
    align-items:center;
    padding:2px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    line-height:1.5;
    vertical-align:middle;
}
.order-card-alert--dispute { background:rgba(239,68,68,.12); color:#f87171; }
.order-card-alert--cancel  { background:rgba(245,158,11,.12); color:#f59e0b; }

/* ── Order review pagina (orders/review.php) ────────────────────────────── */
.or-wrap { max-width:720px; margin:0 auto; }
.or-shop-head { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.or-shop-head .or-shop-logo {
    width:54px; height:54px; border-radius:14px;
    background:linear-gradient(135deg,#6366f1,#8b5cf6);
    color:#fff; display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:22px; flex-shrink:0;
}
.or-section { padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface,#fff); margin-bottom:12px; }
.or-section h3 { margin:0 0 4px; font-size:15px; }
.or-section small { color:var(--muted); font-size:12px; }
.or-stars { display:inline-flex; flex-direction:row-reverse; gap:4px; margin-top:8px; font-size:30px; line-height:1; align-items:center; }
.or-stars input { display:none; }
.or-stars label { cursor:pointer; color:rgba(0,0,0,.18); transition:color .12s; }
html[data-theme="dark"] .or-stars label { color:rgba(255,255,255,.20); }
.or-stars input:checked ~ label,
.or-stars label:hover,
.or-stars label:hover ~ label { color:#f59e0b; }
.or-stars-clear { background:none; border:none; min-height:unset; width:auto; color:var(--muted); font-size:18px; line-height:1; cursor:pointer; padding:0 6px; align-self:center; opacity:.5; }
.or-stars-clear:hover { opacity:1; }
.or-comment textarea { width:100%; min-height:90px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; resize:vertical; }
.or-items-list { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.or-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; }
.or-item-thumb { width:42px; height:42px; border-radius:8px; background:var(--surface-soft,#f3f4f6); display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.or-item-thumb img { width:100%; height:100%; object-fit:cover; }
.or-item-name { flex:1; min-width:0; font-size:13px; font-weight:600; }
.or-submit-row { display:flex; gap:10px; align-items:center; margin-top:14px; }
@media(max-width:520px){ .or-stars { font-size:34px; } }
}

/* ── Pickup QR code (orders/index.php — koper) ──────────────────────────── */
.order-pickup-qr { padding:12px 16px; background:var(--bg-soft); border-top:1px solid var(--line-soft); }
.order-pickup-qr-inner { display:flex; align-items:center; gap:14px; }
.order-pickup-qr-inner img { border-radius:6px; border:2px solid var(--line); background:#fff; flex-shrink:0; }
.order-pickup-qr-code { font-size:22px; font-weight:800; letter-spacing:.15em; font-family:monospace; color:var(--heading); }
.order-pickup-qr-label { font-size:12px; color:var(--muted); margin-top:2px; }
.order-pickup-qr-done { font-size:12px; color:#10b981; margin-top:4px; font-weight:600; }


/* ── Badge-kleurvarianten (0.32.0) — vervangt inline style="background:…;color:…" ── */
.badge--accent      { background:var(--accent); color:#fff; }
.badge--overlay     { background:rgba(255,255,255,.14); color:#fff; }
.badge--danger-soft { background:rgba(239,68,68,.12); color:#b91c1c; }
.pill-cal           { font-size:10px; font-weight:800; padding:2px 8px; border-radius:99px; letter-spacing:.05em; color:#fff; display:inline-block; }
.pill-cal--today    { background:var(--accent); }
.pill-cal--future   { background:#6366f1; }

/* ── Inline SVG-iconen (sc_icon) — nette uitlijning met tekst ── */
.sc-ico { vertical-align:-0.15em; flex-shrink:0; }
button .sc-ico, .btn .sc-ico, a .sc-ico { pointer-events:none; }
.sc-empty-icon .sc-ico { width:44px; height:44px; opacity:.55; }

/* Zichtbaar voor schermlezers, niet op het scherm. */
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
