/* Sitix platform styles (landing, viewer, order, track, admin). Demos have their own CSS. */
:root {
  --accent: #7c3aed;
  --accent-b: #ec4899;
  --accent-c: #0ea5e9;
  --on-accent: #ffffff;
  --ink: #12131a;
  --ink-2: #454857;
  --ink-3: #7a7d8c;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e4e2db;
  --night: #0c0d12;
  --night-2: #161822;
  --ok: #12805c;
  --bad: #c2303a;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 30%, #fff);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(18 19 26 / 0.05), 0 12px 32px -12px rgb(18 19 26 / 0.18);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0; /* Persian script: tracking breaks the joins */
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.num {
  font-feature-settings: "tnum";
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -10px var(--accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
}
.btn-light {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
  color: #fff;
}
.btn-light:hover {
  background: rgb(255 255 255 / 0.16);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- brand ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
}
.logo svg,
.logo .logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo-mark-bg {
  fill: var(--accent);
}
.logo-mark-fg {
  stroke: var(--on-accent);
}

/* ---------- swatches ---------- */
.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
  padding: 0;
  background: var(--c);
  flex: none;
  transition: transform 0.15s;
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c);
  transform: scale(1.08);
}
.swatch-custom {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
  border: 2px solid rgb(255 255 255 / 0.85);
  overflow: hidden;
}
.swatch-custom input {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  opacity: 0;
  cursor: pointer;
}
.swatch-custom:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff);
  outline-offset: 2px;
}

/* ---------- live preview (scaled iframe) ---------- */
.preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--s, 0.3));
  pointer-events: none;
}

.demo-cat {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

/* ---------- simple pages (order, track, admin) ---------- */
.page-head {
  background: var(--night);
  color: #fff;
}
.page-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.page-head a.back {
  font-size: 14px;
  color: rgb(255 255 255 / 0.75);
}
.page-head a.back:hover {
  color: #fff;
}
.page {
  padding: 40px 0 72px;
}
.page h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}
.page .sub {
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 640px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}
.order-side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}
.order-side .preview {
  border-radius: 14px;
  border: 1px solid var(--line);
}
.order-side h2 {
  font-size: 18px;
  font-weight: 800;
}
.order-side .demo-cat {
  display: block;
}
.side-colors {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
  }
  .order-side {
    position: static;
    order: -1;
  }
}

