:root {
  color-scheme: dark;
  --page: #141519;
  --surface: #191b20;
  --surface-2: #202228;
  --field: #141519;
  --line: #37383c;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f2f3f5;
  --muted: #a6abb4;
  --gold: #c6a15f;
  --green: #67c99b;
  --danger: #d87575;
}

#retryPreparation { min-height:32px; padding:6px 10px; border:1px solid var(--line); border-radius:4px; background:transparent; color:var(--muted); cursor:pointer; }
#customerPdfStatus:empty { display:none; }
#submitStatus:empty { display:none; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px),
    var(--page);
  background-size: 32px 32px;
  color: var(--text);
  font: 14px/1.4 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }

.order-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  border: 1px solid var(--line);
  background: rgba(8, 11, 11, .97);
}

.order-header {
  min-height: 92px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.title-row { display: flex; align-items: center; gap: 12px; }
.title-row h1 { margin: 0; font-size: 22px; line-height: 1.15; }
.header-note { margin: 7px 0 0; color: var(--muted); }
.draft-status { display: inline-flex; align-items: center; gap: 7px; color: #b9b0a2; font-size: 11px; }
.draft-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(198, 170, 111, .3);
  border-radius: 50%;
  background: rgba(198, 161, 95, .09);
  color: #ead7af;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.header-actions { display: flex; gap: 8px; }
.button, .upload-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(213, 173, 104, .08);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .upload-button:hover { border-color: rgba(213, 173, 104, .6); background: rgba(213, 173, 104, .13); }
.button-muted { color: var(--muted); background: transparent; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
body:not(.is-checkout) .order-layout { grid-template-columns: 1fr; }
body:not(.is-checkout) .customer-panel { display: none; }
.order-workspace { min-width: 0; border-right: 1px solid var(--line); }
.section-bar {
  min-height: 57px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.section-bar h2 { margin: 0; font-size: 15px; }
.section-bar span { color: var(--muted); font-size: 11px; }
.save-state { color: #bfe9d6 !important; }

.selection-toolbar { min-height: 46px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); background: rgba(12,14,16,.34); }
.selection-toolbar span { color: var(--muted); font-size: 11px; }
.selection-toolbar .button { min-height: 30px; }
body.is-checkout .selection-toolbar button { display: none; }
.order-items { padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); align-items: start; gap: 18px 14px; overflow: visible; border: 0; }
.selection-toolbar,
.order-items { display: none !important; }
.order-item {
  position: relative;
  min-width: 0;
  min-height: 136px;
  padding: 2px 4px 6px;
  display: block;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
}
.order-item::before {
  content: "";
  position: absolute;
  inset: 16px 12% 38px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,155,83,.18), rgba(120,91,52,.05) 45%, transparent 72%);
  filter: blur(13px);
  opacity: .34;
  transform: scale(.82);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.order-item:hover::before,
.order-item.is-request-selected::before { opacity: .68; transform: scale(1); }
.order-item.is-current,
.order-item.is-request-selected { border: 0; background: transparent; box-shadow: none; }
.order-item__select { position: relative; z-index: 1; width: 100%; min-width: 0; padding: 0; display: grid; grid-template-rows: 88px auto; justify-items: center; gap: 7px; border: 0; background: transparent; color: inherit; text-align: center; cursor: pointer; }
.order-item__request-mark { position: absolute; top: 3px; right: 8px; width: 17px; height: 17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(12,14,16,.54); color: transparent; box-shadow: 0 0 0 1px rgba(198,170,111,.18); font-size: 10px; }
.order-item.is-request-selected .order-item__request-mark { background: rgba(198,161,95,.2); color: #ead7af; box-shadow: 0 0 14px rgba(198,161,95,.2); }
.order-item img { width: min(124px, 94%); height: 88px; object-fit: contain; object-position: center; background: transparent; filter: drop-shadow(0 13px 10px rgba(0,0,0,.42)); transform: translateY(0) scale(1); transition: transform 300ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.order-item:hover img { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 17px 13px rgba(0,0,0,.5)) drop-shadow(0 0 12px rgba(198,161,95,.12)); }
.order-item__copy { width: 100%; min-width: 0; display: grid; justify-items: center; gap: 2px; }
.order-item__copy strong { max-width: 100%; overflow: visible; white-space: normal; font-size: 11px; line-height: 1.25; text-wrap: balance; }
.order-item__copy span { color: var(--gold); font-size: 11px; }
.order-item__copy small { display: none; }
.order-item__actions { display: none; }
.order-item__actions a, .order-item__actions button { min-height: 27px; padding: 0 8px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); text-decoration: none; font-size: 10px; cursor: pointer; }
.order-item__actions button { font-size: 16px; }
.order-item__actions a:hover { color: var(--text); border-color: var(--line); }
.order-item__actions button:hover { color: var(--danger); border-color: rgba(216,117,117,.35); }

.request-items-list {
  max-height: none;
  padding: 10px 12px 14px;
  display: grid;
  align-content: start;
  gap: 24px;
  overflow: visible;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  scrollbar-gutter: auto;
}

.request-items-list__empty {
  min-height: 180px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.request-entry {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scroll-snap-align: start;
}

@supports (animation-timeline: view()) {
  .request-entry {
    animation: request-entry-reveal linear both;
    animation-timeline: view(block);
    animation-range: entry 8% cover 26%;
  }

  @keyframes request-entry-reveal {
    from { opacity: .42; transform: translateY(18px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-item,
  .order-item img,
  .order-item::before,
  .request-entry { animation: none !important; transition: none !important; transform: none !important; }
}

.request-entry__header {
  min-height: 54px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
}

.request-entry__header h2 { margin: 0; font-size: 15px; }
.request-entry__header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.request-entry__include { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.request-entry__include input { width: 15px; height: 15px; margin: 0; accent-color: #c6aa6f; }
.request-entry.is-excluded { opacity: .62; }
.request-entry__actions { display: flex; align-items: center; gap: 7px; }
.request-entry__body { min-width: 0; display: grid; grid-template-columns: minmax(300px,.82fr) minmax(430px,1.18fr); }

.request-entry__preview {
  position: relative;
  min-width: 0;
  min-height: 294px;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.request-entry__preview::before {
  content: "";
  position: absolute;
  inset: 20% 10% 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(191,143,73,.13), rgba(112,78,40,.04) 46%, transparent 74%);
  pointer-events: none;
}
.request-entry__stage { position: relative; z-index: 1; }

.request-entry__tabs {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(-50%);
}

.request-entry__tabs > button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198,170,111,.22);
  border-radius: 5px;
  background: rgba(20,21,25,.9);
  color: #aaa7a1;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.request-entry__tabs > button:hover { color: #e4ded2; border-color: rgba(198,170,111,.4); background: rgba(31,33,38,.94); }
.request-entry__tabs > button.is-active { color: #f2e4c4; border-color: rgba(213,173,104,.5); background: rgba(198,161,95,.13); box-shadow: 0 0 14px rgba(198,161,95,.07); }
.request-entry__tabs .request-entry__actions { padding: 0; display: flex; align-items: center; gap: 7px; border: 0; }
.request-entry__tabs .request-entry__actions .button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198,170,111,.22);
  border-radius: 5px;
  background: rgba(20,21,25,.9);
  color: #aaa7a1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.request-entry__tabs .request-entry__actions .button:hover { color: #e4ded2; border-color: rgba(198,170,111,.4); background: rgba(31,33,38,.94); }
.request-entry__tabs .request-entry__actions .icon-button {
  width: auto;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(198,170,111,.22);
  border-radius: 5px;
  background: rgba(20,21,25,.9);
  color: #aaa7a1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.request-entry__tabs .request-entry__actions .icon-button:hover { border-color: rgba(216,117,117,.35); background: rgba(216,117,117,.07); color: #e5b0b0; }
.request-entry__preview { display: flex; flex-direction: column; align-self: start; overflow: hidden; }
.request-entry__preview::before { display: none; }
.request-entry__tabs { position: static; transform: none; justify-content: center; flex-wrap: wrap; padding: 9px; width: 100%; }
.request-entry__stage { flex: none; width: 100%; height: 294px; min-height: 0; padding: 8px 16px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.request-entry__stage[hidden] { display: none !important; }
.request-entry__stage img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; filter: none; }
.request-entry__stage svg { width: 94%; height: 94%; display: block; }

.request-entry__fields { min-width: 0; padding: 10px 12px; display: grid; align-content: start; gap: 8px; border: 0; }
.request-entry__field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.cart-catalog-settings {grid-column:1/-1;min-width:0;padding:4px 3px;border-bottom:1px solid var(--line-soft);container-type:inline-size}
.cart-settings-controls {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 10px;min-width:0;align-items:end}
.cart-settings-controls label {display:grid;gap:3px;min-width:0;color:var(--muted);font-size:10px}
.cart-settings-dimensions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.cart-settings-material {grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.cart-settings-material[hidden] {display:none}
.cart-settings-controls :is(input,select) {width:100%;min-width:0;min-height:32px;height:32px;padding:4px 7px;font-size:12px}
.cart-settings-status {margin:3px 0 0;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.cart-settings-status:empty {display:none}
.cart-catalog-settings>button {margin-top:8px;padding:6px 10px;font:inherit;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);cursor:pointer}
@container(max-width:480px) {
 .cart-settings-controls {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .cart-settings-dimensions {grid-column:1/-1}
 .cart-settings-material {grid-column:2;gap:5px}
 .cart-settings-controls :is(input,select) {min-height:36px;height:36px;padding:4px;font-size:12px}
}
@container(max-width:300px) {
 .cart-settings-cardboard,.cart-settings-material {grid-column:1/-1}
}
.request-entry__quantity,
.request-entry__readout,
.request-entry__dimensions { min-height: 62px; padding: 8px 3px; display: grid; align-content: center; gap: 5px; border: 0; border-bottom: 1px solid rgba(198,170,111,.1); border-radius: 0; background: transparent; }
.request-entry__order-quantity { min-height: 62px; padding: 7px 3px; display: grid; align-content: center; gap: 5px; border-bottom: 1px solid rgba(198,170,111,.1); }
.request-entry__order-quantity .request-entry__quantity { min-height: 0; padding: 0; border: 0; }
.request-entry__order-quantity .sample-request-toggle { min-height: 0; padding: 0; }
.request-entry__quantity span,
.request-entry__readout span,
.request-entry__dimensions summary > span,
.request-entry__comment span { color: var(--muted); font-size: 10px; }
.request-entry__quantity input { width: 150px; min-height: 32px; }
.request-entry__quantity.is-invalid input { border-color: rgba(216,117,117,.58); }
.request-entry__readout strong { font-size: 12px; }
.request-entry__dimensions { position: relative; padding: 0; }
.request-entry__dimensions > summary {
  min-height: 61px;
  padding: 8px 24px 8px 3px;
  display: grid;
  align-content: center;
  gap: 5px;
  position: relative;
  list-style: none;
  cursor: pointer;
}
.request-entry__dimensions > summary::-webkit-details-marker { display: none; }
.request-entry__dimensions > summary strong { font-size: 12px; }
.request-entry__dimensions > summary .chevron { position: absolute; right: 5px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.request-entry__dimensions[open] > summary .chevron { transform: translateY(-35%) rotate(225deg); }
.request-entry__parameters-popover {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 40;
  width: min(370px, 76vw);
  padding: 10px;
  border: 1px solid rgba(198,170,111,.26);
  border-radius: 6px;
  background: rgba(20,21,25,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.48), 0 0 24px rgba(198,161,95,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.request-entry__parameters-header { padding: 2px 4px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(198,170,111,.12); }
.request-entry__parameters-header strong { font-size: 12px; }
.request-entry__parameters-header span { color: var(--muted); font-size: 10px; }
.request-entry__parameters-popover .parameter-list { max-height: 230px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(198,170,111,.5) transparent; }
.request-entry__comment { display: grid; gap: 4px; }
.request-entry__comment textarea { min-height: 54px; resize: vertical; }
.request-entry__checkout-row { display: flex; align-items: center; justify-content: flex-end; }
.request-entry__checkout {
  margin-left: auto;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(198,170,111,.28);
  border-radius: 5px;
  background: rgba(198,170,111,.06);
  color: #d8c296;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.request-entry__checkout:hover {
  color: #f1e7d2;
  border-color: rgba(213,173,104,.5);
  background: rgba(198,170,111,.11);
}
.request-entry__checkout:focus-visible { outline: 2px solid rgba(213,173,104,.48); outline-offset: 2px; }

@media (max-width: 920px) {
  .request-entry__body { grid-template-columns: 1fr; }
  .request-entry__fields { border-left: 0; border-top: 1px solid rgba(198,170,111,.12); }
}

.item-editor { min-width: 0; }
.item-editor__header { min-height: 68px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.item-editor__header h2 { margin: 0; font-size: 17px; }
.item-editor__header p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.item-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.icon-button.danger { border-color: rgba(216, 117, 117, .35); color: #efb0b0; }
.icon-button:hover { background: rgba(255,255,255,.05); }

.item-editor__body { padding: 14px; display: grid; grid-template-columns: minmax(440px, 1.18fr) minmax(390px, .82fr); gap: 14px; }
.preview-area { min-width: 0; align-self: start; border: 1px solid var(--line-soft); background: var(--surface); }
.preview-tabs { min-height: 40px; display: flex; border-bottom: 1px solid var(--line-soft); }
.preview-tabs button { flex: 1; border: 0; border-right: 1px solid var(--line-soft); background: transparent; color: var(--muted); cursor: pointer; }
.preview-tabs button:last-child { border-right: 0; }
.preview-tabs button.is-active { color: var(--text); background: rgba(213, 173, 104, .09); }
.preview-stage { height: 330px; overflow: hidden; display: grid; place-items: center; background: #090d0d; }
.preview-stage > img, .preview-stage > svg { width: 92%; height: 92%; display: block; object-fit: contain; }
.preview-stage > img { filter: drop-shadow(0 20px 18px rgba(0,0,0,.48)); }
.stage-message { max-width: 270px; margin: 0; color: var(--muted); text-align: center; }

.item-fields { min-width: 0; display: grid; align-content: start; gap: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-soft); background: var(--surface); }
.field-grid > * { min-height: 72px; padding: 10px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.field-grid > *:nth-child(2n) { border-right: 0; }
.field-grid > *:nth-last-child(-n+2) { border-bottom: 0; }
.quantity-field { display: grid; align-content: center; gap: 5px; }
.order-quantity-control { display: grid; align-content: center; gap: 6px; }
.order-quantity-control .quantity-field { min-height: 0; padding: 0; border: 0; }
.order-quantity-control .sample-request-toggle { min-height: 0; padding: 0; }
.quantity-field span, .readout span, .comment-field span, .customer-fields label > span { color: var(--muted); font-size: 11px; }
.quantity-field input { width: 150px; }
.quantity-field small { color: var(--danger); font-size: 10px; visibility: hidden; }
.quantity-field.is-invalid small { visibility: visible; }
.sample-request-toggle {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sample-request-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #c6aa6f; }
.sample-request-toggle span { color: var(--text); font-size: 11px; font-weight: 700; }
.sample-request-toggle small { color: var(--muted); font-size: 9px; }
.readout { display: grid; align-content: center; gap: 5px; }
.readout strong { font-size: 13px; }

input, textarea, select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(213, 173, 104, .68); }
textarea { resize: vertical; }

.attachment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.attachment-group { min-width: 0; padding: 10px; display: grid; align-content: start; gap: 8px; border: 1px solid var(--line-soft); background: var(--surface); }
.attachment-group > div strong, .attachment-group > div span { display: block; }
.attachment-group > div span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.upload-button { justify-self: start; min-height: 32px; font-size: 11px; }
.attachment-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.attachment-list li { min-width: 0; min-height: 30px; padding: 4px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; background: rgba(255,255,255,.025); }
.attachment-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.attachment-list button { width: 24px; height: 22px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.attachment-list button:hover { color: var(--danger); }
.comment-field { display: grid; gap: 5px; }

.parameters-section { border: 1px solid var(--line-soft); background: var(--surface); }
.parameters-section summary { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.parameters-section summary::-webkit-details-marker { display: none; }
.parameters-section summary strong, .parameters-section summary small { display: block; }
.parameters-section summary small { margin-top: 3px; color: var(--muted); }
.chevron { width: 8px; height: 8px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); }
.parameters-section[open] .chevron { transform: rotate(225deg); }
.parameter-list { max-height: 260px; overflow: auto; padding: 0 10px 10px; }
.parameter-row { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-soft); }
.parameter-row span { color: var(--muted); }
.parameter-row strong { text-align: right; font-variant-numeric: tabular-nums; }

.customer-panel { min-width: 0; background: #0c1010; }
.customer-fields { padding: 12px; display: grid; gap: 10px; }
.customer-fields label { display: grid; gap: 5px; }
.order-summary { margin: 0 12px 12px; border: 1px solid var(--line-soft); }
.order-summary div { min-height: 40px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.order-summary div:last-child { border-bottom: 0; }
.order-summary span { color: var(--muted); }
.submit-disabled { width: calc(100% - 24px); min-height: 38px; margin: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); }
.privacy-note { margin: 10px 12px 16px; color: var(--muted); font-size: 10px; }

.empty-state { min-height: 520px; padding: 30px; display: grid; align-content: center; justify-items: center; text-align: center; }
.empty-state h2 { margin: 0 0 7px; font-size: 18px; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

.preview-stage title { display: none !important; }
.preview-stage .guide-face { fill: transparent; stroke: #6d8589; stroke-width: 1.05; vector-effect: non-scaling-stroke; }
.preview-stage .guide-source-body { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.preview-stage .guide-source-cut { stroke: #8fcbd2; stroke-width: 1.15; }
.preview-stage .guide-source-crease { stroke: #d26963; stroke-width: .95; stroke-dasharray: 4 3; }
.preview-stage marker path { fill: #ffd36d; }
.preview-stage #sourceSignArrow path { fill: #35dc69; }
.preview-stage #sourceSignArrowSelected path { fill: #ff38d1; }
.preview-stage .source-sign line, .preview-stage .source-sign path { fill: none; stroke: #35dc69; stroke-width: .85; vector-effect: non-scaling-stroke; }
.preview-stage .source-sign .source-sign-leader { stroke-width: .7; stroke-dasharray: 3 3; opacity: .7; }
.preview-stage .source-sign .source-sign-hit { fill: transparent; stroke: transparent; }
.preview-stage .source-sign text { fill: #35dc69; stroke: rgba(5,12,14,.82); stroke-width: 2.2px; paint-order: stroke fill; font-family: Consolas, monospace; font-size: var(--source-sign-font-size, 10px); font-weight: 500; }
.preview-stage .gp-material-sheet { fill: url(#gpPrintKraft); fill-rule: evenodd; stroke: none; }
.preview-stage .gp-guide-panel { fill: none; fill-rule: evenodd; stroke: rgba(133,212,223,.72); stroke-width: .36; vector-effect: non-scaling-stroke; }
.preview-stage .gp-guide-panel.is-selected { fill: rgba(213,173,104,.08); stroke: var(--gold); }

@media (max-width: 1050px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-workspace { border-right: 0; border-bottom: 1px solid var(--line); }
  .customer-fields { grid-template-columns: 1fr 1fr; }
  .customer-fields label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .order-shell { width: 100%; min-height: 100vh; margin: 0; border-left: 0; border-right: 0; }
  .order-header, .title-row { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; flex-wrap: wrap; }
  .item-editor__body { grid-template-columns: 1fr; padding: 10px; }
  .preview-stage { height: 300px; }
  .attachment-grid, .customer-fields { grid-template-columns: 1fr; }
  .customer-fields label:last-child { grid-column: auto; }
  .save-state { display: none; }
}

/* GrandPack technological glass presentation. */
:root {
  --page: #0b1112;
  --surface: rgba(12, 14, 16, .62);
  --surface-2: rgba(17, 19, 22, .68);
  --field: rgba(17, 19, 22, .74);
  --line: rgba(198, 170, 111, .24);
  --line-soft: rgba(205, 195, 177, .12);
  --text: #f2eee6;
  --muted: #b7afa2;
  --gold: #c6a15f;
  --green: #69b897;
}

html {
  min-height: 100%;
  background: #100e0c;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 170, 111, .46) transparent;
}

html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(198, 170, 111, .46) padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(198, 170, 111, .68) padding-box; }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("/_lab/constructor-cinematic/assets/korobox-grandpack-workshop.png") center calc(50% + 260px) / cover no-repeat;
  filter: saturate(.58) brightness(.5);
  transform: scale(1.015);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(10, 8, 7, .69), rgba(13, 11, 9, .39) 52%, rgba(8, 7, 6, .62)),
    linear-gradient(rgba(174, 202, 205, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 202, 205, .025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.order-shell {
  position: relative;
  overflow: visible;
  border-color: rgba(198, 170, 111, .22);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.order-header {
  background: linear-gradient(90deg, rgba(12, 14, 17, .58), rgba(12, 14, 17, .28));
  border-bottom-color: rgba(198, 170, 111, .18);
}

.title-row h1 {
  font-size: 20px;
  font-weight: 680;
}

.order-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #f6f3ea;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.header-note { max-width: 690px; color: rgba(226, 222, 212, .68); }
.draft-status { color: #b9b0a2; }
.draft-status i { box-shadow: 0 0 10px rgba(198, 161, 95, .36); }

.button,
.upload-button {
  min-height: 34px;
  border-color: rgba(198, 170, 111, .24);
  border-radius: 6px;
  background: rgba(19, 21, 24, .54);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(12px);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.button:hover,
.upload-button:hover {
  border-color: rgba(198, 170, 111, .58);
  background: rgba(42, 36, 29, .56);
  box-shadow: 0 0 20px rgba(198, 161, 95, .08), inset 0 1px rgba(255, 255, 255, .035);
}

.button-muted { background: rgba(18, 16, 14, .34); }
.order-workspace { border-right-color: rgba(205, 195, 177, .1); }
.section-bar {
  background: rgba(18, 16, 14, .18);
  border-bottom-color: rgba(198, 170, 111, .12);
}

.order-items {
  background: transparent;
  border: 0;
}

.order-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}

.order-item:hover {
  transform: translateY(-2px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.order-item.is-request-selected {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.order-item img {
  border-radius: 0;
  background: transparent;
}

.order-item__actions a,
.order-item__actions button {
  border-color: transparent;
  border-radius: 5px;
  background: rgba(205, 195, 177, .035);
}

.item-editor__header {
  background: rgba(18, 16, 14, .16);
  border-bottom-color: rgba(198, 170, 111, .12);
}
.icon-button { border-radius: 6px; background: rgba(18, 16, 14, .45); }

.preview-area,
.attachment-group,
.parameters-section {
  border-color: rgba(174, 202, 205, .12);
  border-radius: 7px;
  background: rgba(14, 16, 19, .46);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
  backdrop-filter: blur(14px);
}

.preview-area {
  position: relative;
  align-self: stretch;
  display: grid;
  min-height: 430px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.preview-tabs {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 4;
  width: max-content;
  min-height: 0;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(174, 202, 205, .1);
  border-radius: 7px;
  background: rgba(10, 15, 17, .68);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.preview-tabs button {
  flex: none;
  min-height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.preview-tabs button.is-active {
  color: #f4e6c6;
  background: rgba(198, 161, 95, .12);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 95, .2);
}

.preview-stage {
  width: 100%;
  height: 100%;
  min-height: 430px;
  overflow: visible;
  background: transparent;
}

.preview-stage > img { filter: none; }

#productStage {
  --preview-shift-x: 0px;
  --preview-shift-y: 0px;
  position: relative;
  isolation: isolate;
}

#productStage::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  background: var(--preview-glow-image, none) center / contain no-repeat;
  filter: blur(58px) saturate(.7) sepia(.34) brightness(1.12);
  opacity: .22;
  pointer-events: none;
  translate: var(--preview-shift-x) var(--preview-shift-y);
  transition: opacity 220ms ease, translate 520ms cubic-bezier(.2, .7, .2, 1);
  animation: product-preview-glow-breathe 8s ease-in-out infinite alternate;
}

#productStage > img {
  position: relative;
  z-index: 1;
  width: 176%;
  height: 176%;
  max-width: none;
  max-height: none;
  image-rendering: auto;
  filter: drop-shadow(0 24px 20px rgba(0, 0, 0, .48));
  transform: translate3d(var(--preview-shift-x), var(--preview-shift-y), 0);
  transition: transform 520ms cubic-bezier(.2, .7, .2, 1);
  animation: product-preview-breathe 8s ease-in-out infinite alternate;
}

#productStage.is-catalog-preview > img {
  width: min(128%, 820px);
  height: auto;
  max-width: none;
  max-height: calc(100% - 10px);
  object-fit: contain;
}

#productStage:hover::before {
  opacity: .29;
}

#productStage.is-preview-entering > img {
  animation:
    product-preview-enter 320ms ease-out both,
    product-preview-breathe 8s 320ms ease-in-out infinite alternate;
}

@keyframes product-preview-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes product-preview-breathe {
  0% { translate: -2px 1px; }
  35% { translate: 1px -2px; }
  70% { translate: 2px 0; }
  100% { translate: -1px 2px; }
}

@keyframes product-preview-glow-breathe {
  from { opacity: .18; }
  to { opacity: .26; }
}

@media (max-width: 1040px) {
  .item-editor__body { grid-template-columns: 1fr; }
  #productStage.is-catalog-preview > img { width: min(112%, 760px); }
}

@media (prefers-reduced-motion: reduce) {
  #productStage::before,
  #productStage > img,
  #productStage.is-preview-entering > img {
    animation: none;
    transition: none;
  }
}

body:not(.is-checkout) .order-shell {
  overflow: visible;
  border-color: rgba(198, 170, 111, .22);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-embedded {
  overflow: auto;
  background: transparent;
}

html.is-embedded { background: transparent; }
body.is-embedded::before,
body.is-embedded::after { display: none; }

body.is-embedded .order-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  border-width: 0;
  background: transparent;
  box-shadow: none;
}

body.is-embedded .order-header,
body.is-embedded .selection-toolbar,
body.is-embedded .section-bar,
body.is-embedded .order-items,
body.is-embedded .order-workspace,
body.is-embedded .request-items-list,
body.is-embedded .request-entry {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-embedded .order-header {
  min-height: 74px;
  padding: 12px 16px;
}

body:not(.is-checkout) .order-workspace,
body:not(.is-checkout) .item-editor,
body:not(.is-checkout) .item-editor__body,
body:not(.is-checkout) .item-fields {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 780px) {
  .preview-area,
  .preview-stage {
    min-height: 340px;
  }
}

.field-grid {
  gap: 8px;
  border: 0;
  background: transparent;
}

.field-grid > * {
  border: 1px solid rgba(174, 202, 205, .1) !important;
  border-radius: 6px;
  background: rgba(14, 16, 19, .52);
  backdrop-filter: blur(12px);
}

input,
textarea,
select {
  border-color: rgba(174, 202, 205, .16);
  border-radius: 6px;
  background: rgba(16, 18, 21, .72);
  box-shadow: inset 0 1px 7px rgba(0, 0, 0, .14);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(198, 170, 111, .58);
  box-shadow: 0 0 0 2px rgba(198, 161, 95, .08), inset 0 1px 7px rgba(0, 0, 0, .12);
}

.attachment-list li,
.order-summary,
.submit-disabled { background: rgba(13, 24, 27, .28); }
.parameter-row { border-top-color: rgba(174, 202, 205, .09); }

.customer-panel {
  background: rgba(10, 12, 14, .5);
  backdrop-filter: blur(18px);
}

.order-summary {
  overflow: hidden;
  border-color: rgba(174, 202, 205, .12);
  border-radius: 7px;
}

.empty-state { background: rgba(11, 22, 24, .24); }

@media (max-width: 780px) {
  .order-shell { border-radius: 0; background: rgba(10, 18, 20, .58); }
  body::before { transform: none; }
}

/* One graphite control palette shared with the catalog and constructor. */
:root {
  --page: #141519;
  --surface: rgba(20, 21, 25, .72);
  --surface-2: rgba(25, 27, 32, .76);
  --field: #141519;
  --line: rgba(190, 198, 210, .2);
  --line-soft: rgba(190, 198, 210, .11);
  --text: #f2f3f5;
  --muted: #a6abb4;
  --gold: #c6a15f;
}

.button,
.upload-button,
.icon-button,
.order-item__actions a,
.order-item__actions button,
.preview-tabs button {
  border-color: rgba(198, 170, 111, .26);
  background: #141519;
  color: #f0f2f5;
  box-shadow: none;
}

.button:hover,
.upload-button:hover,
.icon-button:hover,
.order-item__actions a:hover,
.preview-tabs button:hover,
.preview-tabs button.is-active {
  border-color: #c6a15f;
  background: #20232a;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(198, 161, 95, .1);
}

.cart-count {
  border-color: rgba(198, 170, 111, .24);
  background: #20232a;
  color: #ead7af;
  box-shadow: none;
}

/* Shared checkout header. */
.checkout-panel__header {
  min-height: 78px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(198,170,111,.16);
}
.checkout-panel__header span { color: var(--gold); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.checkout-panel__header h2 { margin: 3px 0 0; font-size: 17px; }
.checkout-panel__header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.checkout-panel__header button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(198,170,111,.22);
  border-radius: 5px;
  background: #141519;
  color: #aaa7a1;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.checkout-panel__header button:hover { border-color: rgba(198,170,111,.42); color: #f2e4c4; background: #20232a; }

body .customer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(410px, 100vw);
  max-height: 100vh;
  overflow: auto;
  border-left: 1px solid rgba(198,170,111,.2);
  background: rgba(20,21,25,.95);
  box-shadow: -26px 0 70px rgba(0,0,0,.48);
  backdrop-filter: blur(22px) saturate(106%);
  -webkit-backdrop-filter: blur(22px) saturate(106%);
  transition: transform 260ms cubic-bezier(.2,.72,.2,1), visibility 260ms ease;
}
body:not(.is-checkout) .customer-panel {
  display: block;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(104%);
}
body.is-checkout .customer-panel { visibility: visible; pointer-events: auto; transform: translateX(0); }
body.is-checkout .order-layout { grid-template-columns: 1fr; }
body.is-checkout .order-workspace { border-right: 0; }
body.is-checkout .order-items {
  padding: 12px 430px 14px 14px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(198,170,111,.45) transparent;
}
body.is-checkout .order-item { flex: 0 0 150px; min-height: 122px; }
body.is-checkout .order-item__select { grid-template-rows: 72px auto; }
body.is-checkout .order-item img { height: 72px; }
body.is-checkout .order-item__request-mark { display: none; }

@media (max-width: 760px) {
  body .customer-panel { width: 100vw; }
  body.is-checkout .order-items { padding-right: 14px; }
}

.order-item__request-mark {
  border-color: rgba(198, 170, 111, .2);
  background: #141519;
  color: transparent;
  box-shadow: 0 0 0 1px rgba(198, 170, 111, .16);
}

.order-item.is-request-selected .order-item__request-mark {
  border-color: rgba(198, 170, 111, .3);
  background: #20232a;
  color: #ead7af;
  box-shadow: 0 0 12px rgba(198, 161, 95, .12);
}

input,
textarea,
select {
  border-color: rgba(190, 198, 210, .18);
  background: #141519;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #c6a15f;
  box-shadow: 0 0 0 2px rgba(198, 161, 95, .08), inset 0 1px 7px rgba(0, 0, 0, .12);
}

html { scrollbar-color: rgba(198, 170, 111, .46) transparent; }
html::-webkit-scrollbar-thumb { background: rgba(198, 170, 111, .46) padding-box; }
html::-webkit-scrollbar-thumb:hover { background: rgba(198, 170, 111, .68) padding-box; }
.privacy-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: rgba(238,238,234,.72); font-size: 12px; line-height: 1.45; }
.privacy-consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #c9a45f; }
.submit-order { min-height: 42px; border: 1px solid rgba(201,164,95,.48); background: rgba(20,21,25,.78); color: #f0eee8; font: inherit; font-weight: 700; cursor: pointer; }
.submit-order:hover { background: rgba(201,164,95,.12); border-color: rgba(201,164,95,.8); }
.submit-order:disabled { cursor: wait; opacity: .62; }
.submit-status { min-height: 18px; margin: 0; color: rgba(238,238,234,.72); font-size: 12px; line-height: 1.45; }
.order-design-files { min-width: 0; padding: 12px 0; }
.order-design-files h3 { margin: 0 0 6px; font-size: 13px; }
.order-design-files .design-source-files { list-style: none; margin: 0; padding: 0; }
.order-design-files .designer-download { margin-top:10px; min-height:34px; padding:7px 12px; }
.order-design-files .designer-download-status { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.order-design-files .designer-download-status:empty { display:none; }
.order-design-files li { display: grid; gap: 3px; padding: 5px 0; overflow-wrap: anywhere; font-size: 13px; }
.order-design-files a { color: #e5cfaa; text-decoration: underline; text-underline-offset: 3px; }
.order-design-files small { color: var(--muted); }

.preview-area, .preview-stage { overflow: hidden; min-width: 0; }
#productStage { height: 360px; min-height: 0; }
#productStage::before { display: none; }
#productStage > img, #productStage.is-catalog-preview > img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; transform: none; animation: none;
}
.customer-fields h3 { margin: 10px 0 0; font-size: 15px; }
.customer-panel .customer-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px 12px; padding: 12px 16px; }
body.is-checkout { overflow: hidden; }
.customer-fields > .field-wide, .customer-fields > h3 { grid-column: 1 / -1; }
.customer-fields > h3 { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 2px; font-size: 13px; }
.customer-fields label { min-width: 0; }
.customer-panel input:not([type="checkbox"]), .customer-panel select, .customer-panel textarea {
  min-height: 34px; padding: 6px 9px; border-radius: 5px; font: inherit; font-size: 13px; line-height: 1.4;
}
.customer-panel textarea { height: 62px; min-height: 62px; }
.customer-fields input[data-delivery="postalCode"] { max-width: 112px; }
.customer-fields .recipient-toggle { display: flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; }
.recipient-toggle input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--gold); }
.recipient-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.recipient-fields[hidden] { display: none; }
.customer-fields .recipient-fields label { grid-column: auto; }
.checkout-comments { font-size: 12px; color: var(--muted); padding: 4px 0; }
.checkout-comments summary { cursor: pointer; padding: 4px 0; }
.checkout-comments label { margin-top: 8px; }
.checkout-submit-area { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line-soft); }
.checkout-submit-area .submit-order { width: 100%; min-height: 42px; border-radius: 5px; padding: 9px 12px; font-size: 14px; line-height: 1.4; }
.checkout-submit-area .submit-order[data-state="sent"] { background: #196447; border-color: #479a73; color: #fff; opacity: 1; cursor: default; }
.checkout-submit-area .submit-order[data-state="saved"], .checkout-submit-area .submit-order[data-state="review"] { background: #3e351e; color: #f3d89c; border-color: #a78b50; opacity: 1; cursor: default; }
.checkout-submit-area .submit-order[data-state="review"] { cursor: pointer; }
.checkout-submit-area .submit-order[data-action="download"] { background:#302a1e; border-color:var(--gold); color:#ead7af; cursor:pointer; }
.checkout-submit-area .submit-order[data-action="download"]:hover { background:#413726; }
.checkout-submit-area .submit-order[aria-busy="true"] { cursor:wait; }
.checkout-submit-area .submit-order[data-state="error"] { border-color: #d88787; color: #ffd6d6; }
.checkout-submit-area #submitStatus:not(:empty) { padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(198,161,95,.06); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-submit-area #submitStatus[data-state="sent"] { border-color: #479a73; color: #c5eddb; }
.checkout-submit-area #submitStatus[data-state="error"] { border-color: #d88787; color: #ffd6d6; }
.checkout-submit-area .privacy-consent { font-size: 11px; }
@media(max-width:360px) {
  .customer-panel .customer-fields { gap: 10px; padding: 12px; }
  .customer-panel input:not([type="checkbox"]), .customer-panel select { font-size: 12px; }
  .recipient-fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 540px) {
  .request-entry__header, .page-header { flex-wrap: wrap; }
  .request-entry__stage { height: 260px; }
  .request-entry__tabs { gap: 6px; }
  .request-entry__field-grid { grid-template-columns: minmax(0,1fr); }
  .request-entry__readout strong, .request-entry__header h2 { overflow-wrap: anywhere; }
  #productStage { height: 280px; }
}
@media (max-width: 900px) {
  .customer-panel input:not([type="checkbox"]), .customer-panel select, .customer-panel textarea,
  .request-entry input:not([type="checkbox"]), .request-entry select, .request-entry textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .checkout-submit-area .submit-order, .request-entry__tabs button { min-height: 44px; }
  .checkout-panel { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.material-assistance { position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:48px;padding:10px 16px;margin:0;border:0;border-bottom:1px solid var(--line-soft);background:transparent;font-size:14px;font-weight:400;line-height:1.4;color:#c9cbd0;cursor:pointer; }
.material-assistance__switch { position:relative;width:34px;height:20px;border:1px solid #43464e;border-radius:10px;background:#25272d;pointer-events:none;transition:background-color 150ms ease,border-color 150ms ease; }
.material-assistance__switch::before { content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#a6abb4;transition:transform 150ms ease,background-color 150ms ease; }
.material-assistance input:checked + .material-assistance__switch { border-color:rgba(198,161,95,.6);background:rgba(198,161,95,.12); }
.material-assistance input:checked + .material-assistance__switch::before { transform:translateX(14px);background:#c6a15f; }
.material-assistance input:focus-visible + .material-assistance__switch { outline:2px solid #c6a15f;outline-offset:3px; }
.material-assistance__text { min-width:0; overflow-wrap:break-word; }
.cart-validation-message { margin:10px 0; padding:10px 12px; border-left:2px solid #d87575; color:#f0b0a6; font-size:13px; }
.request-entry__order-quantity.is-invalid { border-left:2px solid #d87575; padding-left:10px; }
.request-entry__order-quantity.is-invalid input[type="number"] { border-color:#d87575; }
.cart-quantity-hint { flex-basis:100%; grid-column:1/-1; margin:0; color:#f0b0a6; font-size:12px; line-height:1.5; }
.material-assistance input { position:absolute;left:16px;top:50%;transform:translateY(-50%);width:34px;height:20px;margin:0;opacity:0;cursor:pointer; }

/* One sliding checkout layer covers the cart without resizing its host. */
body.is-checkout { overflow:hidden; }
body .customer-panel { position:fixed; inset:0; width:100%; height:100%; max-height:none; overflow:auto; overscroll-behavior:contain; border:0; border-radius:0; box-shadow:none; background:#141519; backdrop-filter:none; display:grid; grid-template-columns:minmax(0,1fr) 280px; grid-template-rows:auto auto 1fr; align-items:start; }
.customer-panel .checkout-panel__header { grid-column:1/-1; }
.customer-panel .customer-fields { width:100%; max-width:720px; }
.customer-panel .customer-type { margin:0; padding:0 0 6px; border:0; display:flex; flex-wrap:wrap; gap:4px; }
.customer-type legend { padding:0; margin-bottom:8px; color:var(--muted); font-size:12px; }
.customer-fields .customer-type label { position:relative; display:flex; min-height:38px; cursor:pointer; }
.customer-fields .customer-type label > span { display:flex; align-items:center; padding:8px 13px; border:1px solid #444039; border-radius:5px; background:#161719; color:#d3d0c9; font-size:12px; }
.customer-type input { position:absolute; opacity:0; width:1px; height:1px; }
.customer-type input:checked + span { border-color:#b89a5d; color:#ead4a3; background:#29261f; }
.customer-type input:focus-visible + span { outline:2px solid #d8c296; outline-offset:2px; }
.customer-panel .business-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 12px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); }
.business-fields > .field-wide { grid-column:1/-1; }
.customer-panel .business-fields > #legalAddressField { grid-column:1/-1; }
.business-fields input { width:100%; }
#customerInn { max-width:190px; }
#customerKpp { max-width:160px; }
.business-requisites { min-width:0; font-size:12px; color:var(--muted); }
.business-requisites summary { cursor:pointer; color:#d8c296; padding:5px 0; }
.business-requisites label { display:grid; gap:6px; margin-top:10px; }
.business-requisites textarea { width:100%; min-height:58px; resize:vertical; }
#customerOgrn { max-width:210px; }
.inn-lookup-row { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.inn-lookup-row label { flex:0 1 190px; }
.inn-lookup-row button { min-height:34px; padding:7px 12px; border:1px solid #8b784d; border-radius:5px; background:#191a1c; color:#e5d0a2; font-size:12px; }
.company-lookup-feedback { font-size:12px; min-width:0; }
.company-lookup-feedback p { margin:0 0 5px; color:var(--muted); }
.company-lookup-feedback p:empty { display:none; }
.company-lookup-feedback a { color:#b9b5aa; font-size:11px; }
#companyLookupResults { display:grid; gap:5px; max-height:240px; overflow:auto; margin:8px 0; }
.company-lookup-choice { display:grid; gap:5px; text-align:left; white-space:normal; overflow-wrap:anywhere; padding:10px; border-radius:5px; border:1px solid #6b6047; background:#1d1e20; color:#e8e5df; }
.company-lookup-choice span { font-size:11px; font-weight:400; color:#bdb9af; }
.customer-panel .customer-fields > label:not(.field-wide) { max-width:330px; }
.customer-panel .checkout-comment { display:grid; gap:8px; font-size:12px; color:var(--muted); }
.customer-panel .checkout-comment textarea { width:100%; height:140px; min-height:100px; resize:vertical; }
body:not(.is-checkout) .customer-panel { display:grid; }
.customer-panel .customer-fields { grid-column:1; grid-row:2/4; }
.customer-panel .order-summary { grid-column:2; grid-row:2; }
.customer-panel .checkout-submit-area { grid-column:2; grid-row:3; }
.customer-panel .checkout-panel__header button { flex:0 0 auto; width:auto; min-height:44px; padding:0 12px; font-size:12px; white-space:nowrap; }
@media(prefers-reduced-motion:reduce) { body .customer-panel { transition:none; } }
@media(max-width:700px) {
  body .customer-panel, body:not(.is-checkout) .customer-panel { display:block; }
  .customer-panel .customer-fields { grid-template-columns:minmax(0,1fr); }
}
/* The assistant owns scrolling; embedded forms participate in its message flow. */
html.is-chat-inline,body.is-chat-inline {height:auto;min-height:0;overflow:visible}
body.is-chat-inline .order-shell {height:auto;min-height:0}
body.is-chat-inline .order-layout {display:block}
body.is-chat-inline.is-checkout .order-header,body.is-chat-inline.is-checkout .order-workspace {display:none}
body.is-chat-inline .customer-panel {position:static;inset:auto;height:auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;transform:none;transition:none;background:transparent}
body.is-chat-inline:not(.is-checkout) .customer-panel {display:none}
body.is-chat-inline .order-header {min-height:0;padding:8px 10px;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
body.is-chat-inline .order-header .eyebrow {display:none}
body.is-chat-inline .title-row {flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px}
body.is-chat-inline .order-header h1 {font-size:17px}
body.is-chat-inline .header-actions {gap:6px;width:auto}
body.is-chat-inline .header-actions>a:first-child {display:none!important}
body.is-chat-inline .header-actions .button {min-height:34px;padding:5px 9px;font-size:12px}
body.is-chat-inline .material-assistance {gap:8px;padding:8px 10px;font-size:13px}
body.is-chat-inline .material-assistance input {left:10px}
body.is-chat-inline .request-items-list {padding:0 10px 8px;gap:12px}
body.is-chat-inline .request-entry {animation:none;transform:none}
body.is-chat-inline .request-entry+.request-entry {border-top:1px solid var(--line);padding-top:8px}
body.is-chat-inline .request-entry__header {min-height:0;padding:8px 0;gap:8px;flex-wrap:nowrap;align-items:start}
body.is-chat-inline .request-entry__header h2 {font-size:14px;line-height:1.35}
body.is-chat-inline .request-entry__include {flex:none;padding-top:2px}
body.is-chat-inline .request-entry__body {display:block}
body.is-chat-inline .request-entry__preview {display:grid;grid-template-columns:96px minmax(0,1fr);min-height:0;gap:8px;align-items:center}
body.is-chat-inline .request-entry__stage {grid-column:1;grid-row:1;width:96px;height:90px;min-height:0;padding:0}
body.is-chat-inline .request-entry__tabs {grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0}
body.is-chat-inline .request-entry__actions {display:contents}
body.is-chat-inline .request-entry__tabs :is(button,a) {width:100%;min-width:0;min-height:32px;height:auto;padding:5px;font-size:11px;white-space:normal;text-align:center;line-height:1.3}
body.is-chat-inline .request-entry__fields {padding:4px 0;gap:6px;border:0}
body.is-chat-inline .request-entry__field-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body.is-chat-inline .request-entry__field-grid>:is(.request-entry__order-quantity,.request-entry__readout,.request-entry__dimensions) {min-height:0;padding:5px 0}
body.is-chat-inline .request-entry__dimensions>summary {min-height:48px;padding-block:4px}
body.is-chat-inline .request-entry__quantity input {width:100%;max-width:130px}
body.is-chat-inline .request-entry :is(input:not([type=checkbox]),select,textarea) {min-height:36px;font-size:14px;padding:5px 7px}
body.is-chat-inline .request-entry__extra {font-size:12px;color:var(--muted)}
body.is-chat-inline .request-entry__extra>summary {padding:6px 0;cursor:pointer}
body.is-chat-inline .request-entry__extra .order-design-files {padding:6px 0}
body.is-chat-inline .request-entry__checkout {min-height:36px;font-size:12px;margin-top:2px}
@media(max-width:700px) {
  body.is-chat-inline .request-entry :is(input:not([type=checkbox]),select,textarea) {font-size:16px}
}
