.tag-order-main {
  background: var(--paper);
  min-height: calc(100svh - var(--site-header-height));
  padding: clamp(28px, 4vw, 64px) 0 clamp(80px, 8vw, 132px);
}

.tag-order-shell {
  align-items: stretch;
  display: grid;
  gap: clamp(32px, 4.5vw, 68px);
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  margin: 0 auto;
  width: min(calc(100% - 48px), 1440px);
}

.tag-order-product {
  min-width: 0;
}

.tag-order-product__surface {
  align-items: center;
  background: #f1f2f3;
  border-radius: 28px;
  display: flex;
  justify-content: center;
  min-height: min(54vw, 700px);
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.tag-order-product__nav {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  color: #000;
  cursor: pointer;
  display: inline-flex;
  height: clamp(46px, 4vw, 62px);
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  width: clamp(46px, 4vw, 62px);
  z-index: 2;
}

.tag-order-product__nav:hover,
.tag-order-product__nav:focus-visible {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transform: translateY(-50%) scale(1.05);
}

.tag-order-product__nav--previous { left: clamp(16px, 2.2vw, 34px); }
.tag-order-product__nav--next { right: clamp(16px, 2.2vw, 34px); }
.tag-order-product__nav svg { height: 28%; width: 28%; }
.tag-order-product__nav svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.tag-order-product__dots {
  align-items: center;
  bottom: clamp(18px, 2.5vw, 32px);
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.order-view-label {
  bottom: clamp(42px, 5vw, 64px);
  color: #000;
  font-size: .78rem;
  left: 50%;
  margin: 0;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.tag-order-product__dot {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0,.28);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 9px;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
  width: 9px;
}

.tag-order-product__dot:hover,
.tag-order-product__dot:focus-visible { transform: scale(1.25); }
.tag-order-product__dot.is-active { background: var(--ink); transform: scale(1.15); }

.tag-order-product__glow {
  background: radial-gradient(circle, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 68%);
  height: 76%;
  left: 12%;
  pointer-events: none;
  position: absolute;
  top: 12%;
  width: 76%;
}

.order-dimensions-legend { display: none; }

.tag-order-product__image {
  --view-scale: 1;
  --view-scale-factor: 1;
  --view-shift-x: 0%;
  --view-shift-y: 0%;
  filter: saturate(.94) brightness(1.01) contrast(1.01);
  height: 34.56%;
  max-width: 28.8%;
  object-fit: contain;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(calc(-50% + var(--view-shift-x)), calc(-50% + var(--view-shift-y))) scale(calc(.985 * var(--view-scale) * var(--view-scale-factor)));
  transition: filter .2s ease, opacity .24s var(--ease-out), transform .24s var(--ease-out);
  width: auto;
  will-change: opacity, transform;
  z-index: 1;
}

.tag-order-product__image.is-active { opacity: 1; transform: translate(calc(-50% + var(--view-shift-x)), calc(-50% + var(--view-shift-y))) scale(calc(var(--view-scale) * var(--view-scale-factor))); }
.tag-order-product__image.is-placeholder { opacity: 0; }

.tag-order-product__image[data-size="large"] {
  --view-scale-factor: .85;
  height: 69.12%;
  max-width: 57.6%;
}

/* Match the visible product height across each set while keeping the
   perspective of each view. Large views are calibrated to render at 2x the
   corresponding standard view. */
.tag-order-product__image[data-size="large"][data-view="0"] {
  --view-scale: .921;
  --view-shift-x: 4.32%;
  --view-shift-y: .54%;
}

.tag-order-product__image[data-size="large"][data-view="1"] {
  --view-scale: .998;
  --view-shift-x: .09%;
  --view-shift-y: .64%;
}

.tag-order-product__image[data-size="large"][data-view="2"] {
  --view-scale: .911;
  --view-shift-x: -3.61%;
  --view-shift-y: -.25%;
}

.tag-order-product__image[data-size="large"][data-view="3"] {
  --view-scale: 1.071;
  --view-shift-x: .4%;
  --view-shift-y: 1.64%;
}

.tag-order-config {
  align-self: start;
  max-width: 560px;
  padding: 0;
}

.tag-order-config.is-inquiry { padding-top: 0; }
.tag-order-config__step-one[hidden] { display: none; }

.tag-order-config h1 {
  font-size: clamp(1.55rem, 2.35vw, 2.35rem);
  line-height: .98;
  margin-bottom: 26px;
  max-width: none;
  text-wrap: nowrap;
  white-space: nowrap;
}

.tag-order-config__body {
  color: #000;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 410px;
}

.tag-order-fieldset {
  border: 0;
  margin: 0 0 30px;
  min-width: 0;
  padding: 0;
}

.tag-order-fieldset legend {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

.tag-order-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-order-main--tags .tag-order-shell {
  grid-template-columns: minmax(0, 1fr) minmax(760px, 1.1fr);
}

@media (min-width: 941px) {
  .tag-order-main--tags .tag-order-shell {
    grid-template-columns: minmax(0, 1.16fr) minmax(720px, .84fr);
    width: min(calc(100% - 48px), 1520px);
  }

  .tag-order-main--tags .tag-order-config {
    transform: translateX(32px);
  }
}

.tag-order-choice {
  align-items: center;
  border: 1px solid rgba(0, 0, 0,.22);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.tag-order-main--tags .tag-order-choice {
  color: #000;
  min-height: 104px;
  padding-block: 24px;
}

.tag-order-main--tags .tag-order-choice small { color: #000; }

.tag-order-choice:hover { transform: translateY(-2px); }
.tag-order-choice.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tag-order-choice input { opacity: 0; position: absolute; }
.tag-order-choice > span:first-of-type { display: grid; gap: 4px; }
.tag-order-choice strong { font-family: var(--font-display); font-size: .94rem; letter-spacing: -.03em; }
.tag-order-choice small { color: #000; font-size: .78rem; }
.tag-order-choice__specs { display: grid; gap: 2px; margin-top: 4px; white-space: nowrap; }
.tag-order-choice__check { color: var(--ink); font-size: .9rem; opacity: 0; }
.tag-order-choice.is-selected .tag-order-choice__check { opacity: 1; }

.tag-order-submit {
  align-items: center;
  background: #000;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 700;
  gap: 18px;
  justify-content: space-between;
  margin-top: 28px;
  min-height: 56px;
  padding: 10px 18px 10px 22px;
  transition: background .2s ease, transform .2s ease;
  width: min(100%, 310px);
}

.tag-order-submit:hover, .tag-order-submit:focus-visible { background: #000; transform: translateY(-2px); }
.tag-order-submit svg { border-left: 1px solid rgba(255,255,255,.26); height: 25px; padding-left: 14px; width: 32px; }

.tag-order-main--tags .tag-order-submit { width: min(100%, 280px); }

.crate-order-config__step-one .tag-order-submit { width: min(100%, 260px); }

.tag-order-inquiry {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

.tag-order-config.is-inquiry .tag-order-inquiry {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.tag-order-inquiry.is-open { animation: tag-order-inquiry-in .24s ease-out both; }

@keyframes tag-order-inquiry-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag-order-inquiry__heading { display: grid; gap: 6px; margin-bottom: 18px; }
.tag-order-inquiry__heading h2 { color: var(--ink); font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1; margin: 0; }
.tag-order-inquiry__heading span { color: #000; font-size: .88rem; line-height: 1.4; }
.tag-order-inquiry__selection { color: var(--ink); font-size: .86rem; font-weight: 700; margin: 0 0 16px; }
.tag-order-inquiry__fields { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tag-order-inquiry__field { display: grid; gap: 6px; min-width: 0; }
.tag-order-inquiry__field--full { grid-column: 1 / -1; }
.tag-order-inquiry__field > span { color: #000; font-size: .76rem; font-weight: 700; }
.tag-order-inquiry__field b { color: var(--ink); }
.tag-order-inquiry__field small { color: #000; font-weight: 400; }
.tag-order-inquiry__field input,
.tag-order-inquiry__field textarea {
  background: #fff;
  border: 1px solid rgba(0, 0, 0,.2);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}
.tag-order-inquiry__field textarea { min-height: 88px; resize: vertical; }
.tag-order-inquiry__field input:focus,
.tag-order-inquiry__field textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.tag-order-inquiry__field input::placeholder,
.tag-order-inquiry__field textarea::placeholder { color: #000; }
.tag-order-inquiry__status { background: rgba(0, 0, 0,.06); border-radius: 8px; color: var(--ink); font-size: .82rem; line-height: 1.4; margin: 14px 0 0; padding: 10px 12px; }
.tag-order-inquiry__actions { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 18px; }
.tag-order-inquiry__back { background: transparent; color: #000; font-size: .85rem; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.tag-order-inquiry__back:hover, .tag-order-inquiry__back:focus-visible { color: #000; }
.tag-order-inquiry__submit { margin-top: 0; width: auto; }

html[data-theme="dark"] .tag-order-product__surface { background: #1b1b1b; }
html[data-theme="dark"] .tag-order-product__glow { background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 68%); }
html[data-theme="dark"] .tag-order-product__nav { background: rgba(255,255,255,.9); color: #000; }
html[data-theme="dark"] .tag-order-product__dot { background: rgba(255,255,255,.38); }
html[data-theme="dark"] .tag-order-product__dot.is-active { background: #fff; }
html[data-theme="dark"] .tag-order-config__body,
html[data-theme="dark"] .tag-order-choice small { color: rgba(243,243,243,.68); }
html[data-theme="dark"] .tag-order-choice { border-color: rgba(255,255,255,.24); }
html[data-theme="dark"] .tag-order-choice.is-selected { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
html[data-theme="dark"] .tag-order-submit { background: #000; color: #fff; }
html[data-theme="dark"] .tag-order-submit:hover, html[data-theme="dark"] .tag-order-submit:focus-visible { background: #000; }
html[data-theme="dark"] .tag-order-submit svg { border-left-color: rgba(255,255,255,.26); }

@media (max-width: 940px) {
  .tag-order-shell,
  .tag-order-main--tags .tag-order-shell { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 34px; }
  .tag-order-product__surface { min-height: 620px; }
  .tag-order-config h1 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
}

@media (max-width: 760px) {
  .tag-order-main { padding-top: 18px; }
  .tag-order-shell,
  .tag-order-main--tags .tag-order-shell { display: block; width: min(calc(100% - 32px), 620px); }
  .tag-order-product__surface { min-height: min(112vw, 540px); }
  .tag-order-product__nav { display: none; }
  .tag-order-product__image { height: 34.56%; max-width: 30.72%; }
  .tag-order-product__image[data-size="large"] { height: 69.12%; max-width: 61.44%; }
  .tag-order-product__nav--previous { left: 12px; }
  .tag-order-product__nav--next { right: 12px; }
  .tag-order-config { max-width: none; padding: 54px 0 0; }
  .tag-order-config h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); white-space: normal; }
  .tag-order-submit { width: 100%; }
  .tag-order-inquiry__fields { grid-template-columns: 1fr; }
  .tag-order-inquiry__actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .tag-order-inquiry__submit { width: 100%; }
  .tag-order-inquiry__back { align-self: flex-start; }

  /* Keep the view label clearly above the enlarged dot hit areas. */
  .order-view-label { bottom: 70px; }

  .order-dimensions-legend {
    align-items: flex-start;
    backdrop-filter: blur(7px);
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 11px;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 3px;
    left: 16px;
    max-width: calc(100% - 32px);
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    top: 16px;
    z-index: 3;
  }

  .order-dimensions-legend__label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .order-dimensions-legend__value {
    font-size: .73rem;
    line-height: 1.25;
    max-width: 215px;
  }

  /* Keep the dimensions readable in the light mobile order view. */
  html[data-theme="light"] .order-dimensions-legend,
  html[data-theme="light"] .order-dimensions-legend__label,
  html[data-theme="light"] .order-dimensions-legend__value {
    color: #000;
  }
}

@media (max-width: 440px) {
  .tag-order-choice-grid { grid-template-columns: 1fr; }
  .tag-order-choice { min-height: 72px; }
}

/* The visible dots remain small, but each control is now easy to hit with a
   thumb. The pseudo-element preserves the existing visual rhythm. */
@media (max-width: 760px) {
  .tag-order-product__dots { gap: 0; }
  .tag-order-product__dot,
  .tag-order-product__dot:hover,
  .tag-order-product__dot:focus-visible,
  .tag-order-product__dot.is-active {
    background: transparent;
    height: 44px;
    position: relative;
    transform: none;
    width: 44px;
  }

  .tag-order-product__dot::before {
    background: rgba(0, 0, 0, .28);
    border-radius: 50%;
    content: "";
    height: 9px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    width: 9px;
  }

  .tag-order-product__dot.is-active::before {
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1.15);
  }

  .tag-order-product__dot:focus-visible::before {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .18);
  }

  html[data-theme="dark"] .tag-order-product__dot::before { background: rgba(255,255,255,.38); }
  html[data-theme="dark"] .tag-order-product__dot.is-active::before { background: #fff; }
}
