:root, :host {
  color-scheme: light;
  --ink: #15221c;
  --muted: #647069;
  --line: #dce4df;
  --surface: #ffffff;
  --soft: #f1f5f2;
  --soft-2: #e8efeb;
  --accent: #087a47;
  --accent-contrast: #ffffff;
  --accent-dark: #075d38;
  --configux-font-family: Inter;
  --configux-heading-weight: 700;
  --configux-body-weight: 400;
  --configux-radius-small: 8px;
  --configux-radius-medium: 13px;
  --configux-radius-large: 16px;
  --configux-space-unit: 4px;
  --player-font-xs: 11px;
  --player-font-sm: 12px;
  --player-font-base: 13px;
  --player-font-md: 14px;
  --player-font-lg: 19px;
  --player-font-xl: 22px;
  --player-font-display: clamp(28px, 3vw, 40px);
  font-family: var(--configux-font-family), ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: var(--configux-body-weight);
  background: var(--surface);
  color: var(--ink);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
}

button, a { font: inherit; }

.player {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--configux-viewer-col, minmax(0, 1.45fr)) var(--configux-panel-col, minmax(360px, 0.75fr));
  overflow: hidden;
  background: var(--surface);
}
.player[data-player-appearance="compact"] { --player-font-xs: 10px; --player-font-sm: 11px; --player-font-base: 12px; --player-font-md: 13px; --player-font-lg: 17px; --player-font-xl: 20px; --player-font-display: clamp(25px, 2.7vw, 36px); }
.player[data-player-appearance="large"] { --player-font-xs: 12px; --player-font-sm: 13px; --player-font-base: 15px; --player-font-md: 16px; --player-font-lg: 21px; --player-font-xl: 25px; --player-font-display: clamp(31px, 3.3vw, 45px); }
.player[data-player-appearance="extra_large"] { --player-font-xs: 13px; --player-font-sm: 14px; --player-font-base: 16px; --player-font-md: 18px; --player-font-lg: 23px; --player-font-xl: 28px; --player-font-display: clamp(34px, 3.6vw, 50px); }
/* Runway BYG-18: inside the direct embed the Player fills its host element
   instead of the viewport, and stays a sane height on shop pages. */
:host { display: block; height: var(--configux-embed-height, auto); overflow: hidden; }
:host .configux-player-host { height: var(--configux-embed-height, clamp(480px, 78vh, 860px)); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
:host([presentation-mode="standalone_fullscreen"]) .configux-player-host { height: var(--configux-embed-height, 100dvh); }
:host .player { flex: 1 1 auto; height: auto; border: 0; border-radius: 0; }
:host .config-panel { overflow-y: auto; min-height: 0; }

.player-host-chrome { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-color: var(--line); background: var(--surface); }
.player-host-chrome[hidden] { display: none; }
.player-host-top { border-bottom: 1px solid var(--line); }
.player-host-bottom { justify-content: center; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--player-font-xs); }
.player-host-back, .player-host-logo { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--configux-radius-small); color: var(--ink); background: var(--surface); cursor: pointer; font-weight: 700; }
.player-host-back[hidden], .player-host-logo[hidden] { display: none; }
.player-host-back:hover, .player-host-logo:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--soft); }
.player-host-logo img { display: block; max-width: min(160px, 34vw); max-height: 28px; width: auto; height: auto; object-fit: contain; }
.standalone-player-host { width: 100%; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.standalone-player-host > .player { flex: 1 1 auto; height: auto; }

.viewer-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef0f4;
}

.viewer-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  /* Runway BYG-4: the runtime sets --configux-viewer-background from the
     author's choice; absent it keeps the historical soft gradient. */
  background: var(--configux-viewer-background, #eef0f4);
}

model-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  --poster-color: transparent;
  background: transparent;
}

.player-image-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: stretch;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.player-procedural-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 900px;
  pointer-events: none;
}

.player-procedural-stage[hidden] { display: none; }

.player-procedural-surface {
  width: clamp(180px, calc(var(--procedural-width, 1.8) * 170px), 68%);
  aspect-ratio: var(--procedural-width, 1.8) / var(--procedural-depth, .8);
  position: relative;
  border: 1px solid rgba(75, 46, 25, .28);
  border-radius: 3px;
  background:
    repeating-linear-gradient(4deg, rgba(84, 48, 24, .13) 0 1px, transparent 1px calc(18px / max(1, var(--procedural-u-repeat, 4.5)))),
    linear-gradient(110deg, #d9bb8b, #bb8c5b 58%, #d2aa79);
  box-shadow: 24px 30px 32px rgba(35, 29, 21, .22);
  transform: rotateX(58deg) rotateZ(-28deg);
}

.player-procedural-surface::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -1px;
  left: -1px;
  height: clamp(5px, calc(var(--procedural-thickness, .04) * 140px), 14px);
  border: 1px solid rgba(75, 46, 25, .3);
  border-top: 0;
  background: #a97648;
  transform-origin: top;
  transform: skewX(42deg);
}

.player-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

[data-player-mode="3d"] .player-image-stage,
[data-player-mode="2d"] model-viewer { display: none; }
[data-procedural-runtime="true"] model-viewer,
[data-procedural-runtime="true"] .player-image-stage { display: none; }

[data-player-mode="2d"] .viewer-frame { touch-action: pan-y; }

.model-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  background: #d7e2dc;
}

.model-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--accent);
  animation: loading 1.2s ease-in-out infinite alternate;
}

@keyframes loading { to { transform: translateX(140%); } }

[data-model-loaded="true"] .model-progress {
  display: none;
}

.runtime-status:not([data-verified="false"]) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.viewer-footer {
  min-height: 58px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: var(--player-font-sm);
}

.viewer-footer[hidden] { display: none; }
.player-appearance-control { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: var(--player-font-sm); font-weight: 650; }
.player-appearance-control select { min-height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; }
.player-appearance-control select:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.28); outline-offset: 2px; }

