/* Mobile-web-only product controls, keyed by the explicit mobile-web runtime class. */
@media (max-width: 1023px) {
html.is-mobile-web {
  --addon-control-size: 44px;
  --addon-control-line: 1.75px;
}

html.is-mobile-web .addon-card strong,
html.is-mobile-web .addon-card small,
html.is-mobile-web .addon-group-card strong,
html.is-mobile-web .addon-stepper span {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-variation-settings: normal;
}

/* Mobile Product is one ordinary vertical page. Product information no longer
   depends on a hidden swipe state, and vertical pans begun on the photo keep
   scrolling the document. A downward pull at the top also opens full-screen media. */
html.is-mobile-web .product-view.is-mobile-flow:not(.is-viewer) .product-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile-web .product-view.is-mobile-flow:not(.is-viewer) .product-gallery {
  height: clamp(300px, 46dvh, 420px);
  min-height: 300px;
  touch-action: pan-y;
}

html.is-mobile-web .product-view.is-mobile-flow:not(.is-viewer) .product-summary {
  padding: 20px 24px 18px;
}

html.is-mobile-web .product-view.is-mobile-flow:not(.is-viewer) .product-details {
  padding-bottom: 0;
}

html.is-mobile-web .product-view.is-mobile-flow:not(.is-viewer) .product-detail-section:last-of-type {
  padding-bottom: 0;
}

html.is-mobile-web .product-view.is-mobile-flow .product-about-toggle,
html.is-mobile-web .product-view.is-mobile-flow .product-back-to-media {
  display: none !important;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-plus,
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-stepper button {
  width: var(--addon-control-size);
  height: var(--addon-control-size);
  min-width: var(--addon-control-size);
  border: 0;
  border-radius: 50%;
  color: currentColor;
  background: rgba(34, 30, 24, .2);
}

html.is-mobile-web .addon-card.is-selected .addon-stepper button {
  background: rgba(255, 255, 255, .76);
}

html.is-mobile-web .addon-plus::before,
html.is-mobile-web .addon-plus::after,
html.is-mobile-web .addon-stepper button::before,
html.is-mobile-web .addon-stepper button::after {
  width: 16px;
  height: var(--addon-control-line);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-stepper {
  width: auto;
  height: var(--addon-control-size);
  grid-template-columns: var(--addon-control-size) 28px var(--addon-control-size);
  gap: 3px;
}

html.is-mobile-web .addon-stepper span {
  font-size: 14px;
  font-weight: 450;
  line-height: 1;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-card {
  grid-template-rows: 58px minmax(24px, 1fr) var(--addon-control-size);
  gap: 4px;
  padding: 11px 12px;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-card > img {
  width: 58px;
  height: 58px;
}

/* V263: a fixed category slot keeps its lower edge and label baseline stable.
   The material grows upward independently, so the enlarged art stays visible. */
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .customizer-dock,
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .customizer-dock.has-options {
  bottom: calc(100px + env(safe-area-inset-bottom));
  grid-template-rows: minmax(0, 1fr) 148px;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-rail {
  min-height: 148px;
  padding-top: 4px;
  padding-bottom: 0;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact,
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact.is-active {
  isolation: isolate;
  flex-basis: 128px;
  width: 128px;
  height: 144px;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color .18s ease, transform .2s cubic-bezier(.2,.85,.2,1);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px 0 0;
  border-radius: var(--radius-card);
  corner-shape: squircle;
  background: rgba(61,51,37,.58);
  box-shadow: 0 7px 20px rgba(0,0,0,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: scaleY(.86) translateZ(0);
  transform-origin: center bottom;
  transition: transform .24s cubic-bezier(.2,.85,.2,1), background-color .18s ease;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.has-selection::before {
  background: rgba(72,91,49,.76);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact:not(.is-active) {
  color: #fff;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact.is-active {
  color: var(--product-ink);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active::before {
  background: rgba(251,248,242,.96);
  transform: scaleY(1) translateZ(0);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card > span,
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active > span {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 15px;
  left: 8px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: none;
  transition: none;
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card img.addon-group-icon,
html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active img.addon-group-icon {
  position: absolute;
  z-index: 1;
  top: 19px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%) scale(1.5);
  transform-origin: center;
  transition: transform .24s cubic-bezier(.2,.85,.2,1);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active img.addon-group-icon {
  transform: translate(-50%, -4px) scale(1.58);
}

html.is-mobile-web .product-view.is-customizing:not(.is-viewer) .addon-group-card b {
  z-index: 3;
  top: 24px;
}

html.is-mobile-web .addon-check {
  top: 11px;
  right: 13px;
  width: 12px;
  height: 16px;
  color: var(--product-olive);
  font-size: 0;
  text-shadow: none;
  transform: rotate(45deg);
}

html.is-mobile-web .addon-check::before {
  content: "";
  position: absolute;
  inset: 1px 2px 3px 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
}

html.is-mobile-web .product-purchase > strong,
html.is-mobile-web .product-purchase > strong small,
html.is-mobile-web .product-add,
html.is-mobile-web .product-add-price,
html.is-mobile-web .product-stepper span {
  font-family: "Moniqa Variable", sans-serif;
  font-variation-settings: 'wght' 560, 'wdth' 88, 'opsz' 2;
}

html.is-mobile-web .addon-plus:focus-visible,
html.is-mobile-web .addon-stepper button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html.is-mobile-web .addon-card,
  html.is-mobile-web .addon-group-card,
  html.is-mobile-web .addon-group-card::before,
  html.is-mobile-web .addon-group-card img.addon-group-icon,
  html.is-mobile-web .addon-plus,
  html.is-mobile-web .addon-stepper button {
    transition-duration: .01ms !important;
  }
}
}
