.lae {
  --lae-bg: #12141a;
  --lae-panel: #1a1e27;
  --lae-ink: #f3efe6;
  --lae-muted: #9aa0ad;
  --lae-line: rgba(243, 239, 230, 0.12);
  --lae-accent: #f0c14a;
  --lae-accent-ink: #1a1406;
  --lae-purple: #8b6cff;
  --lae-purple-soft: rgba(139, 108, 255, 0.22);
  --lae-danger: #ff7a7a;
  --lae-warn: #e0b35a;
  --lae-ok: #7ddea5;
  --lae-radius: 16px;
  --lae-gap: 1.25rem;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--lae-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 193, 74, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(126, 200, 227, 0.08), transparent 50%),
    var(--lae-bg);
  border: 1px solid var(--lae-line);
  border-radius: calc(var(--lae-radius) + 4px);
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
}

.lae *,
.lae *::before,
.lae *::after {
  box-sizing: border-box;
}

.lae__intro {
  margin-bottom: 1.25rem;
}

.lae__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--lae-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.lae__heading {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lae__lede {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--lae-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.lae__layout {
  display: grid;
  gap: var(--lae-gap);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.lae__preview-pane,
.lae__controls {
  min-width: 0;
}

.lae--preview-3d .lae__layout {
  /* ~58% preview / ~42% controls on a wide customs shell */
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
}

.lae--preview-3d .lae__preview-stage {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-height: min(68vh, 620px);
  min-height: 320px;
  touch-action: none;
}

.lae--preview-3d .lae__controls {
  /* Keep design tiles / swatches from being crushed */
  min-width: min(100%, 340px);
  overflow: visible;
}

/* Stack earlier than before so the engine does not crush inside theme sidebars. */
@media (max-width: 1100px) {
  .lae__layout,
  .lae--preview-3d .lae__layout {
    grid-template-columns: 1fr;
  }

  .lae--preview-3d .lae__preview-stage {
    min-height: 360px;
    max-height: 70vh;
  }

  .lae--preview-3d .lae__controls {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .lae {
    padding: 0.85rem;
  }

  .lae--preview-3d .lae__preview-stage {
    min-height: 300px;
  }
}

/* Desktop: the preview floats in the viewport while the page scrolls the controls. */
@media (min-width: 1101px) {
  .lae--preview-3d .lae__preview-pane {
    position: sticky;
    top: max(7rem, calc((100dvh - min(68vh, 640px)) / 2));
    align-self: start;
    height: fit-content;
    z-index: 2;
  }

  .lae--preview-3d .lae__preview-stage {
    min-height: 0;
    max-height: min(68vh, 620px, calc(100dvh - 12rem));
  }
}

.lae__preview-pane,
.lae__controls {
  background: var(--lae-panel);
  border: 1px solid var(--lae-line);
  border-radius: var(--lae-radius);
  padding: 1rem;
}

.lae__preview-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 40%),
    #0d0f14;
}

.lae__garment {
  position: absolute;
  inset: 4% 10% 4%;
  border-radius: 42% 42% 18% 18% / 28% 28% 16% 16%;
  background: #222;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.35);
  transition: background 180ms ease;
}

.lae__garment::before,
.lae__garment::after {
  content: "";
  position: absolute;
  top: 10%;
  width: 28%;
  height: 22%;
  background: inherit;
  border-radius: 40% 20% 30% 50%;
  filter: brightness(0.92);
}

.lae__garment::before {
  left: -18%;
  transform: rotate(-18deg);
}

.lae__garment::after {
  right: -18%;
  transform: rotate(18deg);
}

.lae__garment--image {
  inset: 2% 6% 2%;
  border-radius: 12px;
  background-blend-mode: multiply;
}

.lae__garment--image::before,
.lae__garment--image::after {
  content: none;
  display: none;
}

.lae__garment-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.92;
  pointer-events: none;
}

.lae__print-area {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.lae__artwork {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  text-align: center;
  padding: 0.4rem;
}

.lae__artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.lae__artwork-mono {
  font-weight: 800;
  font-size: clamp(1.1rem, 3.2vw, 1.7rem);
  letter-spacing: 0.04em;
}

.lae__artwork-label {
  font-size: 0.72rem;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 11ch;
}

.lae__preview-caption {
  margin: 0.7rem 0 0;
  color: var(--lae-muted);
  font-size: 0.78rem;
}

.lae__preview-note {
  margin: 0.55rem 0 0;
  color: var(--lae-ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.lae__field + .lae__field {
  margin-top: 1.1rem;
}

.lae__field-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.lae__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lae__hint {
  color: var(--lae-muted);
  font-size: 0.85rem;
}

.lae__design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.lae__design {
  appearance: none;
  border: 1px solid var(--lae-line);
  background: #12151c;
  color: inherit;
  border-radius: 12px;
  padding: 0.55rem;
  text-align: left;
  cursor: pointer;
  min-height: 5.5rem;
  transition: border-color 140ms ease, transform 140ms ease;
}

.lae__design:hover,
.lae__design:focus-visible {
  border-color: rgba(240, 193, 74, 0.55);
  outline: none;
}

.lae__design.is-selected {
  border-color: var(--lae-accent);
  box-shadow: 0 0 0 1px rgba(240, 193, 74, 0.35);
}

.lae__design-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #111;
}

.lae__design-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

.lae__design-blurb {
  display: block;
  margin-top: 0.15rem;
  color: var(--lae-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.lae__swatches,
.lae__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lae__swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
}

.lae__swatch.is-selected {
  border-color: var(--lae-accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 0 2px rgba(240, 193, 74, 0.25);
}

.lae__swatch:disabled,
.lae__size:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lae__size {
  min-width: 3rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--lae-line);
  background: #12151c;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae__size.is-selected {
  border-color: var(--lae-accent);
  background: rgba(240, 193, 74, 0.12);
}

.lae__summary {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lae-line);
}

.lae__summary-rows {
  display: grid;
  gap: 0.4rem;
}

.lae__summary-rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.lae__summary-rows span {
  color: var(--lae-muted);
}

.lae__price {
  margin-top: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.lae__price-now {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lae__price-compare {
  color: var(--lae-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.lae__price-breakdown {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--lae-ink);
}

.lae__price-breakdown[hidden] {
  display: none;
}

.lae__save:disabled {
  opacity: 0.55;
  cursor: default;
}

.lae__status {
  min-height: 1.3rem;
  margin: 0.75rem 0 0.55rem;
  font-size: 0.88rem;
  color: var(--lae-muted);
}

.lae__status.is-error {
  color: var(--lae-danger);
}

.lae__status.is-ok {
  color: var(--lae-ok);
}

.lae__design-hint {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--lae-ink);
}

.lae__design-hint[hidden] {
  display: none;
}

.lae__cta {
  width: 100%;
  min-height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--lae-accent);
  color: var(--lae-accent-ink);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.lae__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lae__customise {
  width: 100%;
  margin-top: 0.65rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--lae-line);
  background: transparent;
  color: var(--lae-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae__customise[aria-expanded="true"] {
  border-color: var(--lae-accent);
  color: var(--lae-accent);
}

.lae__customise-panel {
  margin-top: 0.85rem;
}

.lae__cta.is-busy {
  opacity: 0.8;
}

.lae__3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  z-index: 2;
}

.lae__3d-canvas[hidden],
.lae__3d-loading[hidden],
.lae__view-controls[hidden],
.lae__flat-template[hidden],
.lae__garment[hidden],
.lae__print-area[hidden] {
  display: none !important;
}

.lae__flat-template {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
}

.lae__flat-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

.lae__flat-art {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.lae__flat-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lae__flat-status {
  position: absolute;
  inset: auto 8% 12%;
  z-index: 4;
  text-align: center;
  color: var(--lae-muted);
  font-size: 0.85rem;
  line-height: 1.35;
  pointer-events: none;
}

.lae__flat-qa {
  position: absolute;
  z-index: 3;
  border: 1px dashed rgba(240, 193, 74, 0.85);
  box-shadow: inset 0 0 0 1px rgba(240, 193, 74, 0.25);
  pointer-events: none;
}

.lae__3d-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 45%),
    #0d0f14;
  color: var(--lae-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.lae__3d-loading-bar {
  width: 42%;
  max-width: 180px;
  height: 4px;
  border-radius: 999px;
  background: rgba(243, 239, 230, 0.12);
  overflow: hidden;
  position: relative;
}

.lae__3d-loading-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: var(--lae-accent);
  animation: lae-3d-load 1.1s ease-in-out infinite;
}

@keyframes lae-3d-load {
  0% { transform: translateX(-20%); }
  50% { transform: translateX(160%); }
  100% { transform: translateX(-20%); }
}

.lae__preview-pane {
  position: relative;
}

.lae__preview-updating {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--lae-line);
  background: rgba(12, 14, 20, 0.78);
  color: var(--lae-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.lae__preview-pane.is-preview-updating .lae__3d-canvas {
  opacity: 0.92;
}

.lae__view-controls,
.lae__viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.lae--preview-3d .lae__viewer-toolbar,
.lae--preview-3d .lae__view-controls {
  position: absolute;
  left: 50%;
  bottom: 2.75rem;
  transform: translateX(-50%);
  z-index: 4;
  margin: 0;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.72);
  border: 1px solid var(--lae-line);
  backdrop-filter: blur(8px);
  max-width: calc(100% - 1.5rem);
  justify-content: center;
}

.lae__view-btn {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--lae-line);
  border-radius: 999px;
  background: transparent;
  color: var(--lae-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lae__view-btn.is-selected,
.lae__view-btn[aria-pressed="true"] {
  border-color: var(--lae-purple);
  color: #fff;
  background: color-mix(in srgb, var(--lae-purple) 78%, #1a1430);
}

.lae__view-btn--reset {
  margin-left: 0.15rem;
}

.lae__product-info {
  margin-bottom: 0.35rem;
}

.lae__product-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lae__product-design-name {
  margin: 0.35rem 0 0;
  color: var(--lae-muted);
  font-size: 0.95rem;
}

.lae__element-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lae__element-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.4rem;
  border: 1px solid var(--lae-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lae-panel) 88%, #000);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lae__element-card[data-custom-id] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}

.lae__element-main {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lae__card-actions {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  flex: none;
}

.lae__card-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--lae-line);
  background: transparent;
  color: var(--lae-ink);
  cursor: pointer;
}

.lae__card-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.lae__card-btn--remove {
  color: #ffb4b4;
}

.lae__element-card.is-selected {
  border-color: color-mix(in srgb, var(--lae-purple) 70%, transparent);
  box-shadow: 0 0 0 1px var(--lae-purple-soft), 0 8px 24px rgba(0, 0, 0, 0.25);
  background: color-mix(in srgb, var(--lae-panel) 70%, #2a1f4d);
}

.lae__element-card.is-hidden-element {
  opacity: 0.62;
}

.lae__element-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 10px;
  background-color: #f3efe6;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 0.2rem;
  border: 1px solid var(--lae-line);
}

.lae__element-title {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
}

.lae__element-meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--lae-muted);
  font-size: 0.82rem;
}

.lae__element-edit {
  color: var(--lae-purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lae__element-editor {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--lae-line);
  border-radius: 14px;
  background: rgba(10, 12, 18, 0.55);
}

.lae__element-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lae__editor-row {
  margin-top: 0.75rem;
}

.lae__editor-row--toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lae__editor-label,
.lae__editor-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lae-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lae__select {
  width: 100%;
  min-height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--lae-line);
  background: #0d0f14;
  color: var(--lae-ink);
  font: inherit;
  padding: 0.4rem 0.65rem;
}

.lae__slider {
  width: 100%;
  accent-color: var(--lae-purple);
}

.lae__scale-readout {
  color: var(--lae-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.lae__scale-note,
.lae__scale-print {
  margin: 0.4rem 0 0;
  color: var(--lae-muted);
  font-size: 0.8rem;
}

.lae__scale-warn {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--lae-warn) 45%, transparent);
  background: color-mix(in srgb, var(--lae-warn) 12%, transparent);
  color: var(--lae-warn);
  font-size: 0.82rem;
  line-height: 1.35;
}

.lae__scale-warn.is-subtle {
  border-color: var(--lae-line);
  background: transparent;
  color: var(--lae-muted);
}

.lae__nudge {
  margin-top: 0.35rem;
}

.lae__nudge-note {
  margin: 0.15rem 0 0.2rem;
  color: var(--lae-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.lae__slider:disabled {
  opacity: 0.45;
}

.lae__toggle {
  min-width: 3.4rem;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--lae-line);
  background: transparent;
  color: var(--lae-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae__toggle.is-on,
.lae__toggle[aria-pressed="true"] {
  border-color: var(--lae-purple);
  background: var(--lae-purple-soft);
  color: #fff;
}

.lae__summary-lead {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.lae__summary-elements {
  display: none;
}

.lae__summary-element {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.lae__summary-element span {
  color: var(--lae-muted);
}

.lae__summary-element.is-hidden-element {
  opacity: 0.55;
}

/* Dev-only placement QA controls (data-visual-dev pages) */
.lae__placement-debug {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px dashed color-mix(in srgb, var(--lae-accent, #c9a227) 55%, transparent);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--lae-panel, #161a22) 88%, transparent);
  font-size: 0.78rem;
}
.lae__placement-debug-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--lae-muted, #9aa3b2);
}
.lae__placement-debug select,
.lae__placement-debug input[type="number"] {
  min-height: 1.85rem;
  border: 1px solid var(--lae-line, #2a3140);
  border-radius: 0.35rem;
  background: var(--lae-bg, #0d0f14);
  color: var(--lae-ink, #e8ecf4);
  font: inherit;
  padding: 0.15rem 0.4rem;
}
.lae__placement-debug button {
  min-height: 1.85rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--lae-line, #2a3140);
  border-radius: 0.35rem;
  background: transparent;
  color: var(--lae-ink, #e8ecf4);
  font: inherit;
  cursor: pointer;
}
.lae__placement-debug-status {
  color: var(--lae-muted, #9aa3b2);
  white-space: nowrap;
}
.lae__placement-debug-status[data-scale-status="oversized"] {
  color: #e0b35a;
}
.lae__placement-debug-status[data-scale-status="undersized"] {
  color: #8fa0b8;
}


/* Apparel & Customs visual-dev page shell (scoped) */
.lae-customs-page {
  --lae-customs-max: 1360px;
  width: 100%;
  max-width: var(--lae-customs-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  box-sizing: border-box;
}
.lae-customs-page__header {
  margin-bottom: 0.75rem;
}
.lae-customs-page__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}
.lae-customs-page__note {
  font-size: 0.875rem;
  opacity: 0.75;
  margin: 0 0 1rem;
}
.lae-customs-page .lae {
  width: 100%;
  max-width: none;
}
@media (max-width: 1100px) {
  .lae-customs-page {
    padding: 0.75rem 0.75rem 2.5rem;
  }
}

/*
 * Break out of Tinker page-content / RTE prose width on the customs page only.
 * Tinker nests a body-normal (~32.5em) track inside `.section.page-width-content`
 * via `.section-content-wrapper` / `.layout-panel-flex`. Override that track only
 * when the Apparel customs page is present — never on other templates.
 */
body:has([data-apparel-customs-page]) {
  /* Defeat Tinker page-width-narrow prose track for this page only. */
  --narrow-page-width: 100%;
  --normal-page-width: 100%;
  --wide-page-width: 100%;
  --page-width: 100%;
  --max-width--body-normal: 100%;
  --max-width--body-wide: 100%;
}
body:has([data-apparel-customs-page]) .section.page-width-content,
body:has([data-apparel-customs-page]) .page-width-content {
  /* Tinker uses a multi-column `grid` shorthand; force a single full-width flow. */
  display: block !important;
  grid: none !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  max-width: none !important;
  width: 100% !important;
  justify-items: stretch !important;
  --max-width: none;
  --page-width: 100%;
  --max-width--body-normal: 100%;
  --max-width--body-wide: 100%;
}
body:has([data-apparel-customs-page]) .section-content-wrapper,
body:has([data-apparel-customs-page]) .layout-panel-flex,
body:has([data-apparel-customs-page]) .layout-panel-flex--column {
  display: flex !important;
  flex-direction: column !important;
  max-width: none !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  --max-width: none;
}
body:has([data-apparel-customs-page]) .shopify-block.rte,
body:has([data-apparel-customs-page]) rte-formatter,
body:has([data-apparel-customs-page]) .shopify-block.rte > * {
  display: block;
  width: 100% !important;
  max-width: none !important;
}
body:has([data-apparel-customs-page]) .text-block:has(> h1) {
  display: none !important;
}
@media (min-width: 1101px) {
  body:has([data-apparel-customs-page]) .section.page-width-content,
  body:has([data-apparel-customs-page]) .page-width-content {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
  }
}

.lae__add-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.4rem;
  padding: 0.6rem;
  border: 1px dashed color-mix(in srgb, var(--lae-purple) 65%, var(--lae-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--lae-purple) 8%, transparent);
  color: var(--lae-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae__add-custom::before {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}

.lae__element-thumb--note {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1406;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lae__custom-editor {
  margin-top: 0.75rem;
}

.lae__custom-note,
.lae-modal textarea {
  width: 100%;
  min-height: 5.5rem;
  margin-top: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--lae-line);
  background: #0d0f14;
  color: var(--lae-ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
  resize: vertical;
}

.lae__text-btn {
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--lae-purple);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae-modal {
  --lae-ink: #f3efe6;
  --lae-muted: #9aa0ad;
  --lae-line: rgba(243, 239, 230, 0.16);
  --lae-purple: #8b6cff;
  --lae-danger: #ff7a7a;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  background: rgba(8, 9, 14, 0.72);
}

.lae-modal__dialog {
  width: min(34rem, 100%);
  max-height: min(88dvh, 46rem);
  overflow: auto;
  padding: 1rem 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--lae-line);
  background: #171b24;
  color: var(--lae-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lae-modal__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lae-modal__title {
  margin: 0;
  font-size: 1.15rem;
  flex: 1;
}

.lae-modal__close,
.lae-modal__back {
  border: 0;
  background: transparent;
  color: var(--lae-muted);
  font: inherit;
  cursor: pointer;
}

.lae-modal__lead,
.lae-modal__guide {
  margin: 0.7rem 0 0;
  color: var(--lae-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.lae-modal__choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--lae-line);
  background: #10131a;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lae-modal__choice span {
  color: var(--lae-muted);
  font-size: 0.86rem;
}

.lae-modal__choice.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lae-modal__fonts,
.lae-modal__colours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.lae-modal__colour-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.lae-modal__colour-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.lae-modal__colour-pick input[type="color"] {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--lae-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.lae-modal__colour-pick input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.lae-modal__colour-pick input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

.lae-modal .lae-modal__colour-pick input.lae-modal__hex {
  width: 7rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--lae-line);
  background-color: #0d0f14;
  color: #f3efe6;
  -webkit-text-fill-color: #f3efe6;
  caret-color: #f3efe6;
  font: inherit;
  letter-spacing: 0.04em;
}

.lae-modal__font,
.lae-modal__swatch {
  border: 1px solid var(--lae-line);
  background: #10131a;
  color: var(--lae-ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
}

.lae-modal__swatch {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.lae-modal__font.is-selected,
.lae-modal__swatch.is-selected,
.lae-modal__choice:hover:not(:disabled) {
  border-color: var(--lae-purple);
}

.lae-modal__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.lae-modal__check input {
  margin-top: 0.2rem;
}

.lae-modal__link {
  color: var(--lae-purple);
}

.lae-modal__file {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.7rem;
  color: var(--lae-ink);
  font-size: 16px;
}

.lae-modal textarea,
.lae-modal select,
.lae__select,
.lae__custom-note {
  font-size: 16px;
}

.lae-modal__preview {
  display: block;
  width: min(100%, 16rem);
  margin: 0.75rem auto 0;
  background: #f3efe6;
  border-radius: 10px;
}

.lae-modal__preview[hidden] {
  display: none !important;
}

.lae-modal__error {
  margin: 0.7rem 0 0;
  color: var(--lae-danger);
  font-size: 0.88rem;
}

.lae-modal__primary {
  margin-top: 0.9rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--lae-purple);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lae-modal__primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 700px) {
  .lae__element-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 800px) {
  .lae-modal {
    align-items: center;
  }
}

/*
 * The apparel panel already adds the item to the cart. On this template only,
 * hide the theme's duplicate colour, size, quantity, and payment buttons.
 * Title, price, description, and the extra info rows stay.
 */
body:has([data-apparel-root]) .product-details variant-picker,
body:has([data-apparel-root]) .product-details .buy-buttons-block,
body:has([data-apparel-root]) .product-details .product__pickup-availabilities,
body:has([data-apparel-root]) .product-details local-pickup,
body:has([data-apparel-root]) .product-details square-placement,
body:has([data-apparel-root]) sticky-add-to-cart {
  display: none !important;
}

body:has([data-apparel-root]) .product-information__media:not(:has(img, video, model-viewer)) {
  display: none;
}

body:has([data-apparel-root]) .product-information__grid:not(:has(.product-information__media img, .product-information__media video, .product-information__media model-viewer)) {
  display: block;
}
