/* Order wizard — in-section lock-in */
.order { padding: 3.5rem 0 4.5rem; position: relative; }
.order-backdrop {
  position: fixed; inset: 0; z-index: 8990;
  background: rgba(7,6,5,0.72);
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.order-backdrop[hidden] { display: none; }
.order-backdrop.is-on {
  opacity: 1; pointer-events: auto;
}

.order-placeholder { display: block; width: 100%; pointer-events: none; }

.order-shell {
  background: linear-gradient(180deg, #161310, #0e0c0a);
  border: 1px solid rgba(232,201,160,0.22);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  transition:
    transform 0.65s var(--ease),
    box-shadow 0.65s var(--ease),
    border-color 0.65s var(--ease),
    max-height 0.65s var(--ease);
}
.order-shell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #c4843c, #e8c9a0, #d4a574);
  background-size: 200% 100%; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 50%; } }

.order-shell.is-lifting {
  position: fixed;
  z-index: 9100;
  margin: 0;
  will-change: top, left, width, transform, max-height, box-shadow;
  transition:
    top 0.65s var(--ease),
    left 0.65s var(--ease),
    width 0.65s var(--ease),
    max-height 0.65s var(--ease),
    transform 0.65s var(--ease),
    box-shadow 0.65s var(--ease),
    border-color 0.65s var(--ease);
}
.order-shell.is-focused {
  position: fixed;
  z-index: 9100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(1180px, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  max-height: min(88svh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
  border-color: rgba(232,201,160,0.42);
  box-shadow: 0 40px 120px rgba(0,0,0,0.62), 0 0 0 1px rgba(232,201,160,0.18);
}
.order-shell.is-focused .order-top,
.order-shell.is-focused .order-progress,
.order-shell.is-focused .order-pills,
.order-shell.is-focused .order-footer {
  flex-shrink: 0;
}

.order-close {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(7,6,5,0.55); color: var(--gold-2);
  display: grid; place-items: center;
  cursor: pointer;
}
.order-close svg { width: 16px; height: 16px; }
.order-close:hover { background: var(--gold); color: var(--void); transform: rotate(90deg); }
.order-close[hidden] { display: none !important; }

.order-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.35rem 1.4rem 0.5rem; gap: 1rem;
}
.order-top-end {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.order-brand strong {
  display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400;
  padding-bottom: 0.28em; line-height: 1.38; overflow: visible;
}
.order-brand span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold);
  text-transform: uppercase;
}
.order-step-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); text-align: right;
}
.order-step-label strong { display: block; color: var(--gold-2); font-size: 1rem; margin-top: 0.15rem; }

.order-progress {
  margin: 0 1.4rem; height: 4px;
  background: rgba(232,201,160,0.12);
  border-radius: 999px; overflow: hidden;
}
.order-progress-fill {
  height: 100%; width: 12.5%;
  background: linear-gradient(90deg, #c4843c, #e8c9a0, #d4a574);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(212,165,116,0.35);
  transition: width 0.4s var(--ease);
}
.order-pills {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  padding: 0.75rem 1.4rem 0.55rem;
}
.order-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(243,236,225,0.38);
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.order-pill-mark {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(232,201,160,0.28);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 9px; line-height: 1;
  color: transparent;
  background: rgba(20,17,14,0.55);
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.order-pill.is-active {
  color: var(--gold-2);
  border-color: rgba(232,201,160,0.35);
  background: rgba(212,165,116,0.1);
  box-shadow: 0 0 0 1px rgba(212,165,116,0.08);
}
.order-pill.is-active .order-pill-mark {
  border-color: var(--gold);
  background: rgba(212,165,116,0.22);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.12);
}
.order-pill.is-done { color: var(--gold); }
.order-pill.is-done .order-pill-mark {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--void);
}
.order-pill.is-done .order-pill-mark::before { content: "✓"; font-weight: 700; }
.order-pill[hidden] { display: none !important; }

.order-body {
  padding: 0.5rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}
.order-body[hidden] { display: none !important; }
.order-scroll {
  min-height: 0;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.order-shell.is-focused .order-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.15rem;
}
.order-panel { display: none; animation: panelIn 0.4s var(--ease); min-width: 0; max-width: 100%; }
.order-panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.order-panel-title {
  font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 400; margin: 0 0 0.4rem; line-height: 1.38; padding-bottom: 0.28em;
  overflow: visible;
}
.order-panel-sub { color: var(--muted); margin: 0 0 1.25rem; max-width: 36rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; min-width: 0; max-width: 100%; }
.field-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.field-hint { font-size: 0.82rem; color: var(--muted); }
.field-hint:empty { display: none; }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
}
.field-row > .field {
  min-width: 0;
  max-width: 100%;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%; min-width: 0; max-width: 100%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 0.95rem; color: var(--paper);
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,165,116,0.12);
}
.field input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.field input[type="date"]::-webkit-datetime-edit-text,
.field input[type="date"]::-webkit-datetime-edit-month-field,
.field input[type="date"]::-webkit-datetime-edit-day-field,
.field input[type="date"]::-webkit-datetime-edit-year-field {
  min-width: 0;
  padding: 0;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}
.field-check {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--muted); grid-template-columns: none;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(20,17,14,0.55);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field-check:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212,165,116,0.1);
  box-shadow: 0 0 0 1px rgba(212,165,116,0.35) inset, 0 0 0 4px rgba(212,165,116,0.08);
  color: var(--paper);
}
.field-check input {
  appearance: none; -webkit-appearance: none;
  margin-top: 0.1rem; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 7px; border: 1.5px solid rgba(232,201,160,0.35);
  background: rgba(7,6,5,0.45);
  display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.field-check input::before {
  content: "✓";
  color: transparent;
  font-size: 13px; font-weight: 700; line-height: 1;
  transform: scale(0.7);
  transition: color 0.2s, transform 0.2s;
}
.field-check input:checked {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.16);
}
.field-check input:checked::before {
  color: var(--void);
  transform: scale(1);
}