.text-button {
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.text-button:hover, .text-button:focus-visible { background: #e0ebe5; }
.text-button:focus-visible,
.player-retry:focus-visible,
.player-panel-reset:focus-visible,
.player-step-nav button:focus-visible,
.buyer-input input:focus-visible,
.player-lead-form input:focus-visible,
.player-lead-form button:focus-visible {
  outline: 3px solid rgba(8, 122, 71, 0.28);
  outline-offset: 2px;
}

.config-panel {
  min-width: 0;
  padding: clamp(calc(var(--configux-space-unit) * 7), 4vw, calc(var(--configux-space-unit) * 13));
  display: flex;
  flex-direction: column;
  gap: calc(var(--configux-space-unit) * 7.5);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 1px solid var(--line);
  background: var(--surface);
  container-type: inline-size;
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: var(--player-font-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-heading h1 {
  margin: 0;
  font-size: var(--player-font-display);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: var(--configux-heading-weight);
}

.config-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--player-font-md);
  line-height: 1.55;
}

.option-groups { display: grid; gap: calc(var(--configux-space-unit) * 6.75); }

.option-group { min-width: 0; margin: 0; padding: 0; border: 0; }

.option-group legend {
  width: 100%;
  margin-bottom: 11px;
  font-size: var(--player-font-md);
  font-weight: 750;
}

/* Runway BYG-3: the author's options-per-row wins per breakpoint; "auto"
   keeps the historical two-column default. */
.option-grid { display: grid; grid-template-columns: repeat(var(--opr-desktop, 2), minmax(0, 1fr)); gap: calc(var(--configux-space-unit) * 2.5); }

/* HUMAN-QA-FIX-1: explicit long-label rows stay readable in narrow Player
   zones without changing the compact layout used by ordinary choices. */
.option-group--long-labels .option-grid { grid-template-columns: minmax(0, 1fr); }
.option-group--long-labels .option-button { width: 100%; white-space: normal; }
.option-group--long-labels .option-label { overflow-wrap: anywhere; line-height: 1.35; }

.option-group-tooltip { margin: -6px 0 2px; color: #5c6a63; font-size: var(--player-font-base); line-height: 1.5; }

.option-group--buttons .option-swatch { display: none; }
.option-group--buttons .option-button { justify-content: center; min-height: 44px; padding: 10px 12px; text-align: center; }

.option-group--color_swatches .option-grid { grid-template-columns: repeat(var(--opr-desktop, 4), minmax(0, 1fr)); }
.option-group--color_swatches .option-button { flex-direction: column; gap: 8px; padding: 10px 6px; }
.option-group--color_swatches .option-swatch { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgb(13 13 13 / 12%); }
.option-group--color_swatches .option-label { font-size: var(--player-font-sm); text-align: center; }

.option-dropdown { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c8d3cc; border-radius: var(--configux-radius-small); background: var(--surface); font: inherit; color: inherit; }
.option-dropdown:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.2); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.option-button {
  min-width: 0;
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: var(--configux-radius-medium);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.option-group--shadow-soft .option-button,
.player[data-card-shadow="soft"] .option-group--shadow-brand .option-button { box-shadow: 0 4px 14px rgb(15 23 42 / 8%); }
.option-group--shadow-none .option-button,
.player[data-card-shadow="none"] .option-group--shadow-brand .option-button { box-shadow: none; }

.option-button:hover { transform: translateY(-1px); border-color: #9eb2a7; }

.option-button:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.2); outline-offset: 2px; }

.option-button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(8, 122, 71, 0.12);
  background: #f6fbf8;
}

.option-swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(14, 32, 22, 0.16);
  border-radius: 50%;
  color: #3c4c43;
  background: var(--soft-2);
  font-size: var(--player-font-lg);
  font-weight: 500;
}

.option-label {
  min-width: 0;
  max-width: 100%;
  font-size: var(--player-font-base);
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.summary-card {
  margin-top: auto;
  padding: 18px;
  display: grid;
  gap: 10px;
  border: 1px solid #cfe0d6;
  border-radius: var(--configux-radius-large);
  background: #f4f9f6;
}

.summary-card > div { display: flex; justify-content: flex-end; align-items: baseline; gap: 16px; }
.summary-card span { color: var(--muted); font-size: var(--player-font-base); }
.summary-card strong { font-size: var(--player-font-xl); letter-spacing: -0.03em; }
.summary-card small { color: #728078; font-size: var(--player-font-xs); line-height: 1.4; }

/* RC81: before the checksum-verified document arrives, use a quiet neutral
   shape skeleton that matches the real panel. The previous large green
   "Configure your product / Loading product" message looked like customer
   content and caused a distracting flash in Chrome and Safari. */
.player-initial-panel {
  display: grid;
  gap: 14px;
  width: 100%;
}

.player-skeleton-line,
.player-skeleton-card {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: var(--configux-radius-medium);
  background: var(--soft);
}

.player-skeleton-line::after,
.player-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 65%) 48%, transparent 76%);
  transform: translateX(-100%);
  animation: configux-shell-loading 1.25s ease-in-out infinite;
}

.player-skeleton-line--short { width: 34%; height: 11px; border-radius: 999px; }
.player-skeleton-line--title { width: 62%; height: 26px; margin-bottom: 4px; }
.player-skeleton-card { height: 92px; border: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 72%, var(--surface)); }
.player-skeleton-card--compact { height: 64px; }

@keyframes configux-shell-loading { to { transform: translateX(100%); } }

.player[aria-busy="true"]:not([data-document-ready="true"]) .config-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.player[data-document-ready="true"] .player-initial-panel,
.player[data-load-error="true"] .player-initial-panel {
  display: none;
}

.player[aria-busy="true"]:not([data-document-ready="true"]) .option-groups,
.player[aria-busy="true"]:not([data-document-ready="true"]) .summary-card {
  visibility: hidden;
}

.integrity-card {
  padding: 12px 14px;
  color: #526159;
  background: var(--soft);
  border-radius: 11px;
  font-size: var(--player-font-xs);
  line-height: 1.45;
}

[data-load-error="true"] .integrity-card {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: #8c2f2f;
  background: #fff0f0;
}

