:root {
  --bg: var(--ci-page-bg, #f9fafb);
  --card: var(--ci-card-bg, #ffffff);
  --muted: var(--ci-text-muted, #6b7280);
  --accent: var(--ci-brand, #A52422);
  --accent-hover: var(--ci-brand-hover, #8e1f1d);
  --accent-light: var(--ci-brand-light, rgba(165, 36, 34, 0.08));
  --accent-mid: var(--ci-brand-mid, rgba(165, 36, 34, 0.14));
  --accent-ring: var(--ci-brand-ring, rgba(165, 36, 34, 0.28));
  --input-bg: #ffffff;
  --border: var(--ci-border, #e5e7eb);
  --calendar-bg: #ffffff;
  --dropdown-bg: #ffffff;
  --dropdown-hover: var(--ci-brand-light);
  --dropdown-selected: var(--ci-brand-light);
  --text: var(--ci-text, #111827);
}

html,
body {
  height: 100%;
}

body.page-new-order {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.page-new-order main {
  background: var(--bg);
}

body.page-new-order .card h2,
body.page-new-order .card h3,
body.page-new-order label {
  color: var(--text);
}

/* Secure checkout script prep (same contract as payment.css) */
body.payment-page-loading {
  position: relative;
}
body.payment-page-loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 14, 0.72);
  pointer-events: all;
}

/* New-order checkout modal (above payment-page-loading overlay) */
#newOrderCheckoutModal:not(.hidden) {
  pointer-events: auto;
}

body.noc-modal-open {
  overflow: hidden;
}

/* Sidebar width only — colors from customer-brand.css */
.sidebar {
  width: 265px;
}

body.page-new-order .ci-sidebar .menu-item.active {
  background: var(--ci-brand) !important;
  color: #fff !important;
  border-radius: 0.5rem;
}

body.page-new-order .ci-sidebar .menu-item.active::before {
  display: none;
}

body.page-new-order .ci-sidebar .menu-item.active i,
body.page-new-order .ci-sidebar .menu-item.active svg {
  color: #fff;
}

/* Page header */
.no-page-header h1 {
  color: var(--text);
  font-weight: 700;
}

.no-page-subtitle {
  color: var(--muted);
}

.no-section-icon {
  color: var(--accent);
}

body.page-new-order .text-gray-400,
body.page-new-order .text-gray-500 {
  color: var(--muted) !important;
}

body.page-new-order hr {
  border-color: var(--border);
}

/* Card look */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--ci-card-shadow, 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.05));
}

/* Inputs */
.blk-input {
  background: var(--input-bg);
  border: 1px solid var(--border);
  padding: .6rem .9rem;
  border-radius: 8px;
  width: 100%;
  color: var(--text);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blk-input::placeholder {
  color: #9ca3af;
}

.blk-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

/* Remove number steppers */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Address pills */
.addr-pill {
  border: 1px solid var(--border);
  padding: .6rem .9rem;
  border-radius: 8px;
  background: var(--input-bg);
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.addr-pill:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.addr-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}

/* File input */
.file-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  color: var(--text);
}

.file-label i {
  color: var(--accent);
}

/* Date button */
#dateBtn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-weight: 500;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#dateBtn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

#dateBtn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================
   THREADLY — CALENDAR STYLE
   Dark Theme Optimized Version
   ============================ */
#calendar {
  position: absolute;
  width: 320px;
  background: var(--calendar-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  z-index: 2000;
  box-shadow: var(--ci-card-shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.08));
  animation: fadeIn 0.15s ease-out;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#calendar .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 10px;
}

.dow div {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
}

.cal-day:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.cal-day.disabled {
  color: #d1d5db;
  pointer-events: none;
}

.cal-day.today {
  border: 1px solid var(--border);
}

.cal-day.selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
  transform: translateY(0);
}

.icon-btn {
  background: #f3f4f6;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-ring);
  color: var(--accent);
}

@media (max-width: 768px) {
  #calendar {
    width: calc(100% - 2rem);
    left: 1rem !important;
  }
}

/* Custom Dropdown (styled) */
.custom-select {
  position: relative;
  width: 100%;
  font-size: 0.95rem;
}

.custom-select .trigger {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .6rem .9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: .5rem;
}

.custom-select .trigger:focus {
  outline: 2px solid var(--accent-light);
}

.custom-select .trigger:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.custom-select .panel {
  position: absolute;
  right: 0;
  left: 0;
  margin-top: .5rem;
  background: var(--dropdown-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  max-height: 220px;
  overflow: auto;
  box-shadow: var(--ci-card-shadow-hover, 0 8px 24px rgba(0, 0, 0, 0.08));
  z-index: 1300;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-ring) transparent;
  display: block;
}

