.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; padding-top: 2rem; padding-bottom: 4rem; }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; } }
.order-title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.step-h { font-size: 1.15rem; display: flex; align-items: center; gap: 0.6rem; margin: 2rem 0 1rem; }
.step-h span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 0.8rem var(--font-mono); flex: none; }

/* product picker */
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 600px) { .picker { grid-template-columns: 1fr; } }
.pick { text-align: left; cursor: pointer; font: inherit; color: inherit; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 0.9rem; display: grid; grid-template-columns: 56px 1fr; gap: 0.8rem; align-items: center; transition: border-color 0.12s; }
.pick:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.pick[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick .mini { height: 56px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; }
.pick .mini .art-card { width: 28px; }
.pick .mini .art-sheet { width: 32px; }
.pick .mini .art-metal { width: 48px; }
.pick b { display: block; color: var(--ink); font-size: 0.95rem; line-height: 1.25; }
.pick small { color: var(--muted); font-size: 0.8rem; }

/* builder panel */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.75rem; }
@media (max-width: 1180px) { .panel-grid { grid-template-columns: 1fr; } .panel-grid .tipbox { order: -1; } .tipbox ul { columns: 2 220px; column-gap: 1.5rem; } }
.opts { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.opt { cursor: pointer; display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.9rem; border: 1.5px solid var(--border); border-radius: 12px; font-size: 0.92rem; background: var(--bg); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { accent-color: var(--accent); margin: 0; }
.opt b { color: var(--ink); font-family: var(--font-display); }
.label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin: 0 0 0.5rem; }

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.drop { position: relative; border: 2px dashed var(--border); border-radius: 14px; background: var(--bg); min-height: 200px; display: grid; place-items: center; text-align: center; padding: 1.25rem; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0 auto 0.6rem; font-size: 1.4rem; font-weight: 300; }
.drop b { color: var(--ink); display: block; }
.drop small { color: var(--muted); font-size: 0.8rem; display: block; }

.filled { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 0.9rem; }
.filled .slot-name { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.6rem; display: flex; justify-content: space-between; }
.frame-wrap { display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; border-radius: 10px; padding: 0.9rem; min-height: 180px; }
.frame { position: relative; overflow: hidden; max-height: 260px; width: 100%; max-width: 100%; box-shadow: var(--shadow); background: #fff; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .bleed { position: absolute; inset: 0; border: solid rgba(224, 37, 140, 0.38); box-sizing: border-box; pointer-events: none; }
.frame .trim, .frame .safe { position: absolute; pointer-events: none; }
.frame .trim { border: 1.5px solid var(--magenta); border-radius: 4%; }
.frame .safe { border: 1.5px dashed rgba(255, 255, 255, 0.95); outline: 1px dashed rgba(0, 0, 0, 0.35); outline-offset: -2.5px; }
.frame.hidden-guides .bleed, .frame.hidden-guides .trim, .frame.hidden-guides .safe { display: none; }
.file-icon { width: 90px; height: 110px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font: 700 0.85rem var(--font-mono); color: var(--muted); }
.meta { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; word-break: break-word; }
.meta b { color: var(--ink); }
.msgs { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.msgs li { font-size: 0.82rem; line-height: 1.4; padding-left: 1.1rem; position: relative; }
.msgs li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); }
.msgs li.good::before { background: var(--good); }
.msgs li.ok::before { background: var(--warn); }
.msgs li.low::before { background: var(--bad); }
.msgs li.low { color: var(--bad); }
.row-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.82rem; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.danger { color: var(--bad); }
.badge-q { font: 600 0.7rem var(--font-mono); padding: 0.15rem 0.45rem; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.badge-q.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.badge-q.ok { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.badge-q.low { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.badge-q.info { color: var(--muted); background: var(--surface-2); }

/* sticker designs grid */
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.design { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 0.6rem; font-size: 0.8rem; }
.design .thumb { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 12px 12px; }
.design .thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }
.design .name { margin-top: 0.45rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design .msgs li { font-size: 0.76rem; }
.drop.compact { min-height: 120px; }

.qty-row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); margin-top: 0.35rem; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.15rem; color: var(--ink); cursor: pointer; border-radius: 50%; }
.stepper button:hover { color: var(--accent); }
.stepper input { width: 3.2rem; text-align: center; border: 0; background: none; margin: 0; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-price { margin-left: auto; text-align: right; }
.line-price small { display: block; color: var(--muted); font-size: 0.8rem; }
.line-price b { font: 800 1.5rem var(--font-display); color: var(--ink); }
.add-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.add-row .why { font-size: 0.85rem; color: var(--muted); }

.tipbox { background: var(--surface-2); border-radius: 14px; padding: 1.1rem; font-size: 0.86rem; align-self: start; }
.tipbox h3 { font-size: 0.95rem; margin-bottom: 0.6rem; }
.tipbox ul { margin: 0 0 0.8rem; padding-left: 1.1rem; color: var(--text); }
.tipbox li { margin-bottom: 0.4rem; }
.tipbox .px { font-family: var(--font-mono); font-size: 0.8rem; background: var(--surface); border-radius: 8px; padding: 0.55rem 0.7rem; margin-bottom: 0.8rem; color: var(--ink); }

/* cart */
.cart-col { position: sticky; top: 84px; }
@media (max-width: 960px) { .cart-col { position: static; } }
.cart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.cart-h { font-size: 1.15rem; margin-bottom: 1rem; }
.empty { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0 1rem; }
.lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.line:first-child { padding-top: 0; }
.line .th { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line b { color: var(--ink); font-size: 0.9rem; display: block; line-height: 1.3; }
.line small { color: var(--muted); font-size: 0.78rem; display: block; }
.line .warn { color: var(--warn); }
.line .price { font-weight: 700; color: var(--ink); font-size: 0.92rem; text-align: right; }
.line.editing { background: var(--accent-soft); margin: 0 -0.6rem; padding-left: 0.6rem; padding-right: 0.6rem; border-radius: 10px; }
.totals { font-size: 0.9rem; display: grid; gap: 0.35rem; margin-bottom: 1.2rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .muted { color: var(--muted); }
.totals .grand { font-weight: 700; color: var(--ink); font-size: 1rem; padding-top: 0.4rem; border-top: 1px solid var(--border); margin-top: 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.84rem; margin: 0.2rem 0 1rem; cursor: pointer; }
.check input { margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.secure { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: 0.8rem; margin: 0.9rem 0.3rem; }
.secure svg { flex: none; margin-top: 0.2rem; }
.form-error { color: var(--bad); font-size: 0.85rem; margin: -0.3rem 0 0.8rem; }

/* overlay */
.overlay { position: fixed; inset: 0; background: rgba(10, 8, 20, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.overlay[hidden] { display: none; }
.overlay-card { background: var(--surface); border-radius: 20px; padding: 1.75rem; width: min(420px, 100%); box-shadow: var(--shadow); }
.overlay-card h2 { font-size: 1.25rem; }
.overlay-card p { color: var(--muted); font-size: 0.92rem; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 0.2s; }
#ov-actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
#ov-actions:empty { display: none; }

/* Delivery choice */
.delivery { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.delivery legend { font-size: 0.84rem; font-weight: 600; margin-bottom: 0.45rem; padding: 0; }
.dopt { display: flex; gap: 0.6rem; align-items: center; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 0.88rem; }
.dopt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dopt input, .day input { accent-color: var(--accent); flex: none; margin: 0; }
.dopt > span:nth-of-type(1) { flex: 1; display: grid; gap: 0.1rem; }
.dopt small, .day small { color: var(--muted); font-size: 0.78rem; }
.dopt .dprice { font-weight: 600; }
.pickup { padding: 0.2rem 0 0; }
.pickup-h { font-size: 0.82rem; font-weight: 600; margin: 0.3rem 0 0.45rem; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.day { display: grid; grid-template-columns: auto 1fr; column-gap: 0.45rem; align-items: center; padding: 0.5rem 0.6rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.84rem; }
.day small { grid-column: 2; }
.day small.place { color: var(--ink); font-weight: 500; }
.day.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.disclaimer { font-size: 0.78rem; color: var(--muted); margin: 0.6rem 0 0; padding: 0.5rem 0.65rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 6px 6px 0; }
.disclaimer b { color: var(--ink); }