.player-retry {
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid currentColor;
  border-radius: 9px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.player-retry[hidden] { display: none; }
[data-load-error="true"] .integrity-card { display: grid; gap: 10px; }
[data-model-error="true"] [data-model-status] {
  position: absolute !important;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  color: #8c2f2f;
  border: 1px solid #f2caca;
  border-radius: 11px;
  background: #fff0f0;
}
[data-model-error="true"] .integrity-card {
  position: static !important;
  display: grid;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  gap: 10px;
}
[data-load-error="true"] .summary-card,
[data-load-error="true"] .viewer-footer { display: none; }

@media (max-width: 840px) {
  .player {
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 1fr;
    /* Runway BYG-1: the author's stacked split; the runtime sets the variable
       from the document, and 44dvh stays the fallback for old packages. */
    grid-template-rows: minmax(260px, var(--configux-stacked-stage, 44dvh)) minmax(0, 1fr);
  }
  .viewer-panel { position: relative; min-height: 0; }
  .viewer-frame, model-viewer, .player-image-stage, .player-procedural-stage { min-height: 0; height: 100%; }
  .viewer-footer { min-height: 48px; padding: 8px 14px; }
  .viewer-footer > span { display: none; }
  .viewer-footer { justify-content: flex-end; }
  .config-panel {
    padding: 28px 18px 32px;
    gap: 25px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .config-heading h1 { font-size: var(--player-font-display); }
  .summary-card { margin-top: 0; }
  .option-grid { grid-template-columns: repeat(var(--opr-tablet, 2), minmax(0, 1fr)); }
  .option-group--color_swatches .option-grid { grid-template-columns: repeat(var(--opr-tablet, 4), minmax(0, 1fr)); }
  .option-group--direction-vertical .option-grid { grid-template-columns: minmax(0, 1fr); }
  .option-group--many-carousel .option-grid { grid-template-columns: none; grid-auto-columns: calc(var(--carousel-basis-tablet, 50%) - 5px); }
  /* Runway BYG-23: compact control clusters on small screens. */
  .viewer-control-cluster { gap: 5px; }
  .viewer-control-button { width: 32px; height: 32px; font-size: 14px; }
}

@media (max-width: 420px) {
  .option-grid { grid-template-columns: repeat(var(--opr-mobile, 1), minmax(0, 1fr)); }
  .option-group--color_swatches .option-grid { grid-template-columns: repeat(var(--opr-mobile, 3), minmax(0, 1fr)); }
  .option-group--direction-vertical .option-grid { grid-template-columns: minmax(0, 1fr); }
  .option-group--many-carousel .option-grid { grid-template-columns: none; grid-auto-columns: calc(var(--carousel-basis-mobile, 100%) - 2px); }
  .option-button { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Runway BYG-5: the author's placed Player controls. */
.viewer-control-cluster {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 5;
}
/* Runway BYG-14: clusters follow their authored overlay corner. */
.viewer-control-cluster[data-anchor="top_left"] { top: 14px; left: 14px; right: auto; bottom: auto; }
.viewer-control-cluster[data-anchor="top_right"] { top: 14px; right: 14px; left: auto; bottom: auto; }
.viewer-control-cluster[data-anchor="bottom_left"] { bottom: 14px; left: 14px; top: auto; right: auto; }
.viewer-control-cluster[data-anchor="bottom_right"] { bottom: 14px; right: 14px; top: auto; left: auto; }
.viewer-control-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d3cc;
  border-radius: 10px;
  background: rgb(255 255 255 / 92%);
  color: #29433a;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(18 44 32 / 10%);
  backdrop-filter: blur(6px);
  transition: transform 120ms ease, border-color 120ms ease;
}
.viewer-control-button:hover { transform: translateY(-1px); border-color: #9eb2a7; }
.viewer-control-button:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.2); outline-offset: 2px; }

/* Runway BYG-6: the step bar for multi-step configurators. */
.player-step-bar { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.player-step-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.player-step-heading strong { font-size: 15px; }
.player-step-heading span { color: var(--muted); font-size: 12px; font-weight: 700; }
.player-step-nav { display: flex; gap: 8px; }
.player-step-nav button { flex: 1; min-height: 44px; border: 1px solid #c8d3cc; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--accent-dark); cursor: pointer; }
.player-step-nav button:disabled { opacity: .45; cursor: default; }
.player-step-nav button:not(:disabled):hover { border-color: #9eb2a7; }

/* Runway BYG-8B: buyer inputs. */
.buyer-inputs { display: grid; gap: 14px; margin-top: 4px; }
.buyer-input { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.buyer-input input { min-height: 44px; padding: 9px 12px; border: 1px solid #c8d3cc; border-radius: 10px; background: #fff; font: inherit; font-weight: 500; }
.buyer-input--yes_no { grid-template-columns: auto 1fr; align-items: center; }
.buyer-input--yes_no input { min-height: 0; width: 20px; height: 20px; accent-color: var(--accent); }
.buyer-input--yes_no span { order: 2; }
.buyer-input-note { color: #8c2f2f; font-weight: 600; min-height: 0; }

/* Runway BYG-18: authored content elements in the published Player. */
.player-content-heading { margin: 4px 0 0; font-size: 21px; line-height: 1.2; color: var(--ink); }
.player-content-text { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.player-content-image { display: block; max-width: 100%; max-height: 180px; object-fit: contain; border-radius: var(--configux-radius-medium, 10px); }
.player-content-image[data-fit="cover"] { width: 100%; object-fit: cover; }
.player-content-image[data-alignment="start"], .player-content-image-link[data-alignment="start"] { margin-inline: 0 auto; }
.player-content-image[data-alignment="center"], .player-content-image-link[data-alignment="center"] { margin-inline: auto; }
.player-content-image[data-alignment="end"], .player-content-image-link[data-alignment="end"] { margin-inline: auto 0; }
.player-content-image-link { display: block; max-width: 100%; }
.player-primary-action { margin-top: 6px; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--accent, #087a47); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.player-primary-action-wrap { min-width: 0; display: grid; gap: 8px; }
.player-primary-action-status { min-height: 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.player-cart-link { justify-self: center; color: var(--accent, #087a47); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.player-cart-link[hidden] { display: none; }
.player-primary-action:hover { filter: brightness(1.05); }
.player-primary-action:disabled {
  color: #667085;
  background: #e4e7ec;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  filter: none;
}
.player-primary-action:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.3); outline-offset: 2px; }
.player-lead-form { min-width: 0; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.player-lead-form h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.25; }
.player-lead-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player-lead-close { width: 36px; min-height: 36px !important; flex: 0 0 36px; padding: 0; border: 1px solid var(--line) !important; border-radius: 999px !important; background: transparent !important; color: var(--ink) !important; font-size: 22px !important; line-height: 1; }
.player-lead-form > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.player-lead-form > label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.player-lead-form input[type="text"], .player-lead-form input[type="email"] { min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #c8d3cc; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 500; }
.player-lead-form .player-lead-consent { grid-template-columns: auto minmax(0, 1fr); align-items: start; font-weight: 500; line-height: 1.45; }
.player-lead-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.player-lead-form button { min-height: 46px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.player-lead-form button:disabled { cursor: not-allowed; opacity: 0.58; }
.player-lead-form--left-drawer,
.player-lead-form--right-drawer,
.player-lead-form--centered-modal { position: fixed; z-index: 80; max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 24px 70px rgb(15 23 42 / 28%); }
.player-lead-form--left-drawer,
.player-lead-form--right-drawer { top: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); }
.player-lead-form--left-drawer { left: 16px; }
.player-lead-form--right-drawer { right: 16px; }
.player-lead-form--centered-modal { top: 50%; left: 50%; width: min(480px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
@media (max-width: 640px) {
  .player-lead-form--left-drawer,
  .player-lead-form--right-drawer,
  .player-lead-form--centered-modal { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: 62dvh; transform: none; border-bottom-right-radius: 18px; border-bottom-left-radius: 18px; overscroll-behavior: contain; }
}
.player-lead-status { min-height: 18px; overflow-wrap: anywhere; }

/* Runway BYG-19: option card media. */
.option-button .option-media { width: 100%; max-height: 96px; object-fit: cover; border-radius: 8px; }
.option-button.has-media { flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.option-dimensions { display: block; color: var(--muted-text, #667085); font-size: 0.75rem; font-weight: 500; line-height: 1.35; }

/* Q24-4: portable option direction and label placement. The default "auto"
   keeps the historic card treatment; every authored choice is explicit and
   is shared by standalone and connector Players. */
.option-group--direction-vertical .option-grid { grid-template-columns: minmax(0, 1fr); }
.option-group--label-above .option-button,
.option-group--label-below .option-button { flex-direction: column; align-items: stretch; text-align: center; }
.option-group--label-above .option-label { order: -1; }
.option-group--label-below .option-label { order: 2; }
.option-group--label-beside .option-button,
.option-group--label-beside .option-button.has-media { flex-direction: row; align-items: center; text-align: left; }
.option-group--label-beside .option-button .option-media { width: 42%; max-width: 112px; height: 64px; object-fit: cover; }
.option-group--label-hidden .option-label,
.option-group--label-hidden .option-dimensions {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Q24-5: portable option card design. These bounded semantic classes are
   resolved by the shared Player core and therefore work identically in a
   standalone Player and in every connector that embeds that Player. */
.option-group--media-square .option-button .option-media { height: auto; max-height: none; aspect-ratio: 1 / 1; }
.option-group--media-portrait .option-button .option-media { height: auto; max-height: none; aspect-ratio: 4 / 5; }
.option-group--media-landscape .option-button .option-media { height: auto; max-height: none; aspect-ratio: 4 / 3; }
.option-group--media-wide .option-button .option-media { height: auto; max-height: none; aspect-ratio: 16 / 9; }
.option-group--fit-cover .option-media { object-fit: cover; }
.option-group--fit-contain .option-media { object-fit: contain; background: var(--soft-2); }

.option-group--density-brand .option-button {
  min-height: calc(50px + var(--configux-space-unit) * 2);
  padding: calc(var(--configux-space-unit) * 2.25) calc(var(--configux-space-unit) * 3);
  gap: calc(var(--configux-space-unit) * 2.5);
}
.option-group--density-compact .option-button { min-height: 44px; padding: 6px 8px; gap: 6px; }
.option-group--density-comfortable .option-button { min-height: 58px; padding: 9px 12px; gap: 10px; }
.option-group--density-spacious .option-button { min-height: 72px; padding: 14px 16px; gap: 14px; }

.option-group--radius-square .option-button { border-radius: 0; }
.option-group--radius-small .option-button { border-radius: var(--configux-radius-small); }
.option-group--radius-medium .option-button,
.option-group--radius-brand .option-button { border-radius: var(--configux-radius-medium); }
.option-group--radius-large .option-button { border-radius: var(--configux-radius-large); }

.option-group--text-start .option-label,
.option-group--text-center .option-label,
.option-group--text-end .option-label,
.option-group--text-start .option-dimensions,
.option-group--text-center .option-dimensions,
.option-group--text-end .option-dimensions { flex: 1 1 auto; width: auto; }
.option-group--text-start .option-label,
.option-group--text-start .option-dimensions { text-align: start; }
.option-group--text-center .option-label,
.option-group--text-center .option-dimensions { text-align: center; }
.option-group--text-end .option-label,
.option-group--text-end .option-dimensions { text-align: end; }

/* Runway BYG-22: the authored reset element inside the panel. */
.player-panel-reset { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.player-panel-reset:hover { border-color: #9eb2a7; }

@media (pointer: coarse) {
  .viewer-control-button { width: 44px; height: 44px; }
}

/* Runway BYG-24: many options - search + capped scrolling grid. */
.option-search { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--ink); background: var(--surface); }
.option-search:focus-visible { outline: 3px solid rgba(8, 122, 71, 0.2); outline-offset: 1px; }
.option-group--many .option-grid { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.option-group--many-view_all .option-grid,
.option-group--many-carousel .option-grid { max-height: none; padding-right: 0; overflow-y: visible; }
.option-view-all { width: 100%; min-height: 40px; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.option-view-all:hover { border-color: #9eb2a7; }
.option-group--many-carousel .option-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc(var(--carousel-basis-desktop, 50%) - 5px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}
.option-group--many-carousel .option-button { scroll-snap-align: start; }
.option-carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.option-carousel-controls button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.option-carousel-controls button:hover { border-color: #9eb2a7; }

/* Runway BYG-27: a left-sidebar Builder layout mirrors into the embed -
   the choice panel sits left, the viewer right. Mobile stacking unchanged. */
.player--panel-left { grid-template-columns: var(--configux-panel-col, minmax(350px, 0.75fr)) var(--configux-viewer-col, minmax(0, 1.45fr)); }
.player--panel-left .config-panel { order: 1; border-left: 0; border-right: 1px solid var(--line); }
.player--panel-left .viewer-panel { order: 2; }
@media (max-width: 840px) {
  .player--panel-left { grid-template-columns: 1fr; }
  .player--panel-left .viewer-panel { order: 1; }
  .player--panel-left .config-panel { order: 2; border-right: 0; }
}

/* ALPHA-E6: one authored multi-zone canvas in Builder and published Player. */
.player.player--composed {
  grid-template-columns: minmax(0, var(--configux-left-size, 0%)) minmax(0, 1fr) minmax(0, var(--configux-right-size, 0%));
  grid-template-rows: minmax(0, var(--configux-top-size, 0%)) minmax(0, 1fr) minmax(0, var(--configux-bottom-size, 0%));
  grid-template-areas:
    "top top top"
    "left viewer right"
    "bottom bottom bottom";
}
.player.player--composed[data-reveal-viewer-background="true"] { background: var(--configux-viewer-background, #f2f5f3); }
.player.player--composed[data-reveal-viewer-background="true"].has-viewer-image { background-image: var(--configux-viewer-background-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.player.player--composed[data-reveal-viewer-background="true"] .viewer-frame { background: transparent; }

.player--composed .viewer-panel { grid-area: viewer; order: initial; border: 0; }
.player--composed .player-layout-zone--top-bar { grid-area: top; border-bottom: 1px solid var(--line); }
.player--composed .player-layout-zone--left-sidebar { grid-area: left; border-right: 1px solid var(--line); }
.player--composed .player-layout-zone--right-sidebar { grid-area: right; border-left: 1px solid var(--line); }
.player--composed .player-layout-zone--bottom-bar { grid-area: bottom; border-top: 1px solid var(--line); }
.player--composed .player-layout-zone[data-zone-enabled="false"] { display: none; }

.player--composed .player-layout-zone {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 18px;
  gap: 14px;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
}
.player--composed .player-layout-zone[data-zone-composition="one_panel"] { margin: 10px; border: 1px solid var(--line); border-radius: var(--configux-radius-large); background: var(--soft); }
.player--composed .player-layout-zone[data-zone-composition="floating_controls"] { align-content: flex-start; background: transparent; border-color: transparent; }
.player[data-panel-style="outlined"] .player-layout-zone[data-zone-composition="integrated"] { border: 1px solid var(--line); }
.player[data-panel-style="elevated"] .player-layout-zone[data-zone-composition="integrated"] { box-shadow: 0 10px 28px rgb(15 23 42 / 10%); }
.player[data-bubble-style="flat"] .option-tooltip-bubble { box-shadow: none; border-radius: 2px; }
.player[data-bubble-style="elevated"] .option-tooltip-bubble { box-shadow: 0 12px 32px rgb(15 23 42 / 28%); }
.player--composed .player-layout-zone[data-zone-orientation="horizontal"] {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
}
.player--composed .player-layout-zone[data-zone-orientation="vertical"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.player--composed .player-layout-zone-content {
  min-width: 0;
  min-height: 0;
  display: contents;
}
.player--composed .player-layout-placement {
  min-width: 0;
  min-height: 0;
  flex: 1 1 var(--player-placement-basis, auto);
}
.player--composed .player-layout-zone[data-zone-orientation="vertical"] .player-layout-placement {
  width: 100%;
  /* NAT-12: vertical sidebars must keep the Builder's compact document flow.
     Growing every placement distributed the controls over the full sidebar
     height and broke WYSIWYG parity on the direct and WordPress Players. */
  flex: 0 0 auto;
}
.player--composed .player-layout-zone[data-zone-orientation="horizontal"] .player-layout-placement { padding-inline: 4px; }
.player--composed .player-layout-zone[data-zone-orientation="horizontal"] .player-layout-placement > * { height: 100%; }
.player--composed .player-content-heading { margin: 0; font-size: clamp(20px, 2vw, 31px); }
.player--composed .summary-card { width: 100%; height: auto !important; margin-top: 0; }
.player--composed .player-primary-action { margin-top: 0; }
.player--composed .option-groups { gap: 0; }
.player--composed .player-stepped-group { display: grid; gap: 14px; }

.player-viewer-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.player-viewer-overlay[data-zone-enabled="false"] { display: none; }
.player-viewer-overlay-anchor { position: absolute; max-width: min(42%, 360px); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.player-viewer-overlay-anchor > .player-layout-placement { pointer-events: auto; }
.player-viewer-overlay-anchor[data-overlay-anchor="top_left"] { top: 16px; left: 16px; }
.player-viewer-overlay-anchor[data-overlay-anchor="top_right"] { top: 16px; right: 16px; }
.player-viewer-overlay-anchor[data-overlay-anchor="bottom_left"] { bottom: 16px; left: 16px; }
.player-viewer-overlay-anchor[data-overlay-anchor="bottom_right"] { right: 16px; bottom: 16px; }
/* BUILDER-10: a corner that also holds viewer controls starts inside them, so
   an overlay image never sits underneath the fullscreen button. */
.viewer-frame:has(> .viewer-control-cluster[data-anchor="top_right"]) .player-viewer-overlay-anchor[data-overlay-anchor="top_right"],
.viewer-frame:has(> .viewer-control-cluster[data-anchor="bottom_right"]) .player-viewer-overlay-anchor[data-overlay-anchor="bottom_right"] { right: 64px; }
.viewer-frame:has(> .viewer-control-cluster[data-anchor="top_left"]) .player-viewer-overlay-anchor[data-overlay-anchor="top_left"],
.viewer-frame:has(> .viewer-control-cluster[data-anchor="bottom_left"]) .player-viewer-overlay-anchor[data-overlay-anchor="bottom_left"] { left: 64px; }

/* ONLINE-A3: authored sidebars have a usable floor. When a customer makes a
   zone narrow, option cards reflow instead of splitting words or introducing
   a horizontal page scrollbar. */
/* BUILDER-10: the author decides how many options sit on a row. A narrow
   authored zone no longer silently collapses the grid to one column - that
   was why the Builder canvas and the published Player disagreed. Cards get
   smaller; the count stays the author's. Only below 260px, where two cards
   cannot hold a word, does the Player fall back to a single column. */
@container (max-width: 360px) {
  .option-group--many-carousel .option-grid { grid-template-columns: none; }
  .option-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .option-button.has-media { align-items: stretch; }
  .summary-card { padding-inline: 12px; }
  .summary-card strong { font-size: var(--player-font-lg); }
}

@container (max-width: 260px) {
  .option-grid,
  .option-group--color_swatches .option-grid { grid-template-columns: minmax(0, 1fr); }
  .option-button { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .option-swatch { width: 28px; height: 28px; }
}

@media (max-width: 840px) {
  .player.player--composed {
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(260px, var(--configux-stacked-stage, 44dvh)) auto auto auto;
    grid-template-areas: "top" "viewer" "left" "right" "bottom";
    overflow-y: auto;
  }
  :host .player.player--composed { height: var(--configux-embed-height, clamp(620px, 88vh, 980px)); }
  .player--composed .player-layout-zone { padding: 18px; overflow: visible; }
  .player--composed .player-layout-zone--left-sidebar,
  .player--composed .player-layout-zone--right-sidebar { border: 0; border-top: 1px solid var(--line); }
  .player--composed .player-layout-zone[data-zone-orientation="horizontal"] { flex-wrap: wrap; }
  .player--composed .viewer-panel { min-height: 260px; }
}

/* BUILDER-5: tooltips - icon or text trigger, popover or side panel. */
.option-group legend .option-group-label { vertical-align: middle; }
.option-tooltip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; --tooltip-ink: var(--tooltip-color, #5c6a63); }
.option-group-tooltip-row { margin: -4px 0 8px; }
.option-tooltip-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 22px; min-height: 22px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--tooltip-ink); font: inherit; font-size: 12px; line-height: 1; cursor: help; }
.option-tooltip--click .option-tooltip-trigger { cursor: pointer; }
.option-tooltip-glyph { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; }
.option-tooltip-glyph--exclamation { font-size: 12px; }
.option-tooltip-text { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.option-tooltip-trigger:hover, .option-tooltip.is-open .option-tooltip-trigger { color: var(--tooltip-color, #1f2a24); }
.option-tooltip.is-open .option-tooltip-glyph { background: var(--tooltip-ink); color: #fff; border-color: var(--tooltip-ink); }
.option-tooltip-trigger:focus-visible { outline: 2px solid var(--tooltip-ink); outline-offset: 2px; }
.option-tooltip-bubble { position: absolute; z-index: 6; width: max-content; max-width: min(260px, 70vw); padding: 8px 10px; border-radius: 8px; background: #1f2a24; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 8px 24px rgb(13 13 13 / 18%); transform: translate(calc(-50% + var(--tooltip-shift, 0px)), calc(-100% - 8px)); pointer-events: auto; }
.option-tooltip-bubble::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--tooltip-shift, 0px)); width: 0; height: 0; border: 6px solid transparent; border-top-color: #1f2a24; transform: translateX(-50%); }
.option-tooltip-bubble.is-below { transform: translate(calc(-50% + var(--tooltip-shift, 0px)), 8px); }
.option-tooltip-bubble.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #1f2a24; }
.option-tooltip-bubble[hidden] { display: none; }
.option-cell { position: relative; display: grid; min-width: 0; }
.option-cell > .option-button { width: 100%; height: 100%; }
.option-cell > .option-tooltip { position: absolute; top: 6px; right: 6px; margin: 0; }
.option-cell > .option-tooltip .option-tooltip-trigger { background: rgb(255 255 255 / 92%); }
.option-cell[hidden] { display: none; }
[data-player-root] { position: relative; }
.option-tooltip-panel { position: absolute; inset: 0 0 0 auto; z-index: 8; width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 24px; overflow: auto; background: #fff; color: var(--ink, #1f2a24); box-shadow: -12px 0 32px rgb(13 13 13 / 16%); transform: translateX(100%); transition: transform 220ms ease; }
.option-tooltip-panel.is-open { transform: translateX(0); }
.option-tooltip-panel[hidden] { display: none; }
.option-tooltip-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option-tooltip-panel-header strong { font-size: 16px; font-weight: 750; }
.option-tooltip-panel-close { width: 32px; height: 32px; border: 1px solid var(--line, #d5ddd8); border-radius: 50%; background: #fff; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.option-tooltip-panel-close:hover { background: #f2f4f3; }
.option-tooltip-panel-image { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; }
.option-tooltip-panel-text { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .option-tooltip-panel { transition: none; } }

/* BUILDER-6: how the choices look - one-line "View all", real swatches, the card look. */
.option-view-all { display: block; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.option-view-all[hidden] { display: none; }
.option-swatch.has-color { border-color: rgb(13 13 13 / 18%); color: transparent; }
.option-swatch.has-image { padding: 0; overflow: hidden; background: #fff; }
.option-swatch-image { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.option-group--color_swatches .option-button { border-color: transparent; background: transparent; box-shadow: none; }
.option-group--color_swatches .option-button:hover { border-color: transparent; transform: none; }
.option-group--color_swatches .option-button:hover .option-swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(13 13 13 / 25%); }
.option-group--color_swatches .option-button[aria-pressed="true"] { border-color: transparent; background: transparent; box-shadow: none; }
.option-group--color_swatches .option-button[aria-pressed="true"] .option-swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.option-group--color_swatches .option-button[aria-pressed="true"] .option-label { font-weight: 750; }
.option-group--color_swatches .option-swatch { width: 40px; height: 40px; }
.option-button.has-media .option-media { height: auto; max-height: none; aspect-ratio: 4 / 3; }
.option-button.has-media { padding: 8px; }
.option-button.has-media .option-label { font-weight: 650; }
.option-button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 8%, var(--surface, #fff)); box-shadow: 0 0 0 1px var(--accent); }

/* BUILDER-9: a verified image behind the model; model-viewer's own background stays transparent. */
.has-viewer-image .viewer-frame { background-image: var(--configux-viewer-background-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.has-viewer-image model-viewer { --poster-color: transparent; background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .player-skeleton-line::after,
  .player-skeleton-card::after { animation: none; }
}

@media (forced-colors: active) {
  .option-button, .option-dropdown, .summary-card, .player-layout-zone, .viewer-control-button { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .option-button[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  model-viewer:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
  .option-swatch { border-color: CanvasText; }
}
.option-grid[data-option-columns] .option-button { width: 100%; min-width: 0; max-width: 100%; padding: 8px 5px; }
.option-grid[data-option-columns] .option-label { white-space: normal; overflow-wrap: anywhere; min-width: 0; font-size: clamp(12px, 0.85em, 16px); }

/* BUX: shared by the actual Player and Builder customer preview. Opt-in only. */
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] {
  --bux-ink: var(--builder-brand-text, var(--ink, #242628));
  --bux-action: #242628;
  --bux-line: var(--builder-brand-border, var(--line, #dededb));
  --bux-soft: var(--builder-brand-surface-muted, var(--soft, #f5f5f3));
  --bux-surface: var(--builder-brand-surface, var(--surface, #fff));
  --bux-space: var(--builder-brand-space, var(--configux-space-unit, 4px));
}
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-button { position: relative; min-height: 46px; padding: 12px 14px; border: 1px solid var(--bux-line); border-radius: 9px; background: #fff; color: var(--bux-ink); box-shadow: none; font-weight: 550; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-button[aria-pressed="true"] { border-color: var(--bux-action); background: var(--bux-soft); box-shadow: inset 0 0 0 1px var(--bux-action); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group-label { color: var(--bux-ink); font-weight: 650; font-size: 14px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .summary-card { margin-block: 8px; padding: 16px 0; border: 0; border-top: 1px solid var(--bux-line); background: transparent; border-radius: 0; box-shadow: none; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .summary-card strong { font-size: clamp(22px, 2vw, 28px); font-weight: 650; letter-spacing: -.035em; color: var(--bux-ink); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .player-primary-action,
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .builder-layout-primary-action { background: var(--bux-action); color: #fff; border: 1px solid var(--bux-action); border-radius: 9px; min-height: 48px; box-shadow: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="rounded"], [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] { padding: 18px; margin: 0 0 16px; border: 1px solid #e5e5e2; background: #fff; min-width: 0; box-shadow: 0 2px 5px rgb(0 0 0 / 2%); }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="rounded"] { border-radius: 16px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] { border-radius: 0; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="none"] { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="rounded"] > legend, [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] > legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="rounded"] > legend + *, [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] > legend + * { clear: both; }
[data-customer-accent="brand"] :is(.option-button, .player-primary-action, .builder-layout-primary-action) { --bux-action: var(--builder-brand-accent, var(--accent, #242628)); }
.customer-summary { padding: 16px 0; color: #242628; }
.customer-summary h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.customer-summary dl { margin: 0; display: grid; gap: 4px; }
.customer-summary dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 12px; min-height: 24px; }
.customer-summary dt { color: #626566; font-size: 12px; overflow-wrap: anywhere; }
.customer-summary dd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; font-size: 12px; text-align: end; overflow-wrap: anywhere; }
.customer-summary dd img { flex-shrink: 0; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.customer-summary dd button { padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important; width: auto !important; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: inherit; text-align: end; cursor: pointer; text-decoration: none; }
.customer-summary dd button:hover { text-decoration: underline; text-underline-offset: 3px; }
.customer-summary[data-density="detailed"] dl > div { padding-block: 8px; border-bottom: 1px solid #ebebe8; }
.customer-summary p { font-size: 13px; color: #626566; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .customer-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: start; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--bux-ink, #242628); font: inherit; font-size: 14px; font-weight: 650; box-shadow: none; cursor: pointer; }
.customer-group-toggle::after { content: "⌄"; margin-left: 10px; }
.customer-group-toggle[aria-expanded="true"]::after { content: "⌃"; }
.customer-group-body { clear: both; }
.customer-group-body[hidden] { display: none !important; }
[data-customer-style] .option-grid > [hidden], [data-customer-style] .option-view-all[hidden] { display: none !important; }
.customer-choice-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid #dededb; border-radius: 16px; background: #fff; color: #242628; overflow: auto; }
.customer-choice-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.customer-choice-dialog h2 { margin: 0 70px 20px 0; font-size: 20px; }
.customer-choice-dialog .option-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); max-height: none; overflow: visible; }
.customer-choice-dialog .option-grid > * { display: flex; }
.customer-choice-close { position: absolute; right: 12px; top: 12px; min-width: 60px; min-height: 44px; border: 1px solid #dededb; border-radius: 8px; background: #fff; color: #242628; cursor: pointer; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] :is(button, select, input):focus-visible { outline: 2px solid #242628; outline-offset: 3px; }
@media(max-width: 640px) { [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="rounded"], [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] { padding: 14px; margin-bottom: 12px; } }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-button:not(.has-media) { display: flex; align-items: center; gap: 8px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--radius-square .option-button { border-radius: 0; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--radius-small .option-button { border-radius: 6px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--radius-medium .option-button { border-radius: 10px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--radius-large .option-button { border-radius: 16px; }
.bux-family-variants details { border: 1px solid #dddeda; border-radius: 8px; padding: 10px; margin: 8px 0; }
.bux-family-variants .is-alternative { background: #f4f4f2; color: #626566; }
.bux-family-variants .is-current { border-color: #242628; }
.bux-file-diff { max-height: 300px; overflow: auto; overflow-wrap: anywhere; padding-left: 18px; }
.bux-family-tools button { margin: 4px 0; }
.bux-family-variants .is-preview-active { border-left: 3px solid #242628; }
.bux-family-variants [data-family-preview-status] { font-size: 11px; font-weight: 400; }
/* Auto Build keeps its verified mapping renderer and uses the neutral customer start. */
.auto-build-configurator-preview[data-customer-style] .auto-build-preview-panel { background: #f5f5f3; padding: 20px; }
.auto-build-configurator-preview[data-customer-style] .auto-build-preview-group { padding: 16px; border: 1px solid #e5e5e2; border-radius: 16px; background: #fff; margin-bottom: 14px; }
.auto-build-configurator-preview[data-customer-style] .auto-build-preview-group button { border: 1px solid #dededb; color: #242628; background: #fff; border-radius: 8px; min-height: 40px; }
.auto-build-configurator-preview[data-customer-style] .auto-build-preview-group button[aria-pressed="true"] { border-color: #242628; box-shadow: inset 0 0 0 1px #242628; background: #f5f5f3; }
.auto-build-configurator-preview[data-customer-style] .auto-build-preview-cta { background: #242628; color: #fff; opacity: .6; }
.auto-build-configurator-preview[data-customer-style] .customer-summary dd { display: block; }
[data-customer-style="soft_neutral_v1"] .option-button .option-label { min-width: 0; overflow-wrap: anywhere; }
/* The preset is a starting point. Normal Brand and per-choice controls still win. */
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-button {
  background: var(--bux-surface); font-weight: var(--builder-brand-body-weight, var(--configux-body-weight, 500));
  padding: calc(var(--bux-space) * 3) calc(var(--bux-space) * 3.5); min-width: 0;
}
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-button[aria-pressed="true"] { background: var(--bux-soft); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] :is(.option-group-label, .customer-summary h3, .summary-card strong) { font-weight: var(--builder-brand-heading-weight, var(--configux-heading-weight, 650)); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface]:not([data-group-surface="none"]) { background: var(--bux-surface); border-color: var(--bux-line); padding: calc(var(--bux-space) * 4); }
[data-customer-style="soft_neutral_v1"] .customer-summary { color: var(--bux-ink); }
[data-customer-style="soft_neutral_v1"] .customer-summary :is(dt, p) { color: var(--builder-brand-text-muted, var(--muted, #626566)); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--radius-brand .option-button { border-radius: var(--builder-brand-radius-medium, var(--configux-radius-medium, 9px)); }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--density-compact .option-button { padding: 8px 10px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--density-spacious .option-button { padding: 18px 20px; }
[data-customer-style="soft_neutral_v1"][data-customer-style][data-customer-style][data-customer-style] .option-group--text-center .option-button { justify-content: center; text-align: center; }
[data-customer-accent="brand"][data-customer-style][data-customer-style][data-customer-style] :is(.player-primary-action, .builder-layout-primary-action) { color: var(--builder-brand-accent-contrast, var(--accent-contrast, #fff)); }
.auto-build-2d-frame { position: relative; width: 100%; height: 100%; min-height: 260px; }
.auto-build-2d-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.auto-build-preview-group[hidden] { display: none; }
.viewer-control-button .player-control-icon { display: block; width: 20px; height: 20px; object-fit: contain; flex: none; }
/* Shared AR surface, inside Studio, standalone Player and direct embeds. */
.configux-ar-dialog { position: fixed; inset: 0; margin: auto; width: min(390px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; border: 1px solid #dde1e7; border-radius: 20px; padding: 28px; color: #20242a; background: #fff; text-align: center; box-shadow: 0 18px 70px #0003; font: 14px/1.5 system-ui, sans-serif; }
.configux-ar-dialog::backdrop { background: #161d2855; backdrop-filter: blur(3px); }
.configux-ar-dialog h2 { margin: 10px 12px 12px; font: 650 22px/1.25 system-ui, sans-serif; color: #20242a; }
.configux-ar-dialog p { margin: 0 0 18px; font: 14px/1.5 system-ui, sans-serif; color: #555f6c; }
.configux-ar-dialog .configux-ar-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; min-height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 25px; color: #555f6c; cursor: pointer; }
.configux-ar-dialog .configux-ar-start { padding: 12px 24px; border: 0; border-radius: 10px; background: #252729; color: #fff; font: 600 15px/1.3 system-ui, sans-serif; cursor: pointer; }
.configux-ar-dialog .configux-ar-start:disabled { opacity: .55; cursor: wait; }
.configux-ar-dialog a { color: #3343b6; font: 14px/1.5 system-ui, sans-serif; }
.configux-ar-qr { max-width: 300px; margin: 0 auto 14px; background: white; }
.configux-ar-qr svg { display: block; width: 100%; height: auto; }
.configux-ar-dialog button:focus-visible, .configux-ar-dialog a:focus-visible { outline: 2px solid #5262ff; outline-offset: 2px; }

/* Shared group content and card hierarchy in Builder and published Player. */
.option-group .option-group-description, .option-group .option-group-selection { margin: 0 0 12px; color: #687078; font-size: 14px; line-height: 1.45; font-weight: 400; overflow-wrap: anywhere; }
.option-group .option-group-selection { font-size: 13px; }
.option-group .option-button .option-label { font-weight: 500; font-size: 14px; line-height: 1.35; max-width: 100%; }
.option-group--cards .option-button.has-media { flex-direction: column; align-items: stretch; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--cards .option-button.has-media { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--label-beside .option-button.has-media { flex-direction: row; align-items: center; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-button .option-label { font-weight: 500; font-size: 13px; line-height: 1.35; }
.option-group--media-square .option-media { aspect-ratio: 1; height: auto; max-height: none; }
.option-group--media-portrait .option-media { aspect-ratio: 4 / 5; height: auto; max-height: none; }
.option-group--media-landscape .option-media { aspect-ratio: 4 / 3; height: auto; max-height: none; }
.option-group--media-wide .option-media { aspect-ratio: 16 / 9; height: auto; max-height: none; }
.option-group--cards.option-group--label-auto .option-label { text-align: center; }
.option-group--cards .option-button .option-media { display: block; width: 100%; }
.option-group--media-auto .option-button .option-media { aspect-ratio: 4 / 3; height: auto; max-height: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--media-square .option-media { aspect-ratio: 1; height: auto; max-height: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--media-portrait .option-media { aspect-ratio: 4 / 5; height: auto; max-height: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--media-landscape .option-media { aspect-ratio: 4 / 3; height: auto; max-height: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--media-wide .option-media { aspect-ratio: 16 / 9; height: auto; max-height: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--fit-cover .option-media { object-fit: cover; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--fit-contain .option-media { object-fit: contain; }
.option-group .option-button .option-media-placeholder { display: grid; position: relative; place-content: center; justify-items: center; gap: 6px; min-height: 48px; background: #f3f4f5; color: #858c94; border-radius: 6px; font: 400 12px/1.3 system-ui,sans-serif; }
.option-media-placeholder svg { width: 30px; height: 30px; }
.option-media-placeholder [data-add-option-image] { position: absolute; top: 4px; right: 4px; z-index: 16; box-sizing: border-box; max-width: calc(100% - 8px); padding: 2px 4px; border: 1px solid #e2e5e9; border-radius: 4px; background: #fff; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.option-media-placeholder [data-add-option-image]:hover { color: #4c5acc; text-decoration: underline; }
.option-group--label-beside .option-button.has-media { flex-direction: row; }
.option-group--label-beside .option-button .option-media { width: 42%; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--cards.option-group--text-auto .option-button .option-label { text-align: center; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--text-start .option-button .option-label { text-align: start; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--text-center .option-button .option-label { text-align: center; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--text-end .option-button .option-label { text-align: end; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches .option-button { display: flex; flex-direction: column; align-items: center; justify-content: center; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches .option-swatch { display: block; width: 38px; height: 38px; border: 1px solid #b7bec5; border-radius: 50%; overflow: hidden; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches .option-swatch svg, [data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches .option-swatch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.option-button[data-option-hover] { position: relative; overflow: visible; }
.option-hover-caption { display: none; position: absolute; z-index: 15; bottom: 6px; left: 50%; transform: translateX(-50%); box-sizing: border-box; max-width: min(230px, calc(100% - 12px)); width: max-content; padding: 7px 10px; border-radius: 7px; background: #292c30; color: #fff; font: 400 13px/1.4 system-ui,sans-serif; text-align: center; white-space: normal; overflow-wrap: anywhere; pointer-events: auto; box-shadow: 0 3px 10px #0002; }
.option-button:not([data-hover-dismissed]):focus-visible .option-hover-caption { display: block; }
@media (hover:hover) { .option-button:not([data-hover-dismissed]):hover .option-hover-caption { display: block; } }

/* Compact color choices retain a 44px hit target and an accessible name. */
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches.option-group--label-hidden .option-button { width: 44px; min-width: 0; height: 44px; min-height: 44px; padding: 5px; gap: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; box-shadow: none; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches.option-group--label-hidden .option-button[aria-pressed="true"] { border: 2px solid var(--configux-choice-selected-border, #292c30); padding: 4px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--color_swatches.option-group--label-hidden .option-swatch { width: 32px; height: 32px; flex: none; }
.option-group--color_swatches .option-hover-caption { bottom: calc(100% + 5px); max-width: 160px; padding: 6px 9px; }
/* Overlay images use the same bounded footprint in Builder and Player. */
.player-viewer-overlay-anchor > .player-layout-placement:has(.player-content-image),
.builder-overlay-corner > .builder-layout-placement:has(.builder-layout-image) { width: 160px; max-width: 100%; }
.player-viewer-overlay-anchor .player-content-image,
.builder-overlay-corner .builder-layout-image img { max-height: 140px; }
.builder-overlay-corner .builder-layout-image img { width: 100%; }
.player-viewer-overlay-anchor[data-zone-orientation="horizontal"] { flex-direction: row; align-items: flex-start; }

/* Measurements share the same compact layout in Builder and exported Player. */
.builder-player-layout .builder-layout-zone[data-zone-orientation="vertical"]:has(> .builder-layout-placement .buyer-input--measurement),
.player--composed .player-layout-zone[data-zone-orientation="vertical"]:has(> .player-layout-placement .buyer-input--measurement) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; column-gap: 12px; row-gap: 16px;
}
.builder-player-layout .builder-layout-zone[data-zone-orientation="vertical"]:has(.buyer-input--measurement) > .builder-layout-placement,
.player--composed .player-layout-zone[data-zone-orientation="vertical"]:has(.buyer-input--measurement) > .player-layout-placement { grid-column: 1 / -1; min-width: 0; }
.builder-player-layout .builder-layout-zone[data-zone-orientation="vertical"] > .builder-layout-placement:has(.buyer-input--measurement),
.player--composed .player-layout-zone[data-zone-orientation="vertical"] > .player-layout-placement:has(.buyer-input--measurement) { grid-column: auto; }
.buyer-input--measurement { min-width: 0; gap: 6px; }
.buyer-input--measurement > span:first-child { font-size: 13px; line-height: 1.35; min-height: 2.7em; overflow-wrap: anywhere; }
.buyer-input--measurement input[type="number"] { min-width: 0; width: 100%; min-height: 40px; box-sizing: border-box; }
.buyer-input--measurement input.buyer-measurement-slider { display: block; width: 100%; min-width: 0; height: 24px; min-height: 24px; padding: 0; margin: 0; border: 0; box-shadow: none; accent-color: var(--accent, #5367ff); cursor: pointer; }
.buyer-input--measurement input.buyer-measurement-slider:focus-visible { outline: 2px solid #5367ff; outline-offset: 3px; }
.buyer-measurement-slider[data-unset="true"] { opacity: .45; filter: grayscale(1); }
.buyer-input[hidden] { display: none !important; }
.player-viewer-overlay-anchor > .player-layout-placement:has(> .viewer-control-button) { flex: 0 0 auto; width: auto; }
.builder-overlay-corner > .builder-viewer-control-button { flex: 0 0 40px; width: 40px; height: 40px; pointer-events: auto; }

/* Feedback 8: one customer type scale in Builder, standalone and embeds. */
:is(.builder-player-layout, .player) { --customer-type-scale: var(--builder-brand-text-scale, var(--configux-text-scale, 1)); }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] :is(.option-group-label, .customer-group-toggle) { font-size: calc(14px * var(--customer-type-scale, 1)); line-height: 1.35; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-button .option-label { font-size: calc(13px * var(--customer-type-scale, 1)); font-weight: var(--builder-brand-body-weight, var(--configux-body-weight, 500)); }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-button { min-height: 40px; padding: 8px 10px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface] { margin-block: 0; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface]:not([data-group-surface="none"]) { padding: calc(var(--bux-space, 4px) * 3); border-radius: 10px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group[data-group-surface="square"] { border-radius: 0; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] .option-group--density-spacious .option-button { padding: 16px 18px; }
[data-customer-style][data-customer-style][data-customer-style][data-customer-style] :is(.player-primary-action, .builder-layout-primary-action) { min-height: 44px; padding: 10px 14px; font-size: calc(14px * var(--customer-type-scale, 1)); font-weight: 600; }
:is(.builder-player-layout, .player) .customer-summary { padding: 8px 0; }
:is(.builder-player-layout, .player) .customer-summary h3 { margin-bottom: 10px; font-size: calc(15px * var(--customer-type-scale, 1)); }
:is(.builder-player-layout, .player) .customer-summary :is(dt, dd) { font-size: calc(12px * var(--customer-type-scale, 1)); }
:is(.builder-player-layout, .player) .player-content-heading { font-size: calc(18px * var(--customer-type-scale, 1)); line-height: 1.35; }
:is(.builder-player-layout, .player) .buyer-input--measurement { gap: 5px; }
:is(.builder-player-layout, .player) .buyer-input--measurement > span:first-child { font-size: calc(12px * var(--customer-type-scale, 1)); font-weight: 600; line-height: 1.35; }
.buyer-input--measurement .measurement-control { display: flex; position: relative; align-items: center; min-width: 0; width: 100%; }
:is(.builder-player-layout, .player) .buyer-input--measurement .measurement-control input { width: 100%; height: 38px; min-height: 38px; margin: 0; padding: 8px 40px 8px 10px; border-radius: 7px; font-size: calc(13px * var(--customer-type-scale, 1)); font-weight: 400; -moz-appearance: textfield; }
.measurement-control input::-webkit-inner-spin-button, .measurement-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.measurement-control .measurement-unit { position: absolute; inset-inline-end: 10px; pointer-events: none; color: var(--builder-brand-text-muted, var(--muted, #687078)); font-size: calc(11px * var(--customer-type-scale, 1)); font-weight: 400; }
:is(.builder-player-layout, .player) .buyer-input .measurement-limit-hint { font-size: calc(11px * var(--customer-type-scale, 1)); font-weight: 400; }
:is(.builder-player-layout, .player) .buyer-input:has([aria-invalid="true"]) .measurement-limit-hint { color: #a43b36; }

/* Price is a semantic element, not a hero heading. All choices are display-only. */
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price.summary-card > div { display: block; }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price.summary-card {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 5px; margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--bux-line, #dededb); border-radius: 0; background: transparent; box-shadow: none; text-align: start;
}
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price strong { font-size: calc(24px * var(--customer-type-scale, 1)); line-height: 1.25; letter-spacing: -.025em; font-weight: var(--builder-brand-heading-weight, var(--configux-heading-weight, 650)); }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price[data-price-size="small"] strong { font-size: calc(18px * var(--customer-type-scale, 1)); }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price[data-price-size="large"] strong { font-size: calc(30px * var(--customer-type-scale, 1)); }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price.is-price-unset strong { font-size: calc(14px * var(--customer-type-scale, 1)); font-weight: 500; letter-spacing: 0; color: var(--builder-brand-text-muted, var(--muted, #687078)); }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price[data-price-alignment="center"] { text-align: center; }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price[data-price-alignment="end"] { text-align: end; }
:is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player):is(.builder-player-layout, .player) .customer-price[data-price-surface="panel"] { padding: 12px; border: 1px solid var(--bux-line, #dededb); border-radius: var(--builder-brand-radius-medium, var(--configux-radius-medium, 8px)); background: var(--bux-soft, #f5f5f3); }
:is(.builder-player-layout, .player) .customer-price :is(.customer-price-prefix, .customer-price-note) { display: block; color: var(--builder-brand-text-muted, var(--muted, #687078)); font-size: calc(12px * var(--customer-type-scale, 1)); line-height: 1.4; font-weight: 400; }
@media(max-width: 640px) {
  :is(.builder-player-layout, .player) .buyer-input--measurement .measurement-control input { min-height: 44px; font-size: 16px; }
}
[data-builder-device="mobile"] .builder-player-layout .buyer-input--measurement .measurement-control input { min-height: 44px; font-size: 16px; }
:is(.builder-player-layout,.player) .option-description { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--builder-brand-text-muted, var(--muted, #687078)); }