.form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.field .label {
  font-weight: 700;
  font-size: 14.5px;
}
.field .hint {
  font-size: 13px;
  color: var(--ink-3);
}
.field .opt {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13px;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.input[aria-invalid="true"] {
  border-color: var(--bad);
}
textarea.input {
  min-height: 120px;
  resize: vertical;
}
.err {
  color: var(--bad);
  font-size: 13px;
  min-height: 0;
}
.form h2 {
  font-size: 18px;
  font-weight: 800;
  padding-top: 6px;
}

.drop {
  border: 2px dashed var(--accent-line);
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  color: var(--ink-2);
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: block;
}
.drop b {
  color: var(--accent);
}
.drop.over {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, #fff);
}
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.drop:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff);
  outline-offset: 2px;
}
.files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
}
.files .fname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: right;
}
.files .fsize {
  color: var(--ink-3);
  font-size: 13px;
  flex: none;
}
.files button {
  border: 0;
  background: none;
  color: var(--bad);
  font-size: 13px;
  padding: 2px 6px;
  flex: none;
}
.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}
.notice {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14.5px;
}
.notice.bad {
  background: color-mix(in srgb, var(--bad) 9%, #fff);
  color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, #fff);
}
.notice.ok {
  background: color-mix(in srgb, var(--ok) 9%, #fff);
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, #fff);
}

/* div only: a bare .done also matched the order stepper and track timeline items and pushed them 30px down */
div.done {
  text-align: center;
  max-width: 560px;
  margin: 30px auto 0;
}
.done .tick {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 12%, #fff);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.done .tick svg {
  width: 36px;
  height: 36px;
}
.code-box {
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px dashed var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.code-box code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  direction: ltr;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.timeline li {
  padding-top: 14px;
  border-top: 4px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
}
.timeline li.on {
  border-color: var(--accent);
  color: var(--ink);
}
@media (max-width: 560px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  font-size: 15px;
  margin: 0;
}
.kv dt {
  color: var(--ink-3);
}
.kv dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15);
  vertical-align: -2px;
  margin-inline-end: 6px;
}
.stack {
  display: grid;
  gap: 20px;
}
.narrow {
  max-width: 560px;
}

/* ---------- admin ---------- */
.admin-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
}
.filter {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.orders {
  display: grid;
  gap: 16px;
}
.order {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  align-items: baseline;
}
.order-top h2 {
  font-size: 18px;
  font-weight: 800;
}
.order-top code {
  direction: ltr;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 6px;
}
.order-meta {
  color: var(--ink-3);
  font-size: 13px;
}
.order-notes {
  white-space: pre-wrap;
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.order-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-files a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  max-width: 240px;
}
.order-files a:hover {
  border-color: var(--accent);
}
.order-files img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.order-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}
.order-edit {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 10px;
  align-items: start;
}
.order-edit textarea.input {
  min-height: 46px;
  height: 46px;
}
@media (max-width: 700px) {
  .order-edit {
    grid-template-columns: 1fr;
  }
}
.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 50px 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* no single-word last lines in body copy */
p,
li,
.btn {
  text-wrap: pretty;
}
/* ---------- AI design consultant (assets/assistant.js) ---------- */
.sxa {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  font-family: var(--font);
  color: #f4f4f7;
}
.sxa-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(16 12 30 / 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px #7c3aed, 0 0 0 1px rgb(0 0 0 / 0.3);
  transition: transform 0.2s;
}
.sxa-launch:hover {
  transform: translateY(-2px);
}
.sxa-launch img {
  border-radius: 9px;
}
.sxa-ai {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  direction: ltr;
}
.sxa.open .sxa-launch {
  display: none;
}
/* compact (icon + AI) so it stays clear of page content; the label shows on hover/focus */
.sxa-launch:not(:hover):not(:focus-visible) {
  padding: 8px 12px 8px 8px;
}
.sxa-launch:not(:hover):not(:focus-visible) span {
  display: none;
}
.sxa-panel {
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0b1d;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8), 0 0 60px -20px #7c3aed;
}
.sxa-panel[hidden] {
  display: none;
}
.sxa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgb(124 58 237 / 0.35), rgb(236 72 153 / 0.2));
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.sxa-head img {
  border-radius: 10px;
}
.sxa-head div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  min-width: 0;
}
.sxa-head b {
  font-size: 15.5px;
}
.sxa-head span {
  font-size: 12px;
  color: rgb(244 244 247 / 0.65);
}
.sxa-x {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.sxa-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sxa-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.sxa-msg.assistant {
  align-self: flex-start;
  background: rgb(255 255 255 / 0.07);
  border-start-start-radius: 6px;
}
.sxa-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-start-end-radius: 6px;
}
.sxa-msg.error {
  background: rgb(255 107 118 / 0.14);
  color: #ffb4bb;
}
.sxa-msg a {
  color: #f9a8d4;
  text-decoration: underline;
  direction: ltr;
  unicode-bidi: isolate;
}
.sxa-thumb {
  display: block;
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.sxa-msg.typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
}
.sxa-msg.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  animation: sxa-dot 1s infinite ease-in-out;
}
.sxa-msg.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.sxa-msg.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes sxa-dot {
  50% {
    transform: translateY(-5px);
    opacity: 0.4;
  }
}
.sxa-brief {
  align-self: stretch;
  padding: 14px;
  border-radius: 16px;
  background: rgb(53 224 161 / 0.08);
  border: 1px solid rgb(53 224 161 / 0.35);
  font-size: 14px;
}
.sxa-brief dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0 12px;
}
.sxa-brief dt {
  color: rgb(244 244 247 / 0.55);
}
.sxa-brief dd {
  margin: 0;
}
.sxa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sxa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.sxa-chips[hidden] {
  display: none;
}
.sxa-chips button {
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
  color: rgb(244 244 247 / 0.85);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.sxa-chips button:hover {
  background: rgb(255 255 255 / 0.12);
}
.sxa-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  flex-wrap: wrap;
}
.sxa-att {
  position: relative;
  width: 100%;
}
.sxa-att img {
  height: 64px;
  border-radius: 10px;
}
.sxa-att button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #000;
  color: #fff;
}
.sxa-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14.5px;
  line-height: 1.6;
}
.sxa-form textarea::placeholder {
  /* a one-row box: keep the hint on one line instead of a clipped second line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sxa-form textarea:focus {
  outline: none;
  border-color: #a78bfa;
}
.sxa-pic,
.sxa-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
}
.sxa-pic {
  background: rgb(255 255 255 / 0.07);
  color: rgb(244 244 247 / 0.8);
}
.sxa-pic input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.sxa-send {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}
.sxa-pic svg,
.sxa-send svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 600px) {
  .sxa {
    left: 12px;
    bottom: 12px;
  }
  .sxa-launch span {
    display: none;
  }
  .sxa-launch {
    padding: 8px 12px 8px 8px;
  }
  .sxa.open {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .sxa-panel {
    width: 100%;
    height: calc(100dvh - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sxa-msg.typing i {
    animation: none;
  }
}

/* password fields: eye toggle */
.pw-wrap {
  position: relative;
  display: block;
}
.pw-wrap > input {
  width: 100%;
}
.pw-eye {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
}
.pw-eye:hover,
.pw-eye:focus-visible {
  opacity: 1;
  background: rgb(127 127 127 / 0.15);
}

/* ================= phones: platform-wide mobile pass ================= */
html {
  -webkit-text-size-adjust: 100%;
}
a,
button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 760px) {
  /* every control is a comfortable thumb target */
  .btn,
  .btn-sm {
    min-height: 44px;
  }
  .btn:active,
  .link:active,
  .swatch:active {
    opacity: 0.85;
  }
  .logo {
    min-height: 44px;
  }
  /* iOS zooms into any field under 16px */
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  select,
  textarea {
    font-size: 16px;
  }
  .swatch,
  .swatch-custom,
  .viewer .swatch,
  .viewer .swatch-custom {
    width: 40px;
    height: 40px;
  }
  .swatch:hover {
    transform: none;
  }

}
@media (max-width: 760px) {
  .pw-eye {
    width: 44px;
    height: 44px;
  }
}

