.mw-3d-shop {
  position: relative;
  height: clamp(520px, calc(100dvh - 9.25rem), 860px);
  min-height: 520px;
  background: radial-gradient(circle at 50% 12%, #203040 0%, #101820 58%, #091018 100%);
  color: #fff;
  overflow: hidden;
  outline: none;
}

.mw-3d-shop:focus-visible,
.mw-3d-shop button:focus-visible,
.mw-3d-shop a:focus-visible,
.mw-3d-shop-modal button:focus-visible,
.mw-3d-shop-modal a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.mw-3d-shop__fallback {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}



.mw-3d-shop__loading {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  background-color: #dfe9e6;
  background-image:
    linear-gradient(180deg, rgba(8, 15, 18, .12), rgba(8, 15, 18, .56)),
    url('../images/mw-3d-shop-intro-aerial.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff3d1;
  opacity: 1;
  transition: opacity .72s ease;
  isolation: isolate;
}

.mw-3d-shop__loading-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(12, 22, 25, .06) 0%, rgba(7, 13, 16, .26) 54%, rgba(5, 10, 13, .6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .28));
  pointer-events: none;
}

.mw-3d-shop__loading-panel {
  display: flex;
  min-width: min(23rem, calc(100vw - 2rem));
  max-width: min(32rem, calc(100vw - 2rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid rgba(238, 177, 79, .5);
  border-radius: 1rem;
  background: rgba(9, 17, 20, .78);
  box-shadow: 0 1.1rem 3.4rem rgba(0, 0, 0, .36);
  text-align: center;
  backdrop-filter: blur(8px);
}

.mw-3d-shop[data-mw3d-loading="1"] .mw-3d-shop__loading,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__loading,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__loading,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__loading {
  display: flex;
}

.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__loading {
  opacity: 0;
  pointer-events: none;
}

.mw-3d-shop[data-mw3d-intro-state="complete"] .mw-3d-shop__loading,
.mw-3d-shop[data-mw3d-error] .mw-3d-shop__loading {
  display: none;
}

.mw-3d-shop__loading-spinner {
  width: 2.2rem;
  height: 2.2rem;
  border: .28rem solid rgba(255, 243, 209, .24);
  border-top-color: rgba(246, 190, 88, .96);
  border-radius: 999px;
  animation: mw3dLoadingSpin .82s linear infinite;
}

.mw-3d-shop__loading-text {
  font-weight: 800;
  letter-spacing: .015em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.mw-3d-shop__enter-button {
  display: inline-flex;
  min-width: 12rem;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 151, 45, .95);
  border-radius: 999px;
  padding: .7rem 1.35rem;
  background: linear-gradient(180deg, #f5a43e, #d97718);
  color: #15100a;
  box-shadow: 0 .65rem 1.8rem rgba(0, 0, 0, .35);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.mw-3d-shop__enter-button[hidden] {
  display: none;
}

.mw-3d-shop__enter-button:hover,
.mw-3d-shop__enter-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 .85rem 2.2rem rgba(0, 0, 0, .42);
}

.mw-3d-shop__enter-button:disabled {
  cursor: wait;
  filter: saturate(.72);
  transform: none;
}

.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__loading-spinner {
  display: none;
}

@keyframes mw3dLoadingSpin {
  to { transform: rotate(360deg); }
}

.mw-3d-shop__standard-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mw-3d-shop__canvas-wrap {
  position: absolute;
  inset: 0;
  min-height: 520px;
  height: 100%;
}

.mw-3d-shop__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  filter: none;
  image-rendering: auto;
}

.mw-3d-shop--ready .mw-3d-shop__fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mw-3d-shop[data-mw3d-error] .mw-3d-shop__fallback {
  position: relative;
  width: auto;
  height: auto;
  padding: 2rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.mw-3d-shop__hud,
.mw-3d-shop__prompt,
.mw-3d-shop__help-toggle,
.mw-3d-shop__standard-exit {
  position: absolute;
  z-index: 3;
}

.mw-3d-shop__hud,
.mw-3d-shop__prompt,
.mw-3d-shop__help {
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.mw-3d-shop__hud {
  left: 1rem;
  top: 1rem;
  max-width: min(32rem, calc(100% - 2rem));
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: rgba(0, 0, 0, .58);
}

.mw-3d-shop__prompt {
  left: 50%;
  bottom: 5rem;
  transform: translateX(-50%);
  padding: .6rem .9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
}

.mw-3d-shop__help-toggle,
.mw-3d-shop__standard-exit,
.mw-3d-shop .button,
.mw-3d-shop-modal button {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .65rem;
  padding: .55rem .85rem;
  background: rgba(255, 255, 255, .92);
  color: #101820;
  text-decoration: none;
}

.mw-3d-shop__help-toggle {
  right: 1rem;
  top: 1rem;
}

.mw-3d-shop__help {
  position: absolute;
  right: 1rem;
  top: 4rem;
  z-index: 4;
  max-width: 20rem;
  padding: 1rem;
  border-radius: .75rem;
  background: rgba(0, 0, 0, .78);
}

.mw-3d-shop__standard-exit {
  right: 1rem;
  bottom: 1rem;
}

.mw-3d-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .72);
}

.mw-3d-shop-modal__dialog {
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 1rem;
  background: #fff;
  color: #111;
  box-shadow: 0 1rem 4rem rgba(0,0,0,.35);
}

.mw-3d-shop-modal__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: .75rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.mw-3d-shop-modal__content {
  padding: 1rem;
}

.mw-3d-shop__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mw-3d-shop[aria-busy="true"] .mw-3d-shop__hud::after {
  content: '…';
}

@media (prefers-reduced-motion: reduce) {
  .mw-3d-shop *,
  .mw-3d-shop-modal * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 720px) {
  .mw-3d-shop {
    min-height: 72vh;
  }
  .mw-3d-shop__hud {
    left: .75rem;
    right: .75rem;
    max-width: none;
  }
  .mw-3d-shop__help-toggle {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    left: auto;
  }
  .mw-3d-shop__standard-exit {
    bottom: 1rem;
  }
}

.mw-3d-shop__actions,
.mw-3d-shop__basket-actions {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  gap: .55rem;
  width: min(28rem, calc(100% - 2rem));
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .9rem;
  background: rgba(0, 0, 0, .74);
  color: #fff;
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .32);
  backdrop-filter: blur(8px);
}

.mw-3d-shop__actions-title,
.mw-3d-shop__basket-actions-title {
  font-size: 1rem;
  line-height: 1.25;
}

.mw-3d-shop__actions-subtitle,
.mw-3d-shop__basket-actions-quantity {
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
}

.mw-3d-shop__actions-row,
.mw-3d-shop__basket-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mw-3d-shop__actions[aria-busy="true"],
.mw-3d-shop__basket-actions[aria-busy="true"] {
  opacity: .72;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mw-3d-shop__actions,
  .mw-3d-shop__basket-actions {
    left: .75rem;
    right: .75rem;
    bottom: 4.25rem;
    width: auto;
  }
}

/* RC15-B: host the canonical native detail component without overriding its tabs. */
.mw-3d-shop-detail-host {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.mw-3d-shop-detail-host .pdg-grid,
.mw-3d-shop-detail-host .premade-grid,
.mw-3d-shop-detail-host .pdg-card,
.mw-3d-shop-detail-host .premade-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mw-3d-shop-detail-card--initializing {
  visibility: hidden !important;
}

.mw-3d-shop-modal--detail-initializing .mw-3d-shop-modal__content {
  min-height: min(70vh, 760px);
}


/* RC17-A: keep standalone Premade details at a useful viewport height. */
.mw-3d-shop-modal--detail .mw-3d-shop-modal__dialog--detail {
  display: flex;
  flex-direction: column;
}

.mw-3d-shop-modal--premade-detail {
  --mw3d-premade-panel-min-h: clamp(380px, 52dvh, 640px);
  --mw3d-premade-card-min-h: clamp(530px, 70dvh, 790px);
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-modal__dialog--premade-detail {
  width: min(1180px, calc(100vw - 2rem));
  height: min(860px, calc(100vh - 2rem));
  height: min(860px, calc(100dvh - 2rem));
  min-height: min(620px, calc(100vh - 2rem));
  min-height: min(620px, calc(100dvh - 2rem));
  overflow: hidden;
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-modal__bar {
  flex: 0 0 auto;
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-modal__content--premade-detail {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-host--premade,
.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-host--premade > .premade-grid {
  min-height: 100%;
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-card--premade.mw-expanded,
.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-card--premade.is-expanded {
  min-height: var(--mw3d-premade-card-min-h);
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-card--premade .mw-tabs {
  min-height: calc(var(--mw3d-premade-panel-min-h) + 3.5rem);
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-card--premade .mw-tabs__panels {
  min-height: var(--mw3d-premade-panel-min-h);
}

.mw-3d-shop-modal--premade-detail .mw-3d-shop-detail-card--premade .mw-tabs__panel:not([hidden]) {
  min-height: 100%;
}

@media (max-width: 900px), (max-height: 680px) {
  .mw-3d-shop-modal--premade-detail {
    --mw3d-premade-panel-min-h: clamp(280px, 44dvh, 520px);
    --mw3d-premade-card-min-h: clamp(400px, 68dvh, 640px);
  }

  .mw-3d-shop-modal--premade-detail .mw-3d-shop-modal__dialog--premade-detail {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    min-height: 0;
  }

  .mw-3d-shop-modal--premade-detail .mw-3d-shop-modal__content--premade-detail {
    padding: .75rem;
  }
}

/* RC12: keep the canonical PDP overlay visible while hiding only its small page trigger. */
.mw-3d-shop-native-draft-runtime {
  display: contents;
}

/* The sticky draft bar is not part of the 3D shop presentation. */
.mw-3d-shop-native-draft-runtime #pdp-draft-block {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/*
 * PdpDraftSummaryBlock places both the compact trigger and the full-screen
 * #pdp-draft-summary overlay inside this wrapper. The wrapper must therefore
 * never be clipped or constrained to 1px; doing so makes the native overlay
 * open invisibly while its body scroll lock remains active.
 */
.mw-3d-shop-native-draft-runtime .pdp-draft-summary-trigger-wrapper {
  display: contents !important;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

/* Hide only the compact page trigger; the machine opens it programmatically. */
.mw-3d-shop-native-draft-runtime .pdp-draft-summary-trigger {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.mw-3d-shop-native-draft-runtime #pdp-draft-summary {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  z-index: 2147482100 !important;
}

/* RC14-D: dedicated centered frontmost inspection layer. */
.mw-3d-shop__inspection {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  outline: none;
}

.mw-3d-shop__inspection-heading,
.mw-3d-shop__inspection-actions {
  cursor: default;
  touch-action: manipulation;
  justify-self: center;
  max-width: min(42rem, calc(100% - 2rem));
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: .9rem;
  background: rgba(5, 12, 18, .84);
  color: #fff;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
}

.mw-3d-shop__inspection-heading {
  display: grid;
  gap: .3rem;
  min-width: min(28rem, calc(100% - 2rem));
  padding: .7rem 1rem;
  text-align: center;
}

.mw-3d-shop__inspection-title {
  font-size: 1.08rem;
  line-height: 1.3;
}

.mw-3d-shop__inspection-subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
}

.mw-3d-shop__inspection-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  padding: .8rem;
}

.mw-3d-shop__inspection button {
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: .65rem;
  padding: .6rem .9rem;
  background: rgba(255, 255, 255, .94);
  color: #101820;
  font: inherit;
  touch-action: manipulation;
  cursor: pointer;
}


.mw-3d-shop--inspection-dragging .mw-3d-shop__inspection {
  cursor: grabbing;
}

.mw-3d-shop__inspection-action--positive {
  border-color: rgba(130, 255, 174, .85) !important;
  background: rgba(21, 133, 73, .96) !important;
  color: #fff !important;
  box-shadow: 0 0 0 .18rem rgba(91, 232, 142, .18);
}

.mw-3d-shop__inspection-action--negative {
  border-color: rgba(255, 151, 151, .9) !important;
  background: rgba(178, 38, 49, .96) !important;
  color: #fff !important;
  box-shadow: 0 0 0 .18rem rgba(255, 99, 112, .18);
}

.mw-3d-shop__inspection-action--disabled,
.mw-3d-shop__inspection button:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.mw-3d-shop__inspection-audio[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(23, 91, 132, .96);
  color: #fff;
  box-shadow: 0 0 0 .18rem rgba(119, 201, 255, .22);
}

.mw-3d-shop__inspection[aria-busy="true"] {
  cursor: progress;
}

.mw-3d-shop__inspection[aria-busy="true"] button {
  opacity: .68;
  cursor: progress;
}

.mw-3d-shop--inspecting .mw-3d-shop__help-toggle,
.mw-3d-shop--inspecting .mw-3d-shop__standard-exit,
.mw-3d-shop--inspecting .mw-3d-shop__prompt,
.mw-3d-shop--inspecting .mw-3d-shop__basket-actions {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mw-3d-shop__inspection {
    padding: .75rem;
  }

  .mw-3d-shop__inspection-heading {
    min-width: 0;
    width: calc(100% - 1rem);
  }

  .mw-3d-shop__inspection-actions {
    width: calc(100% - 1rem);
  }
}

/* RC14-G eye-level cursor-position look. */
.mw-3d-shop[data-mw3d-camera-mode="eyeLevel"]:not(.mw-3d-shop--inspecting) .mw-3d-shop__canvas-wrap canvas {
  cursor: crosshair;
}


/* RC15-G: alternative desktop and mobile movement controls. */
.mw-3d-shop__controls {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: grid;
  gap: .65rem;
  align-items: end;
  justify-items: center;
  user-select: none;
  touch-action: none;
}

.mw-3d-shop__controls[hidden] { display: none !important; }

.mw-3d-shop__dpad {
  display: grid;
  grid-template-columns: repeat(3, 3rem);
  grid-template-rows: repeat(2, 3rem);
  gap: .3rem;
  grid-template-areas: ". forward ." "left backward right";
}

.mw-3d-shop__dpad-button,
.mw-3d-shop__control-button {
  min-width: 3rem;
  min-height: 3rem;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: .75rem;
  background: rgba(5,12,18,.94);
  color: #fff;
  font: 700 1rem/1 system-ui, sans-serif;
  box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  touch-action: none;
}

.mw-3d-shop__dpad-button--forward { grid-area: forward; }
.mw-3d-shop__dpad-button--left { grid-area: left; }
.mw-3d-shop__dpad-button--backward { grid-area: backward; }
.mw-3d-shop__dpad-button--right { grid-area: right; }
.mw-3d-shop__dpad-button.is-active,
.mw-3d-shop__control-button.is-active,
.mw-3d-shop__control-button--crouch[aria-pressed="true"] {
  background: rgba(23,91,132,.96);
  box-shadow: 0 0 0 .18rem rgba(119,201,255,.25);
}

.mw-3d-shop__control-utilities {
  display: flex;
  gap: .4rem;
}

.mw-3d-shop__control-button--crouch { min-width: 4.25rem; }

.mw-3d-shop__joystick {
  position: relative;
  width: 8.25rem;
  height: 8.25rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(5,12,18,.58);
  box-shadow: inset 0 0 0 .85rem rgba(255,255,255,.05), 0 .5rem 1.5rem rgba(0,0,0,.28);
  touch-action: none;
}

.mw-3d-shop__joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.2rem;
  height: 3.2rem;
  margin: -1.6rem;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 .3rem 1rem rgba(0,0,0,.35);
  pointer-events: none;
  will-change: transform;
}

.mw-3d-shop__actions,
.mw-3d-shop__basket-actions {
  bottom: 11.5rem;
}

@media (max-width: 820px), (pointer: coarse) {
  .mw-3d-shop__controls { left: .75rem; bottom: .75rem; }
  .mw-3d-shop__actions,
  .mw-3d-shop__basket-actions { bottom: 14rem; }
}

/* RC17-C: personalized basket detail and held cash-register inspection. */
.mw-3d-shop-modal--personalized-basket-detail .mw-3d-shop-modal__dialog--personalized-basket-detail {
  width: min(1080px, calc(100vw - 2rem));
  max-height: min(860px, calc(100dvh - 2rem));
  overflow: hidden;
}

.mw-3d-shop-modal--personalized-basket-detail .mw-3d-shop-modal__content--personalized-basket-detail {
  overflow: auto;
  padding: 1rem;
}

.mw-3d-shop-basket-detail {
  display: grid;
  gap: 1.25rem;
  color: inherit;
}

.mw-3d-shop-basket-detail__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

.mw-3d-shop-basket-detail__header h3,
.mw-3d-shop-basket-detail__section h4 {
  margin: 0;
}

.mw-3d-shop-basket-detail__production {
  border-radius: 999px;
  padding: .35rem .7rem;
  background: rgba(91, 137, 172, .18);
  font-weight: 700;
}

.mw-3d-shop-basket-detail__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mw-3d-shop-basket-detail__gallery figure {
  display: grid;
  place-items: center;
  min-height: 16rem;
  margin: 0;
  border: 1px solid rgba(127, 127, 127, .24);
  border-radius: .85rem;
  background: rgba(127, 127, 127, .08);
  overflow: hidden;
}

.mw-3d-shop-basket-detail__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 28rem;
  object-fit: contain;
}

.mw-3d-shop-basket-detail__prices {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: .45rem 1rem;
  margin: 0;
  padding: 1rem;
  border-radius: .85rem;
  background: rgba(127, 127, 127, .1);
}

.mw-3d-shop-basket-detail__prices dt {
  font-weight: 700;
}

.mw-3d-shop-basket-detail__prices dd {
  margin: 0;
}

.mw-3d-shop-basket-detail__section {
  display: grid;
  gap: .7rem;
}

.mw-3d-shop-basket-detail__section p {
  margin: 0;
  white-space: pre-wrap;
}

.mw-3d-shop-basket-detail__components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-3d-shop-basket-detail__components li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  min-height: 4.5rem;
  padding: .55rem;
  border: 1px solid rgba(127, 127, 127, .2);
  border-radius: .75rem;
}

.mw-3d-shop-basket-detail__components img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .5rem;
  object-fit: contain;
  background: rgba(127, 127, 127, .08);
}

.mw-3d-shop__inspection [data-mw3d-inspection-action="basket-remove"] {
  border-color: rgba(191, 54, 54, .5);
  background: rgba(255, 235, 235, .96);
  color: #721c24;
}

@media (max-width: 720px) {
  .mw-3d-shop-modal--personalized-basket-detail .mw-3d-shop-modal__dialog--personalized-basket-detail {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .mw-3d-shop-basket-detail__gallery {
    grid-template-columns: 1fr;
  }

  .mw-3d-shop-basket-detail__gallery figure {
    min-height: 12rem;
  }

  .mw-3d-shop-basket-detail__prices {
    grid-template-columns: 1fr;
  }
}

/* RC18: canonical next-required guidance to the real personalization installation. */
.mw-3d-shop__draft-guidance {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 4;
  width: min(34rem, calc(100% - 20rem));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.mw-3d-shop__draft-guidance[hidden] {
  display: none !important;
}

.mw-3d-shop__draft-guidance button {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  padding: .7rem 1.1rem;
  background: rgba(13, 29, 38, .9);
  color: #fff;
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .34);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.mw-3d-shop__draft-guidance.is-guiding button,
.mw-3d-shop__draft-guidance button[aria-busy="true"] {
  cursor: progress;
  opacity: .86;
}

.mw-3d-shop--inspecting .mw-3d-shop__draft-guidance {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 900px) {
  .mw-3d-shop__draft-guidance {
    right: .75rem;
    bottom: 10.25rem;
    left: .75rem;
    width: auto;
    transform: none;
  }
}

.mw-3d-shop__inspection [data-mw3d-inspection-action="next-required"] {
  border-color: rgba(71, 121, 164, .5);
  background: rgba(232, 244, 255, .96);
  color: #173f63;
}

/* RC25: registry-driven avatar preference in the upper-right interface. */
.mw-3d-shop__avatar-preference {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: grid;
  gap: .3rem;
  min-width: 10.5rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .75rem;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.mw-3d-shop__avatar-preference[hidden] {
  display: none;
}

.mw-3d-shop__avatar-preference label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.mw-3d-shop__avatar-preference select {
  width: 100%;
  min-height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .5rem;
  padding: .3rem .5rem;
  background: rgba(255, 255, 255, .96);
  color: #101820;
}

.mw-3d-shop__help-toggle {
  top: 5.25rem;
}

.mw-3d-shop__help {
  top: 8.25rem;
}

@media (max-width: 720px) {
  .mw-3d-shop__avatar-preference {
    top: .75rem;
    right: .75rem;
    min-width: 9.5rem;
  }

  .mw-3d-shop__help-toggle {
    top: 5rem;
    right: .75rem;
  }

  .mw-3d-shop__help {
    top: 8rem;
    right: .75rem;
  }
}

/* RC29: Existing Discount Calendar inside the controlled 3D overlay. */
.mw-3d-shop-modal--discount .mw-3d-shop-modal__dialog--discount {
  width: min(1180px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  max-width: none;
}

.mw-3d-shop-modal--discount .mw-3d-shop-modal__content--discount {
  overflow: auto;
  padding: 14px;
  background: #f4f1e8;
}

.mw-3d-shop-modal--discount .dc-block {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .mw-3d-shop-modal--discount .mw-3d-shop-modal__dialog--discount {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .mw-3d-shop-modal--discount .mw-3d-shop-modal__content--discount {
    padding: 6px;
  }
}

/* RC31: controlled Corporate / B2B office popup. */
.mw-3d-shop-modal--business .mw-3d-shop-modal__dialog--business {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
}

.mw-3d-shop-modal--business .mw-3d-shop-modal__content--business {
  overflow: auto;
  padding: clamp(18px, 3vw, 36px);
  background: #f6f3eb;
  color: #18242b;
}

.mw-3d-shop-business-popup > h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.mw-3d-shop-business-popup__intro {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.mw-3d-shop-business-popup__body {
  line-height: 1.65;
}

.mw-3d-shop-business-popup__body img {
  max-width: 100%;
  height: auto;
}

.mw-3d-shop-business-popup__body a {
  color: #884018;
  font-weight: 700;
}

/* RC32: unrestricted close-camera look and mobile dual-zone controls. */
.mw-3d-shop:not(.mw-3d-shop--inspecting) .mw-3d-shop__canvas-wrap canvas {
  cursor: grab;
}

.mw-3d-shop__control-button--jump {
  min-width: 3.4rem;
  font-size: 1.2rem;
}

.mw-3d-shop__look-hint {
  display: none;
  position: absolute;
  right: 1rem;
  bottom: 4.7rem;
  z-index: 4;
  width: min(42vw, 14rem);
  height: min(31vw, 10rem);
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 1.2rem;
  place-items: center;
  padding: .75rem;
  background: radial-gradient(circle, rgba(255,255,255,.07), rgba(5,12,18,.08) 64%, transparent 72%);
  color: rgba(255,255,255,.62);
  font: 700 .78rem/1.2 system-ui, sans-serif;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  pointer-events: none;
  user-select: none;
}

.mw-3d-shop__look-hint[hidden] {
  display: none !important;
}

@media (max-width: 820px), (pointer: coarse) {
  .mw-3d-shop__look-hint {
    display: grid;
  }

  .mw-3d-shop__control-utilities {
    max-width: calc(100vw - 1.5rem);
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* RC52: styled in-scene interface chrome and reduced visual obstruction. */
.mw-3d-shop {
  --mw3d-ui-ink: #1b1712;
  --mw3d-ui-panel: rgba(30, 24, 18, .78);
  --mw3d-ui-panel-strong: rgba(20, 17, 14, .86);
  --mw3d-ui-paper: #f4e7ca;
  --mw3d-ui-gold: #d2a657;
  --mw3d-ui-copper: #a86332;
  --mw3d-ui-blue: #274d58;
  --mw3d-ui-shadow: rgba(0, 0, 0, .32);
}

.mw-3d-shop__hud,
.mw-3d-shop__prompt,
.mw-3d-shop__help,
.mw-3d-shop__actions,
.mw-3d-shop__basket-actions,
.mw-3d-shop__avatar-preference,
.mw-3d-shop__inspection-heading,
.mw-3d-shop__inspection-actions,
.mw-3d-shop-modal__dialog {
  border-color: rgba(210, 166, 87, .46);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.035)),
    var(--mw3d-ui-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 192, .08),
    0 .65rem 1.85rem var(--mw3d-ui-shadow);
}

.mw-3d-shop__hud {
  top: .75rem;
  left: .75rem;
  max-width: min(25rem, calc(100% - 1.5rem));
  padding: .55rem .8rem;
  border-radius: .7rem;
  font: 700 .9rem/1.25 Georgia, 'Times New Roman', serif;
  color: var(--mw3d-ui-paper);
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.mw-3d-shop__prompt,
.mw-3d-shop__draft-guidance button {
  border-color: rgba(210, 166, 87, .52);
  background:
    linear-gradient(90deg, rgba(168,99,50,.28), rgba(39,77,88,.2)),
    rgba(22, 22, 18, .86);
  color: var(--mw3d-ui-paper);
  font: 700 .88rem/1.25 system-ui, sans-serif;
  letter-spacing: .01em;
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 199, .08),
    0 .55rem 1.6rem rgba(0,0,0,.3);
}

.mw-3d-shop__prompt {
  bottom: 4.55rem;
  padding: .48rem .78rem;
}

.mw-3d-shop__standard-exit,
.mw-3d-shop__help-toggle,
.mw-3d-shop .button,
.mw-3d-shop-modal button,
.mw-3d-shop__inspection button {
  border-color: rgba(83, 60, 34, .5);
  background:
    linear-gradient(180deg, #fff1c9 0%, #d9b878 100%);
  color: var(--mw3d-ui-ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 .35rem .9rem rgba(0,0,0,.24);
  font-weight: 700;
}

.mw-3d-shop__standard-exit:hover,
.mw-3d-shop__help-toggle:hover,
.mw-3d-shop .button:hover,
.mw-3d-shop-modal button:hover,
.mw-3d-shop__inspection button:hover {
  filter: brightness(1.04);
}

.mw-3d-shop__standard-exit {
  right: .8rem;
  bottom: .8rem;
  padding: .5rem .8rem;
  border-radius: .7rem;
}

.mw-3d-shop__avatar-preference {
  top: .75rem;
  right: .75rem;
  min-width: 9.7rem;
  padding: .48rem .58rem;
  border-radius: .72rem;
  color: var(--mw3d-ui-paper);
}

.mw-3d-shop__avatar-preference label {
  color: #f1dca7;
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.mw-3d-shop__avatar-preference select {
  min-height: 2rem;
  border-color: rgba(210,166,87,.5);
  background: #f7edcf;
  color: #201915;
  font-weight: 650;
}

.mw-3d-shop__help-toggle {
  top: 4.75rem;
  right: .75rem;
  padding: .45rem .72rem;
}

.mw-3d-shop__help {
  top: 7.55rem;
  right: .75rem;
  max-width: min(19rem, calc(100% - 1.5rem));
  color: var(--mw3d-ui-paper);
}

.mw-3d-shop__controls {
  left: .72rem;
  bottom: .72rem;
  gap: .48rem;
  opacity: .88;
}

.mw-3d-shop__controls:hover,
.mw-3d-shop__controls:focus-within {
  opacity: 1;
}

.mw-3d-shop__dpad {
  grid-template-columns: repeat(3, 2.62rem);
  grid-template-rows: repeat(2, 2.62rem);
  gap: .24rem;
}

.mw-3d-shop__dpad-button,
.mw-3d-shop__control-button {
  min-width: 2.62rem;
  min-height: 2.62rem;
  border-color: rgba(210,166,87,.45);
  border-radius: .62rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.05)),
    rgba(18, 18, 15, .72);
  color: #f8e7be;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 192, .05),
    0 .35rem .95rem rgba(0,0,0,.24);
  font-size: .95rem;
}

.mw-3d-shop__dpad-button.is-active,
.mw-3d-shop__control-button.is-active,
.mw-3d-shop__control-button--crouch[aria-pressed="true"] {
  background:
    linear-gradient(180deg, rgba(255,236,184,.18), rgba(168,99,50,.22)),
    rgba(39,77,88,.88);
  border-color: rgba(241,207,122,.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 204, .12),
    0 0 0 .14rem rgba(210, 166, 87, .18),
    0 .35rem 1rem rgba(0,0,0,.26);
}

.mw-3d-shop__control-button--crouch {
  min-width: 3.75rem;
  font-size: .86rem;
}

.mw-3d-shop__control-button--jump {
  min-width: 3rem;
  font-size: 1.05rem;
}

.mw-3d-shop__joystick {
  width: 7.45rem;
  height: 7.45rem;
  border-color: rgba(210,166,87,.42);
  background:
    radial-gradient(circle at 50% 50%, rgba(244,231,202,.08), rgba(16,18,16,.54) 65%, rgba(16,18,16,.26));
  box-shadow:
    inset 0 0 0 .65rem rgba(210,166,87,.055),
    0 .45rem 1.35rem rgba(0,0,0,.27);
}

.mw-3d-shop__joystick-knob {
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem;
  background: linear-gradient(180deg, #fff2c9, #d2a657);
}

.mw-3d-shop__actions,
.mw-3d-shop__basket-actions {
  bottom: 10.35rem;
  width: min(25rem, calc(100% - 1.5rem));
}

.mw-3d-shop__draft-guidance {
  bottom: .8rem;
  width: min(31rem, calc(100% - 18rem));
}

.mw-3d-shop-modal__dialog {
  border-radius: 1.1rem;
  background: #f7f1e3;
  color: #171411;
}

.mw-3d-shop-modal__bar {
  background: linear-gradient(180deg, #fff6df, #e5d2a4);
  border-bottom-color: rgba(83,60,34,.18);
}

@media (max-width: 820px), (pointer: coarse) {
  .mw-3d-shop__controls {
    left: .58rem;
    bottom: .58rem;
  }

  .mw-3d-shop__actions,
  .mw-3d-shop__basket-actions {
    bottom: 12.85rem;
  }

  .mw-3d-shop__draft-guidance {
    right: .65rem;
    bottom: 9.65rem;
    left: .65rem;
    width: auto;
  }
}

@media (max-width: 720px) {
  .mw-3d-shop__hud {
    left: .6rem;
    right: .6rem;
    max-width: none;
  }

  .mw-3d-shop__avatar-preference {
    top: .6rem;
    right: .6rem;
    min-width: 9rem;
  }

  .mw-3d-shop__help-toggle {
    top: 4.55rem;
    right: .6rem;
  }

  .mw-3d-shop__help {
    top: 7.25rem;
    right: .6rem;
  }
}


/* RC53: further reduce control obstruction after live eye-level review. */
.mw-3d-shop__controls {
  opacity: .42;
}

.mw-3d-shop__controls:hover,
.mw-3d-shop__controls:focus-within,
.mw-3d-shop__controls:active {
  opacity: .96;
}

.mw-3d-shop__dpad {
  grid-template-columns: repeat(3, 2.42rem);
  grid-template-rows: repeat(2, 2.42rem);
  gap: .2rem;
}

.mw-3d-shop__dpad-button,
.mw-3d-shop__control-button {
  min-width: 2.42rem;
  min-height: 2.42rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.045)),
    rgba(18, 18, 15, .52);
}

.mw-3d-shop__control-button--crouch {
  min-width: 3.35rem;
}

.mw-3d-shop__control-button--jump {
  min-width: 2.72rem;
}

/* RC54: clean-style reset pass — keep controls visually secondary to the scene. */
.mw-3d-shop__controls { opacity: .42; filter: saturate(.82); }
.mw-3d-shop__controls:hover, .mw-3d-shop__controls:focus-within { opacity: .86; }
.mw-3d-shop__hud, .mw-3d-shop__interaction-prompt, .mw-3d-shop__avatar-panel { backdrop-filter: blur(4px); }

/* RC54: further reduce control obstruction after live screenshot review. */


/* RC56: clean composition pass — keep controls present but out of the main product/NPC composition while idle. */
.mw-3d-shop__controls {
  opacity: .18;
  transform: scale(.82);
  transform-origin: left bottom;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}
.mw-3d-shop__controls:hover,
.mw-3d-shop__controls:focus-within,
.mw-3d-shop__controls:active {
  opacity: .82;
  transform: scale(.9);
  filter: saturate(.9);
}
.mw-3d-shop__dpad-button,
.mw-3d-shop__control-button {
  min-width: 1.98rem;
  min-height: 1.98rem;
  font-size: .82rem;
}
.mw-3d-shop__dpad {
  grid-template-columns: repeat(3, 1.98rem);
  grid-template-rows: repeat(2, 1.98rem);
  gap: .12rem;
}


/* RC58: shelf spacing and NPC forward-facing correction pass — make controls and fixed UI recede further during visual evaluation. */
.mw-3d-shop__controls {
  opacity: .09;
  transform: scale(.76);
}
.mw-3d-shop__controls:hover,
.mw-3d-shop__controls:focus-within,
.mw-3d-shop__controls:active {
  opacity: .72;
  transform: scale(.86);
}
.mw-3d-shop__hud,
.mw-3d-shop__prompt,
.mw-3d-shop__avatar-preference,
.mw-3d-shop__standard-exit {
  box-shadow: 0 .35rem 1rem rgba(34, 40, 37, .18);
}

/* RC89: keep the 3D shop controls above the canvas and theme footer area. */
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls {
  z-index: 40;
  pointer-events: auto;
}
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__dpad-button,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__control-button {
  opacity: 1;
}


/* RC90: restore visible desktop/mobile controls and keep movement controls from changing camera view. */
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls {
  z-index: 80;
  left: .85rem;
  bottom: .85rem;
  opacity: .92;
  filter: none;
  transform: scale(.94);
  transform-origin: left bottom;
  pointer-events: auto;
}
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls:hover,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls:focus-within,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls:active {
  opacity: 1;
  transform: scale(1);
}
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__dpad-button,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__control-button {
  min-width: 2.55rem;
  min-height: 2.55rem;
  opacity: 1;
  background: linear-gradient(180deg, rgba(255,244,208,.18), rgba(91,61,29,.18)), rgba(31,28,22,.88);
  border-color: rgba(231,190,105,.72);
  color: #fff1c9;
}
.mw-3d-shop[data-mw3d-controls-no-camera-buttons="rc91"] .mw-3d-shop__control-utilities {
  justify-content: center;
}
@media (max-width: 820px), (pointer: coarse) {
  .mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls {
    left: .62rem;
    bottom: .62rem;
    opacity: .94;
    transform: scale(.95);
  }
}


/* RC91: keep bottom-left movement controls visible and isolated from camera gestures on desktop and mobile. */
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  z-index: 120 !important;
  pointer-events: auto !important;
}
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__dpad,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__control-utilities,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__joystick {
  pointer-events: auto !important;
  touch-action: none !important;
}
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__dpad-button,
.mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__control-button {
  min-width: 2.75rem !important;
  min-height: 2.75rem !important;
}
.mw-3d-shop[data-mw3d-controls-pointer-isolated="rc91"] .mw-3d-shop__controls {
  overscroll-behavior: contain;
}


/* RC151: register confirmation and stable coarse-pointer controls. */
.mw-3d-shop-modal--confirmation .mw-3d-shop-modal__dialog--confirmation {
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
}

.mw-3d-shop-modal--confirmation .mw-3d-shop-modal__content--confirmation {
  padding: 1.25rem;
}

.mw-3d-shop-confirmation {
  display: grid;
  gap: 1.25rem;
}

.mw-3d-shop-confirmation__message {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}

.mw-3d-shop-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.mw-3d-shop-confirmation__actions button {
  min-width: 7rem;
}

.mw-3d-shop-confirmation__confirm {
  background: #235f50 !important;
  color: #fff !important;
}

.mw-3d-shop-confirmation__cancel {
  background: #4c555b !important;
  color: #fff !important;
}

.mw-3d-shop__controls,
.mw-3d-shop__joystick,
.mw-3d-shop__dpad-button,
.mw-3d-shop__control-button {
  overscroll-behavior: contain;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}


/* RC152: larger coarse-pointer joystick without changing desktop keyboard controls. */
@media (max-width: 820px), (pointer: coarse) {
  .mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__joystick {
    width: 9.4rem;
    height: 9.4rem;
    box-shadow:
      inset 0 0 0 .78rem rgba(210,166,87,.065),
      0 .5rem 1.5rem rgba(0,0,0,.3);
  }

  .mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__joystick-knob {
    width: 3.55rem;
    height: 3.55rem;
    margin: -1.775rem;
  }

  .mw-3d-shop[data-mw3d-controls-fixed="1"] .mw-3d-shop__controls {
    left: .72rem;
    bottom: .72rem;
  }
}

/* RC158: remote portal-image capture mode (`?mw3dPortalCapture=1`).
 * This additive layer intentionally follows all RC151-RC157 rules above. */
.mw-3d-shop--portal-capture {
  height: max(720px, calc(100dvh - 1rem));
  min-height: 640px;
  max-height: none;
  background: #e4efeb;
}

.mw-3d-shop--portal-capture .mw-3d-shop__canvas-wrap canvas {
  cursor: default;
  pointer-events: none;
}

.mw-3d-shop--portal-capture .mw-3d-shop__hud,
.mw-3d-shop--portal-capture .mw-3d-shop__prompt,
.mw-3d-shop--portal-capture .mw-3d-shop__controls,
.mw-3d-shop--portal-capture .mw-3d-shop__draft-guidance,
.mw-3d-shop--portal-capture .mw-3d-shop__avatar-preference,
.mw-3d-shop--portal-capture .mw-3d-shop__help-toggle,
.mw-3d-shop--portal-capture .mw-3d-shop__help,
.mw-3d-shop--portal-capture .mw-3d-shop__standard-exit,
.mw-3d-shop--portal-capture .mw-3d-shop__actions,
.mw-3d-shop--portal-capture .mw-3d-shop__basket-actions,
.mw-3d-shop--portal-capture .mw-3d-shop__inspection,
.mw-3d-shop--portal-capture .mw-3d-shop__look-hint,
.mw-3d-shop--portal-capture .mw-3d-shop-rc118-perf-hud {
  display: none !important;
}

.mw-3d-shop__portal-capture-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 131;
  width: min(76vmin, 76%);
  aspect-ratio: 1;
  border: 2px dashed rgba(232, 124, 35, .94);
  border-radius: 50%;
  box-shadow:
    0 0 0 9999px rgba(9, 16, 24, .16),
    0 0 0 1px rgba(255, 255, 255, .52) inset,
    0 0 2.5rem rgba(232, 124, 35, .22);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.mw-3d-shop__portal-capture-guide::before,
.mw-3d-shop__portal-capture-guide::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, .7);
  transform: translate(-50%, -50%);
}

.mw-3d-shop__portal-capture-guide::before {
  width: 2.2rem;
  height: 1px;
}

.mw-3d-shop__portal-capture-guide::after {
  width: 1px;
  height: 2.2rem;
}

.mw-3d-shop__portal-capture-guide[hidden] {
  display: none;
}

.mw-3d-shop__portal-capture-toolbar {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  max-width: calc(100% - 2rem);
  padding: .72rem .85rem;
  border: 1px solid rgba(232, 124, 35, .72);
  border-radius: .85rem;
  background: rgba(17, 24, 30, .92);
  color: #fff7e3;
  box-shadow: 0 .9rem 2.8rem rgba(0, 0, 0, .34);
  font: 600 .84rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.mw-3d-shop__portal-capture-title {
  white-space: nowrap;
  color: #f3c56e;
}

.mw-3d-shop__portal-capture-label {
  display: flex;
  align-items: center;
  gap: .42rem;
  white-space: nowrap;
}

.mw-3d-shop__portal-capture-toolbar select,
.mw-3d-shop__portal-capture-toolbar button {
  min-height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: .55rem;
  padding: .42rem .7rem;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
}

.mw-3d-shop__portal-capture-toolbar select {
  color-scheme: dark;
}

.mw-3d-shop__portal-capture-toolbar button {
  cursor: pointer;
}

.mw-3d-shop__portal-capture-toolbar button:hover,
.mw-3d-shop__portal-capture-toolbar button:focus-visible {
  border-color: rgba(243, 197, 110, .94);
  background: rgba(232, 124, 35, .24);
}

.mw-3d-shop__portal-capture-toolbar button:disabled {
  cursor: wait;
  opacity: .55;
}

.mw-3d-shop__portal-capture-download {
  border-color: rgba(232, 124, 35, .92) !important;
  background: rgba(232, 124, 35, .88) !important;
  color: #111820 !important;
  font-weight: 800 !important;
}

.mw-3d-shop__portal-capture-status {
  max-width: 22rem;
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
}

@media (max-width: 820px) {
  .mw-3d-shop--portal-capture {
    height: max(680px, calc(100dvh - .5rem));
    min-height: 680px;
  }

  .mw-3d-shop__portal-capture-toolbar {
    right: .65rem;
    bottom: .65rem;
    left: .65rem;
    flex-wrap: wrap;
    max-width: none;
    transform: none;
  }

  .mw-3d-shop__portal-capture-title,
  .mw-3d-shop__portal-capture-status {
    width: 100%;
    text-align: center;
  }
}

/* RC159: gated aerial loading screen and locked cinematic shop entry. */
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__hud,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__prompt,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__controls,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__draft-guidance,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__avatar-preference,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__help-toggle,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__help,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__standard-exit,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__actions,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__basket-actions,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__inspection,
.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__look-hint,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__hud,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__prompt,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__controls,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__draft-guidance,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__avatar-preference,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__help-toggle,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__help,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__standard-exit,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__actions,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__basket-actions,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__inspection,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__look-hint,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__hud,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__prompt,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__controls,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__draft-guidance,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__avatar-preference,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__help-toggle,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__help,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__standard-exit,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__actions,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__basket-actions,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__inspection,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__look-hint {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mw-3d-shop[data-mw3d-intro-state="loading"] .mw-3d-shop__canvas-wrap canvas,
.mw-3d-shop[data-mw3d-intro-state="ready"] .mw-3d-shop__canvas-wrap canvas,
.mw-3d-shop[data-mw3d-intro-state="running"] .mw-3d-shop__canvas-wrap canvas {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 720px) {
  .mw-3d-shop__loading {
    background-position: 54% center;
  }

  .mw-3d-shop__loading-panel {
    min-width: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    padding: 1rem 1.1rem;
  }
}
