/* JerseyShopIL: request checkout and seller workspace. Load after store.css. */

:where(.order-page, .seller-page) {
  --order-accent: #a2ff58;
  --order-accent-hover: #c6ff99;
  --order-panel: #111713;
  --order-border: #304032;
  --order-muted: #b5bfb4;
  padding-block: 48px 80px;
  font-size: 15px;
}
:where(.order-page, .seller-page) > * { min-width: 0; }
:where(.order-page, .seller-page) :where(h1, h2, h3, p, li, dd, a, button) { overflow-wrap: anywhere; }
:where(.order-page, .seller-page) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--order-accent);
  outline-offset: 4px;
}
:where(.order-page, .seller-page) .button-primary {
  background: var(--order-accent);
  border-color: var(--order-accent);
  color: #10170b;
}
:where(.order-page, .seller-page) .button-primary:hover { background: var(--order-accent-hover); }
:where(.order-page, .seller-page) :where(.button, button, input, select, textarea) { min-height: 44px; }
:where(.order-page, .seller-page) .field-control {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #455545; background: #0b100d; color: #f4f7ed;
  border-radius: 2px; font-size: 15px; line-height: 1.5;
}
:where(.order-page, .seller-page) textarea.field-control { min-height: 106px; resize: vertical; }
:where(.order-page, .seller-page) .field-control::placeholder { color: #92a28f; opacity: 1; }
:where(.order-page, .seller-page) .field-control:focus { border-color: var(--order-accent); }
:where(.order-page, .seller-page) .field-control[aria-invalid="true"] { border-color: #ffb8ac; }
:where(.order-page, .seller-page) .field-label { color: #e6ede0; font-size: 13px; }
:where(.order-page, .seller-page) :where(input[type="tel"], input[autocomplete="tel"]) { direction: ltr; text-align: start; }
:where(.order-page, .seller-page) :where(input[type="checkbox"], input[type="radio"]) { min-height: 20px; width: 20px; height: 20px; accent-color: var(--order-accent); flex-shrink: 0; }
:where(.order-page, .seller-page) [aria-busy="true"] { cursor: progress; }

.order-heading, .seller-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-block-end: 32px; }
.order-heading h1, .seller-heading h1 { margin-block: 10px 12px; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.order-heading p, .seller-heading p { max-width: 700px; color: var(--order-muted); line-height: 1.7; }
.order-heading .eyebrow, .seller-heading .eyebrow { color: var(--order-accent); }
.order-heading > a, .seller-heading > a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .85fr); gap: 32px; align-items: start; }
.order-form { min-width: 0; }
.order-section { padding: 26px; margin-block-end: 22px; border: 1px solid var(--order-border); background: var(--order-panel); }
.order-section-title { margin-block-end: 18px; font-size: 20px; line-height: 1.35; font-weight: 600; }
.order-section legend.order-section-title { padding-inline: 8px; }
.order-section > p + .order-fields { margin-block-start: 18px; }
.order-section > h2 { margin-block-end: 16px; font-size: 20px; line-height: 1.35; }
.order-section > p + p { margin-block-start: 12px; }
.order-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.order-fields + .order-fields, .order-fields + .order-field { margin-block-start: 20px; }
.order-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.order-field--wide { grid-column: 1 / -1; }
.order-field .field-label { margin: 0; }
.order-hint { color: var(--order-muted); font-size: 12px; line-height: 1.65; }
.order-error { color: #ffb8ac; font-size: 13px; line-height: 1.6; margin-block-start: 5px; }
.order-error:empty { display: none; }
.order-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.order-error a { text-decoration: underline; text-underline-offset: 3px; }
.order-notice { padding: 17px 19px; border: 1px solid #4d5b34; border-inline-start: 3px solid var(--order-accent); background: #17200f; color: #dae7c8; font-size: 13px; line-height: 1.75; margin-block: 0 20px; }
.order-notice strong { display: block; color: #f0f6e8; margin-block-end: 4px; }
.order-notice[data-state="offline"], .order-notice.is-warning { background: #231e11; border-color: #695631; color: #f3dfb8; }
.order-notice a { text-decoration: underline; text-underline-offset: 4px; }
.order-consent { display: flex; align-items: start; gap: 12px; padding-block: 12px; min-height: 44px; color: #d3ddcc; font-size: 13px; line-height: 1.75; cursor: pointer; }
.order-consent input { margin: 3px 0 0; }
.order-consent a { text-decoration: underline; text-underline-offset: 3px; }
.order-submit { width: 100%; margin-block-start: 17px; min-height: 54px; font-size: 15px; }
.order-submit + .order-hint { margin-block-start: 12px; text-align: center; }
.order-summary { min-width: 0; position: sticky; inset-block-start: 112px; padding: 26px; border: 1px solid var(--order-border); background: #111b14; }
.order-summary > h2 { margin-block-end: 20px; font-size: 21px; }
.order-summary-list { max-height: 420px; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.order-summary-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-block: 15px; border-block-end: 1px solid #2c3b2e; align-items: start; }
.order-summary-item:first-child { padding-block-start: 0; }
.order-summary-image { width: 64px; height: 80px; object-fit: contain; background: #0b130d; }
.order-summary-copy { min-width: 0; font-size: 13px; }
.order-summary-copy h3 { font-size: 13px; line-height: 1.6; font-weight: 600; margin-block-end: 6px; }
.order-summary-copy p { margin-block-start: 4px; color: #b7c7b5; font-size: 12px; }
.order-summary-total { padding-block: 20px 12px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.order-summary-total strong, .order-summary-total bdi { color: var(--order-accent); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-summary > .order-hint { padding-block-start: 8px; }
.order-state { max-width: 800px; padding: clamp(24px, 4vw, 48px); border: 1px solid #496538; background: #13200f; }
.order-state h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; margin-block: 12px 18px; }
.order-state > p { color: #d0ddc7; margin-block-end: 16px; }
.order-state .button { margin-block-start: 8px; }
.order-reference { display: block; width: fit-content; max-width: 100%; margin-block: 18px; padding: 12px 16px; background: #080f06; color: var(--order-accent); border: 1px solid #476138; font-size: clamp(17px, 2.2vw, 25px); line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* The seller view prioritizes readable records over decorative dashboard cards. */
.seller-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 18px; margin-block-end: 22px; border: 1px solid var(--order-border); background: var(--order-panel); }
.seller-toolbar .order-field { flex: 1 1 180px; }
.seller-toolbar .button { flex: 0 0 auto; }
.seller-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.55fr); gap: 24px; align-items: start; }
.seller-orders { min-width: 0; display: grid; gap: 10px; }
.seller-order { display: block; width: 100%; min-width: 0; min-height: 80px; padding: 18px; border: 1px solid var(--order-border); background: #111713; color: var(--ink); text-align: start; cursor: pointer; }
.seller-order:hover { background: #19251a; border-color: #637652; }
.seller-order.is-active, .seller-order[aria-current="true"], .seller-order[aria-pressed="true"] { background: #1b2a17; border-color: var(--order-accent); box-shadow: inset 3px 0 0 var(--order-accent); }
[dir="rtl"] .seller-order.is-active, [dir="rtl"] .seller-order[aria-current="true"], [dir="rtl"] .seller-order[aria-pressed="true"] { box-shadow: inset -3px 0 0 var(--order-accent); }
.seller-order strong { display: block; margin-block-end: 8px; font-size: 15px; line-height: 1.4; }
.seller-order p { color: var(--order-muted); font-size: 12px; margin-block-start: 6px; }
.seller-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 10px; color: var(--order-muted); font-size: 12px; }
.seller-detail { min-width: 0; padding: 26px; border: 1px solid var(--order-border); background: #101912; }
.seller-detail > h2 { font-size: 25px; line-height: 1.35; margin-block-end: 16px; }
.seller-detail > h3, .seller-detail section > h3 { font-size: 18px; margin-block: 24px 12px; }
.seller-detail section { margin-block-end: 24px; }
.seller-detail dl { display: grid; grid-template-columns: minmax(100px, .4fr) minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
.seller-detail dt { color: var(--order-muted); }
.seller-detail dd { min-width: 0; margin: 0; }
.seller-detail :where(.order-section, .order-notice) { margin-block: 20px; }
.seller-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding-block: 20px; border-block: 1px solid var(--order-border); }
.seller-actions .order-field { flex: 1 1 180px; }
.seller-actions .button { min-width: 150px; }
.seller-actions .order-hint, .seller-actions .order-error { flex-basis: 100%; }
.seller-status { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid #58714a; background: #1c2e15; color: #d0efb7; font-size: 11px; line-height: 1.5; font-weight: 600; }
.seller-status[data-status="awaiting_confirmation"], .seller-status[data-payment="unpaid"] { border-color: #766139; background: #2a2415; color: #f0d694; }
.seller-status[data-status="confirmed"], .seller-status[data-status="ordered_from_supplier"] { border-color: #688c46; background: #233719; color: #c8f5a5; }
.seller-status[data-status="shipped"] { border-color: #537b86; background: #172b30; color: #bce5ef; }
.seller-status[data-status="delivered"] { border-color: #619155; background: #19301b; color: #baf1bc; }
.seller-status[data-status="cancelled"] { border-color: #8d6158; background: #34211c; color: #ffcec1; }
.seller-timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.seller-timeline li { position: relative; padding-block: 0 20px; padding-inline-start: 20px; border-inline-start: 1px solid #45603c; color: #dce6d5; font-size: 13px; }
.seller-timeline li::before { content: ""; position: absolute; inset-inline-start: -4px; inset-block-start: 6px; width: 7px; height: 7px; background: var(--order-accent); border-radius: 50%; }
.seller-timeline li:last-child { padding-block-end: 0; border-color: transparent; }
.seller-timeline time { display: block; color: #b1c0a8; font-size: 11px; margin-block-start: 4px; }
.seller-empty { padding: 32px 24px; border: 1px dashed #4c5e46; color: #c1cdb9; text-align: center; }
.seller-empty h2, .seller-empty h3 { color: var(--ink); margin-block-end: 12px; }
.seller-login { max-width: 570px; padding: 28px; border: 1px solid var(--order-border); background: var(--order-panel); }
.seller-login > h2 { margin-block-end: 12px; font-size: 24px; }
.seller-login > p { color: var(--order-muted); margin-block-end: 20px; }
.seller-login .order-field { margin-block: 20px; }
.seller-login .button { width: 100%; margin-block-start: 12px; }
.seller-settings { margin-block-start: 32px; padding: 26px; border: 1px solid var(--order-border); background: var(--order-panel); }
.seller-settings > h2 { font-size: 23px; margin-block-end: 14px; }
.seller-settings > p { color: var(--order-muted); margin-block-end: 20px; }
.seller-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.seller-settings .button { margin-block-start: 20px; }

@media (min-width: 1600px) { .order-layout { gap: 48px; } }
@media (max-width: 1050px) {
  .order-layout { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 22px; }
  .order-section, .order-summary, .seller-detail, .seller-settings { padding: 22px; }
  .seller-layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr); gap: 18px; }
  .order-fields { gap: 18px 14px; }
}
@media (max-width: 780px) {
  :where(.order-page, .seller-page) { padding-block: 30px 55px; }
  .order-heading, .seller-heading { align-items: start; flex-direction: column; gap: 10px; margin-block-end: 24px; }
  .order-heading h1, .seller-heading h1 { font-size: 36px; }
  .order-heading p, .seller-heading p { font-size: 14px; }
  .order-layout, .seller-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .order-summary { position: static; }
  .seller-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-order { padding: 16px; }
  .seller-detail { scroll-margin-top: 100px; }
  .seller-settings { margin-block-start: 24px; }
  .order-summary-list { max-height: 340px; }
}
@media (max-width: 520px) {
  :is(body[data-page="checkout"], body[data-page="admin"], body[data-page="policies"]) .header-inner { gap: 10px; }
  :is(body[data-page="checkout"], body[data-page="admin"], body[data-page="policies"]) .header-actions { gap: 10px; }
  :is(body[data-page="checkout"], body[data-page="admin"], body[data-page="policies"]) .header-actions > .button-text { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  :is(body[data-page="checkout"], body[data-page="admin"], body[data-page="policies"]) .language-select { max-width: 52px; }
  :is(body[data-page="checkout"], body[data-page="admin"], body[data-page="policies"]) .language-select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :where(.order-page, .seller-page) { font-size: 14px; padding-block: 26px 42px; }
  :where(.order-page, .seller-page) .field-control { font-size: 16px; min-height: 49px; }
  .order-heading h1, .seller-heading h1 { font-size: 32px; letter-spacing: -.025em; }
  .order-heading p, .seller-heading p { font-size: 13px; }
  .order-fields, .seller-settings-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .order-field--wide { grid-column: auto; }
  .order-section, .order-summary, .seller-detail, .seller-settings, .seller-login { padding: 20px 17px; }
  .order-section { margin-block-end: 18px; }
  .order-section-title { font-size: 19px; }
  .order-notice { padding: 15px; font-size: 12px; }
  .order-hint { font-size: 12px; }
  .order-consent { gap: 10px; font-size: 12px; }
  .order-summary-item { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .order-summary-image { width: 58px; height: 74px; }
  .seller-toolbar { align-items: stretch; padding: 16px; }
  .seller-toolbar .order-field { flex-basis: 100%; }
  .seller-toolbar .button { flex: 1 1 130px; }
  .seller-orders { grid-template-columns: minmax(0, 1fr); }
  .seller-order { min-height: 90px; }
  .seller-detail > h2 { font-size: 22px; }
  .seller-detail dl { grid-template-columns: minmax(80px, .4fr) minmax(0, 1fr); gap: 10px; font-size: 13px; }
  .seller-actions { align-items: stretch; }
  .seller-actions .order-field, .seller-actions .button { flex-basis: 100%; }
  .seller-status { font-size: 11px; }
  .order-state { padding: 23px 18px; }
  .order-state h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.order-page, .seller-page) *, :where(.order-page, .seller-page) *::before, :where(.order-page, .seller-page) *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  :where(.order-page, .seller-page) :where(.button, .field-control, .seller-order, .seller-status, .order-state, .order-notice) { border: 1px solid CanvasText; }
  .seller-order.is-active { outline: 2px solid Highlight; }
}

/* Customer free text stays inside the protected panel. */
.feedback-body { white-space: pre-wrap; overflow-wrap: anywhere; }
