:root {
  color-scheme: light;
  --navy: #061E3C;
  --navy-2: #12325c;
  --mint: #03E29D;
  --mint-dark: #02b47d;
  --mint-soft: #e3fbf3;
  --pink: #FC73ED;
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #dfe5ee;
  --border-strong: #c3ccd9;
  --text: #061E3C;
  --muted: #5a6a80;
  --danger: #d0334a;
  --danger-soft: #fdecef;
  --warn: #b86e00;
  --warn-soft: #fff4e0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 30, 60, .06), 0 4px 16px rgba(6, 30, 60, .05);
  --font: "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.notice { background: var(--warn-soft); padding: 12px 16px; border-radius: 10px; }

/* ---------- header / footer ---------- */
.site-head { display: flex; justify-content: center; padding: 22px 16px 6px; }
.site-head img { height: 52px; width: auto; display: block; }
.site-foot { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px 40px; }
html.embedded body { background: transparent; }
html.embedded .site-head, html.embedded .site-foot { display: none; }
html.embedded .wrap { padding: 0; }

.intro { text-align: center; padding: 14px 4px 22px; }
.intro h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.intro p { margin: 10px auto 0; max-width: 560px; color: var(--muted); }
.intro strong { color: var(--text); }

.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 14px;
  border: 1.5px solid var(--border-strong); border-radius: 99px; background: #fff;
}
.lang-btn {
  border: 0; background: transparent; color: var(--navy); border-radius: 99px;
  padding: 6px 16px; min-height: 36px; font-weight: 700; font-size: 15px; cursor: pointer; touch-action: manipulation;
}
.lang-btn:hover { background: #edf1f6; }
.lang-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
}
.card h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card > .muted { margin: 6px 0 0; }
.step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; flex: none;
}

/* ---------- product picks ---------- */
.picks { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .picks { grid-template-columns: 1fr 1fr; } }
.pick {
  display: flex; align-items: center; gap: 14px; text-align: left;
  border: 2px solid var(--border); border-radius: 12px; background: #fff;
  padding: 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.pick:hover { border-color: var(--navy); }
.pick:active { transform: scale(.99); }
.pick[aria-pressed="true"] { border-color: var(--mint-dark); background: var(--mint-soft); }
.pick-icon {
  flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy); color: var(--mint);
}
.pick[data-kind="uvdtf"] .pick-icon { color: var(--pink); }
.pick-text { flex: 1; min-width: 0; }
.pick-title { display: block; font-weight: 800; font-size: 18px; }
.pick-sub { display: block; color: var(--muted); font-size: 15px; line-height: 1.3; margin-top: 2px; }
.pick-add {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--navy); font-weight: 800; font-size: 20px; line-height: 1;
}