.custom-select .panel::-webkit-scrollbar {
  width: 6px;
}

.custom-select .panel::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select .panel::-webkit-scrollbar-thumb {
  background-color: var(--accent-ring);
  border-radius: 9999px;
}

.custom-select .panel:hover::-webkit-scrollbar-thumb {
  background-color: var(--accent);
}

.custom-select .option {
  padding: .65rem .9rem;
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease;
}

.custom-select .option:hover {
  background: var(--dropdown-hover);
  color: var(--accent);
}

.custom-select .option:active {
  background: var(--dropdown-selected);
  color: var(--accent);
}

.custom-select .option.selected {
  background: var(--dropdown-selected);
  color: var(--accent);
  font-weight: 700;
}

select._native-hidden,
.custom-select select._native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select .panel.hidden {
  display: none !important;
}

/* Category Image Cards */
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: .15s ease;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--ci-card-shadow);
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--ci-card-shadow-hover);
}

.category-card.selected {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.category-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

.category-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Place Order Button */
.place-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  line-height: 1.25;
}

.place-order-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.no-place-bar {
  position: sticky;
  bottom: 0;
  z-index: 35;
  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
}

.no-place-bar__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.no-place-bar__label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.no-place-bar__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* Order flow stepper */
.no-flow-stepper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.no-flow-stepper__list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: min(100%, 36rem);
}

.no-flow-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.no-flow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #e5e7eb;
  color: var(--muted);
  flex-shrink: 0;
}

.no-flow-step.is-active {
  border-color: var(--accent-ring);
  background: var(--accent-light);
  color: var(--text);
}

.no-flow-step.is-active .no-flow-step__num {
  background: var(--accent);
  color: #fff;
}

.no-flow-step.is-done {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.no-flow-step.is-done .no-flow-step__num {
  background: #16a34a;
  color: #fff;
}

.no-flow-step__label {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .no-flow-step {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

/* Order summary card */
.no-order-summary__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .no-order-summary__grid {
    grid-template-columns: 1fr min(16rem, 38%);
    align-items: start;
  }
}

.no-flow-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.no-flow-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.no-flow-checklist li.is-done {
  color: var(--text);
}

.no-flow-checklist li.is-done .no-flow-check__icon {
  color: #16a34a;
}

.no-flow-checklist li.is-pending .no-flow-check__icon {
  color: #d1d5db;
}

.no-flow-check__icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
}

.no-estimate-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.no-estimate-box__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.no-estimate-box__amount {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.no-estimate-box__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Sample fee estimate card */
.no-sample-fee-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #fff 0%, #fdf8f8 55%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(165, 36, 34, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.no-sample-fee-card[data-estimate-state="ready"] {
  border-color: var(--accent-ring);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(165, 36, 34, 0.12);
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
}

.no-sample-fee-card[data-estimate-state="loading"] {
  border-color: var(--accent-ring);
}

.no-sample-fee-card[data-estimate-state="unavailable"] {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.no-sample-fee-card__aside {
  align-self: start;
}

.no-sample-fee-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-ring);
}

.no-sample-fee-card[data-estimate-state="ready"] .no-sample-fee-card__icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.no-sample-fee-card__main {
  min-width: 0;
}

.no-sample-fee-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.no-sample-fee-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.no-sample-fee-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f3f4f6;
  border: 1px solid var(--border);
}

.no-sample-fee-card[data-estimate-state="loading"] .no-sample-fee-card__badge {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-ring);
}

