/* Quartz Eon seller dashboard. Loaded after style.css, so it reuses its tokens and components
   (buttons, fields, chips) and only adds what this page needs on top. Shares its login/denied
   panel look with admin.html: see the .admin-panel / .admin-title / .admin-lead rules below,
   copied here so this page does not depend on css/admin.css. */

.admin-header .brand__word { margin-right: 4px; }
/* The header buttons wrap on small screens instead of pushing the page wider than the screen. */
.admin-header .site-header__row { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; }
.admin-header .site-header__actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) { .admin-header .site-header__actions .btn { padding-inline: 14px; min-height: 40px; font-size: 14px; } }
@media (max-width: 400px) {
  .admin-header .site-header__row { gap: 8px 6px; }
  .admin-header .site-header__actions { gap: 4px; }
  .admin-header .site-header__actions .btn { padding-inline: 10px; min-height: 36px; font-size: 13.5px; }
  .admin-header .site-header__actions .btn--logout { width: 36px; padding: 0; }
}
.admin-tag {
  padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.admin-main { padding-block: clamp(32px, 5vw, 56px) 72px; }

.admin-panel {
  display: grid; justify-items: start; gap: 16px; width: min(500px, 100%); margin-inline: auto;
  padding: 48px clamp(24px, 5vw, 44px) 40px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--card);
}
.admin-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 14px;
  background: hsl(248 var(--art-s) var(--art-l)); color: hsl(248 var(--art-fg-s) var(--art-fg-l));
}
.admin-title { font: 800 clamp(1.7rem, 1.4rem + 1vw, 2.1rem)/1.12 var(--font-display); letter-spacing: -.03em; }
.admin-lead { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.admin-panel .auth__form { width: 100%; margin-top: 8px; }
.admin-panel .auth__form .btn--block { min-height: 52px; font-size: 16px; }
#seller-denied-email { font-weight: 700; color: var(--ink); }
.admin-empty { margin-top: 20px; color: var(--ink-2); }
.admin-count { font: 500 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); }
/* Page head of products.html: the title on the left, the count and the main button on the right */
.admin-app__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }

.status-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.status-badge--pending { background: hsl(38 90% 92%); color: hsl(30 70% 32%); }
.status-badge--approved { background: hsl(150 55% 90%); color: hsl(150 45% 26%); }
.status-badge--suspended { background: hsl(0 70% 93%); color: hsl(0 55% 38%); }
:root[data-theme="dark"] .status-badge--pending { background: hsl(38 45% 20%); color: hsl(40 85% 76%); }
:root[data-theme="dark"] .status-badge--approved { background: hsl(150 30% 18%); color: hsl(150 55% 72%); }
:root[data-theme="dark"] .status-badge--suspended { background: hsl(0 35% 20%); color: hsl(0 75% 78%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-badge--pending { background: hsl(38 45% 20%); color: hsl(40 85% 76%); }
  :root:not([data-theme="light"]) .status-badge--approved { background: hsl(150 30% 18%); color: hsl(150 55% 72%); }
  :root:not([data-theme="light"]) .status-badge--suspended { background: hsl(0 35% 20%); color: hsl(0 75% 78%); }
}

/* Status line at the top of the dashboard content: plain text, no box */
.status-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status-banner p { color: var(--ink-2); font-size: 14px; }
.status-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* The sections of the dashboard (one is shown at a time, see .dash-layout below) */
.dash-grid { display: grid; align-items: start; align-content: start; }
.vpn-card .auth__form { max-width: 560px; }
/* A dashboard section is not a boxed card: just a title with a thin line under it, then its content */
.dash-card { padding: 0; border: 0; background: none; }
.dash-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.dash-card__title { font: 700 20px/1.2 var(--font-display); letter-spacing: -.015em; margin-bottom: 18px; }
.dash-card > .dash-card__title, .dash-card > .dash-card__head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-card__head .dash-card__title { margin-bottom: 0; }
.dash-card .auth__form { margin-top: 18px; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); background: var(--paper); }

