/*
 * designer-stand_scan.css — the counter scan stand designer (partials/designers/stand_scan.php,
 * assets/js/designer-stand_scan.js). Scoped to .designer-stand_scan. The "QR terbaca" badge (.qt-scan) and the
 * warning look come from designer-qr_timbul.css (.qt-scan is global there; .qt-warn / .qt-payload are restyled here).
 */
.designer-stand_scan .ss-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 14px 0 2px;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 72px; z-index: 4; }
.designer-stand_scan .ss-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border: 0; border-radius: 10px;
    background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; transition: background .15s, color .15s; }
.designer-stand_scan .ss-tab .icon { width: 16px; height: 16px; }
.designer-stand_scan .ss-tab:hover { color: var(--accent-text); }
.designer-stand_scan .ss-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.designer-stand_scan .ss-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.designer-stand_scan .ss-panel .opt:first-child { border-top: 0; }
.designer-stand_scan [data-ss-type][hidden], .designer-stand_scan [data-ss-pass][hidden], .designer-stand_scan [data-ss-for][hidden],
.designer-stand_scan [data-ss-logo][hidden] { display: none; }

.designer-stand_scan .ss-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .designer-stand_scan .ss-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.designer-stand_scan .ss-types .ochip > span { padding: 8px 6px; height: 100%; }
.designer-stand_scan .ss-types small { font-size: .72rem; }
.designer-stand_scan .ss-label-row { display: flex; justify-content: space-between; gap: 8px; }
.designer-stand_scan .ss-label-row em { font-style: normal; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.designer-stand_scan .ss-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.designer-stand_scan .upload-note.is-bad { color: #991b1b; }

.designer-stand_scan .ss-fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .designer-stand_scan .ss-fonts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.designer-stand_scan .ss-font > span { padding: 6px 4px; overflow: hidden; }
.designer-stand_scan .ss-font-sample { font-size: 1.15rem; line-height: 1.2; font-weight: 400; color: var(--ink); white-space: nowrap; }
.designer-stand_scan .ss-font small { font-size: .7rem; }
.designer-stand_scan .ss-font input:checked + span .ss-font-sample { color: var(--accent-text); }

.designer-stand_scan .qt-payload { margin: 8px 0 0; overflow-wrap: anywhere; }
.designer-stand_scan .qt-payload code { font-size: .8rem; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.designer-stand_scan .qt-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; }
.designer-stand_scan .qt-warn[hidden] { display: none; }
.designer-stand_scan [data-ss-color].is-flash { animation: ss-flash 1.2s ease-out; border-radius: 12px; }
@keyframes ss-flash { 0% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }

@media (max-width: 900px) {
    .designer-stand_scan .designer-canvas { aspect-ratio: 1 / 1; max-height: 62vh; }
    .designer-stand_scan .ss-tabs { top: 64px; }
    .designer-stand_scan .designer-buy { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding: 0 8px 12px; margin: 0 -8px;
        box-shadow: 0 -12px 18px -14px rgba(40, 20, 80, .35); }
}
@media (max-width: 420px) { .designer-stand_scan .ss-tab { font-size: .82rem; padding: 9px 4px; } .designer-stand_scan .ss-tab .icon { display: none; } }