.no-sample-fee-card[data-estimate-state="ready"] .no-sample-fee-card__badge {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.no-sample-fee-card[data-estimate-state="unavailable"] .no-sample-fee-card__badge {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.no-sample-fee-card__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.no-sample-fee-card[data-estimate-state="ready"] .no-sample-fee-card__hint {
  color: var(--text);
}

.no-sample-fee-card__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.no-sample-fee-card[data-estimate-state="ready"] .no-sample-fee-card__checklist,
.no-sample-fee-card[data-estimate-state="loading"] .no-sample-fee-card__checklist,
.no-sample-fee-card[data-estimate-state="unavailable"] .no-sample-fee-card__checklist {
  display: none;
}

.no-sample-fee-card__check-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

.no-sample-fee-card__check-item::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.no-sample-fee-card__check-item.is-done {
  color: var(--accent);
  background: var(--accent-light);
  border-style: solid;
  border-color: var(--accent-ring);
}

.no-sample-fee-card__check-item.is-done::before {
  background: var(--accent);
}

.no-sample-fee-card__check-item.is-hidden {
  display: none;
}

.no-sample-fee-card__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.no-sample-fee-card[data-estimate-state="ready"] .no-sample-fee-card__price {
  border-color: var(--accent);
  background: #fff;
  transform: scale(1.02);
}

.no-sample-fee-card__price-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.no-sample-fee-card__amount {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.no-sample-fee-card__spinner {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--accent);
  animation: no-sample-fee-spin 0.8s linear infinite;
}

@keyframes no-sample-fee-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .no-sample-fee-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .no-sample-fee-card__aside {
    display: none;
  }

  .no-sample-fee-card__price {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding: 0.75rem 1rem;
  }

  .no-sample-fee-card__price-label {
    margin-bottom: 0;
  }

  .no-sample-fee-card__amount {
    font-size: 1.5rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .no-place-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .no-place-bar__summary {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
  }
}

.place-btn--footer {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  justify-content: center;
}

.place-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.place-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Legacy payment modal pay buttons (brand crimson) */
body.page-new-order .no-pay-btn--brand {
  background: var(--accent) !important;
  color: #fff !important;
}

body.page-new-order .no-pay-btn--brand:hover {
  background: var(--accent-hover) !important;
}

/* Show desktop place order button on tablet and desktop */
@media (min-width: 768px) {
  #placeOrderBtn.hidden {
    display: inline-flex !important;
  }
}

/* Placement Type Buttons */
.placement-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.placement-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.placement-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: none;
}

/* ============================
   2D PREVIEW (FABRIC.JS) — canvas in #previewSection
   Do NOT force width/height 100% — JS sets pixel dimensions via syncPreviewCanvasCssScale.
   ============================ */
#apparelPreviewModal .apparel-preview-canvas-host,
#apparelPreviewModal #previewSection {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 320px;
  max-height: min(65vh, 620px);
  padding: 0.5rem 0 0.75rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  #apparelPreviewModal .apparel-preview-canvas-host,
  #apparelPreviewModal #previewSection {
    min-height: 400px;
    max-height: min(65vh, 640px);
  }
}

/* Fabric wrapper — sized in px by PreviewEngine (not stretched with %) */
#apparelPreviewModal #previewSection .canvas-container {
  position: relative;
  flex-shrink: 0;
  max-width: min(100%, 600px);
  margin-left: auto;
  margin-right: auto;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#apparelPreviewModal #designerCanvas {
  display: block;
  max-width: min(100%, 600px);
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

#apparelPreviewModal #previewStatus {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.preview-status-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 24px);
  pointer-events: none;
}

/* Note: placement selection is handled in Product Details (normalized). Preview only switches views. */

/* Normalized placement/print-size pills (Product Details) */
.pill-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.pill-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Amazon-like print size cards */
.size-card {
  width: 100%;
  max-width: 320px;
  text-align: left;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.size-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent-ring);
  background: var(--accent-light);
}
.size-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-ring) inset;
}
.size-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.size-card .label {
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}
.size-card .badge {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.9);
  background: rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.size-card.active .badge {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.size-card .desc {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
}
.size-card .dims {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.85);
}
.size-card .mini {
  margin-top: 10px;
  height: 40px;
  border-radius: 10px;
  border: 1px dashed var(--accent-ring);
  background: var(--accent-light);
  position: relative;
  overflow: hidden;
}
.size-card .mini .fill {
  position: absolute;
  left: 10px;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--accent);
}

/* 3D viewer removed (2D MVP only) */

/* Mappls Map Container */
#mapContainer,
.no-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  flex: 1;
  position: relative;
  background: #f3f4f6;
}

#mapModal {
  z-index: 9999 !important;
}

/* Map Modal Visibility — use display:none when closed (Mappls map stays in DOM) */
#mapModal.map-hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#mapModal.map-visible {
  display: flex !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Utility to hide elements */
.hidden {
  display: none !important;
}

/* Hide Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Design Reference — file specs info (i) button + modal */
.design-file-specs-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--accent-ring);
  background: var(--accent-light);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.design-file-specs-info-btn:hover {
  background: var(--accent-mid);
  border-color: var(--accent);
  color: var(--accent-hover);
}

body.design-file-specs-modal-open {
  overflow: hidden;
}

.design-file-specs-modal__body {
  min-height: 0;
  overflow-y: auto;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.design-file-specs-modal__body::-webkit-scrollbar,
#designFileSpecsModal .design-file-specs-modal__body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}

#designFileSpecsModal .design-file-specs-modal__body {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* “View how it looks” — Design Reference */
.view-apparel-preview-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--accent-ring);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.view-apparel-preview-btn:hover {
  background: var(--accent-mid);
  border-color: var(--accent);
  color: var(--accent-hover);
}

body.apparel-preview-modal-open {
  overflow: hidden;
}