/* ================= demo viewer (/demo/<slug>) + customization panel ================= */
.viewer {
  --vp-bg: #0f1017;
  --vp-tile: rgb(255 255 255 / 0.035);
  --vp-edge: rgb(255 255 255 / 0.09);
  --vp-edge-2: rgb(255 255 255 / 0.16);
  --vp-fg: #f4f4f7;
  --vp-fg-2: rgb(244 244 247 / 0.72);
  --vp-fg-3: rgb(244 244 247 / 0.6);
  --vp-hl: #a78bfa;
  --vp-hl-ink: #c4b5fd;
  --vp-hl-soft: rgb(167 139 250 / 0.13);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  overflow: hidden;
}
.viewer :focus-visible {
  outline: 2px solid #f0abfc;
  outline-offset: 2px;
}

/* ---- top bar ---- */
.vbar {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 16px;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: linear-gradient(180deg, #11121a, var(--night));
}
.vbar .logo {
  font-size: 19px;
}
.vbar .logo svg,
.vbar .logo .logo-mark {
  width: 28px;
  height: 28px;
}
.vtitle {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgb(255 255 255 / 0.14);
}
.vtitle b {
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vtitle span {
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.66);
}
.devices {
  display: flex;
  margin-inline-start: auto;
  background: rgb(255 255 255 / 0.06);
  border-radius: 12px;
  padding: 3px;
}
.devices button {
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.62);
  padding: 7px 10px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.devices button svg {
  width: 19px;
  height: 19px;
}
.devices button[aria-pressed="true"] {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
.vbar .vdesign-btn {
  gap: 7px;
  color: #fff;
  background: rgb(255 255 255 / 0.06);
  border-color: var(--vp-edge-2);
}
.vbar .vdesign-btn:hover {
  background: rgb(255 255 255 / 0.11);
}
.vbar .vdesign-btn[aria-expanded="true"] {
  background: var(--vp-hl-soft);
  border-color: rgb(167 139 250 / 0.5);
  color: #ede9fe;
}
.viewer .btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* ---- frame ---- */
.vbody {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.vframe {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: repeating-conic-gradient(#14161d 0 25%, #10121a 0 50%) 0 0 / 24px 24px;
}
.vframe iframe {
  display: block;
  flex: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  transition: width 0.3s ease;
}
.vframe[data-device="tablet"] iframe {
  width: min(820px, 100%);
}
.vframe[data-device="mobile"] iframe {
  width: min(400px, 100%);
}
.vframe:not([data-device="desktop"]) {
  padding: 14px 0 0;
}
.vframe:not([data-device="desktop"]) iframe {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
}

/* ---- panel: a drawer on the right (first in RTL) ---- */
.vp {
  width: 384px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--vp-bg);
  color: var(--vp-fg);
  border-inline-end: 1px solid var(--vp-edge);
  box-shadow: 12px 0 40px -24px rgb(0 0 0 / 0.8);
  position: relative;
  z-index: 2;
}
.vp[hidden] {
  display: none !important;
}
.vp-grip {
  display: none;
}
.vp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
}
.vp-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.vp-title b {
  font-size: 16.5px;
  font-weight: 800;
}
.vp-title span {
  font-size: 12.5px;
  color: var(--vp-fg-3);
  line-height: 1.7;
}
.vp-tools {
  display: flex;
  gap: 6px;
  flex: none;
}
.vp-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--vp-edge);
  background: var(--vp-tile);
  color: var(--vp-fg-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vp-icon svg {
  width: 19px;
  height: 19px;
}
.vp-icon:hover:not(:disabled) {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border-color: var(--vp-edge-2);
}
.vp-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

/* tabs */
.vp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--vp-edge);
}
.vp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vp-fg-3);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vp-tab[hidden] {
  display: none;
}
.vp-tab .vp-ic {
  width: 18px;
  height: 18px;
  flex: none;
}
.vp-tab:hover {
  color: var(--vp-fg);
  background: var(--vp-tile);
}
.vp-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgb(167 139 250 / 0.2), rgb(236 72 153 / 0.1));
  border-color: rgb(167 139 250 / 0.4);
}
.vp-tab[aria-selected="true"] .vp-ic {
  color: var(--vp-hl-ink);
}

