/* ───────── Site pages: order form, order tracking, terms, privacy, contact ─────────
   Same night sky and glass as the home page, with calmer motion: these pages are for reading and filling in. */
body.site { background: #07061A; }
.site .app-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.site-nav .lp-nav-in { padding-block: 12px; }
.site-order .i { color: #12D6C3; }
@media (max-width: 720px) { .site-nav .lp-links a.site-order { display: inline-flex; } }

/* Reading pages */
.doc { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top)) 18px 40px; display: grid; gap: 28px; }
.doc-head { display: grid; gap: 12px; }
.doc-kicker { display: inline-flex; align-items: center; gap: 8px; color: #12D6C3; font-weight: 800; font-size: var(--fs-sm); }
.doc-kicker .i { width: 20px; height: 20px; }
.doc-date { color: #8C89BF; font-size: var(--fs-sm); }
.doc-wrap { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .doc-wrap { grid-template-columns: 250px minmax(0, 1fr); } }
.doc-toc { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .doc-toc { position: sticky; top: 90px; } }
.doc-toc-t { display: block; margin-bottom: 8px; color: #8C89BF; font-size: var(--fs-xs); font-weight: 800; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 10px; color: #DCDAF7; font-size: var(--fs-sm); text-decoration: none; line-height: 1.7; transition: background-color .2s ease; }
.doc-toc a::before { content: counter(toc, persian); color: #12D6C3; font-weight: 800; }
.doc-toc a:hover { background: rgba(255, 255, 255, .06); }
.doc-body { padding: 26px 22px; border-radius: 28px; background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: #DCDAF7; font-size: 1rem; line-height: 2.1; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 720px) { .doc-body { padding: 36px 40px; } }
.doc-body h2 { scroll-margin-top: 90px; margin: 28px 0 8px; font-size: 1.2rem; font-weight: 900; color: #F4F3FF; line-height: 1.7; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 10px; }
.doc-body ul { margin: 0 0 12px; padding-inline-start: 0; list-style: none; display: grid; gap: 6px; }
.doc-body li { position: relative; padding-inline-start: 22px; }
.doc-body li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .85em; width: 7px; height: 7px; border-radius: 50%; background: #12D6C3; box-shadow: 0 0 10px rgba(18, 214, 195, .8); }
.doc-body strong { color: #F4F3FF; }

/* Contact */
.ct-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; } } /* the about box runs as tall as the list beside it */
.ct-ways .lp-ctas { display: grid; grid-template-columns: 1fr 1fr; }
.ct-ways .lp-ctas .btn { justify-content: center; }
.ct-ways { display: grid; gap: 10px; }
.ct-way { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #F4F3FF; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s var(--ease-spring), background-color .25s ease; }
a.ct-way:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.ct-way > span:last-child { display: grid; min-width: 0; font-size: var(--fs-sm); color: #B8B5E3; line-height: 1.8; }
.ct-way b { color: #F4F3FF; font-size: var(--fs-md); }
.ct-way-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--b1, #3B37F0), var(--b2, #6A2FE0)); box-shadow: 0 12px 24px -12px var(--bglow, rgba(74, 70, 242, .8)); }
.ct-way-ic .i { width: 22px; height: 22px; }
.ct-way[data-type="address"] .ct-way-ic, .ct-way:not([data-type]) .ct-way-ic { background: linear-gradient(150deg, #12D6C3, #3A8DF0); }
.ct-legal { color: #8C89BF; font-size: var(--fs-xs); padding-inline: 6px; }
.ct-ways .lp-ctas { margin-top: 8px; }

/* Footer links (all site pages) */
.site-foot { gap: 16px 28px; }
.sf-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; flex: 1 1 340px; }
.sf-brand p { flex: 1; min-width: 200px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sf-links a { color: #B8B5E3; font-weight: 700; }
.sf-links a:hover { color: #fff; }
.sf-enamad img { display: block; width: 90px; height: 90px; border-radius: 14px; background: #fff; }

/* ───────── Forms on the site pages (order, order page, tracking) ───────── */
body.site {
  --text: #F4F3FF; --muted: #A9A7D3; --faint: #8C89BF; --line: rgba(255, 255, 255, .12); --accent: #8F8CFF; --accent-soft: rgba(143, 140, 255, .18);
  --danger: #FF7D97; --danger-soft: rgba(255, 59, 92, .13); --success: #3FE0BC; --success-soft: rgba(63, 224, 188, .12);
  --warn: #FFC75C; --warn-soft: rgba(255, 176, 32, .12); --focus: #12D6C3;
}
.site .input, .site .select, .site .textarea { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: #F4F3FF; border-radius: 14px; }
.site .input::placeholder, .site .textarea::placeholder { color: #8C89BF; opacity: .75; }
.site .input:focus, .site .select:focus, .site .textarea:focus { border-color: #12D6C3; box-shadow: 0 0 0 4px rgba(18, 214, 195, .14); }
.site .input[aria-invalid="true"], .site .select[aria-invalid="true"], .site .textarea[aria-invalid="true"] { border-color: var(--danger); }
.site .select option { background: #14123A; color: #F4F3FF; }
.site .label { color: #EDEBFF; }
.site .label-opt { color: #8C89BF; font-weight: 500; }
.site .hint { color: #A9A7D3; }
.site .field-error { color: #FF8DA3; }
.of .field + .field, .os .field + .field, .tr .field + .field { margin-top: 0; }

/* Notices */
.sn { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.95; }
.sn > .i { flex: none; width: 20px; height: 20px; margin-top: 4px; }
.sn > span { min-width: 0; }
.sn-ok { background: rgba(63, 224, 188, .09); box-shadow: inset 0 0 0 1px rgba(63, 224, 188, .3); color: #CFF8EE; }
.sn-ok > .i { color: #3FE0BC; }
.sn-err { background: rgba(255, 59, 92, .09); box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .35); color: #FFD6DE; }
.sn-err > .i { color: #FF7D97; }
.sn-warn { background: rgba(255, 176, 32, .09); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .3); color: #FFE7B8; }
.sn-warn > .i { color: #FFC75C; }
.sn-info { background: rgba(143, 140, 255, .1); box-shadow: inset 0 0 0 1px rgba(143, 140, 255, .3); color: #E2E0FF; }
.sn-info > .i { color: #B9B5FF; }
.sn b { color: #fff; }
.sn-btn { display: flex; width: max-content; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: .82rem; cursor: pointer; transition: background-color .2s ease; }
.sn-btn:hover { background: rgba(255, 255, 255, .18); }
.sn-btn .i { width: 16px; height: 16px; }
.sn-btn.is-copied { background: #12D6C3; color: #07061A; }

/* ───────── Order form ───────── */
.of { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: calc(96px + env(safe-area-inset-top)) 18px 40px; display: grid; gap: 26px; }
@media (max-width: 979px) { .of { padding-bottom: 110px; } }
.of-lead { color: #B8B5E3; font-size: var(--fs-sm); line-height: 2; max-width: 42em; }
.of-form { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) { .of-form { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; } .of-sum { position: sticky; top: 86px; } }
.of-main { display: grid; gap: 18px; min-width: 0; }
.of-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.of-step { display: grid; gap: 18px; min-width: 0; padding: 22px 16px; border-radius: 28px; background: linear-gradient(165deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (min-width: 720px) { .of-step { padding: 28px; } }
.of-step-t { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 900; line-height: 1.5; }
.of-n { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #07061A; background: linear-gradient(135deg, #12D6C3, #8E8BFF); box-shadow: 0 8px 20px -8px rgba(18, 214, 195, .8); }
.of-legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: var(--fs-sm); color: #EDEBFF; }
.of-grid2, .of-grid3 { display: grid; gap: 14px; }
@media (min-width: 600px) { .of-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .of-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.of-addr { min-height: 84px; }

/* Selectable tiles: packages, materials, design and payment choices */
.of-pkg, .of-mat, .of-opt, .of-chip {
  position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background-color .3s ease, box-shadow .3s ease, transform .45s var(--ease-spring);
}
.of-pkg input, .of-mat input, .of-opt input, .of-chip input { position: absolute; opacity: 0; pointer-events: none; }
.of-pkg:hover, .of-mat:hover, .of-opt:hover, .of-chip:hover { background: rgba(255, 255, 255, .07); }
.of-pkg:has(input:checked), .of-mat:has(input:checked), .of-opt:has(input:checked) {
  background: linear-gradient(130deg, rgba(59, 55, 240, .34), rgba(18, 214, 195, .12));
  box-shadow: inset 0 0 0 1.5px rgba(18, 214, 195, .7), 0 20px 40px -28px rgba(18, 214, 195, .8);
}
.of-pkg:has(input:focus-visible), .of-mat:has(input:focus-visible), .of-opt:has(input:focus-visible), .of-chip:has(input:focus-visible) { outline: 3px solid #8E8BFF; outline-offset: 3px; }

.of-pkgs { border: 0; margin: 0; padding: 10px 0 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.of-pkg { display: grid; align-content: start; gap: 2px; padding: 18px 16px 14px; border-radius: 22px; }
.of-pkg-name { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.3; }
.of-pkg-count { color: #B8B5E3; font-size: .82rem; font-weight: 700; }
.of-pkg-price { display: none; margin-top: 8px; color: #B8B5E3; font-size: .78rem; line-height: 1.6; }
.of-pkg-price b { font-size: 1.05rem; font-weight: 900; color: #F4F3FF; }
.of-form:has(#m-pvc:checked) .of-pkg-price[data-mat="pvc"],
.of-form:has(#m-metal:checked) .of-pkg-price[data-mat="metal"],
.of-form:has(#m-wood:checked) .of-pkg-price[data-mat="wood"] { display: block; }
@supports not selector(:has(*)) { .of-pkg-price[data-first] { display: block; } }
.of-badge { position: absolute; top: -10px; inset-inline-start: 14px; padding: 1px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #0B0A24; background: linear-gradient(120deg, #FFB020, #FFD27A); box-shadow: 0 8px 16px -8px rgba(255, 176, 32, .9); }
.of-pkg::after { content: ''; position: absolute; top: 14px; inset-inline-end: 14px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transition: box-shadow .3s ease, background-color .3s ease; }
.of-pkg:has(input:checked)::after { background: #12D6C3 radial-gradient(circle, #07061A 0 3px, transparent 3.5px); box-shadow: 0 0 12px rgba(18, 214, 195, .8); }
@media (max-width: 560px) {
  .of-pkgs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .of-pkg { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 14px 16px; padding-inline-end: 46px; }
  .of-pkg-name { font-size: 1.35rem; }
  .of-pkg-price { grid-column: 2; grid-row: 1 / span 2; margin: 0; text-align: end; }
  .of-pkg::after { top: 50%; margin-top: -10px; }
}

.of-mats { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.of-mat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.of-mat b { display: block; font-weight: 900; line-height: 1.6; }
.of-mat small { display: none; }
.of-mat:has(input:checked) .pk-swatch { transform: rotate(0) scale(1.1); }
@media (max-width: 560px) { .of-mat { flex-direction: column; gap: 8px; padding: 14px 8px 10px; text-align: center; } }

.of-qty { display: grid; gap: 8px; justify-items: start; }
.of-stepper { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.of-stepper button { width: 44px; height: 44px; border: 0; border-radius: 13px; display: grid; place-items: center; cursor: pointer; color: #F4F3FF; background: rgba(255, 255, 255, .08); transition: background-color .2s ease, transform .15s ease; }
.of-stepper button:hover { background: rgba(255, 255, 255, .14); }
.of-stepper button:active { transform: scale(.94); }
.of-stepper button .i { width: 20px; height: 20px; }
.site .of-stepper .input { width: 84px; min-height: 44px; padding: 0; text-align: center; font-size: 1.2rem; font-weight: 900; background: transparent; border: 0; box-shadow: none; font-variant-numeric: tabular-nums; }

.of-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.of-opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; }
.of-opt b { display: block; font-weight: 900; line-height: 1.7; }
.of-opt small { display: block; color: #B8B5E3; font-size: .82rem; line-height: 1.85; }
.of-opt-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #12D6C3; background: rgba(18, 214, 195, .1); box-shadow: inset 0 0 0 1px rgba(18, 214, 195, .22); transition: background .3s ease, color .3s ease; }
.of-opt:has(input:checked) .of-opt-ic { color: #07061A; background: linear-gradient(135deg, #12D6C3, #8E8BFF); box-shadow: none; }
.of-opt.is-off { cursor: not-allowed; opacity: .6; }
.of-opt.is-off:hover { background: rgba(255, 255, 255, .04); }
.of-soon { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 800; color: #FFC75C; background: rgba(255, 176, 32, .12); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .3); vertical-align: 2px; }

.of-us, .of-own { display: grid; gap: 16px; }
.of-form:has(#d-own:checked) .of-us { display: none; }
.of-form:has(#d-us:checked) .of-own { display: none; }

.of-colors { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.of-colors legend { padding: 0; margin-bottom: 8px; }
.of-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.of-chip:has(input:checked) { color: #fff; background: rgba(18, 214, 195, .14); box-shadow: inset 0 0 0 1.5px #12D6C3; }
.of-chip-sw { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.of-sw-dark { background: linear-gradient(135deg, #0B0A24 50%, #C9A45C 50%); }
.of-sw-light { background: linear-gradient(135deg, #FFFFFF 50%, #CFCDEB 50%); }
.of-sw-brand { background: conic-gradient(#FF3B5C, #FFB020, #12D6C3, #3B37F0, #FF3B5C); }
.of-sw-designer { background: linear-gradient(135deg, #3B37F0, #12D6C3); }

/* File picker */
.of-file { display: grid; gap: 8px; min-width: 0; }
.of-drop { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 20px; cursor: pointer; border: 1.5px dashed rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); transition: border-color .25s ease, background-color .25s ease; }
.of-drop:hover, .of-drop.is-over { border-color: #12D6C3; background: rgba(18, 214, 195, .07); }
.of-file input:focus-visible + .of-drop { outline: 3px solid #8E8BFF; outline-offset: 3px; }
.of-drop-ic { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #12D6C3; background: rgba(18, 214, 195, .1); }
.of-drop-t { font-size: var(--fs-sm); }
.of-drop-t b { color: #F4F3FF; }
.of-drop-or { color: #B8B5E3; }
@media (hover: none) { .of-drop-or { display: none; } }
.of-drop-h { color: #8C89BF; font-size: .78rem; line-height: 1.7; }
.of-drop-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
.of-drop-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8E8BFF, #12D6C3); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.of-file.is-busy .of-drop { pointer-events: none; }
.of-file.is-busy .of-drop-ic .i { animation: of-bob .9s ease-in-out infinite alternate; }
@keyframes of-bob { to { transform: translateY(-4px); } }
.of-file.has-file .of-drop { display: none; }
.of-got { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(63, 224, 188, .08); box-shadow: inset 0 0 0 1px rgba(63, 224, 188, .3); }
.of-got-ic { color: #3FE0BC; }
.of-got-t { flex: 1; min-width: 0; display: grid; line-height: 1.6; }
.of-got-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; text-align: right; }
.of-got-t small { color: #B8B5E3; font-size: .75rem; }
.of-got-x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #F4F3FF; background: rgba(255, 255, 255, .08); }
.of-got-x:hover { background: rgba(255, 59, 92, .2); }
.of-got-x .i { width: 16px; height: 16px; }

.of-terms { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.9; cursor: pointer; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.of-terms input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: #12D6C3; }
.of-terms { --tick: 22px; --tick-m: 2px 0 0; }
.of-terms a { color: #12D6C3; font-weight: 700; }
.of-terms.is-err { box-shadow: inset 0 0 0 1.5px var(--danger); }

/* Summary */
.of-sum { display: grid; gap: 14px; min-width: 0; padding: 16px; border-radius: 28px; background: linear-gradient(165deg, rgba(59, 55, 240, .24), rgba(255, 255, 255, .03) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -50px rgba(0, 0, 0, .9); }
.of-sum-card { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0B0A24; }
.of-sum-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.of-form:has(#m-pvc:checked) .of-sum-card img[data-mat="pvc"],
.of-form:has(#m-metal:checked) .of-sum-card img[data-mat="metal"],
.of-form:has(#m-wood:checked) .of-sum-card img[data-mat="wood"] { opacity: 1; transform: none; }
@supports not selector(:has(*)) { .of-sum-card img:first-child { opacity: 1; transform: none; } }
.of-sum-list { margin: 0; padding: 0 4px; display: grid; gap: 8px; }
.of-sum-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-sm); line-height: 1.8; }
.of-sum-list dt { color: #B8B5E3; flex: none; }
.of-sum-list dd { margin: 0; font-weight: 800; text-align: end; }
.of-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 12px 4px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.of-total > span { flex: 1; color: #B8B5E3; font-weight: 700; font-size: var(--fs-sm); }
.of-total b { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1.2; background: linear-gradient(180deg, #FFFFFF 35%, #B9B5FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.of-total small { color: #B8B5E3; font-size: .85rem; }
.of-submit { width: 100%; }
.of-safe { display: flex; gap: 8px; padding: 0 4px; color: #8C89BF; font-size: .78rem; line-height: 1.85; }
.of-safe .i { width: 16px; height: 16px; margin-top: 3px; color: #12D6C3; }
[data-sum] { display: inline-block; }
.is-tick { animation: of-tick .5s var(--ease-out); }
@keyframes of-tick { from { opacity: .2; transform: translateY(5px); } }
.btn.is-busy { opacity: .7; }

/* Phones: total and the button stay at the bottom of the screen. */
.of-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 6, 26, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); transition: transform .45s var(--ease-out); }
.of-bar.is-away { transform: translateY(110%); }
.of-bar-t { flex: 1; min-width: 0; display: grid; line-height: 1.5; }
.of-bar-t > small { color: #B8B5E3; font-size: .75rem; }
.of-bar-t b { font-size: 1.15rem; font-weight: 900; white-space: nowrap; }
.of-bar-t b small { color: #B8B5E3; font-weight: 600; font-size: .75rem; }
.of-bar .btn { min-height: 50px; padding-inline: 1.2rem; }
@media (min-width: 980px) { .of-bar { display: none; } }

/* Closed form, tracking lookup */
.of-closed, .tr { max-width: 600px; }
.of-closed-card, .tr-card { display: grid; gap: 16px; padding: 30px 22px; border-radius: 30px; background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -50px rgba(0, 0, 0, .9); }
@media (min-width: 600px) { .of-closed-card, .tr-card { padding: 38px 36px; } }
.of-closed-card p, .tr-lead { color: #B8B5E3; font-size: var(--fs-sm); line-height: 2; }
.of-closed-ic, .tr-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #07061A; background: linear-gradient(135deg, #12D6C3, #8E8BFF); box-shadow: 0 16px 30px -14px rgba(18, 214, 195, .8); }
.of-closed-ic .i, .tr-ic .i { width: 26px; height: 26px; }
.tr-form { display: grid; gap: 14px; }
.tr-form .btn { width: 100%; }
.site .tr-code { text-align: center; text-transform: uppercase; letter-spacing: .25em; font-weight: 900; font-size: 1.2rem; }
.tr-foot { color: #8C89BF; font-size: var(--fs-sm); }
.tr-foot a { color: #12D6C3; font-weight: 700; }

/* ───────── The buyer's order page ───────── */
.os-code { letter-spacing: .08em; }
.os-badge { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; line-height: 1.9; }
.os-pending { color: #FFC75C; background: rgba(255, 176, 32, .12); }
.os-review { color: #C9C6FF; background: rgba(143, 140, 255, .16); }
.os-paid, .os-shipped { color: #3FE0BC; background: rgba(63, 224, 188, .12); }
.os-printing { color: #8FD3FF; background: rgba(58, 141, 240, .16); }
.os-delivered { color: #fff; background: rgba(255, 255, 255, .12); }
.os-canceled { color: #FF8DA3; background: rgba(255, 59, 92, .12); }
.os-steps { list-style: none; margin: 0; padding: 18px 6px 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 24px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.os-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .82rem; font-weight: 700; color: #8C89BF; }
.os-steps li:not(:last-child)::before { content: ''; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.os-steps li.is-done::before { background: linear-gradient(to left, #12D6C3, #8E8BFF); box-shadow: 0 0 10px rgba(18, 214, 195, .5); }
.os-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #8C89BF; background: #13113A; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.os-dot .i { width: 18px; height: 18px; }
.os-steps .is-done, .os-steps .is-now { color: #F4F3FF; }
.is-done .os-dot { color: #07061A; background: linear-gradient(135deg, #12D6C3, #3A8DF0); box-shadow: 0 8px 18px -8px rgba(18, 214, 195, .9); }
.is-now .os-dot { color: #fff; box-shadow: inset 0 0 0 2px #12D6C3, 0 0 0 6px rgba(18, 214, 195, .12); animation: os-pulse 2.4s ease-in-out infinite; }
@keyframes os-pulse { 50% { box-shadow: inset 0 0 0 2px #12D6C3, 0 0 0 10px rgba(18, 214, 195, .05); } }
@media (max-width: 420px) { .os-steps li { font-size: .72rem; } .os-dot { width: 34px; height: 34px; } .os-steps li:not(:last-child)::before { top: 16px; } }
.os-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .os-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.os-col { display: grid; gap: 18px; min-width: 0; }
.os-box { display: grid; gap: 14px; min-width: 0; padding: 22px 16px; border-radius: 26px; background: linear-gradient(165deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
@media (min-width: 720px) { .os-box { padding: 26px; } }
.os-box-t { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 900; line-height: 1.6; }
.os-box-t .i { color: #12D6C3; }
.os-text { color: #DCDAF7; font-size: var(--fs-sm); line-height: 2; }
.os-text a { color: #12D6C3; font-weight: 700; }
.os-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 20px; background: rgba(18, 214, 195, .07); box-shadow: inset 0 0 0 1px rgba(18, 214, 195, .25); }
.os-amount > span { grid-column: 1 / -1; color: #B8B5E3; font-size: .82rem; font-weight: 700; }
.os-amount b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: 1.25; }
.os-amount b small { font-family: var(--font); font-size: .85rem; color: #B8B5E3; }
.os-cardnum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 18px 16px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #2B27C9, #6A2FE0 60%, #1BA7B8 130%); box-shadow: 0 24px 40px -24px rgba(74, 70, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.os-cardnum-n { grid-column: 1 / -1; font-size: clamp(1.2rem, 5.6vw, 1.6rem); font-weight: 900; letter-spacing: .05em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.os-track { font-size: clamp(1rem, 4.5vw, 1.4rem); letter-spacing: .03em; white-space: normal; overflow-wrap: anywhere; }
.os-cardnum-h { min-width: 0; font-size: .85rem; line-height: 1.8; color: rgba(255, 255, 255, .85); }
.os-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; color: #fff; font-weight: 800; font-size: .78rem; background: rgba(255, 255, 255, .14); transition: background-color .2s ease, color .2s ease; }
.os-copy:hover { background: rgba(255, 255, 255, .22); }
.os-copy .i { width: 16px; height: 16px; }
.os-copy.is-copied { color: #07061A; background: #12D6C3; }
.os-copy-sm { min-height: 30px; padding: 4px 8px; vertical-align: middle; }
.os-sheba { font-size: .82rem; color: #B8B5E3; overflow-wrap: anywhere; }
.os-payform { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.os-sub { font-size: .95rem; font-weight: 900; }
.os-submit { width: 100%; }
.os-dl { margin: 0; display: grid; gap: 8px; }
.os-dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; font-size: var(--fs-sm); line-height: 1.9; }
.os-dl dt { color: #8C89BF; }
.os-dl dd { margin: 0; color: #F4F3FF; overflow-wrap: anywhere; }
.os-money { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.os-money > div { grid-template-columns: minmax(0, 1fr) auto; }
.os-money dd { text-align: end; font-weight: 800; }
.os-sum dt, .os-sum dd { color: #F4F3FF; font-size: 1.05rem; font-weight: 900; }
.os-files { display: grid; gap: 4px; }
.os-files > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.os-files .i { width: 16px; height: 16px; color: #12D6C3; }
.os-files bdi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-addr { color: #DCDAF7; font-size: var(--fs-sm); line-height: 2; }
.os-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.os-actions .btn { min-height: 48px; font-size: var(--fs-sm); }
/* Phones and tablets: the help buttons fill the box, one under the other, all the same width. */
@media (max-width: 959px) { .os-actions { display: grid; } .os-actions .btn { width: 100%; justify-content: center; } }
@media (min-width: 600px) and (max-width: 899px) { .doc-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; } }
.of-closed-ask { color: #8C89BF !important; font-size: var(--fs-sm); }
.of-closed-ask a { margin-inline: 5px; color: #12D6C3; font-weight: 700; }

/* ───────── Design approval, more details, cancelling (buyer's order page) ───────── */
.os-form { display: grid; gap: 14px; }
.os-pre { white-space: pre-line; }
.os-proof.is-waiting { background: linear-gradient(165deg, rgba(18, 214, 195, .13), rgba(59, 55, 240, .1) 60%, rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1.5px rgba(18, 214, 195, .55), 0 30px 60px -40px rgba(18, 214, 195, .6); }
.os-proof-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.os-ds { padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; line-height: 1.9; white-space: nowrap; }
.os-ds-waiting { color: #07061A; background: #12D6C3; }
.os-ds-approved { color: #3FE0BC; background: rgba(63, 224, 188, .14); }
.os-ds-changes { color: #FFC75C; background: rgba(255, 176, 32, .13); }
.os-ds-replaced { color: #B8B5E3; background: rgba(255, 255, 255, .08); }
.os-proof-imgs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .os-proof-imgs:has(figure + figure) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.os-proof-imgs figure { margin: 0; display: grid; gap: 6px; }
.os-proof-imgs img { display: block; width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 40px -26px rgba(0, 0, 0, .9); }
.os-proof-imgs figcaption { color: #B8B5E3; font-size: .8rem; font-weight: 700; text-align: center; }
.os-proof-pdf { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; border-radius: 16px; color: #12D6C3; font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.os-proof-note { padding: 12px 14px; border-radius: 14px; color: #DCDAF7; font-size: var(--fs-sm); line-height: 1.9; background: rgba(255, 255, 255, .04); }
.os-proof-note b { color: #12D6C3; }
.os-ok-line { display: flex; gap: 8px; align-items: flex-start; color: #CFF8EE; }
.os-ok-line .i { flex: none; width: 20px; height: 20px; margin-top: 5px; color: #3FE0BC; }
.os-more { border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.os-more > summary { display: flex; align-items: center; gap: 8px; padding: 13px 14px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 800; color: #DCDAF7; }
.os-more > summary::-webkit-details-marker { display: none; }
.os-more > summary .i { width: 18px; height: 18px; color: #12D6C3; }
.os-more > summary::after { content: ''; margin-inline-start: auto; width: 8px; height: 8px; border-right: 2px solid #8C89BF; border-bottom: 2px solid #8C89BF; transform: rotate(45deg); transition: transform .3s ease; }
.os-more[open] > summary::after { transform: rotate(-135deg); }
.os-more > form, .os-more > ul { padding: 0 14px 14px; }
.os-history ul { list-style: none; margin: 0; display: grid; gap: 12px; font-size: var(--fs-sm); color: #DCDAF7; line-height: 1.9; }
.os-history li span { color: #B8B5E3; }
.os-history-imgs { display: flex; gap: 8px; margin-top: 6px; }
.os-history-imgs a { display: grid; place-items: center; width: 96px; height: 60px; border-radius: 10px; overflow: hidden; color: #12D6C3; font-weight: 800; font-size: .75rem; text-decoration: none; background: rgba(255, 255, 255, .06); }
.os-history-imgs img { width: 100%; height: 100%; object-fit: cover; }
.os-cancel { padding: 0; }
.os-cancel > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 20px 16px; cursor: pointer; list-style: none; }
@media (min-width: 720px) { .os-cancel > summary { padding: 22px 26px; } }
.os-cancel > summary::-webkit-details-marker { display: none; }
.os-cancel > summary .os-box-t .i { color: #FF8DA3; }
.os-cancel-hint { color: #8C89BF; font-size: .8rem; }
.os-cancel > summary::after { content: ''; margin-inline-start: auto; width: 9px; height: 9px; border-right: 2px solid #8C89BF; border-bottom: 2px solid #8C89BF; transform: rotate(45deg); transition: transform .3s ease; }
.os-cancel[open] > summary::after { transform: rotate(-135deg); }
.os-cancel > form, .os-cancel > .sn { margin: 0 16px 20px; }
@media (min-width: 720px) { .os-cancel > form, .os-cancel > .sn { margin: 0 26px 24px; } }
.os-cancel-btn { min-height: 52px; border-radius: 16px; color: #FFD6DE; background: rgba(255, 59, 92, .16); box-shadow: inset 0 0 0 1px rgba(255, 59, 92, .45); }
.os-cancel-btn:hover { background: rgba(255, 59, 92, .26); }
.of-got-thumb { flex: none; width: 56px; height: 36px; border-radius: 8px; overflow: hidden; background: #fff; }
.of-got-thumb img { width: 100%; height: 100%; object-fit: cover; }
.of-got-thumb:not([hidden]) + .of-got-ic { display: none; }
.os-nowrap { white-space: nowrap; }

/* ───────── Official invoice details (order form, order page, admin) ───────── */
.inv-fields { display: grid; gap: 14px; }
.inv-type { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inv-type label { position: relative; cursor: pointer; }
.inv-type input { position: absolute; opacity: 0; pointer-events: none; }
.inv-type span { display: inline-flex; padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 800; color: #DCDAF7; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .2s ease, color .2s ease; }
.inv-type input:checked + span { color: #07061A; background: linear-gradient(135deg, #12D6C3, #8E8BFF); box-shadow: none; }
.inv-type input:focus-visible + span { outline: 3px solid #8E8BFF; outline-offset: 2px; }
.inv-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inv-wide { grid-column: 1 / -1; } }
.inv-grid > .field { margin-top: 0; }
.inv-co, .inv-co-field { display: none; }
.inv-fields:has(input[value="company"]:checked) .inv-co { display: inline; }
.inv-fields:has(input[value="company"]:checked) .inv-pe { display: none; }
.inv-fields:has(input[value="company"]:checked) .inv-co-field { display: grid; }
@supports not selector(:has(*)) { .inv-co-field { display: grid; } .inv-co { display: inline; } .inv-co::before { content: ' / '; } }
.of-inv { display: grid; gap: 14px; }
.of-inv-box { display: none; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.of-inv:has(#want-invoice:checked) .of-inv-box { display: grid; gap: 12px; }
@supports not selector(:has(*)) { .of-inv-box { display: grid; } }
.of-inv-hint { color: #B8B5E3; font-size: .82rem; line-height: 1.9; }