/* —— Apparel preview modal (“View how it looks”) —— */
.apparel-preview-modal {
  align-items: center;
  justify-content: center;
}

.apparel-preview-modal:not(.hidden) .apparel-preview-modal__shell {
  min-height: min(88vh, 820px);
}

.apparel-preview-modal__backdrop {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.apparel-preview-modal__shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  width: 100%;
  max-height: min(94vh, 920px);
  --ap-bg: #ffffff;
  --ap-stage-bg: #ffffff;
  --ap-surface: #ffffff;
  --ap-surface-2: #f3f4f6;
  --ap-border: #e5e7eb;
  --ap-text: #111827;
  --ap-muted: #6b7280;
  --ap-brand: #a52422;
  --ap-brand-soft: #a52422;
  --ap-brand-dim: rgba(165, 36, 34, 0.08);
  --ap-brand-ring: rgba(165, 36, 34, 0.28);
  background: #ffffff;
  border: 1px solid var(--ap-border);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.apparel-preview-modal__content {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.apparel-preview-color-panel {
  flex-shrink: 0;
  width: 10.5rem;
  padding: 0.85rem 0.75rem;
  border-right: 1px solid var(--ap-border);
  background: #ffffff;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: thin;
}

.apparel-preview-color-panel__heading {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ap-text, #111827);
  letter-spacing: 0.02em;
}

.apparel-preview-color-panel__hint {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--ap-muted, #6b7280);
}

.garment-color-swatches--panel {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.garment-color-swatches--panel .garment-color-swatch {
  width: 2rem;
  height: 2rem;
}

.apparel-preview-color-panel__custom {
  padding-top: 0.65rem;
  border-top: 1px solid var(--ap-border);
}

.apparel-preview-color-panel__custom.is-active {
  border-top-color: var(--ap-brand-ring, rgba(165, 36, 34, 0.42));
}

.apparel-preview-color-panel__custom-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ap-muted, #6b7280);
  margin-bottom: 0.45rem;
}

.apparel-preview-color-panel__custom-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.apparel-preview-color-panel__color-input {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

.apparel-preview-color-panel__color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.apparel-preview-color-panel__color-input::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.apparel-preview-color-panel__hex {
  font-size: 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ap-muted, #6b7280);
  word-break: break-all;
}

.apparel-preview-color-panel__custom.is-active .apparel-preview-color-panel__custom-label {
  color: var(--ap-brand, #a52422);
}

.apparel-preview-modal__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--ap-stage-bg, #ffffff);
}

@media (max-width: 640px) {
  .apparel-preview-modal__content {
    flex-direction: column;
  }

  .apparel-preview-color-panel {
    width: 100%;
    max-height: 9.5rem;
    border-right: none;
    border-bottom: 1px solid var(--ap-border);
  }

  .garment-color-swatches--panel {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-height: 4.5rem;
    overflow-y: auto;
  }
}

.apparel-preview-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--ap-border);
  background: #ffffff;
}

.apparel-preview-view-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.75rem 0.65rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--ap-stage-bg, #ffffff);
}

.apparel-preview-view-bar[hidden] {
  display: none !important;
}

.apparel-preview-view-bar__btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.apparel-preview-view-bar__btn:hover {
  color: #111827;
  border-color: var(--ap-brand-ring, rgba(165, 36, 34, 0.28));
  background: var(--ap-brand-dim, rgba(165, 36, 34, 0.08));
}

.apparel-preview-view-bar__btn.is-active {
  color: #fff;
  background: var(--ap-brand, #a52422);
  border-color: var(--ap-brand, #a52422);
  box-shadow: 0 2px 8px rgba(165, 36, 34, 0.35);
}

/* ----- Print placement + design reference (new order) ----- */
.placement-section-wrap {
  margin-bottom: 2rem;
}

.placement-section-panel {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--ci-card-shadow);
  padding: 1.1rem 1.15rem 1.15rem;
}

.placement-section-panel__header {
  margin-bottom: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.placement-section-panel__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.placement-section-panel__lead {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.placement-section-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.85rem;
}

.placement-hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
}

.placement-hint-chip strong {
  color: #7ec2ff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6rem;
}

.placement-design-uploads {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.placement-design-uploads--panel {
  margin-top: 0.35rem;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  border: 1px dashed var(--accent-ring);
  background: #fafafa;
}

.placement-design-uploads-empty {
  margin: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
  border-radius: 10px;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  background: rgba(15, 23, 42, 0.35);
}

.design-reference-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.design-reference-card__title {
  letter-spacing: -0.02em;
}

.design-reference-card__subtitle {
  max-width: 36rem;
  line-height: 1.45;
}

.placement-design-upload-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--ci-card-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (min-width: 640px) {
  .placement-design-upload-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.placement-design-upload-row:hover {
  border-color: rgba(127, 194, 255, 0.28);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.placement-design-upload-row__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.placement-design-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
  border: 1px solid rgba(127, 194, 255, 0.35);
  background: rgba(15, 23, 42, 0.6);
}

.placement-design-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(127, 194, 255, 0.35);
}

.placement-design-upload-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-style: italic;
}

/* Print Placement Studio — region cards (no garment map) */
.placement-studio {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.placement-studio__status {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(127, 194, 255, 0.22);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.35) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.placement-studio__status-text {
  margin: 0;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.placement-studio__status-text strong {
  color: #7ec2ff;
  font-weight: 800;
}

.placement-studio__status-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.placement-studio__status-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3fa9ff 0%, #7ec2ff 100%);
  transition: width 0.25s ease;
}

.placement-studio__regions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.placement-studio-region__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.placement-studio-region__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.placement-studio-region__count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.placement-studio-region__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 540px) {
  .placement-studio-region__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .placement-studio-region__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.placement-studio-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 28, 0.75);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  text-align: left;
}