/* scrolling body */
.vp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.18) transparent;
}
.vp-panel {
  padding: 16px 18px 6px;
}
.vp-panel:focus {
  outline: none;
}
.vp-intro {
  font-size: 13px;
  line-height: 1.95;
  color: var(--vp-fg-3);
  margin: 0 0 16px;
}
.vp-group {
  margin: 0 0 22px;
}
.vp-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--vp-fg);
}
.vp-sub {
  margin: -6px 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--vp-fg-3);
}

/* option tiles with a schematic drawing */
.vp-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vp-tiles-3 {
  grid-template-columns: repeat(3, 1fr);
}
.vp-tile,
.vp-preset,
.vp-seg-b {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1.5px solid var(--vp-edge);
  background: var(--vp-tile);
  color: var(--vp-fg);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.vp-tile:hover,
.vp-preset:hover,
.vp-seg-b:hover {
  border-color: var(--vp-edge-2);
  background: rgb(255 255 255 / 0.055);
}
.vp-tile[aria-checked="true"],
.vp-preset[aria-checked="true"],
.vp-seg-b[aria-checked="true"] {
  border-color: var(--vp-hl);
  background: var(--vp-hl-soft);
  box-shadow: 0 0 0 3px rgb(167 139 250 / 0.16);
}
/* a small tick on the chosen card */
.vp-tile[aria-checked="true"]::after,
.vp-preset[aria-checked="true"]::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vp-hl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23120f1f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 3px var(--vp-bg);
}
.vp-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 72 / 48;
  border-radius: 9px;
}
.vp-tile-txt,
.vp-preset-txt {
  display: grid;
  gap: 1px;
  padding: 0 4px 2px;
  line-height: 1.6;
}
.vp-tile-txt b,
.vp-preset-txt b {
  font-size: 13.5px;
  font-weight: 700;
}
.vp-tile-txt small,
.vp-preset-txt small {
  font-size: 12px;
  color: var(--vp-fg-3);
  line-height: 1.6;
}
.vp-tiles-3 .vp-tile-txt small {
  display: none;
}
.vp-tiles-3 .vp-tile-txt {
  text-align: center;
}
.vp-tiles-3 .vp-tile[aria-checked="true"]::after {
  top: 9px;
  left: 9px;
  width: 17px;
  height: 17px;
  background-size: 10px;
}
/* drawing colours */
.th-f { fill: #1b1c28; stroke: rgb(255 255 255 / 0.1); }
.th-i { fill: rgb(255 255 255 / 0.55); }
.th-d { fill: rgb(255 255 255 / 0.12); }
.th-d2 { fill: rgb(255 255 255 / 0.05); }
.th-h { fill: var(--vp-hl); }
.th-m { fill: rgb(167 139 250 / 0.3); }
.th-w { fill: #fff; }
.th-w2 { fill: rgb(255 255 255 / 0.72); }
.th-w3 { fill: rgb(255 255 255 / 0.4); }
.th-k { fill: #050507; }
.th-p { fill: #2a2c3d; stroke: rgb(255 255 255 / 0.2); stroke-width: 0.8; }
.th-o { fill: none; stroke: var(--vp-hl); stroke-width: 1.6; }
.th-t { fill: #fff; font-family: var(--font); }
.vp-tile[aria-checked="true"] .th-f {
  fill: #221f35;
}

/* presets */
.vp-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vp-preset-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 96 / 60;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

/* colours */
.vp .swatches {
  gap: 10px;
}
.vp .swatch {
  width: 32px;
  height: 32px;
  border-color: rgb(255 255 255 / 0.9);
}
.vp .swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--vp-bg), 0 0 0 4px var(--c);
}
.vp .swatch-custom {
  width: 32px;
  height: 32px;
}
.vp .swatch-custom.on {
  box-shadow: 0 0 0 2px var(--vp-bg), 0 0 0 4px #fff;
}
.vp-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.vp-swatches-in {
  display: contents;
}
.vp-chip {
  min-height: 36px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--vp-edge-2);
  background: transparent;
  color: var(--vp-fg-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.vp-chip[aria-pressed="true"] {
  background: var(--vp-hl-soft);
  border-color: var(--vp-hl);
  color: #fff;
}
.vp-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vp-seg-b {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px;
}
.vp-seg-b .vp-ic {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--vp-hl-ink);
}
.vp-seg-b span {
  display: grid;
  line-height: 1.5;
}
.vp-seg-b b {
  font-size: 14px;
}
.vp-seg-b small {
  font-size: 12px;
  color: var(--vp-fg-3);
}

/* brand & text */
.vp-field {
  margin: 0 0 16px;
}
.vp-label {
  display: grid;
  gap: 1px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.vp-label b {
  font-size: 13.5px;
  font-weight: 700;
}
.vp-label small {
  font-size: 12px;
  color: var(--vp-fg-3);
}
.vp-input {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--vp-edge-2);
  background: rgb(255 255 255 / 0.04);
  color: var(--vp-fg);
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vp-input::placeholder {
  color: rgb(244 244 247 / 0.36);
}
.vp-input:focus {
  outline: none;
  border-color: var(--vp-hl);
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 3px rgb(167 139 250 / 0.2);
}
textarea.vp-input {
  resize: vertical;
  min-height: 92px;
}
.vp-field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  min-height: 32px;
}
.vp-count {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--vp-fg-3);
  font-variant-numeric: tabular-nums;
}
.vp-count.near {
  color: #fcd34d;
}
.vp-link {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vp-hl-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(196 181 253 / 0.4);
}
.vp-link[hidden] {
  display: none;
}
.vp-danger {
  color: #fca5a5;
  text-decoration-color: rgb(252 165 165 / 0.4);
}
.vp-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vp-logo-prev {
  width: 124px;
  height: 80px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--vp-edge-2);
  background: repeating-conic-gradient(#20212c 0 25%, #191a24 0 50%) 0 0 / 14px 14px;
  overflow: hidden;
}
.vp-logo-prev img {
  max-width: 88%;
  max-height: 76%;
  object-fit: contain;
}
.vp-logo-prev img[hidden],
.vp-logo-empty[hidden] {
  display: none;
}
.vp-logo-empty {
  font-size: 12px;
  color: var(--vp-fg-3);
}
.vp-logo-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.vp-btn2 {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: rgb(255 255 255 / 0.07);
  border-color: var(--vp-edge-2);
  cursor: pointer;
}
.vp-btn2:hover {
  background: rgb(255 255 255 / 0.12);
}
.vp-btn2:focus-within {
  outline: 2px solid #f0abfc;
  outline-offset: 2px;
}
.vp-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.vp-hint {
  font-size: 12px;
  color: var(--vp-fg-3);
  line-height: 1.7;
}

/* sections */
.vp-secs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.vp-sec {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 14px;
  border: 1px solid var(--vp-edge);
  background: var(--vp-tile);
  transition: background 0.15s;
}
.vp-sec.drag {
  position: relative;
  z-index: 3;
  background: #1f2030;
  border-color: rgb(167 139 250 / 0.6);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.8);
  transition: none;
}
.vp-sec.off .vp-sec-name {
  color: var(--vp-fg-3);
  text-decoration: line-through;
  text-decoration-color: rgb(244 244 247 / 0.35);
}
.vp-grab,
.vp-mini {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--vp-fg-3);
  cursor: pointer;
}
.vp-grab {
  cursor: grab;
  touch-action: none;
}
.vp-sec.drag .vp-grab {
  cursor: grabbing;
}
.vp-grab .vp-ic,
.vp-mini .vp-ic {
  width: 18px;
  height: 18px;
}
.vp-grab .vp-ic {
  stroke-width: 3.2;
}
.vp-grab:hover,
.vp-mini:hover:not(:disabled) {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}
.vp-mini:disabled {
  opacity: 0.25;
  cursor: default;
}
.vp-sec-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 2px 4px;
}
.vp-switch {
  width: 52px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.vp-switch i {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  transition: background 0.2s;
}
/* RTL switch: off = knob on the right, on = knob slides left */
.vp-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  transition: transform 0.2s;
}
.vp-switch[aria-checked="true"] i {
  background: var(--vp-hl);
}
.vp-switch[aria-checked="true"] i::after {
  transform: translateX(-16px);
}