/* ---------- Product panel (products.html) ---------- */
.pp-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pp-list { display: grid; }
.pp-thumb { overflow: hidden; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-row .prod-row__actions { flex-wrap: wrap; align-items: center; }
.pp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pp-back .i { width: 18px; height: 18px; }
.pp-form { display: grid; gap: 44px; max-width: 760px; }
.pp-form .dash-card .auth__form { margin-top: 14px; }
.pp-form__actions { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; }
.pp-label { font-size: 13px; font-weight: 600; }
.pp-label--gap { display: block; margin-top: 18px; }
.store-contact { display: grid; gap: 6px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.pp-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-photo { position: relative; width: 112px; height: 112px; margin: 0; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-photo.is-cover { border-color: var(--brand); }
.pp-photo--busy { display: grid; place-items: center; font-size: 13px; color: var(--ink-2); }
.pp-photo__tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font: 500 11px/1.5 var(--font-mono); letter-spacing: .04em; }
.pp-photo__btn { position: absolute; top: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgb(8 12 16 / .65); color: #fff; cursor: pointer; }
.pp-photo__btn .i { width: 15px; height: 15px; }
.pp-photo__btn--x { right: 6px; }
.pp-photo__btn--star { left: 6px; }
.pp-upload { align-self: flex-start; cursor: pointer; }
/* Small "add" buttons are as wide as their label, not a bar across the whole form */
.pp-form .field > .btn { justify-self: start; }
/* Choices (page style, availability) are a plain radio list: the chosen one gets a soft shade, no boxes */
.pp-themes { display: grid; gap: 2px; max-width: 560px; margin-top: 14px; }
.pp-theme { display: grid; gap: 2px; padding: 10px 12px 10px 42px; border-radius: 12px; cursor: pointer; position: relative; }
.pp-theme:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pp-theme:has(input:checked) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pp-theme input { position: absolute; top: 12px; left: 14px; accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.pp-theme__name { font: 600 15px/1.3 var(--font-body); }
.pp-theme__text { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.verified-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: hsl(205 85% 92%); color: hsl(208 75% 36%); font-weight: 700; }
.verified-icon { width: 18px; height: 18px; color: hsl(207 80% 52%); }
:root[data-theme="dark"] .verified-pill { background: hsl(208 45% 20%); color: hsl(205 85% 78%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verified-pill { background: hsl(208 45% 20%); color: hsl(205 85% 78%); }
}
#fee-card .auth__form { margin-top: 12px; max-width: 560px; }
#availability-card .auth__form { max-width: 760px; }
.av-hours { display: grid; max-width: 560px; border-top: 1px solid var(--line); }
.av-row { display: grid; grid-template-columns: 96px auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.av-row__day { font-weight: 600; font-size: 14px; }
.av-row input[type="time"] { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 14px; color: inherit; }
.av-row input[type="time"]:disabled { opacity: .4; }
.av-row .check-row { font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) {
  .av-row { grid-template-columns: 1fr auto; }
  .av-row input[type="time"] { grid-column: auto; }
  .av-row .av-row__day { grid-column: 1; }
}
.pp-logo { display: flex; }
.pp-photo--logo { width: 96px; height: 96px; background: #fff; }
.pp-photo--logo img { object-fit: contain; padding: 6px; }
.pp-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pp-file__row { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.pp-file__row .i { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.pp-file__name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.pp-picker { padding: 28px clamp(18px, 4vw, 32px) 24px; display: grid; gap: 14px; }
.pp-picker__search { position: relative; }
.pp-picker__search .i { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.pp-picker__search input { width: 100%; min-height: 48px; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; font-size: 15px; color: inherit; }
.pp-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; min-height: 120px; }
.pp-logo-item { display: grid; gap: 8px; justify-items: center; padding: 12px 8px; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer; text-align: center; }
.pp-logo-item:hover, .pp-logo-item:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pp-logo-item__img { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pp-logo-item__img img { width: 32px; height: 32px; object-fit: contain; }
.pp-logo-item__name { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.pp-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.pp-rowitem { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(80px, 1fr) auto; gap: 8px; align-items: center; }
.pp-rowitem--info { grid-template-columns: 130px minmax(0, 1fr) auto; }
.pp-rowitem input, .pp-rowitem select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); font-family: inherit; font-size: 15px; color: inherit;
}
@media (max-width: 640px) { .pp-rowitem--info { grid-template-columns: 1fr auto; } .pp-rowitem--info select { grid-column: 1 / -1; } }
/* Options of a product: a plain list split by thin lines, each row with its own remove button */
.pp-options { display: grid; margin-bottom: 12px; border-top: 1px solid var(--line); }
.pp-option { display: grid; grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(90px, 1fr)); gap: 10px 12px; align-items: end; position: relative; padding: 14px 54px 14px 2px; border-bottom: 1px solid var(--line); }
.pp-option .field label { font-size: 12px; }
.pp-option__x { position: absolute; top: 12px; right: 2px; }
@media (max-width: 640px) {
  .pp-option { grid-template-columns: 1fr 1fr; }
  .pp-option__label { grid-column: 1 / -1; }
}

.order-problem { color: var(--danger); font-weight: 600; }
.telegram-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* Status messages and bank details inside a dashboard section are plain text and rows, not boxes */
.dash-card .note { margin-top: 10px; padding: 0; border: 0; border-radius: 0; }
.dash-card .pay__bank { gap: 0; margin-top: 14px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.dash-card .pay__bank div { padding: 10px 2px; border-bottom: 1px solid var(--line); }
/* Save buttons are as wide as their label on wide screens, not a bar across the whole page */
@media (min-width: 641px) {
  .dash-card .auth__form > .btn { width: auto; justify-self: start; }
}
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check-row input { accent-color: var(--ink); width: 17px; height: 17px; }

/* Add / edit product form */
.prod-form { padding-top: 4px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.prod-form__title { font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.prod-form__actions { display: flex; align-items: center; gap: 16px; }

/* Product, order and payment rows: a plain list split by thin lines, not a stack of boxes */
.prod-list { display: grid; }
.prod-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.prod-row:first-child { border-top: 1px solid var(--line); }
.prod-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prod-row__art {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: hsl(var(--h) var(--art-s) var(--art-l)); color: hsl(var(--h) var(--art-fg-s) var(--art-fg-l));
}
.prod-row__art .art { width: 56%; height: 56%; }
.prod-row__text { min-width: 0; }
.prod-row__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 15px/1.3 var(--font-display); letter-spacing: -.01em; }
.prod-row__meta { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.prod-row__actions { display: flex; gap: 6px; }
.icon-btn--sm { width: 36px; height: 36px; }
.icon-btn--sm .i { width: 18px; height: 18px; }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); }

@media (max-width: 640px) {
  .prod-row { grid-template-columns: 1fr; }
  .prod-row__actions { justify-content: flex-start; }
}

/* Toast */
.toasts {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
  width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); pointer-events: none;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius); background: var(--ink); color: var(--paper);
  font-weight: 500; box-shadow: var(--shadow-2);
}
.toast.is-out { opacity: 0; transform: translateY(8px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .2s ease-out; transition: opacity .18s ease, transform .18s ease; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* A small heading inside a dashboard card (product editor: VPN connection link) */
.dash-card__subtitle { margin: 8px 0 0; font-size: 16px; font-weight: 600; }

/* Seller dashboard: a side menu on the left (icon + label, groups split by thin lines, like the Supabase
   dashboard), one section shown at a time on the right. A single line separates the two, no boxes. */
.dash-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; }
.dash-layout .dash-grid {
  grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 60vh;
  padding-left: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line);
}
.dash-nav { position: sticky; top: 96px; display: flex; flex-direction: column; padding-right: 16px; }
.dash-nav__group { display: grid; gap: 2px; padding-block: 10px; }
.dash-nav__group:first-child { padding-top: 0; }
.dash-nav__group + .dash-nav__group { border-top: 1px solid var(--line); }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none;
}
.dash-nav a .i { width: 19px; height: 19px; stroke-width: 1.7; color: var(--ink-3); }
.dash-nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font-weight: 600; }
.dash-nav a:hover .i, .dash-nav a[aria-current="page"] .i { color: var(--ink); }
@media (max-width: 860px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .dash-layout .dash-grid { padding-left: 0; border-left: 0; min-height: 0; }
  .dash-nav {
    position: static; flex-direction: row; overflow-x: auto; margin-bottom: 24px; padding: 0 0 8px;
    border-bottom: 1px solid var(--line); scrollbar-width: thin;
  }
  .dash-nav__group { display: flex; padding: 0; }
  .dash-nav__group + .dash-nav__group { border-top: 0; margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }
  .dash-nav a { padding: 8px 10px; gap: 8px; white-space: nowrap; }
}

/* Store fee: this month / time left / paid until, as three plain figures split by thin lines */
.fee-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 18px; border-block: 1px solid var(--line); }
.fee-box { display: grid; gap: 4px; padding: 14px 18px; }
.fee-box:first-child { padding-left: 2px; }
.fee-box + .fee-box { border-left: 1px solid var(--line); }
.fee-box span { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fee-box strong { font: 700 20px/1.2 var(--font-display); }
.fee-box--ok strong { color: var(--fee-ok); }
.fee-box--warn strong { color: var(--fee-warn); }
.fee-box--bad strong { color: var(--danger); }
@media (max-width: 640px) {
  .fee-summary { grid-template-columns: 1fr; }
  .fee-box { padding-inline: 2px; }
  .fee-box + .fee-box { border-left: 0; border-top: 1px solid var(--line); }
}
.nav-flag { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--danger); color: #fff; font: 600 11px/1.5 var(--font-mono); }

/* Store fee colours: green for paid, amber for soon or waiting */
:root { --fee-ok: hsl(150 50% 36%); --fee-warn: hsl(32 90% 44%); }
:root[data-theme="dark"] { --fee-ok: hsl(150 55% 62%); --fee-warn: hsl(38 90% 62%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fee-ok: hsl(150 55% 62%); --fee-warn: hsl(38 90% 62%); }
}

/* Store fee: one line that says where the store stands, next to a round icon in its colour */
.fee-hero { display: flex; align-items: center; gap: 14px; }
.fee-hero__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; }
.fee-hero__icon .i { width: 24px; height: 24px; stroke-width: 2.2; }
.fee-hero__icon--ok { background: color-mix(in srgb, var(--fee-ok) 15%, var(--card)); color: var(--fee-ok); }
.fee-hero__icon--warn { background: color-mix(in srgb, var(--fee-warn) 16%, var(--card)); color: var(--fee-warn); }
.fee-hero__icon--bad { background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--danger); }
.fee-hero__body { min-width: 0; }
.fee-hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 700 18px/1.3 var(--font-display); }
.fee-hero__text { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* Pay the fee: a title and a button; pressing it opens two numbered steps */
.fee-pay__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.fee-pay__head > div { flex: 1 1 260px; min-width: 0; }
.fee-pay__title, .fee-sub { font: 700 16px/1.3 var(--font-display); }
.fee-pay__lead { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fee-pay__head .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#fee-pay-error { margin-top: 10px; }
.fee-flow { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.fee-flow__step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 24px; }
.fee-flow__step:last-child { padding-bottom: 0; }
.fee-flow__step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.fee-flow__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 15px/1 var(--font-display); }
.fee-flow__body { min-width: 0; padding-top: 6px; }
.fee-flow__title { font-size: 15px; font-weight: 700; }
.fee-flow .pay__bank { max-width: 560px; margin-top: 10px; }
.fee-flow #fee-note { max-width: 560px; margin-top: 8px; }
.fee-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .fee-pay__head .btn { width: 100%; }
  .fee-form__actions .btn { flex: 1 1 140px; }
}

/* The account number with a small round Copy button next to it */
.pay__bank div:has(> .bank-num) { align-items: center; }
.pay__bank dd.bank-num { display: inline-flex; align-items: center; gap: 10px; user-select: auto; }
.bank-num > span { font-size: 15px; letter-spacing: .02em; user-select: all; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 12px 0 9px; border: 1.5px solid var(--ink-line); border-radius: 999px; background: transparent; color: var(--ink); font: 600 12px/1 var(--font-body); cursor: pointer; transition: border-color .15s ease; }
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Choosing the slip: a round dashed area with a small picture of the chosen slip */
.slip-pick { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border: 1.5px dashed var(--ink-line); border-radius: 18px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.slip-pick:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.slip-pick.has-file { border-style: solid; }
.field > input.sr-only { width: 1px; min-height: 0; height: 1px; padding: 0; border: 0; }
input:focus-visible + .slip-pick { outline: 2px solid var(--focus); outline-offset: 2px; }
input[aria-invalid="true"] + .slip-pick { border-color: var(--danger); }
.slip-pick__art { display: grid; place-items: center; width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, var(--card)); color: var(--ink-2); }
.slip-pick__art img { width: 100%; height: 100%; object-fit: cover; }
.slip-pick__pdf { font: 700 13px/1 var(--font-mono); letter-spacing: .04em; color: var(--danger); }
.slip-pick__text { display: grid; gap: 3px; min-width: 0; }
.slip-pick__text strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.slip-pick__text small { font-size: 13px; color: var(--ink-2); }

/* A slip waiting for the owner: one soft round row with Take it back */
.fee-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--fee-warn) 12%, var(--card)); }
.fee-wait__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--card); color: var(--fee-warn); }
.fee-wait__text { flex: 1 1 240px; min-width: 0; }
.fee-wait__title { font-size: 15px; font-weight: 700; }
#fee-wait-text { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.fee-wait .btn { background: var(--card); }