.placement-studio-card:hover {
  border-color: rgba(127, 194, 255, 0.4);
  background: rgba(22, 32, 48, 0.9);
  transform: translateY(-1px);
}

.placement-studio-card.is-included {
  border-color: rgba(63, 169, 255, 0.45);
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.4) 0%, rgba(11, 17, 28, 0.85) 100%);
}

.placement-studio-card.is-active {
  border-color: rgba(255, 204, 0, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.2), 0 8px 28px rgba(255, 204, 0, 0.12);
}

.placement-studio-card.is-active::after {
  content: "Live preview";
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1220;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffe566 0%, #ffcc00 100%);
  pointer-events: none;
}

.placement-studio-card__badge {
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(127, 194, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.placement-studio-card.is-active .placement-studio-card__badge {
  border-color: rgba(255, 204, 0, 0.55);
  color: #0b1220;
  background: linear-gradient(180deg, #fff4c2 0%, #ffcc00 100%);
}

.placement-studio-card__body {
  min-width: 0;
  padding-right: 4.5rem;
}

.placement-studio-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
}

.placement-studio-card__view {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ec2ff;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: rgba(63, 169, 255, 0.12);
  border: 1px solid rgba(63, 169, 255, 0.25);
}

.placement-studio-card__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.placement-studio-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
}

.placement-studio-card__checkbox {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #3fa9ff;
  cursor: pointer;
}

.placement-studio-card__preview-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.placement-studio-card__preview-btn:hover {
  border-color: rgba(127, 194, 255, 0.5);
  background: rgba(63, 169, 255, 0.2);
}

.placement-studio-card.is-active .placement-studio-card__preview-btn {
  color: #0b1220;
  border-color: rgba(255, 204, 0, 0.5);
  background: rgba(255, 204, 0, 0.85);
}

.placement-studio__foot {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

/* Legacy garment map (unused) */
.placement-garment-picker {
  width: 100%;
}

.placement-garment-picker__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .placement-garment-picker__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 1.5rem;
  }
}

.placement-garment-picker__map-col {
  min-width: 0;
}

.placement-garment-picker__views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.placement-garment-picker__view-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.placement-garment-picker__view-tab:hover {
  color: #e2e8f0;
  border-color: rgba(127, 194, 255, 0.4);
}