/* footer: share + order */
.vp-foot {
  flex: none;
  padding: 12px 18px 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--vp-edge);
  background: var(--vp-bg);
}
.vp-toast {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.8;
  color: #bbf7d0;
  transition: max-height 0.25s ease, margin 0.25s ease;
  overflow-wrap: anywhere;
}
.vp-toast.on {
  max-height: 72px;
  margin-bottom: 10px;
}
.vp-toast.bad {
  color: #fca5a5;
}
.vp-actions {
  display: flex;
  gap: 10px;
}
.vp-actions .btn {
  min-height: 44px;
}
.vp-share {
  flex: none;
  gap: 7px;
  color: #fff;
  background: rgb(255 255 255 / 0.07);
  border-color: var(--vp-edge-2);
}
.vp-share:hover {
  background: rgb(255 255 255 / 0.12);
}
.vp-share.done {
  color: #bbf7d0;
  border-color: rgb(134 239 172 / 0.5);
}
.vp-order {
  flex: 1;
  box-shadow: 0 10px 30px -12px var(--accent);
}

/* support + legal links at the end of the scroll area */
.vd-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 6px 18px 0;
  padding: 8px 0 12px;
  border-top: 1px solid var(--vp-edge);
  font-size: 12.5px;
}
.vd-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  min-width: 44px;
  color: var(--vp-fg-3);
}
.vd-legal a:first-child {
  flex-basis: 100%;
  gap: 0.3em; /* flex drops the space before the number */
  color: var(--vp-fg-2);
  font-weight: 700;
}
.vd-legal a:hover {
  color: #fff;
}
.vp-scrim {
  display: none;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .vp {
    width: 344px;
  }
  .vtitle {
    display: none;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .devices {
    display: none;
  }
  .vbar .vdesign-btn {
    margin-inline-start: auto;
  }
}

/* ---- phones: one-row toolbar + the panel as a bottom sheet ---- */
@media (max-width: 760px) {
  .vbar {
    gap: 8px;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
  }
  .vtitle,
  .devices {
    display: none;
  }
  .vbar .logo .logo-txt {
    display: none;
  }
  .vbar .logo {
    min-width: 44px;
    justify-content: center;
  }
  .vbar .logo svg,
  .vbar .logo .logo-mark {
    width: 32px;
    height: 32px;
  }
  .vbar .vdesign-btn {
    margin-inline-start: auto;
    padding-inline: 14px;
  }
  .vbar #v-order {
    padding-inline: 16px;
  }
  .vp {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    height: min(74dvh, 680px);
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px rgb(0 0 0 / 0.55), 0 -1px 0 rgb(255 255 255 / 0.1);
    z-index: 120;
    animation: vp-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .vp-grip {
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: rgb(255 255 255 / 0.25);
    flex: none;
  }
  .vp-head {
    align-items: center;
    padding: 6px 16px 10px;
  }
  .vp-title span {
    display: none;
  }
  .vp-icon {
    width: 44px;
    height: 44px;
  }
  .vp-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 16px 10px;
    scrollbar-width: none;
    scroll-padding-inline: 16px;
  }
  .vp-tabs::-webkit-scrollbar {
    display: none;
  }
  .vp-tabs {
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
  .vp-tab {
    flex: none;
    min-height: 44px;
    padding: 6px 14px;
    border-color: var(--vp-edge);
    font-size: 14px;
  }
  .vp-panel {
    padding: 14px 16px 4px;
  }
  .vp-tile-txt b,
  .vp-preset-txt b {
    font-size: 14px;
  }
  .vp-tile-txt small,
  .vp-preset-txt small {
    font-size: 12.5px;
  }
  .vp-chip {
    min-height: 40px;
  }
  .vp-link {
    min-height: 40px;
    font-size: 13px;
  }
  .vp .swatch,
  .vp .swatch-custom {
    width: 40px;
    height: 40px;
  }
  .vd-legal {
    margin-inline: 16px;
  }
  .vp-foot {
    padding: 10px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .vp-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgb(5 5 10 / 0.38);
  }
  .vp-scrim[hidden] {
    display: none;
  }
}
@media (max-width: 360px) {
  .vbar {
    gap: 6px;
    padding-inline: 10px;
  }
  .vbar .vdesign-btn svg {
    display: none;
  }
  .vbar .vdesign-btn,
  .vbar #v-order {
    padding-inline: 11px;
    font-size: 13px;
  }
  .vp-tiles-3 .vp-tile-txt b {
    font-size: 12.5px;
  }
}
@keyframes vp-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vp {
    animation: none;
  }
}

/* a phone number never breaks across lines inside running text */
a[href^="tel:"] bdi { white-space: nowrap; }

/* tucked: the button slid aside because a page control is underneath; a slim tab stays tappable */
.sxa { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.sxa.tuck { transform: translateX(calc(-100% + 2px)); }
.sxa.tuck .sxa-launch { border-radius: 0 999px 999px 0; box-shadow: 0 8px 20px -10px #7c3aed; }
.sxa.tuck .sxa-launch::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 18px; border-radius: 0 12px 12px 0; background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sxa-launch { position: relative; }
/* tucked tab: only a 10px strip at the very screen edge, clear of page gutters */
.sxa.tuck { transform: translateX(calc(-100% - 20px)); }
.sxa.tuck .sxa-launch::after { right: -10px; width: 10px; border-radius: 0 10px 10px 0; }
.sxa.tuck { left: 0 !important; transform: translateX(-100%); }
