/* Desktop-web-only product controls. Native shells are deliberately excluded. */
@media (min-width: 1024px) {
html:not(.is-native-app) {
  --addon-control-size: 46px;
  --addon-control-line: 1.75px;
}

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

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-plus,
html:not(.is-native-app) .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:not(.is-native-app) .addon-card.is-selected .addon-stepper button {
  background: rgba(255, 255, 255, .76);
}

html:not(.is-native-app) .addon-plus::before,
html:not(.is-native-app) .addon-plus::after,
html:not(.is-native-app) .addon-stepper button::before,
html:not(.is-native-app) .addon-stepper button::after {
  width: 17px;
  height: var(--addon-control-line);
}

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-stepper {
  width: auto;
  height: var(--addon-control-size);
  grid-template-columns: var(--addon-control-size) 30px var(--addon-control-size);
  gap: 4px;
}

html:not(.is-native-app) .addon-stepper span {
  font-size: 14px;
  font-weight: 450;
  line-height: 1;
}

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

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card > div:not(.addon-stepper) {
  align-self: end;
  padding-bottom: 8px;
}

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

/* Taller desktops retain the raised artwork, with a stable slot below it. */
@media (min-height: 821px) {
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid[data-rows],
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card {
    --addon-card-height: clamp(236px, 26vh, 256px);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card {
    grid-template-rows: minmax(0, 1fr) 64px var(--addon-control-size);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card > img {
    width: 110px;
    height: 100%;
    max-height: 110px;
    align-self: end;
    transform: translateY(-20px) scale(1.35);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card strong {
    min-height: 2.36em;
  }
}

/* A short addon set is a centered cluster, not a fake carousel. */
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid.is-short {
  justify-content: center;
}

/* V265: keep the two choice levels visually related and clear of the fixed CTA.
   The purchase bar is 96px tall, so the dock stops 16px above it. */
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock,
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock.has-options {
  bottom: 112px;
  grid-template-rows: minmax(0, 1fr) 148px;
}

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid,
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid[data-rows] {
  align-content: end;
  padding-bottom: 4px;
}

/* V263: desktop category cards use one immutable geometry for every label.
   Selection expands only the material surface upward; text never reflows. */
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-rail {
  min-height: 148px;
  padding-top: 4px;
  padding-bottom: 0;
}

@media (max-height: 820px) {
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock.has-options {
    bottom: 106px;
    grid-template-rows: minmax(0, 1fr) 148px;
  }
}

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact,
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-compact.is-active {
  isolation: isolate;
  flex-basis: 152px;
  width: 152px;
  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:not(.is-native-app) .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:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.has-selection::before {
  background: rgba(72,91,49,.76);
}

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

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

html:not(.is-native-app) .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:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card > span,
html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active > span {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 15px;
  left: 10px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: none;
  transition: none;
}

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card strong {
  line-height: 1.12;
  white-space: normal;
}

html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card img.addon-group-icon,
html:not(.is-native-app) .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:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active img.addon-group-icon {
  transform: translate(-50%, -4px) scale(1.58);
}

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

@media (min-height: 821px) {
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-option-grid[data-rows] {
    padding-top: 32px;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .customizer-dock.has-options {
    grid-template-rows: minmax(0, 1fr) 176px;
  }

  /* Reserve space above the material for the raised art, including selection. */
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-rail {
    min-height: 176px;
    padding-top: 32px;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card img.addon-group-icon,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.is-active img.addon-group-icon {
    top: 8px;
    transform: translateX(-50%) scale(1.95);
  }

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

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

html:not(.is-native-app) .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:not(.is-native-app) .product-purchase > strong,
html:not(.is-native-app) .product-purchase > strong small,
html:not(.is-native-app) .product-add,
html:not(.is-native-app) .product-add-price,
html:not(.is-native-app) .product-stepper span {
  font-family: "Moniqa Variable", sans-serif;
  font-variation-settings: 'wght' 560, 'wdth' 88, 'opsz' 2;
}

html:not(.is-native-app) .addon-plus:hover,
html:not(.is-native-app) .addon-stepper button:hover {
  background: rgba(255, 255, 255, .24);
}

html:not(.is-native-app) .addon-card.is-selected .addon-stepper button:hover {
  background: #fff;
}

/* V336: only ingredient artwork grows; card, label and control stay anchored.
   Category material still grows from its bottom edge without moving its label. */
@media (hover: hover) and (pointer: fine) {
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card:not(.is-selected) {
    transition: background-color .2s ease;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card > img,
  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card img.addon-group-icon {
    transition: transform .24s cubic-bezier(.2,.85,.2,1), scale .24s cubic-bezier(.2,.85,.2,1);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card:not(.is-selected):hover {
    background: rgba(52,44,33,.47);
    transform: none;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card:not(.is-selected):hover > img {
    scale: 1.12;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card:not(.is-selected):hover:active {
    transform: none;
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card:not(.is-active):hover::before {
    background: rgba(52,44,33,.64);
    transform: scaleY(.93) translateZ(0);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card.has-selection:not(.is-active):hover::before {
    background: rgba(64,81,44,.82);
  }

  html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card:not(.is-active):hover img.addon-group-icon {
    scale: 1.12;
  }
}

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

/* V334: shadow-free desktop customizer, including selected and hover states. */
html:not(.is-native-app) .product-customizer,
html:not(.is-native-app) .product-customizer *,
html:not(.is-native-app) .product-customizer *::before,
html:not(.is-native-app) .product-customizer *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

html:not(.is-native-app) .product-customizer img {
  filter: none !important;
}

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

  /* V333: explicitly requested pointer feedback also works with Windows
     animation effects disabled. Keep this exception scoped to desktop tiles. */
  @media (hover: hover) and (pointer: fine) {
    html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card:not(.is-selected) {
      transition: background-color .2s ease !important;
    }
    html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-card > img,
    html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card img.addon-group-icon {
      transition: transform .24s cubic-bezier(.2,.85,.2,1), scale .24s cubic-bezier(.2,.85,.2,1) !important;
    }
    html:not(.is-native-app) .product-view.is-customizing:not(.is-viewer) .addon-group-card::before {
      transition: transform .24s cubic-bezier(.2,.85,.2,1), background-color .18s ease !important;
    }
  }
}
}