.placement-garment-picker__view-tab.is-active {
  color: #0b1220;
  background: linear-gradient(180deg, #9ed6ff 0%, #3fa9ff 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(63, 169, 255, 0.25);
}

.placement-garment-picker__stage {
  position: relative;
  width: 100%;
  max-width: min(100%, 440px);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 280 / 360;
  min-height: 360px;
  border-radius: 18px;
  background: radial-gradient(ellipse 85% 65% at 50% 32%, rgba(63, 169, 255, 0.1) 0%, transparent 62%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

@media (min-width: 640px) {
  .placement-garment-picker__stage {
    min-height: 400px;
    max-width: min(100%, 480px);
  }
}

.placement-garment-silhouette {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.placement-garment-picker__hotspots {
  position: absolute;
  /* Align with SVG torso guide (viewBox 280×360, rect ~62,88 156×200) */
  left: 22.1%;
  top: 24.4%;
  width: 55.8%;
  height: 55.6%;
  pointer-events: none;
}

.placement-garment-hotspot {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  margin: 0;
  border-radius: 10px;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
  min-width: 3.25rem;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.placement-garment-hotspot:hover {
  border-color: rgba(127, 194, 255, 0.75);
  background: rgba(30, 58, 95, 0.45);
  transform: scale(1.03);
  z-index: 2;
}

.placement-garment-hotspot.is-included {
  border-style: solid;
  border-color: rgba(63, 169, 255, 0.55);
  background: rgba(63, 169, 255, 0.12);
}

.placement-garment-hotspot.is-active {
  border-color: #ffcc00;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25), 0 0 18px rgba(255, 204, 0, 0.2);
  background: rgba(255, 204, 0, 0.14);
  z-index: 3;
}

.placement-garment-hotspot__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.placement-garment-picker__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.placement-garment-quick-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.placement-garment-quick-btn:hover {
  color: #f8fafc;
  border-color: rgba(127, 194, 255, 0.55);
  background: rgba(30, 58, 95, 0.55);
}

.placement-garment-quick-btn.is-included {
  border-color: rgba(63, 169, 255, 0.5);
  background: rgba(63, 169, 255, 0.15);
}

.placement-garment-quick-btn.is-active {
  color: #0b1220;
  border-color: #ffcc00;
  background: linear-gradient(180deg, #ffe566 0%, #ffcc00 100%);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.placement-garment-picker__hint {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.placement-garment-picker__chips-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.placement-garment-picker__chips-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ec2ff;
}

.placement-garment-picker__chips {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.placement-garment-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 28, 0.65);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.placement-garment-chip:hover {
  border-color: rgba(127, 194, 255, 0.4);
  background: rgba(30, 41, 59, 0.75);
}

.placement-garment-chip.is-active {
  border-color: rgba(255, 204, 0, 0.55);
  background: linear-gradient(120deg, rgba(255, 204, 0, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.15);
}

.placement-garment-chip__abbr {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(127, 194, 255, 0.35);
}

.placement-garment-chip__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}

.placement-garment-chip__live {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1220;
  padding: 0.22rem 0.4rem;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffe566 0%, #ffcc00 100%);
}

.placement-garment-picker__add {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.placement-garment-picker__add-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.placement-garment-picker__add-select {
  font-size: 0.8125rem;
}

/* Legacy list layout (fallback) */
.placement-print-placement-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .placement-print-placement-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .placement-print-placement-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.placement-print-option-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 28, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.placement-print-option-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background 0.18s ease;
}

.placement-print-option-row.is-active-placement {
  border-color: rgba(63, 169, 255, 0.45);
  background: linear-gradient(120deg, rgba(30, 58, 95, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
  box-shadow: 0 0 0 1px rgba(63, 169, 255, 0.12), 0 6px 20px rgba(0, 0, 0, 0.2);
}

.placement-print-option-row.is-active-placement::before {
  background: linear-gradient(180deg, #7ec2ff 0%, #3fa9ff 100%);
}

.placement-print-option-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.placement-print-option-check:hover {
  border-color: rgba(127, 194, 255, 0.45);
  background: rgba(30, 41, 59, 0.85);
}

.placement-print-placement-cb {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: #3fa9ff;
  cursor: pointer;
}

.placement-print-option-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.placement-print-option-aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.placement-print-active-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1220;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #9ed6ff 0%, #3fa9ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.placement-print-option-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e2e8f0;
  background: transparent;
  border: none;
  padding: 0.35rem 0.4rem;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.placement-print-option-label:hover {
  color: #f8fafc;
  background: rgba(63, 169, 255, 0.12);
}

.placement-print-option-label:focus-visible {
  outline: 2px solid rgba(127, 194, 255, 0.9);
  outline-offset: 2px;
}

.placement-print-option-icon.placement-design-icon {
  width: 26px;
  height: 26px;
}

.placement-design-upload-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f1f5f9;
}

.placement-design-upload-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.placement-design-upload-row__choose {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b1220;
  padding: 0.42rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(127, 194, 255, 0.55);
  background: linear-gradient(180deg, #c8e9ff 0%, #3fa9ff 100%);
  box-shadow: 0 2px 8px rgba(63, 169, 255, 0.25);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.placement-design-upload-row__choose:hover {
  filter: brightness(1.06);
}

.placement-design-upload-row__choose:active {
  transform: translateY(1px);
}

.placement-design-upload-row__choose .placement-design-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.placement-design-filename {
  max-width: min(14rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0b1220;
}

.placement-design-upload-row__clear {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.placement-design-upload-row__clear:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.apparel-preview-modal__header-main {
  min-width: 0;
  flex: 1;
}

.apparel-preview-modal__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-brand, #a52422);
}

.apparel-preview-modal__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ap-text, #111827);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .apparel-preview-modal__heading {
    font-size: 1.15rem;
  }
}

.apparel-preview-modal__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ap-muted, #6b7280);
  max-width: 36rem;
}

.apparel-preview-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0;
  border-radius: 10px;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface-2, #f3f4f6);
  color: var(--ap-muted, #6b7280);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.apparel-preview-modal__close:hover {
  color: var(--ap-text, #111827);
  background: var(--ap-brand-dim, rgba(165, 36, 34, 0.08));
  border-color: var(--ap-brand-ring, rgba(165, 36, 34, 0.28));
}

.apparel-preview-modal__close:active {
  transform: scale(0.96);
}

.apparel-preview-modal__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem 0 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.apparel-preview-modal__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (min-width: 640px) {
  .apparel-preview-modal__body {
    padding: 0.25rem 0 1.125rem;
  }
}

/* Garment color swatches (new order) */
.garment-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.garment-color-swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background-color: var(--swatch-fill, #94a3b8);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.garment-color-swatch:hover {
  transform: scale(1.06);
  border-color: var(--accent-ring);
}

.garment-color-swatch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.garment-color-swatch--light {
  border-color: rgba(148, 163, 184, 0.65);
}

.garment-color-swatch--selected {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ap-brand, #a52422);
  border-color: var(--ap-brand, #a52422);
}

#apparelPreviewModal .garment-color-swatch--selected {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ap-brand, #a52422);
}

#apparelPreviewModal .garment-color-swatch:hover {
  border-color: var(--ap-brand-ring, rgba(165, 36, 34, 0.42));
}

#apparelPreviewModal .garment-color-swatch:focus-visible {
  outline-color: var(--ap-brand, #a52422);
}

#apparelPreviewModal #previewStatus,
#apparelPreviewModal .preview-status-overlay {
  color: #4b5563;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#apparelPreviewModal .apparel-preview-modal__stage {
  background: var(--ap-stage-bg, #ffffff);
}

#apparelPreviewModal .apparel-preview-canvas-host,
#apparelPreviewModal #previewSection {
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(165, 36, 34, 0.04), transparent 70%),
    var(--ap-stage-bg, #ffffff);
}

/* ===== Shared modals & brand overrides ===== */
.no-text-brand {
  color: var(--accent);
}

.no-modal-muted {
  color: var(--muted);
}

.no-modal-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--ci-card-shadow-hover);
  color: var(--text);
}

.no-modal-panel__head,
.no-modal-panel__foot {
  border-color: var(--border);
}

.no-modal-panel__head {
  border-bottom: 1px solid var(--border);
}

.no-modal-panel__foot {
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.no-modal-eyebrow {
  color: var(--accent);
}

.no-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.no-modal-close:hover {
  background: #f9fafb;
  color: var(--text);
  border-color: #d1d5db;
}

.no-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.no-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.no-checkout-dl dt {
  color: var(--muted);
}

.no-checkout-dl dd {
  color: var(--text);
}

.no-checkout-dl__total {
  border-top-color: var(--border) !important;
}

.no-checkout-secure {
  border: 1px solid var(--accent-ring);
  background: var(--accent-light);
  color: var(--muted);
}

.no-spec-card {
  border: 1px solid var(--border);
  background: #fafafa;
}

.no-map-search {
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.no-map-search-input {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.no-map-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

body.page-new-order #sizeSum {
  color: #059669 !important;
}

body.page-new-order .no-sample-fee-card__price.no-estimate-active {
  border-color: var(--accent) !important;
  background: #fff;
}

body.page-new-order .border-gray-700 {
  border-color: var(--border) !important;
}

/* Placement studio — light theme */
body.page-new-order .placement-hint-chip {
  color: var(--muted);
  border-color: var(--border);
  background: #f9fafb;
}

body.page-new-order .placement-hint-chip strong {
  color: var(--accent);
}

body.page-new-order .placement-studio__status {
  border-color: var(--accent-ring);
  background: var(--accent-light);
}

body.page-new-order .placement-studio__status-text {
  color: var(--text);
}

body.page-new-order .placement-studio__status-text strong {
  color: var(--accent);
}

body.page-new-order .placement-studio__status-bar {
  background: #e5e7eb;
}

body.page-new-order .placement-studio__status-fill {
  background: var(--accent);
}

body.page-new-order .placement-studio-region__head {
  border-bottom-color: var(--border);
}

body.page-new-order .placement-studio-region__title,
body.page-new-order .placement-studio-region__count {
  color: var(--muted);
}

body.page-new-order .placement-studio-region__count {
  background: #f3f4f6;
  border-color: var(--border);
}

body.page-new-order .placement-studio-card {
  border-color: var(--border);
  background: #fff;
}

body.page-new-order .placement-studio-card:hover {
  border-color: var(--accent-ring);
  background: #fafafa;
}

body.page-new-order .placement-studio-card.is-included {
  border-color: var(--accent-ring);
  background: var(--accent-light);
}

body.page-new-order .placement-studio-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

body.page-new-order .placement-studio-card.is-active::after {
  color: #fff;
  background: var(--accent);
}

body.page-new-order .placement-studio-card__badge {
  color: var(--text);
  background: #f3f4f6;
  border-color: var(--border);
}

body.page-new-order .placement-studio-card.is-active .placement-studio-card__badge,
body.page-new-order .placement-studio-card.is-included .placement-studio-card__badge {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

body.page-new-order .placement-studio-card__title {
  color: var(--text);
}

body.page-new-order .placement-studio-card__meta,
body.page-new-order .placement-design-upload-hint,
body.page-new-order .placement-design-uploads-empty {
  color: var(--muted);
}

body.page-new-order .placement-design-uploads-empty {
  border-color: var(--border);
  background: #f9fafb;
}

body.page-new-order .placement-design-abbr {
  color: var(--text);
  background: #f3f4f6;
  border-color: var(--border);
}

body.page-new-order .placement-print-option-row {
  border-color: var(--border);
  background: #fff;
}

body.page-new-order .placement-print-option-row.is-active-placement {
  border-color: var(--accent-ring);
  background: var(--accent-light);
  box-shadow: none;
}

body.page-new-order .placement-print-option-row.is-active-placement::before {
  background: var(--accent);
}

body.page-new-order .placement-print-option-check {
  background: #f9fafb;
  border-color: var(--border);
}

body.page-new-order .placement-print-placement-cb {
  accent-color: var(--accent);
}

body.page-new-order .placement-print-active-badge {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

body.page-new-order .placement-print-option-label {
  color: var(--text);
}

body.page-new-order .placement-print-option-label:hover {
  color: var(--accent);
  background: var(--accent-light);
}

body.page-new-order .placement-design-upload-row__label {
  color: var(--text);
}

body.page-new-order .placement-design-upload-row__choose {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: none;
}

body.page-new-order .placement-design-upload-row__choose:hover {
  filter: none;
  background: var(--accent-hover);
}

body.page-new-order .placement-design-filename {
  color: var(--muted);
}

body.page-new-order .placement-design-upload-row__clear {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

/* Apparel preview modal — full white UI (header, garment color sidebar, stage) */
#apparelPreviewModal .apparel-preview-modal__shell,
#apparelPreviewModal .apparel-preview-modal__header,
#apparelPreviewModal .apparel-preview-color-panel,
#apparelPreviewModal .apparel-preview-modal__stage,
#apparelPreviewModal .apparel-preview-canvas-host,
#apparelPreviewModal #previewSection,
#apparelPreviewModal .apparel-preview-view-bar {
  background: #ffffff;
}

#apparelPreviewModal .apparel-preview-modal__header {
  border-bottom-color: #e5e7eb;
}

#apparelPreviewModal .apparel-preview-color-panel {
  border-right-color: #e5e7eb;
}

#apparelPreviewModal .apparel-preview-color-panel__custom {
  border-top-color: #e5e7eb;
}

#apparelPreviewModal .apparel-preview-color-panel__heading {
  color: #111827;
}

#apparelPreviewModal .apparel-preview-color-panel__hint,
#apparelPreviewModal .apparel-preview-color-panel__custom-label,
#apparelPreviewModal .apparel-preview-color-panel__hex {
  color: #6b7280;
}

#apparelPreviewModal .apparel-preview-modal__eyebrow {
  color: var(--ci-brand, #a52422);
}

#apparelPreviewModal .apparel-preview-modal__heading {
  color: #111827;
}

#apparelPreviewModal .apparel-preview-modal__sub {
  color: #6b7280;
}

#apparelPreviewModal .apparel-preview-view-bar {
  border-bottom-color: #e5e7eb;
}

@media (max-width: 640px) {
  #apparelPreviewModal .apparel-preview-color-panel {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* Dark theme support */
[data-theme="dark"] body.page-new-order {
  --input-bg: #141414;
  --calendar-bg: #141414;
  --dropdown-bg: #141414;
}

[data-theme="dark"] body.page-new-order .no-modal-panel__foot,
[data-theme="dark"] body.page-new-order .no-map-search,
[data-theme="dark"] body.page-new-order .no-spec-card,
[data-theme="dark"] body.page-new-order .placement-design-uploads--panel {
  background: #111;
}

[data-theme="dark"] body.page-new-order .placement-studio-card,
[data-theme="dark"] body.page-new-order .placement-print-option-row,
[data-theme="dark"] body.page-new-order .no-modal-close,
[data-theme="dark"] body.page-new-order .no-btn-secondary {
  background: #141414;
}