.fee-private { display: flex; align-items: flex-start; gap: 10px; max-width: 640px; margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.fee-private .i { width: 17px; height: 17px; margin-top: 1px; color: var(--ink-3); }

/* Past payments: rows split by lines, each with a coloured dot and its status */
.fee-sub { margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fee-history { display: grid; }
.fee-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.fee-row__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.fee-row__dot--ok { background: var(--fee-ok); }
.fee-row__dot--warn { background: var(--fee-warn); }
.fee-row__dot--bad { background: var(--danger); }
.fee-row__main { flex: 1; min-width: 0; }
.fee-row__amount { font-size: 15px; font-weight: 700; }
.fee-row__meta { margin-top: 2px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.fee-row .status-badge { flex: none; }

/* ---------- Your store: Store look (header style and colour) ---------- */
.store-look { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.store-look .field__hint { margin-top: -6px; }
.look-styles { display: flex; flex-wrap: wrap; gap: 10px; }
.look-style { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.look-style input { position: absolute; opacity: 0; pointer-events: none; }
.look-style__swatch { width: 64px; height: 42px; border-radius: 12px; border: 2px solid var(--line); }
.look-style input:checked + .look-style__swatch { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.look-style input:focus-visible + .look-style__swatch { outline: 2px solid var(--focus); outline-offset: 4px; }
.look-style__swatch--glass { background: radial-gradient(circle at 25% 30%, hsl(260 85% 70% / .7), transparent 60%), radial-gradient(circle at 80% 80%, hsl(310 85% 72% / .6), transparent 60%), hsl(260 60% 92%); }
.look-style__swatch--aurora { background: linear-gradient(120deg, hsl(260 80% 80%), hsl(320 80% 80%) 55%, hsl(20 80% 82%)); }
.look-style__swatch--midnight { background: radial-gradient(circle at 25% 30%, hsl(260 85% 55% / .7), transparent 60%), hsl(260 45% 8%); }
.look-style__swatch--plain { background: hsl(260 62% 92%); }
.look-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.look-color { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: hsl(var(--h) 75% 58%); cursor: pointer; }
.look-color.is-on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.look-color:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.look-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.look-preview .store-head { padding: 14px; }
.look-preview .store-avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }
.look-preview .store-title { font-size: 1.4rem; }