.qty {
  display: inline-flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; width: fit-content;
  max-width: 100%;
  background: var(--panel);
  isolation: isolate;
  box-sizing: border-box;
}
.qty input {
  width: 64px; flex: 1 1 64px; min-width: 0; text-align: center; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; padding: 0.75rem 0.25rem !important;
  font-size: 1.15rem; -moz-appearance: textfield;
  position: relative; z-index: 2;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn {
  flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--gold-2);
  font-size: 1.25rem; line-height: 1;
  position: relative; z-index: 1;
  transform: none !important;
}
.qty-btn:hover,
.qty-btn:focus-visible { background: rgba(212,165,116,0.12); transform: none !important; }
.choice-card.is-disabled {
  opacity: 0.78;
  pointer-events: none;
  filter: grayscale(0.28);
  cursor: not-allowed;
}
.choice-card.is-disabled .choice-card-inner {
  background: rgba(20,17,14,0.45);
}
.choice-card.is-disabled input {
  cursor: not-allowed;
}
.choice-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}
.choice-card-head strong { margin-bottom: 0; }
.choice-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.3;
}
.choice-tag--ok {
  background: rgba(212,165,116,0.18);
  color: var(--gold-2);
  border: 1px solid rgba(212,165,116,0.38);
}
.choice-tag--off {
  background: rgba(196,92,60,0.16);
  color: #e8b4a4;
  border: 1px solid rgba(196,92,60,0.38);
}

.choice-set { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; max-width: 100%; }
.choice-set legend {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.65rem; padding: 0;
}
.choice-grid { display: grid; gap: 0.75rem; min-width: 0; max-width: 100%; }
.choice-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choice-card { display: block; cursor: pointer; margin: 0; position: relative; }
.choice-card input {
  position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%;
  cursor: pointer; z-index: 2;
}
.choice-card-inner {
  display: block; position: relative;
  background: linear-gradient(180deg, rgba(28,24,20,0.95), rgba(18,15,13,0.98));
  border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem 1rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.choice-card-inner strong { display: block; margin-bottom: 0.25rem; color: var(--paper); }
.choice-card-inner .choice-copy > span:not(.choice-card-head),
.choice-card-inner > span:not(.choice-card-head):not(.choice-check):not(.choice-visual):not(.choice-icon):not(.choice-copy):not(.foil-book):not(.foil-preview):not(.print-mode-visual) {
  display: block; font-size: 0.84rem; color: var(--muted);
}
.choice-card-inner .choice-card-head {
  display: flex;
  color: inherit;
  font-size: inherit;
}
.choice-card-inner .choice-tag {
  display: inline-block;
  font-size: 9px;
}
.choice-check {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(232,201,160,0.28);
  background: rgba(7,6,5,0.45);
  display: grid; place-items: center;
  color: transparent;
  pointer-events: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.choice-check::before {
  content: "✓";
  font-size: 13px; font-weight: 700; line-height: 1;
  transform: scale(0.7);
  transition: transform 0.22s var(--ease);
}
.choice-card:hover .choice-card-inner {
  border-color: rgba(232,201,160,0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.choice-card.is-disabled:hover .choice-card-inner {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.choice-card:has(input:checked) .choice-card-inner,
.choice-card input:checked + .choice-card-inner {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,165,116,0.18), rgba(20,17,14,0.94));
  box-shadow:
    0 0 0 1.5px rgba(212,165,116,0.75) inset,
    0 0 0 5px rgba(212,165,116,0.14),
    0 14px 34px rgba(0,0,0,0.3);
}
.choice-card:has(input:checked) .choice-check,
.choice-card input:checked + .choice-card-inner .choice-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.18);
  transform: scale(1.05);
}
.choice-card:has(input:checked) .choice-check::before,
.choice-card input:checked + .choice-card-inner .choice-check::before {
  transform: scale(1);
}

.choice-card--visual .choice-card-inner,
.choice-card--icon .choice-card-inner,
.choice-card--printmode .choice-card-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 0.95rem;
  align-items: center;
  padding: 0.95rem 2.6rem 0.95rem 0.95rem;
}
.choice-card--visual .choice-check,
.choice-card--icon .choice-check,
.choice-card--printmode .choice-check,
.choice-card--foil .choice-check {
  top: 0.75rem; right: 0.75rem;
}
.choice-copy { display: grid; gap: 0.2rem; min-width: 0; }
.choice-copy strong { margin-bottom: 0; }
.choice-visual {
  width: 78px; height: 108px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(232,201,160,0.22);
  background: #100e0c;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  flex-shrink: 0;
  display: grid; place-items: center;
  padding: 0.35rem;
}
.choice-visual img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block;
  transition: transform 0.35s var(--ease);
}
.choice-card:hover .choice-visual img,
.choice-card:has(input:checked) .choice-visual img {
  transform: scale(1.03);
}
.field-explain {
  margin: -0.15rem 0 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.45;
}
[data-bind-copy][hidden],
[data-print-copy][hidden] { display: none !important; }
.choice-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(232,201,160,0.18);
  color: var(--gold-2);
  flex-shrink: 0;
}
.choice-icon svg { width: 30px; height: 30px; }
.choice-card:has(input:checked) .choice-icon {
  background: rgba(212,165,116,0.18);
  border-color: rgba(212,165,116,0.42);
  color: var(--gold);
}