/* ---------- builder ---------- */
.builder {
  margin-top: 16px; border: 2px solid var(--mint-dark); border-radius: 12px;
  padding: 18px 16px; background: #fbfffd;
}
.builder-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.builder-head h3 { font-size: 19px; font-weight: 800; }
.section-label { font-weight: 700; margin: 18px 0 8px; display: block; }
.section-label .opt { font-weight: 400; }
.sub-label { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 0 6px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed var(--border-strong); border-radius: 12px; padding: 26px 16px; text-align: center;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.dragover { border-color: var(--navy); background: #f7faff; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-title { font-weight: 800; font-size: 18px; }
.drop-sub { color: var(--muted); font-size: 14px; }
.drop-btn { margin-top: 6px; }

.file-card { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { color: var(--muted); font-size: 14px; }

.thumb {
  flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--border);
  background-color: #fff;
  background-image: conic-gradient(#e9edf3 25%, #fff 0 50%, #e9edf3 0 75%, #fff 0);
  background-size: 14px 14px;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-ext {
  font-weight: 800; font-size: 15px; background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 8px; letter-spacing: .04em;
}
.thumb.sm { width: 64px; height: 64px; }

.progress { height: 6px; background: #e8edf4; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress > span { display: block; height: 100%; background: var(--mint-dark); width: 0; transition: width .2s; }
.up-state { font-size: 14px; margin-top: 4px; }
.up-state.ok { color: var(--mint-dark); font-weight: 700; }
.up-state.err { color: var(--danger); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--border-strong); background: #fff; border-radius: 99px; padding: 7px 14px;
  font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.1;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stepper {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 8px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s;
}
.stepper.has-qty { border-color: var(--mint-dark); background: var(--mint-soft); }
.stepper-label { font-weight: 800; font-size: 15px; text-align: center; }
.stepper-ctrl { display: flex; align-items: center; gap: 4px; }
.stepper-ctrl input {
  flex: 1; min-width: 0; width: 100%; text-align: center; font-weight: 700; font-size: 17px;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 2px; background: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper-ctrl input::-webkit-outer-spin-button, .stepper-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: none; background: #edf1f6;
  font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; touch-action: manipulation;
}
.step-btn:hover { background: #dde4ee; }
.size-total { margin-top: 12px; font-weight: 700; }
.size-total b { font-size: 20px; }

.inline-input { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-input { display: flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 10px; background: #fff; overflow: hidden; }
.unit-input input { border: none; width: 96px; padding: 10px 12px; font-size: 18px; font-weight: 700; outline: none; background: transparent; }
.unit-input span { padding: 0 12px; color: var(--muted); font-weight: 600; }
.unit-input:focus-within { border-color: var(--navy); }
.uv-hint { margin-top: 8px; color: var(--muted); font-size: 15px; }

.builder-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.builder-error { margin-top: 12px; }

/* ---------- form fields ---------- */
.field { display: block; margin: 14px 0 0; border: 0; padding: 0; min-width: 0; }
.label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: 15px; }
.hint { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"],
.field input[type="password"], .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 11px 12px; background: #fff;
  min-height: 46px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(3, 226, 157, .35); }
.field.invalid input { border-color: var(--danger); background: var(--danger-soft); }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: inline-block; border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 10px 16px;
  font-weight: 600; cursor: pointer; background: #fff;
}
.seg-opt input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 18px; font-weight: 800; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.1; touch-action: manipulation; min-height: 44px;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--mint); color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: #00f0a8; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--navy); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1b9c2; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: 15px; border-width: 1.5px; }
.btn-link { background: none; border: none; padding: 4px 6px; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 15px; }
.btn-big { width: 100%; font-size: 20px; padding: 16px; margin-top: 20px; }

.form-error {
  margin-top: 16px; background: var(--danger-soft); color: var(--danger); border-radius: 10px;
  padding: 12px 14px; font-weight: 700;
}
.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0 0; }

/* ---------- order list ---------- */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-total { color: var(--muted); font-weight: 600; font-size: 15px; }
.order-list { margin-top: 12px; display: grid; gap: 10px; }
.order-empty {
  text-align: center; color: var(--muted); padding: 22px 12px; border: 2px dashed var(--border); border-radius: 12px;
}
.order-item { display: flex; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.order-item.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--mint-soft); border-color: var(--mint-dark); } 100% { background: #fff; } }
.order-item .thumb { width: 72px; height: 72px; }
.oi-body { flex: 1; min-width: 0; }
.oi-title { font-weight: 800; }
.oi-type { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-right: 6px; vertical-align: 2px; }
.oi-type.dtf { background: var(--navy); color: var(--mint); }
.oi-type.uvdtf { background: var(--navy); color: var(--pink); }
.oi-line { font-size: 15px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.oi-line.strong { color: var(--text); font-weight: 600; }
.oi-actions { display: flex; gap: 2px; margin-top: 4px; flex-wrap: wrap; margin-left: -6px; }

/* ---------- order again (signed in on stickerpeak.com) ---------- */
.past-signed { font-size: 15px; }
.past-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 14px; }
.past-tile {
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; touch-action: manipulation;
  border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 8px;
}
.past-tile:hover { border-color: var(--navy); }
.past-tile .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.past-meta { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.past-go { display: block; text-align: center; background: var(--mint); color: var(--navy); font-weight: 800; border-radius: 8px; padding: 7px 8px; font-size: 15px; }
.past-tile:hover .past-go { background: #00f0a8; }
.past-more { margin-top: 12px; }
.login-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.login-title { font-weight: 800; font-size: 18px; }
.oi-line.reorder { color: var(--mint-dark); font-weight: 700; }
.field input[readonly] { background: #f3f6fa; color: var(--muted); }

/* ---------- success ---------- */
.success { padding-top: 10px; }
.success-card { text-align: center; padding: 36px 22px; }
.success-check {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: var(--navy);
}
.success-card h1 { font-size: 30px; font-weight: 800; outline: none; }
.success-card p { margin: 10px 0; }

@media (max-width: 420px) {
  .card { padding: 18px 14px; }
  .builder { padding: 14px 12px; }
  .pick { padding: 12px; }
  .pick-icon { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