.cover-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.85rem;
}
.cover-swatch {
  display: grid; justify-items: stretch; gap: 0.45rem; text-align: center;
  padding: 0.45rem 0.4rem 0.7rem; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28,24,20,0.95), rgba(18,15,13,0.98));
  cursor: pointer; font-size: 0.78rem; position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.cover-swatch input {
  position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%;
  cursor: pointer; z-index: 2;
}
.cover-thumb {
  display: block; aspect-ratio: 3 / 4.2; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(232,201,160,0.18);
  background: #100e0c;
  box-shadow: 0 8px 18px rgba(0,0,0,0.32);
  position: relative;
}
.cover-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.cover-swatch.has-custom-color .cover-thumb {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.32);
}
.cover-swatch.has-custom-photo .cover-thumb img {
  opacity: 1 !important;
}
.cover-meta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  color: var(--muted);
}
.swatch-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.cover-swatch .choice-check {
  top: 0.55rem; right: 0.55rem; width: 22px; height: 22px;
}
.cover-swatch:hover {
  border-color: rgba(232,201,160,0.4);
  transform: translateY(-2px);
}
.cover-swatch:hover .cover-thumb img { transform: scale(1.04); }
.cover-swatch[hidden] { display: none !important; }
.cover-swatch.is-selected,
.cover-swatch:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,165,116,0.14), rgba(20,17,14,0.92));
  box-shadow:
    0 0 0 1px rgba(212,165,116,0.55) inset,
    0 0 0 4px rgba(212,165,116,0.1),
    0 12px 28px rgba(0,0,0,0.28);
  opacity: 1;
}
.cover-swatch.is-selected .choice-check,
.cover-swatch:has(input:checked) .choice-check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.18);
}
.cover-swatch.is-selected .cover-meta,
.cover-swatch:has(input:checked) .cover-meta {
  color: var(--gold-2);
}

.foil-preview {
  display: block; width: 100%; height: 8px; border-radius: 999px; margin: 0;
}
.foil-gold { background: linear-gradient(90deg, #8a6a2f, #e8c9a0, #d4a574, #8a6a2f); }
.foil-silver { background: linear-gradient(90deg, #6a6e74, #e8ecef, #b8c0c4, #6a6e74); }
.choice-card--foil .choice-card-inner {
  display: grid; gap: 0.7rem; justify-items: stretch;
  padding: 1rem 2.6rem 1rem 1rem;
}
.foil-book {
  display: grid; grid-template-columns: 10px 1fr; gap: 0;
  height: 78px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  border: 1px solid rgba(232,201,160,0.18);
}
.foil-book-spine {
  background: linear-gradient(180deg, #2a231c, #151210);
  border-right: 1px solid rgba(0,0,0,0.35);
}
.foil-book-face {
  display: grid; align-content: center; gap: 0.45rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(145deg, #3a2f24, #1c1713 55%, #14110e);
}
.foil-book--silver .foil-book-face {
  background: linear-gradient(145deg, #3a3d42, #1a1c1f 55%, #121315);
}
.foil-lines {
  display: block; height: 18px;
  background:
    linear-gradient(currentColor, currentColor) 0 2px / 62% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 48% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 14px / 55% 1.5px no-repeat;
  color: rgba(232,201,160,0.55);
  opacity: 0.85;
}
.foil-book--silver .foil-lines { color: rgba(220,226,232,0.65); }

.choice-icon--spine {
  width: 58px; height: 58px; padding: 0; overflow: hidden;
}
.spine-demo {
  position: relative; width: 34px; height: 42px;
  transform: perspective(180px) rotateY(-18deg);
  transform-style: preserve-3d;
}
.spine-demo-front {
  position: absolute; inset: 0;
  border-radius: 3px 5px 5px 3px;
  background: linear-gradient(145deg, #4a3a2a, #1d1712);
  border: 1px solid rgba(232,201,160,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.spine-demo-edge {
  position: absolute; left: -7px; top: 1px; bottom: 1px; width: 7px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #5a4632, #2a2118);
  border: 1px solid rgba(232,201,160,0.2);
  border-right: 0;
}
.spine-demo-text {
  position: absolute; left: -5px; top: 8px; bottom: 8px; width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, #8a6a2f, #e8c9a0, #d4a574);
  box-shadow: 0 0 6px rgba(232,201,160,0.35);
}
.spine-demo--no .spine-demo-edge {
  background: linear-gradient(180deg, #3a322a, #1a1612);
}

.print-mode-visual {
  width: 88px; min-height: 68px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  align-items: end; justify-items: center;
  padding: 0.45rem 0.4rem;
  border-radius: 14px;
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(232,201,160,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.print-mode-visual--mixed {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  min-height: 78px;
}
.sheet {
  width: 30px; height: 40px; border-radius: 4px;
  border: 1px solid rgba(120,95,60,0.35);
  background: #f3ece1;
  display: grid; align-content: start; gap: 3px; padding: 6px 5px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.22);
}
.sheet--small { width: 22px; height: 30px; padding: 4px 3px; gap: 2px; }
.sheet i {
  display: block; height: 2px; border-radius: 1px;
  background: rgba(40,30,22,0.55);
}
.sheet i:nth-child(2) { width: 78%; }
.sheet i:nth-child(3) { width: 62%; }
.sheet--blank {
  background:
    linear-gradient(135deg, transparent 46%, rgba(40,30,22,0.18) 48%, rgba(40,30,22,0.18) 52%, transparent 54%),
    linear-gradient(180deg, #f7f2ea, #e8e0d4);
}
.sheet--blank i { display: none; }
.sheet--back {
  background: linear-gradient(180deg, #ebe4d8, #d9d0c2);
  transform: rotate(-6deg);
  border-color: rgba(90,70,45,0.4);
}
.choice-card:has(input:checked) .print-mode-visual {
  background: rgba(212,165,116,0.18);
  border-color: rgba(212,165,116,0.42);
}

.ink-swatches {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  width: 28px; height: 28px;
}
.ink-swatches i {
  display: block; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}
.ink-swatches--color i:nth-child(1) { background: #1e3a6e; }
.ink-swatches--color i:nth-child(2) { background: #8b1e1e; }
.ink-swatches--color i:nth-child(3) { background: #2d5a3d; }
.ink-swatches--color i:nth-child(4) { background: #d4a574; }
.ink-swatches--bw i:nth-child(1) { background: #111; }
.ink-swatches--bw i:nth-child(2) { background: #555; }
.ink-swatches--bw i:nth-child(3) { background: #999; }
.ink-swatches--bw i:nth-child(4) { background: #ddd; }

.info-banner, .warn-banner {
  border-radius: 14px; padding: 0.95rem 1.05rem; margin: 0.5rem 0 1rem;
  font-size: 0.9rem; color: var(--muted);
  border: 1px solid rgba(232,201,160,0.2); background: rgba(212,165,116,0.06);
}
.warn-banner {
  border-color: rgba(196,132,60,0.35); background: rgba(196,132,60,0.08);
}
.warn-banner strong, .info-banner strong { display: block; color: var(--gold-2); margin-bottom: 0.45rem; }
.info-banner p { margin: 0.35rem 0 0; }
[data-spine-cover-note][hidden] { display: none !important; }
.warn-banner ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.warn-banner li { margin: 0.25rem 0; }
.warn-banner p { margin: 0.35rem 0 0; }

.upload-stack {
  display: grid;
  gap: 0.85rem;
}
.upload-block {
  display: grid;
  gap: 0.4rem;
}
.upload-block .field-label {
  margin: 0;
}
.upload {
  display: grid; justify-items: center; gap: 0.45rem; text-align: center;
  padding: 2rem 1.2rem; border-radius: 16px; cursor: pointer;
  border: 1px dashed rgba(232,201,160,0.35); background: rgba(20,17,14,0.65);
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.upload:hover, .upload.is-drag {
  border-color: var(--gold); background: rgba(212,165,116,0.08);
}
.upload input { position: absolute; opacity: 0; width: 0; height: 0; }
.upload-icon { width: 42px; height: 42px; color: var(--gold); }
.upload-icon svg { width: 42px; height: 42px; }
.upload-title { font-size: 0.98rem; }
.upload-hint { font-size: 0.82rem; color: var(--muted); }
.upload-file {
  margin-top: 0.4rem; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--gold-2); word-break: break-all;
}
.upload.has-file { border-style: solid; border-color: var(--gold); }
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.55rem;
}
.upload-actions[hidden] { display: none !important; }
.upload-remove {
  border: 1px solid rgba(232,201,160,0.32);
  background: rgba(20,17,14,0.55);
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.upload-remove:hover {
  background: rgba(196,92,60,0.16);
  border-color: rgba(196,92,60,0.45);
  color: #e8b4a4;
}
.upload-pages {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-2);
}
.upload-pages[hidden] { display: none !important; }

.mixed-ranges {
  margin-top: 0.5rem; padding: 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(20,17,14,0.5);
}
.mixed-ranges[hidden] { display: none !important; }

.price-box {
  margin-top: 0.5rem; padding: 1.1rem 1.15rem; border-radius: 16px;
  border: 1px solid rgba(212,165,116,0.28); background: rgba(212,165,116,0.06);
}
.price-box-title {
  margin: 0 0 0.85rem; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.price-rows { display: grid; gap: 0.75rem; }
.price-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 0.15rem 0.75rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row > span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); grid-row: 1 / span 2; align-self: center;
}
.price-row strong { font-size: 1.05rem; }
.price-row em { font-style: normal; font-size: 0.8rem; color: var(--muted); grid-column: 2; }
.price-box-foot { margin: 0.9rem 0 0; font-size: 0.82rem; color: var(--muted); }

.review {
  display: grid; gap: 0.55rem; margin-bottom: 1.1rem;
  padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
}
.review-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem;
  padding: 0.45rem 0; border-bottom: 1px solid rgba(232,201,160,0.1);
  font-size: 0.92rem;
}
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; align-self: start; padding-top: 0.2rem; }
.review-row strong { font-weight: 500; word-break: break-word; }

.order-footer {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0 0.4rem; border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 1rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent, #0e0c0a 18%);
}
.order-footer[hidden] { display: none !important; }
.order-footer-spacer { flex: 1; }
.order-footer .btn[hidden],
.order-panel [hidden] { display: none !important; }

.order-success { padding: 3rem 1.5rem; text-align: center; }
.order-success[hidden] { display: none !important; }
.order-success-actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
}
.success-mark {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(212,165,116,0.15); color: var(--gold-2); border: 1px solid var(--gold);
  animation: popIn 0.55s var(--ease);
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.order-success h3 { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin: 0 0 0.6rem; }
.order-success p { color: var(--muted); max-width: 28rem; margin: 0 auto 1.4rem; }

.order-leave {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(7,6,5,0.72);
  display: grid; place-items: center; padding: 1.2rem;
  animation: panelIn 0.3s var(--ease);
}
.order-leave[hidden] { display: none !important; }
.order-leave-card {
  width: min(360px, 100%);
  background: var(--raised); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.3rem 1.2rem; text-align: center;
}
.order-leave-card h4 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.4rem; }
.order-leave-card p { margin: 0 0 1rem; color: var(--muted); }
.order-leave-actions { display: flex; gap: 0.55rem; justify-content: center; flex-wrap: wrap; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.choice-set.is-invalid .choice-card-inner,
.upload.is-invalid {
  border-color: #c45c3c !important;
  box-shadow: 0 0 0 3px rgba(196,92,60,0.12);
}

.qty-btn, .cover-swatch, .upload, .choice-card, .order-close {
  cursor: pointer;
}

/* Live book / product preview */
.cover-studio,
.review-showcase {
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(232,201,160,0.22);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212,165,116,0.1), transparent 55%),
    linear-gradient(180deg, rgba(28,24,20,0.95), rgba(14,12,10,0.98));
  overflow: hidden;
}
.cover-studio-head,
.review-showcase-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.studio-live-hint {
  margin: 0.75rem 0 0; text-align: center;
  font-size: 0.78rem; color: var(--muted);
}
.book-flip-tabs {
  display: inline-flex; gap: 0.25rem; padding: 0.2rem;
  border-radius: 999px; border: 1px solid rgba(232,201,160,0.22);
  background: rgba(7,6,5,0.45);
}
.book-flip-tab {
  border: 0; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 999px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.book-flip-tab.is-active {
  background: rgba(212,165,116,0.2); color: var(--gold-2);
}
.book-stage {
  display: grid; place-items: center;
  min-height: 300px;
  perspective: 1400px;
  padding: 0.5rem 0 0.25rem;
}
.book-stage--review { min-height: 360px; }
.book-3d {
  --cover: #6b6b6b;
  --foil: #e8c9a0;
  position: relative;
  width: min(210px, 52vw);
  aspect-ratio: 3 / 4.25;
  transform-style: preserve-3d;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.5));
}
.book-3d--xl { width: min(250px, 62vw); }
.book-3d.is-enter { animation: bookEnter 0.85s var(--ease) both; }
@keyframes bookEnter {
  from { opacity: 0; transform: translateY(18px) rotateY(-18deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.book-3d[data-side="back"] .book-3d-inner { transform: rotateY(180deg); }
.book-3d[data-cover="blue"] { --cover: #1e3a6e; }
.book-3d[data-cover="black"] { --cover: #161616; }
.book-3d[data-cover="red"] { --cover: #8b1e1e; }
.book-3d[data-cover="green"] { --cover: #2d5a3d; }
.book-3d[data-cover="grey"] { --cover: #6b6b6b; }
.book-3d[data-foil="gold"] { --foil: #e8c9a0; --foil-2: #b8893c; }
.book-3d[data-foil="silver"] { --foil: #e8ecef; --foil-2: #9aa3ab; }
.book-3d-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book-face {
  position: absolute; inset: 0;
  /* Spine on the left — paper pages peek only on the right (fore-edge) */
  border-radius: 2px 12px 12px 2px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--cover);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 12px 0 18px rgba(0,0,0,0.38),
    inset -1px 0 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.35);
}
.book-face--front { transform: translateZ(10px); }
.book-face--back {
  transform: rotateY(180deg) translateZ(10px);
  border-radius: 12px 2px 2px 12px;
  box-shadow:
    inset -12px 0 18px rgba(0,0,0,0.38),
    inset 1px 0 0 rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.35);
}
.book-cloth {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.16), transparent 34%, rgba(0,0,0,0.22) 72%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px),
    var(--cover);
  transition: background-color 0.35s ease;
}
.book-cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.92;
  pointer-events: none;
  transition: opacity 0.35s;
}
.book-foil-block {
  position: absolute; inset: 8% 9% 9%;
  z-index: 3;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 0.32rem; text-align: center;
  pointer-events: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}
.book-foil-placeholder {
  margin: 0; padding: 0 0.4rem;
  font-size: 0.68rem; line-height: 1.35; color: rgba(243,236,225,0.55);
}
.book-foil-line {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 700; letter-spacing: 0.045em;
  line-height: 1.2;
  color: var(--foil);
  -webkit-text-fill-color: var(--foil);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.65),
    0 0 1px rgba(255,255,255,0.25),
    0 0 12px color-mix(in srgb, var(--foil) 40%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  box-sizing: border-box;
}
.book-foil-line.is-kicker { font-size: clamp(0.48rem, 1.8vw, 0.62rem); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.92; }
.book-foil-line.is-title { font-size: clamp(0.62rem, 2.2vw, 0.88rem); }
.book-foil-line.is-sub { font-size: clamp(0.52rem, 1.9vw, 0.7rem); font-weight: 600; }
.book-foil-line.is-meta { font-size: clamp(0.46rem, 1.7vw, 0.6rem); font-weight: 500; opacity: 0.9; margin-top: 0.2rem; }
/* Spine on the left — rounded hinge, no text on the fold */
.book-spine {
  position: absolute;
  left: -11px;
  top: 0;
  bottom: 0;
  width: 22px;
  border-radius: 11px 2px 2px 11px;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.42) 0%,
      rgba(255,255,255,0.16) 16%,
      rgba(255,255,255,0.05) 34%,
      rgba(0,0,0,0.08) 52%,
      rgba(0,0,0,0.28) 72%,
      rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--cover) 92%, #fff),
      color-mix(in srgb, var(--cover) 78%, #000));
  border: 1px solid rgba(0,0,0,0.4);
  border-right-color: rgba(0,0,0,0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    inset -3px 0 6px rgba(0,0,0,0.35),
    -3px 0 10px rgba(0,0,0,0.32);
  z-index: 4;
  transform: translateZ(4px) rotateY(-18deg);
  transform-origin: right center;
  pointer-events: none;
}
.book-spine::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 4%;
  bottom: 4%;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(0,0,0,0.45) 18%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.45) 82%,
    transparent);
  opacity: 0.9;
}
.book-3d[data-product="print"] .book-spine { display: none !important; }
.book-spine-text { display: none !important; }
/* Page block under covers — only a short RIGHT fore-edge peeks out */
.book-3d-inner::before {
  content: "";
  position: absolute;
  left: 10px;
  right: -3px;
  top: 2.2%;
  bottom: 2.2%;
  border-radius: 1px 3px 3px 1px;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.04) 0%,
      transparent 35%,
      rgba(0,0,0,0.07) 100%),
    repeating-linear-gradient(90deg,
      #f8f4ec 0 1.5px,
      #ebe3d6 1.5px 2.5px,
      #f3ece1 2.5px 4px);
  box-shadow:
    1px 0 0 #e6ddd0,
    2px 0 0 #f2ebe1,
    3px 0 3px rgba(0,0,0,0.2),
    inset -1px 0 0 rgba(255,255,255,0.35);
  transform: translateZ(0);
  z-index: 0;
  opacity: 0.98;
  pointer-events: none;
}
.book-3d[data-product="print"] .book-3d-inner::before { display: none; }
.book-face { z-index: 2; }
.book-back-fallback {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.05), transparent 42%),
    var(--cover);
}
.book-back-mark { display: none !important; }
/* Back cover foil: denser body text from last page — scaled to fit fully */
.book-foil-block--back {
  inset: 8% 10% 9% 10%;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.18rem;
  text-align: left;
  overflow: hidden;
}
.book-foil-block--back .book-foil-line,
.book-foil-block--back .book-foil-line.is-kicker,
.book-foil-block--back .book-foil-line.is-title,
.book-foil-block--back .book-foil-line.is-sub,
.book-foil-block--back .book-foil-line.is-meta {
  font-size: clamp(0.38rem, 1.35vw, 0.5rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.22;
  text-align: left;
  text-transform: none;
  opacity: 0.95;
  margin-top: 0;
}

.book-3d[data-product="print"] .book-cloth,
.book-3d[data-product="print"] .book-cover-img,
.book-3d[data-product="print"] .book-foil-block,
.book-3d[data-product="print"] .book-spine,
.book-3d[data-product="print"] .book-back-fallback { display: none !important; }
.book-3d[data-product="print"] .book-face {
  background: transparent; border: 0; box-shadow: none;
}
.book-3d[data-product="print"] .book-face--front,
.book-3d[data-product="print"] .book-face--back {
  overflow: visible;
}

.print-preview {
  position: absolute; inset: 4% 6%;
  display: grid; place-items: center;
}
.print-sheet {
  position: absolute; inset: 0;
  border-radius: 3px;
  background: #f8f4ec;
  border: 1px solid rgba(70,55,40,0.28);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
  overflow: hidden;
}
.print-sheet--shadow { transform: translate(10px, -12px) rotate(3.5deg); opacity: 0.55; }
.print-sheet--mid { transform: translate(-5px, -5px) rotate(-2deg); opacity: 0.8; }
.print-sheet--front { z-index: 2; }
.print-sheet canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 1;
  background: #f8f4ec;
}
.print-sheet-text {
  position: absolute; inset: 9% 8%;
  overflow: hidden;
  font-family: "Times New Roman", Times, Georgia, serif;
  color: #241c14;
  font-size: 0.62rem; line-height: 1.35;
  display: grid; align-content: start; gap: 0.28rem;
  text-shadow: 0 0 1px rgba(255,255,255,0.4);
  z-index: 2;
}
.print-sheet-text:empty { display: none; }
.print-sheet-text p { margin: 0; }
.print-sheet-text .is-strong { font-weight: 700; font-size: 0.72rem; }

.doc-preview {
  margin-top: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(232,201,160,0.2);
  background: rgba(20,17,14,0.55);
}
.doc-preview[hidden] { display: none !important; }
.doc-preview-head {
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.5rem; align-items: baseline;
}
.doc-preview-meta { font-size: 0.74rem; color: var(--muted); }
.doc-preview-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 118px));
  gap: 0.55rem;
  justify-content: start;
}
.doc-page-card { margin: 0; max-width: 118px; }
.doc-page-card figcaption {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem;
}
.doc-page-frame {
  position: relative; aspect-ratio: 1 / 1.35;
  width: 100%;
  max-width: 118px;
  border-radius: 7px; overflow: hidden;
  background: #f7f2ea;
  border: 1px solid rgba(232,201,160,0.22);
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}
.doc-page-frame canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1;
  background: #f7f2ea;
}
.doc-page-lines { display: none !important; }
.print-sheet-text { display: none !important; }
@media (max-width: 560px) {
  .doc-preview-pages {
    grid-template-columns: repeat(2, minmax(0, 96px));
    gap: 0.4rem;
  }
  .doc-page-card,
  .doc-page-frame { max-width: 96px; }
}

.price-estimate {
  margin: 0 0 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(212,165,116,0.32);
  background: linear-gradient(180deg, rgba(212,165,116,0.12), rgba(20,17,14,0.5));
}
.price-estimate[hidden] { display: none !important; }
.price-estimate-title {
  margin: 0 0 0.75rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.price-estimate-rows { display: grid; gap: 0.55rem; }
.price-estimate-row {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: baseline; font-size: 0.92rem;
  padding-bottom: 0.45rem; border-bottom: 1px solid rgba(232,201,160,0.12);
}
.price-estimate-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-estimate-row span { color: var(--muted); }
.price-estimate-row strong { font-weight: 560; color: var(--paper); }
.price-estimate-row.is-total strong {
  color: var(--gold-2); font-size: 1.15rem;
}
.price-estimate-note {
  margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45;
}
.review--editable .review-row {
  align-items: center;
}
.review-edit {
  margin-left: 0.5rem;
  border: 1px solid rgba(232,201,160,0.28);
  background: rgba(212,165,116,0.08);
  color: var(--gold-2);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px; padding: 0.28rem 0.55rem;
  cursor: pointer; white-space: nowrap;
}
.review-edit:hover { background: rgba(212,165,116,0.18); }
.order-pill {
  cursor: pointer;
}
.order-pill:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (max-width: 800px) {
  .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice-grid--2, .field-row { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    grid-template-columns: none;
  }
  .price-row > span { grid-row: auto; }
  .price-row em { grid-column: auto; overflow-wrap: anywhere; }
  .choice-card--visual .choice-card-inner,
  .choice-card--icon .choice-card-inner,
  .choice-card--printmode .choice-card-inner {
    grid-template-columns: auto 1fr;
  }
  .order-shell.is-focused {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    max-width: none;
    max-height: calc(100svh - 1rem);
    transform: translateY(-50%);
  }
}
@media (max-width: 560px) {
  .order { padding: 2rem 0 2.6rem; }
  .order-top {
    padding: 0.7rem 0.75rem 0.25rem;
    gap: 0.45rem;
    align-items: center;
  }
  .order-brand strong { font-size: 1.05rem; }
  .order-brand span { font-size: 9px; letter-spacing: 0.1em; }
  .order-step-label { font-size: 9px; }
  .order-step-label strong { font-size: 0.85rem; margin-top: 0.05rem; }
  .order-close { width: 36px; height: 36px; }
  .order-close svg { width: 14px; height: 14px; }
  .order-progress { margin: 0 0.75rem; height: 3px; }
  .order-pills {
    gap: 0.2rem;
    padding: 0.45rem 0.75rem 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .order-pills::-webkit-scrollbar { display: none; }
  .order-pill {
    font-size: 0;
    letter-spacing: 0;
    padding: 0.2rem;
    gap: 0;
    flex-shrink: 0;
  }
  .order-pill-mark { width: 18px; height: 18px; font-size: 9px; }
  .order-pill.is-active {
    font-size: 9px;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.45rem 0.2rem 0.2rem;
    gap: 0.25rem;
  }
  .order-body { padding: 0.2rem 0.75rem 0.55rem; }
  .order-panel-title {
    font-size: 1.15rem;
    margin: 0 0 0.2rem;
    padding-bottom: 0.12em;
    line-height: 1.25;
  }
  .order-panel-sub { font-size: 0.82rem; margin: 0 0 0.7rem; line-height: 1.4; }
  .field-explain { font-size: 0.78rem; margin-bottom: 0.65rem; }
  .field { gap: 0.28rem; margin-bottom: 0.65rem; }
  .field-label { font-size: 10px; letter-spacing: 0.1em; }
  .field-hint { font-size: 0.74rem; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field input[type="date"],
  .field input[type="number"],
  .field select,
  .field textarea {
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    font-size: 0.92rem;
  }
  .field-row { gap: 0.55rem; }
  .field-check {
    gap: 0.55rem; font-size: 0.8rem; padding: 0.6rem 0.7rem; border-radius: 10px;
  }
  .field-check input { width: 18px; height: 18px; border-radius: 5px; }
  .choice-set { margin: 0 0 0.75rem; }
  .choice-set legend { font-size: 10px; margin-bottom: 0.4rem; }
  .choice-grid { gap: 0.45rem; }
  .choice-card-inner {
    padding: 0.65rem 0.6rem;
    border-radius: 12px;
  }
  .choice-card-inner strong { font-size: 0.9rem; margin-bottom: 0.1rem; }
  .choice-card-inner .choice-copy > span:not(.choice-card-head),
  .choice-card-inner > span:not(.choice-card-head):not(.choice-check):not(.choice-visual):not(.choice-icon):not(.choice-copy):not(.foil-book):not(.foil-preview):not(.print-mode-visual) {
    font-size: 0.74rem; line-height: 1.35;
  }
  .choice-card--visual .choice-card-inner,
  .choice-card--icon .choice-card-inner,
  .choice-card--printmode .choice-card-inner,
  .choice-card--foil .choice-card-inner {
    padding-right: 1.9rem;
  }
  .choice-check { top: 0.45rem; right: 0.45rem; width: 18px; height: 18px; }
  .choice-visual { width: 44px; height: 62px; }
  .choice-icon { width: 34px; height: 34px; border-radius: 9px; }
  .choice-icon svg { width: 18px; height: 18px; }
  /* Step 1: mid-size service cards — only when this panel is active */
  .order-panel[data-panel="0"].is-active .choice-grid--2 {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .order-panel[data-panel="0"].is-active .choice-card--visual .choice-card-inner {
    grid-template-columns: 58px 1fr;
    justify-items: stretch;
    text-align: left;
    align-items: center;
    gap: 0.55rem 0.65rem;
    padding: 0.7rem 1.8rem 0.7rem 0.65rem;
  }
  .order-panel[data-panel="0"].is-active .choice-visual {
    width: 58px;
    height: 80px;
  }
  .order-panel[data-panel="0"].is-active .choice-copy {
    justify-items: start;
    text-align: left;
  }
  /* Step 5 print mode: tiny icons so text never overlaps */
  .choice-card--printmode .choice-card-inner {
    grid-template-columns: 34px 1fr;
    gap: 0.45rem 0.55rem;
    align-items: start;
    padding: 0.6rem 1.75rem 0.6rem 0.55rem;
  }
  .choice-card--printmode .print-mode-visual {
    width: 34px;
    min-height: 34px;
    padding: 0.18rem;
    gap: 0.12rem;
    border-radius: 8px;
  }
  .choice-card--printmode .print-mode-visual--mixed {
    min-height: 34px;
  }
  .choice-card--printmode .sheet {
    width: 12px;
    height: 16px;
    padding: 2px;
    gap: 1px;
    border-radius: 2px;
    box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
  }
  .choice-card--printmode .sheet--small {
    width: 10px;
    height: 13px;
    padding: 1px;
  }
  .choice-card--printmode .sheet i { height: 1px; }
  .choice-card--printmode .choice-copy {
    min-width: 0;
  }
  .choice-card--printmode .choice-copy strong {
    font-size: 0.86rem;
    line-height: 1.25;
  }
  .warn-banner--desktop-only { display: none !important; }
  .cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; margin-bottom: 0.55rem; }
  .cover-swatch { border-radius: 10px; padding: 0.3rem 0.25rem 0.45rem; gap: 0.3rem; font-size: 0.7rem; }
  .cover-thumb { border-radius: 8px; }
  .cover-meta { font-size: 0.7rem; gap: 0.2rem; }
  .swatch-dot { width: 8px; height: 8px; }
  .cover-swatch .choice-check { top: 0.35rem; right: 0.35rem; width: 16px; height: 16px; }
  .choice-card--foil .choice-card-inner { padding: 0.65rem 1.9rem 0.65rem 0.65rem; gap: 0.4rem; }
  .foil-book { height: 52px; }
  .info-banner, .warn-banner {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }
  .info-banner strong, .warn-banner strong { font-size: 0.8rem; }
  .upload {
    padding: 0.85rem 0.7rem;
    border-radius: 12px;
    gap: 0.35rem;
  }
  .upload-icon { width: 36px; height: 36px; }
  .upload-title { font-size: 0.88rem; }
  .upload-hint { font-size: 0.72rem; }
  .cover-studio,
  .review-showcase {
    margin: 0 0 0.7rem;
    padding: 0.6rem 0.55rem 0.7rem;
    border-radius: 12px;
  }
  .cover-studio-head,
  .review-showcase-head {
    margin-bottom: 0.45rem;
    gap: 0.4rem;
  }
  .book-flip-tab { font-size: 9px; padding: 0.28rem 0.5rem; }
  .book-stage { min-height: 200px; padding: 0.25rem 0; }
  .book-stage--review { min-height: 220px; }
  .book-3d { width: min(150px, 42vw); }
  .book-3d--xl { width: min(165px, 46vw); }
  .studio-live-hint { margin-top: 0.4rem; font-size: 0.7rem; }
  .doc-preview { margin-top: 0.65rem; padding: 0.6rem; border-radius: 12px; }
  .doc-preview-head { margin-bottom: 0.45rem; }
  .doc-preview-pages { gap: 0.45rem; }
  .qty { width: 100%; }
  .qty-btn { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; }
  .qty input { width: 52px; padding: 0.55rem 0.2rem !important; font-size: 1.05rem; }
  .price-box { padding: 0.65rem 0.6rem; border-radius: 12px; }
  .price-box-title { margin-bottom: 0.45rem; font-size: 10px; }
  .price-rows { gap: 0.35rem; }
  .price-row { padding: 0.4rem 0 0.45rem; }
  .price-row strong { font-size: 1rem; }
  .price-row em { font-size: 0.72rem; line-height: 1.35; }
  .price-estimate { padding: 0.7rem 0.75rem; border-radius: 12px; margin-bottom: 0.75rem; }
  .price-estimate-title { margin-bottom: 0.45rem; font-size: 10px; }
  .review-row { padding: 0.45rem 0; gap: 0.2rem; }
  .review-edit { font-size: 8px; padding: 0.2rem 0.4rem; }
  .order-footer {
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-top: 0.2rem;
    padding: 0.55rem 0.75rem max(0.55rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .order-footer-spacer { display: none; }
  .order-footer .btn {
    flex: 1;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    justify-content: center;
  }
  .order-shell { border-radius: 14px; }
  .order-shell.is-focused {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100svh;
    max-height: 100dvh;
    border-radius: 0;
    transform: none;
  }
  .order-shell.is-focused .order-footer {
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  }
  .order-success { padding: 1.6rem 0.5rem 1rem; }
  .order-success h3 { font-size: 1.45rem; }
  .order-success-actions { flex-direction: column; }
  .order-success-actions .btn { width: 100%; justify-content: center; min-height: 42px; }
  .success-mark { width: 48px; height: 48px; font-size: 1.25rem; margin-bottom: 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .order-shell, .order-backdrop, .order-panel {
    transition: none !important;
    animation: none !important;
  }
  .order-shell.is-focused { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 800px) {
  .order-shell.is-focused { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 560px) {
  .order-shell.is-focused { transform: none; }
}

/* Naprej gate warning */
.order-next-warn {
  display: inline-block;
  max-width: 16rem;
  margin-right: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #c9a227;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  text-align: right;
}
.order-next-warn.is-visible {
  opacity: 1;
  transform: none;
}
button[data-next]:disabled,
button[data-next].is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

/* Mixed ranges under middle option */
.print-mode-mixed-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  grid-column: 1 / -1;
}
.print-mode-mixed-wrap .mixed-ranges {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(212,165,116,0.25);
  border-radius: 10px;
  background: rgba(212,165,116,0.06);
}
.order-panel[data-panel="4"] > .choice-set > .choice-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Custom cover photo / CMS module photos */
.cms-module-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0.75rem auto;
  border-radius: 8px;
  cursor: zoom-in;
}
.cms-module-photo.is-lg { max-width: 520px; }


/* Google Drive URL — match standard order fields */
.field[data-upload-block="drive"],
label.field[data-upload-block="drive"] {
  display: block;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 12px;
  background: rgba(243, 236, 225, 0.04);
}
.field[data-upload-block="drive"] input[type="url"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 165, 116, 0.28);
  background: rgba(7, 6, 5, 0.45);
  color: var(--paper, #f3ece1);
  font: inherit;
}
.field[data-upload-block="drive"] input[type="url"]::placeholder {
  color: rgba(243, 236, 225, 0.35);
}
.field[data-upload-block="drive"] .field-hint {
  display: block;
  margin-top: 0.45rem;
}


/* Booking Cenik step — wider label text */
[data-order-cenik] .price-row {
  grid-template-columns: minmax(0, 1.6fr) auto;
  align-items: center;
}
[data-order-cenik] .price-row > span {
  grid-row: auto;
  align-self: center;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--sans, inherit);
  color: var(--paper, #f3ece1);
  line-height: 1.35;
  max-width: none;
}
[data-order-cenik] .price-row strong {
  justify-self: end;
  white-space: nowrap;
  font-size: 1.05rem;
}
[data-order-cenik] .price-row em { grid-column: 1 / -1; }

/* —— Mobile / touch: kill ALL order/booking hover motion —— */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .order-close:hover,
  .qty-btn:hover,
  .choice-card:hover .choice-card-inner,
  .choice-card.is-disabled:hover .choice-card-inner,
  .choice-card:hover .choice-visual img,
  .cover-swatch:hover,
  .cover-swatch:hover .cover-thumb img,
  .upload:hover,
  .upload-remove:hover,
  .review-edit:hover,
  .order-pill:hover,
  .book-flip-tab:hover,
  .btn:hover,
  button[data-next]:hover,
  button[data-prev]:hover,
  button[data-submit]:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .choice-card:hover .choice-card-inner {
    border-color: inherit;
    background: inherit;
  }
  .cover-swatch:hover { transform: none !important; }
  .upload:hover { border-color: inherit; }
}
