/*
 * GAMA configurator prototype: styles.
 * Every selector is scoped under .gwc so the configurator can drop into any host theme.
 * Palette: lime plaster, bog-oak ink, fumed-oak buttons, larch for focus, drafting blue for dimensions.
 */

.gwc {
  --gwc-plaster: #ECEEE9;
  --gwc-paper: #FFFFFF;
  --gwc-sheet: #F8F9F6;
  --gwc-ink: #26211D;
  --gwc-ink-2: #55504A;
  --gwc-line: #CED2CB;
  --gwc-line-2: #E2E5DF;
  --gwc-oak: #5B3D24;
  --gwc-oak-dark: #452D19;
  --gwc-oak-tint: #F3EBE2;
  --gwc-larch: #B4602A;
  --gwc-blue: #2C5A78;
  --gwc-ok: #2F6B45;
  --gwc-ok-bg: #E6F1E8;
  --gwc-warn: #6E4600;
  --gwc-warn-bg: #FBF0D9;
  --gwc-err: #B3261E;
  --gwc-err-bg: #FBEAE8;
  --gwc-font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gwc-serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --gwc-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gwc-info: #1F4258;
  --gwc-info-bg: #E7EEF3;
  --gwc-field-line: #9C948B;
  --gwc-field-line-2: #A8A097;
  --gwc-err-dark: #8F1E17;
  --gwc-err-soft: #FFF8F7;
  --gwc-proto-line: #EBD9B3;
  --gwc-grid: rgba(44, 90, 120, .055);
  --gwc-select: rgba(180, 96, 42, .10);
  --gwc-btn-ink: #fff;
  --gwc-round: 1;          /* corner scale: 0 = square, 1 = default */
  --gwc-sticky-top: 16px;  /* offset for the sticky drawing, e.g. under a fixed site header */
  --gwc-max: 1424px;       /* content width */
  --gwc-gutter: 28px;      /* side gutter */
  --gwc-gutter-sm: 16px;   /* side gutter below 960px */
  --gwc-link: var(--gwc-blue);
  --gwc-dim: var(--gwc-blue);           /* dimension lines in the drawing */
  --gwc-btn-bg: var(--gwc-oak);         /* primary buttons */
  --gwc-btn-bg-hover: var(--gwc-oak-dark);
  --gwc-on-oak: #fff;                   /* text on oak fills: current step, count badge */
  --gwc-done-line: #D9C8B6;             /* border of completed steps */
  --gwc-proto-bg: var(--gwc-warn-bg);   /* demo notice */
  --gwc-proto-ink: var(--gwc-warn);
  --gwc-heading-weight: 400;
  --gwc-heading-tracking: normal;

  background: var(--gwc-plaster);
  color: var(--gwc-ink);
  font-family: var(--gwc-font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.gwc *, .gwc *::before, .gwc *::after { box-sizing: border-box; }
.gwc button, .gwc input, .gwc select, .gwc textarea { font: inherit; color: inherit; }
.gwc a { color: var(--gwc-link); text-underline-offset: 2px; }
.gwc p { margin: 0 0 .6em; }
.gwc :focus-visible { outline: 3px solid var(--gwc-larch); outline-offset: 2px; }
.gwc .gwc-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.gwc .gwc-muted { color: var(--gwc-ink-2); font-weight: 400; }

/* ---------- header ---------- */

.gwc .gwc-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 14px var(--gwc-gutter); background: var(--gwc-paper); border-bottom: 1px solid var(--gwc-line);
}
.gwc .gwc-brand { display: flex; flex-direction: column; line-height: 1.15; }
.gwc .gwc-wordmark { font-family: var(--gwc-serif); font-size: 22px; letter-spacing: .005em; color: var(--gwc-ink); margin: 0; }
.gwc .gwc-brand-sub { font-size: 13px; font-stretch: 88%; color: var(--gwc-ink-2); margin-top: 3px; }
.gwc .gwc-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gwc .gwc-count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: calc(12px * var(--gwc-round));
  background: var(--gwc-oak); color: var(--gwc-on-oak); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gwc .gwc-proto {
  margin: 0; padding: 9px var(--gwc-gutter); font-size: 13.5px; color: var(--gwc-proto-ink); background: var(--gwc-proto-bg);
  border-bottom: 1px solid var(--gwc-proto-line);
}
.gwc .gwc-proto a { color: var(--gwc-link); font-weight: 600; }

/* ---------- embedded in a host site (root has data-gwc-embed) ---------- */
/* The demo notice and the controls share one row, aligned to the content width. */

.gwc.gwc--embed { background: transparent; min-height: 0; }
.gwc.gwc--embed .gwc-app {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center;
  max-width: calc(var(--gwc-max) + 2 * var(--gwc-gutter)); margin: 0 auto; padding: 0 var(--gwc-gutter);
}
.gwc.gwc--embed .gwc-brand { display: none; }
.gwc.gwc--embed .gwc-head { grid-column: 2; grid-row: 1; padding: 0; background: transparent; border: 0; }
.gwc.gwc--embed .gwc-proto {
  grid-column: 1; grid-row: 1; margin: 0; padding: 10px 14px;
  border: 1px solid var(--gwc-proto-line); border-radius: calc(8px * var(--gwc-round));
}
.gwc.gwc--embed .gwc-main { grid-column: 1 / -1; max-width: none; margin: 0; padding: 6px 0 0; }
@media (max-width: 959px) {
  .gwc.gwc--embed .gwc-app { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 var(--gwc-gutter-sm); }
  .gwc.gwc--embed .gwc-head { grid-column: 1; grid-row: 1; }
  .gwc.gwc--embed .gwc-proto { grid-column: 1; grid-row: 2; }
  .gwc.gwc--embed .gwc-main { padding: 4px 0 0; }
}

/* ---------- segmented control ---------- */

.gwc .gwc-seg { display: inline-flex; padding: 3px; border-radius: calc(8px * var(--gwc-round)); background: var(--gwc-plaster); border: 1px solid var(--gwc-line); }
.gwc .gwc-seg-opt { position: relative; }
.gwc .gwc-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gwc .gwc-seg-opt span {
  display: block; padding: 6px 12px; border-radius: calc(6px * var(--gwc-round)); font-size: 13.5px; font-weight: 600; color: var(--gwc-ink-2);
  white-space: nowrap; cursor: pointer;
}
.gwc .gwc-seg-opt input:checked + span { background: var(--gwc-paper); color: var(--gwc-ink); box-shadow: 0 1px 2px rgba(38, 33, 29, .18); }
.gwc .gwc-seg-opt input:focus-visible + span { outline: 3px solid var(--gwc-larch); outline-offset: 1px; }
.gwc .gwc-seg--wide { display: flex; margin-bottom: 6px; }
.gwc .gwc-seg--wide .gwc-seg-opt { flex: 1; text-align: center; }
.gwc .gwc-seg--wide .gwc-seg-opt span { padding: 9px 12px; font-size: 14.5px; }

/* ---------- buttons ---------- */

.gwc .gwc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px;
  border: 1.5px solid var(--gwc-btn-bg); border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-btn-bg); color: var(--gwc-btn-ink);
  font-size: 14.5px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.gwc .gwc-btn:hover { background: var(--gwc-btn-bg-hover); border-color: var(--gwc-btn-bg-hover); }
.gwc .gwc-btn--ghost { background: transparent; color: var(--gwc-oak); border-color: var(--gwc-oak); }
.gwc .gwc-btn--ghost:hover { background: var(--gwc-oak-tint); color: var(--gwc-oak-dark); border-color: var(--gwc-oak-dark); }
.gwc .gwc-btn--quiet { background: var(--gwc-paper); color: var(--gwc-ink); border-color: var(--gwc-line); }
.gwc .gwc-btn--quiet:hover { background: var(--gwc-plaster); border-color: var(--gwc-ink-2); }
.gwc .gwc-btn--text {
  min-height: 0; padding: 4px 2px; border: 0; background: none; color: var(--gwc-link);
  text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: normal; text-align: left;
}
.gwc .gwc-btn--text:hover { background: none; color: var(--gwc-ink); }
.gwc .gwc-btn--danger { color: var(--gwc-err); }
.gwc .gwc-btn--icon { width: 44px; padding: 0; font-size: 20px; }

/* ---------- main layout ---------- */

.gwc .gwc-main {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(380px, 1fr); gap: 24px; align-items: start;
  max-width: calc(var(--gwc-max) + 2 * var(--gwc-gutter)); margin: 0 auto; padding: 24px var(--gwc-gutter) 40px;
}
.gwc .gwc-stage { position: sticky; top: var(--gwc-sticky-top); min-width: 0; }
.gwc .gwc-sheet {
  background-color: var(--gwc-sheet);
  background-image:
    linear-gradient(var(--gwc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--gwc-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--gwc-line); border-radius: calc(3px * var(--gwc-round));
  box-shadow: 0 1px 0 #fff inset, 0 12px 28px -22px rgba(38, 33, 29, .45);
}
.gwc .gwc-drawing { height: clamp(320px, 60vh, 640px); padding: 18px 18px 6px; }
.gwc .gwc-drawing .gwc-svg { display: block; width: 100%; height: 100%; }
.gwc .gwc-titleblock {
  display: grid; grid-template-columns: 1.4fr 1.1fr 1.3fr 1.3fr; margin: 0; border-top: 1.5px solid var(--gwc-ink);
  background: rgba(255, 255, 255, .7);
}
.gwc .gwc-titleblock > div { padding: 7px 12px 9px; border-left: 1px solid var(--gwc-line); min-width: 0; }
.gwc .gwc-titleblock > div:first-child { border-left: 0; }
.gwc .gwc-titleblock dt { font-size: 11.5px; font-stretch: 80%; color: var(--gwc-ink-2); letter-spacing: .01em; }
.gwc .gwc-titleblock dd {
  margin: 1px 0 0; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gwc .gwc-stage-hint { margin: 10px 2px 0; font-size: 13px; color: var(--gwc-ink-2); }

/* drawing */
.gwc .gwc-svg text { font-family: var(--gwc-font); }
.gwc .gwc-svg-dim { fill: var(--gwc-dim); font-stretch: 82%; font-weight: 500; font-variant-numeric: tabular-nums; }
.gwc .gwc-svg-label { font-stretch: 85%; font-weight: 500; }
.gwc .gwc-svg-num { font-weight: 700; }
.gwc .gwc-svg-dimline { stroke: var(--gwc-dim); }
.gwc .gwc-svg-badge.is-sel { fill: var(--gwc-larch); }
.gwc .gwc-svg-cap { font-stretch: 85%; font-weight: 500; letter-spacing: .01em; }
.gwc .gwc-pane { cursor: pointer; outline: none; }
.gwc .gwc-pane .gwc-pane-hit { transition: fill .12s; }
.gwc .gwc-pane:hover .gwc-pane-hit { fill: var(--gwc-select); }
.gwc .gwc-pane:focus-visible .gwc-pane-hit {
  fill: var(--gwc-select); stroke: var(--gwc-larch); stroke-width: 3px; vector-effect: non-scaling-stroke;
}

/* ---------- panel and steps ---------- */

.gwc .gwc-panel {
  min-width: 0; background: var(--gwc-paper); border: 1px solid var(--gwc-line); border-radius: calc(14px * var(--gwc-round));
  box-shadow: 0 14px 30px -26px rgba(38, 33, 29, .5);
}
.gwc .gwc-steps { border-bottom: 1px solid var(--gwc-line-2); }
.gwc .gwc-steps ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 14px 18px 12px; list-style: none; }
.gwc .gwc-stepbtn {
  position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px 4px 5px;
  border: 1px solid var(--gwc-line); border-radius: calc(18px * var(--gwc-round)); background: var(--gwc-paper); color: var(--gwc-ink-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.gwc .gwc-stepbtn:hover { border-color: var(--gwc-ink-2); color: var(--gwc-ink); }
.gwc .gwc-stepnum {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.gwc .gwc-stepbtn.is-done { color: var(--gwc-oak); border-color: var(--gwc-done-line); }
.gwc .gwc-stepbtn.is-current { background: var(--gwc-oak); border-color: var(--gwc-oak); color: var(--gwc-on-oak); }
.gwc .gwc-stepbtn.has-error::after {
  content: ''; position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gwc-err); border: 2px solid var(--gwc-paper);
}

.gwc .gwc-step { padding: 22px 24px 30px; }
.gwc .gwc-h2 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--gwc-serif); font-weight: var(--gwc-heading-weight); letter-spacing: var(--gwc-heading-tracking); font-size: 26px; line-height: 1.15; color: var(--gwc-ink);
}
.gwc .gwc-h2:focus { outline: none; }
.gwc .gwc-h2:focus-visible { outline: 3px solid var(--gwc-larch); outline-offset: 4px; }
.gwc .gwc-h2-num {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--gwc-larch); color: var(--gwc-oak); font-family: var(--gwc-font); font-size: 15px; font-weight: 700;
}
.gwc .gwc-h3 { margin: 22px 0 8px; font-family: var(--gwc-serif); font-weight: var(--gwc-heading-weight); letter-spacing: var(--gwc-heading-tracking); font-size: 19px; }
.gwc .gwc-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.gwc .gwc-legend { padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--gwc-ink); }
.gwc .gwc-help { margin: -2px 0 10px; font-size: 13.5px; color: var(--gwc-ink-2); }
.gwc .gwc-foot { margin: 6px 0 14px; font-size: 13px; color: var(--gwc-ink-2); max-width: 62ch; }
.gwc .gwc-editing {
  margin: -6px 0 16px; padding: 9px 12px; border-radius: calc(8px * var(--gwc-round)); background: var(--gwc-info-bg); color: var(--gwc-info); font-size: 14px;
}

/* ---------- options ---------- */

.gwc .gwc-opts { display: grid; gap: 8px; }
.gwc .gwc-opts--cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gwc .gwc-opts--tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.gwc .gwc-opts--swatches { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.gwc .gwc-opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }

.gwc .gwc-opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.gwc .gwc-opt-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.gwc .gwc-opt-body {
  display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gwc-line); border-radius: calc(10px * var(--gwc-round)); background: var(--gwc-paper);
  transition: border-color .12s, background-color .12s;
}
.gwc .gwc-opt:hover .gwc-opt-body { border-color: var(--gwc-field-line); }
.gwc .gwc-opt-input:checked + .gwc-opt-body { border-color: var(--gwc-oak); background: var(--gwc-oak-tint); box-shadow: inset 0 0 0 1px var(--gwc-oak); }
.gwc .gwc-opt-input:focus-visible + .gwc-opt-body { outline: 3px solid var(--gwc-larch); outline-offset: 2px; }
.gwc .gwc-opt.is-disabled { cursor: not-allowed; }
.gwc .gwc-opt.is-disabled .gwc-opt-body { background: #F6F6F4; border-style: dashed; }
.gwc .gwc-opt.is-disabled .gwc-opt-title, .gwc .gwc-opt.is-disabled .gwc-opt-desc, .gwc .gwc-opt.is-disabled .gwc-opt-art { opacity: .6; }

/* radio and checkbox marks on list options */
.gwc .gwc-opts--list .gwc-opt-body::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid #8C847B; background: var(--gwc-paper);
}
.gwc .gwc-opts--list .gwc-opt-input[type="checkbox"] + .gwc-opt-body::before { border-radius: calc(4px * var(--gwc-round)); }
.gwc .gwc-opts--list .gwc-opt-input:checked + .gwc-opt-body::before { border-color: var(--gwc-oak); background: radial-gradient(circle, var(--gwc-oak) 0 4.5px, var(--gwc-paper) 5px); }
.gwc .gwc-opts--list .gwc-opt-input[type="checkbox"]:checked + .gwc-opt-body::before {
  background: var(--gwc-oak) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.gwc .gwc-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gwc .gwc-opt-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.gwc .gwc-opt-desc { font-size: 13.5px; color: var(--gwc-ink-2); line-height: 1.4; }
.gwc .gwc-opt-note { font-size: 12.5px; color: var(--gwc-ink-2); font-stretch: 92%; margin-top: 3px; }
.gwc .gwc-opt-note.is-warn { color: var(--gwc-err); font-weight: 600; }
.gwc .gwc-opt-price {
  flex: none; margin-left: auto; padding-left: 8px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--gwc-ink);
}
.gwc .gwc-opt-input:checked + .gwc-opt-body .gwc-opt-price { color: var(--gwc-oak); }
.gwc .gwc-badge {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: calc(10px * var(--gwc-round)); vertical-align: 1px;
  background: var(--gwc-info-bg); color: var(--gwc-info); font-size: 11.5px; font-weight: 700;
}
.gwc .gwc-specs { margin: 6px 0 2px; padding-left: 16px; font-size: 13px; color: var(--gwc-ink); }
.gwc .gwc-specs li { margin: 1px 0; }
.gwc .gwc-opt-art { flex: none; display: block; }
.gwc .gwc-opt-art .gwc-svg { display: block; width: 100%; height: 100%; }
.gwc .gwc-opts--list .gwc-opt-art { width: 44px; height: 56px; }

/* product cards */
.gwc .gwc-opt--card .gwc-opt-body { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; }
.gwc .gwc-opt--card .gwc-opt-art { height: 104px; padding: 6px; border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-sheet); }
.gwc .gwc-opt--card .gwc-opt-price { margin: 4px 0 0; padding: 0; }

/* layout tiles */
.gwc .gwc-opt--tile .gwc-opt-body { flex-direction: column; align-items: stretch; gap: 6px; padding: 9px; }
.gwc .gwc-opt--tile .gwc-opt-art { height: 70px; }
.gwc .gwc-opt--tile .gwc-opt-title { font-size: 13px; font-weight: 600; }
.gwc .gwc-opt--tile .gwc-opt-price { margin: 0; padding: 0; font-size: 12.5px; }

/* swatches */
.gwc .gwc-opt--swatch .gwc-opt-body { align-items: center; gap: 10px; padding: 9px 11px; }
.gwc .gwc-swatch {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(38, 33, 29, .28), 0 0 0 2px #fff;
}
.gwc .gwc-opt--swatch .gwc-opt-title { font-size: 14px; }
.gwc .gwc-opt--swatch .gwc-opt-desc { font-size: 12.5px; }
.gwc .gwc-opt--swatch .gwc-opt-price { font-size: 12.5px; padding-left: 4px; }

/* chips */
.gwc .gwc-opt--chip .gwc-opt-body { padding: 7px 13px; border-radius: calc(8px * var(--gwc-round)); gap: 6px; align-items: baseline; }
.gwc .gwc-opt--chip .gwc-opt-text { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gwc .gwc-opt--chip .gwc-opt-title { font-size: 14px; }
.gwc .gwc-opt--chip .gwc-opt-desc { font-size: 12.5px; }
.gwc .gwc-opt--chip.is-flagged .gwc-opt-body { border-color: var(--gwc-err); border-style: dashed; }

/* ---------- messages ---------- */

.gwc .gwc-msg { margin: 8px 0; padding: 10px 12px; border-radius: calc(8px * var(--gwc-round)); font-size: 14px; border-left: 4px solid; }
.gwc .gwc-msg--error { background: var(--gwc-err-bg); color: var(--gwc-err); border-color: var(--gwc-err); }
.gwc .gwc-msg--warn { background: var(--gwc-warn-bg); color: var(--gwc-warn); border-color: #C99A3A; }
.gwc .gwc-msg--ok { background: var(--gwc-ok-bg); color: var(--gwc-ok); border-color: var(--gwc-ok); }
.gwc .gwc-msg .gwc-btn--text { padding: 0; margin-left: 4px; color: inherit; }
.gwc .gwc-empty { padding: 18px; border: 1.5px dashed var(--gwc-line); border-radius: calc(10px * var(--gwc-round)); color: var(--gwc-ink-2); }
.gwc .gwc-empty p:last-child { margin: 0; }

/* ---------- fields ---------- */

.gwc .gwc-field { margin: 0 0 14px; min-width: 0; }
.gwc .gwc-field > label, .gwc .gwc-label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14.5px; }
.gwc .gwc-field input[type="text"], .gwc .gwc-field input[type="email"], .gwc .gwc-field input[type="tel"],
.gwc .gwc-field input[type="number"], .gwc .gwc-field select, .gwc .gwc-field textarea, .gwc .gwc-share-url {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--gwc-field-line); border-radius: calc(7px * var(--gwc-round));
  background: var(--gwc-paper); font-size: 16px; font-variant-numeric: tabular-nums;
}
.gwc .gwc-field input:focus-visible, .gwc .gwc-field select:focus-visible, .gwc .gwc-field textarea:focus-visible { outline-offset: 0; border-color: var(--gwc-oak); }
.gwc .gwc-field input[readonly] { background: var(--gwc-plaster); color: var(--gwc-ink-2); }
.gwc .gwc-field.is-invalid input, .gwc .gwc-field [aria-invalid="true"] { border-color: var(--gwc-err); background: var(--gwc-err-soft); }
.gwc .gwc-input-unit { display: flex; align-items: center; gap: 8px; }
.gwc .gwc-input-unit span { color: var(--gwc-ink-2); font-size: 14px; }
.gwc .gwc-size { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gwc .gwc-size input[type="number"] { font-size: 22px; font-weight: 600; min-height: 52px; }
.gwc .gwc-field--narrow { max-width: 320px; }
.gwc .gwc-field--tight { margin-bottom: 8px; }
.gwc .gwc-adjust { margin: 0 0 16px; border: 1px solid var(--gwc-line); border-radius: calc(10px * var(--gwc-round)); }
.gwc .gwc-adjust summary { padding: 11px 14px; font-weight: 600; cursor: pointer; }
.gwc .gwc-adjust-body { padding: 4px 14px 12px; }
.gwc .gwc-colw { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 12px; }
.gwc .gwc-check {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--gwc-line); border-radius: calc(10px * var(--gwc-round)); cursor: pointer;
}
.gwc .gwc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gwc-oak); flex: none; }
.gwc .gwc-check > span:first-of-type { font-weight: 600; }
.gwc .gwc-qty { display: flex; align-items: center; gap: 6px; }
.gwc .gwc-qty input[type="number"] { width: 84px; text-align: center; }
.gwc .gwc-key { display: flex; gap: 10px; align-items: flex-start; }
.gwc .gwc-key-art { flex: none; width: 34px; color: var(--gwc-ink); }
.gwc .gwc-key-art svg { display: block; width: 100%; }

/* ---------- review ---------- */

.gwc .gwc-review-fields { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 16px; }
.gwc .gwc-breakdown, .gwc .gwc-totals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.gwc .gwc-breakdown th, .gwc .gwc-breakdown td, .gwc .gwc-totals th, .gwc .gwc-totals td {
  padding: 8px 0; border-bottom: 1px solid var(--gwc-line-2); text-align: left; vertical-align: top; font-size: 14px;
}
.gwc .gwc-breakdown th { font-weight: 600; }
.gwc .gwc-breakdown td, .gwc .gwc-totals td { text-align: right; white-space: nowrap; padding-left: 12px; }
.gwc .gwc-detail { display: block; font-weight: 400; font-size: 12.5px; color: var(--gwc-ink-2); }
.gwc .gwc-breakdown tfoot th, .gwc .gwc-breakdown tfoot td, .gwc .gwc-totals tfoot th, .gwc .gwc-totals tfoot td {
  border-bottom: 0; border-top: 1.5px solid var(--gwc-ink); font-size: 16px; font-weight: 700;
}
.gwc .gwc-totals th { font-weight: 500; }
.gwc .gwc-spec { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; font-size: 14px; }
.gwc .gwc-spec > div { display: contents; }
.gwc .gwc-spec dt, .gwc .gwc-spec dd { padding: 7px 0; border-bottom: 1px solid var(--gwc-line-2); }
.gwc .gwc-spec dt { color: var(--gwc-ink-2); padding-right: 16px; }
.gwc .gwc-spec dd { margin: 0; }
.gwc .gwc-spec ul { margin: 0; padding-left: 16px; }

/* ---------- sticky price bar ---------- */

.gwc .gwc-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 12px 20px; background: var(--gwc-paper); border-top: 1px solid var(--gwc-line);
  border-radius: 0 0 calc(14px * var(--gwc-round)) calc(14px * var(--gwc-round)); box-shadow: 0 -10px 18px -16px rgba(38, 33, 29, .55);
}
.gwc .gwc-bar-price { display: flex; flex-direction: column; min-width: 0; }
.gwc .gwc-bar-amount { font-size: 25px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gwc .gwc-bar-meta { font-size: 12.5px; color: var(--gwc-ink-2); }
.gwc .gwc-bar-problems {
  align-self: flex-start; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--gwc-err);
  font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.gwc .gwc-bar-nav { display: flex; gap: 8px; margin-left: auto; }

/* ---------- drawer and modals ---------- */

.gwc dialog { color: var(--gwc-ink); font-family: var(--gwc-font); }
.gwc dialog::backdrop { background: rgba(38, 33, 29, .45); }
.gwc .gwc-drawer {
  margin: 0 0 0 auto; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  padding: 0; border: 0; background: var(--gwc-paper); box-shadow: -18px 0 40px -20px rgba(38, 33, 29, .45);
}
.gwc .gwc-drawer[open] { animation: gwc-slide .18s ease-out; }
.gwc .gwc-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.gwc .gwc-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--gwc-line-2); }
.gwc .gwc-drawer-head .gwc-h2 { margin: 0; }
.gwc .gwc-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.gwc .gwc-drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--gwc-line-2); background: var(--gwc-sheet); }
.gwc .gwc-items { margin: 0 0 18px; padding: 0; list-style: none; }
.gwc .gwc-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gwc-line-2);
}
.gwc .gwc-item.is-editing { background: #F1F5F8; margin: 0 -10px; padding: 14px 10px; border-radius: calc(8px * var(--gwc-round)); }
.gwc .gwc-item-art { height: 84px; padding: 5px; border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-sheet); border: 1px solid var(--gwc-line-2); }
.gwc .gwc-item-art .gwc-svg { width: 100%; height: 100%; display: block; }
.gwc .gwc-item-title { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.gwc .gwc-item-n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gwc-larch);
  font-size: 12px; color: var(--gwc-oak);
}
.gwc .gwc-item-meta { margin: 0 0 4px; font-size: 13px; color: var(--gwc-ink-2); }
.gwc .gwc-item-flag { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--gwc-info); }
.gwc .gwc-item-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.gwc .gwc-item-actions .gwc-btn--text { font-size: 13.5px; }
.gwc .gwc-item-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gwc .gwc-item-price span { display: block; font-weight: 400; font-size: 12.5px; color: var(--gwc-ink-2); }
.gwc .gwc-item .gwc-msg { padding: 6px 8px; font-size: 12.5px; }
.gwc .gwc-mode { margin-bottom: 10px; }

.gwc .gwc-modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: calc(14px * var(--gwc-round));
  background: var(--gwc-paper); box-shadow: 0 30px 60px -30px rgba(38, 33, 29, .6);
}
.gwc .gwc-modal-inner { padding: 24px; }
.gwc .gwc-modal:has(.gwc-modal-inner--wide) { width: min(760px, calc(100% - 32px)); }
.gwc .gwc-modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.gwc .gwc-share-url { font-family: var(--gwc-mono); font-size: 13px; }
.gwc .gwc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gwc .gwc-optional { font-weight: 400; color: var(--gwc-ink-2); }
.gwc .gwc-field-error { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--gwc-err); }
.gwc .gwc-field-error:empty { display: none; }
.gwc .gwc-form .gwc-check { margin-top: 4px; }
.gwc .gwc-result:focus { outline: none; }
.gwc .gwc-result-flag {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-ink); color: #fff;
  font-weight: 700; font-size: 15px;
}
.gwc .gwc-payload {
  max-height: 340px; overflow: auto; margin: 10px 0 0; padding: 12px 14px; border-radius: calc(8px * var(--gwc-round)); border: 1px solid var(--gwc-line);
  background: var(--gwc-sheet); font-family: var(--gwc-mono); font-size: 12px; line-height: 1.45; white-space: pre;
}

.gwc .gwc-toast {
  position: fixed; left: 28px; bottom: 24px; z-index: 50; display: none; align-items: center; gap: 14px;
  max-width: min(520px, calc(100% - 32px)); padding: 12px 16px; border-radius: calc(10px * var(--gwc-round));
  background: var(--gwc-ink); color: #fff; font-size: 14px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6);
}
.gwc .gwc-toast.is-on { display: flex; }
.gwc .gwc-toast .gwc-btn--text { color: #F3C9A4; padding: 0; }

@keyframes gwc-slide { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
/* ---------- adapt to the space the configurator actually has ----------
   Embedded in a narrower site column, the drawing and the steps panel can be
   narrow on a wide screen, so these follow the container, not the viewport. */

.gwc .gwc-stage { container: gwc-stage / inline-size; }
.gwc .gwc-panel { container: gwc-panel / inline-size; }
@container gwc-stage (max-width: 640px) {
  .gwc .gwc-titleblock { grid-template-columns: 1fr 1fr; }
  .gwc .gwc-titleblock > div:nth-child(3) { border-left: 0; }
  .gwc .gwc-titleblock > div:nth-child(n+3) { border-top: 1px solid var(--gwc-line); }
}
@container gwc-panel (max-width: 560px) {
  .gwc .gwc-steps ol { gap: 5px; padding: 12px 16px 10px; }
  .gwc .gwc-stepbtn { gap: 6px; min-height: 34px; padding: 3px 10px 3px 4px; font-size: 13px; }
  .gwc .gwc-stepnum { width: 24px; height: 24px; font-size: 12px; }
  .gwc .gwc-step { padding: 20px 20px 26px; }
  .gwc .gwc-opts--cards { grid-template-columns: 1fr; }
  .gwc .gwc-opt--card .gwc-opt-body { flex-direction: row; align-items: center; }
  .gwc .gwc-opt--card .gwc-opt-art { width: 84px; height: 84px; flex: none; }
  .gwc .gwc-opt--card .gwc-opt-price { margin-left: auto; }
}
@container gwc-panel (min-width: 420px) and (max-width: 560px) {
  /* nine steps as a tidy 3 x 3 grid rather than 4 + 4 + 1 */
  .gwc .gwc-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gwc .gwc-steps li { display: flex; min-width: 0; }
  .gwc .gwc-stepbtn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gwc .gwc-drawer[open] { animation: none; }
  .gwc * { transition: none !important; }
}

/* ---------- print ---------- */

.gwc .gwc-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  .gwc { background: #fff; min-height: 0; font-size: 10.5pt; }
  .gwc .gwc-app, .gwc dialog { display: none !important; }
  .gwc .gwc-print { display: block !important; color: #000; }
  .gwc .gwc-print-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 8px; border-bottom: 1.5pt solid #000; }
  .gwc .gwc-print-head h1 { margin: 2px 0 0; font-family: var(--gwc-serif); font-weight: 400; font-size: 20pt; }
  .gwc .gwc-print-head p { margin: 0; text-align: right; }
  .gwc .gwc-print-head .gwc-wordmark { text-align: left; font-size: 12pt; }
  .gwc .gwc-print-demo { margin: 8px 0 12px; padding: 6px 10px; border: 1pt solid #000; font-weight: 600; }
  .gwc .gwc-print-item { display: grid; grid-template-columns: 72mm 1fr; gap: 8mm; padding: 6mm 0; border-bottom: .5pt solid #999; break-inside: avoid; }
  .gwc .gwc-print-art .gwc-svg { width: 100%; height: auto; max-height: 82mm; }
  .gwc .gwc-print-spec h2 { margin: 0 0 4px; font-size: 13pt; }
  .gwc .gwc-print-spec dl { display: grid; grid-template-columns: max-content 1fr; gap: 1px 10px; margin: 0; font-size: 9.5pt; }
  .gwc .gwc-print-spec dt { color: #444; }
  .gwc .gwc-print-spec dd { margin: 0; }
  .gwc .gwc-print-price { margin: 6px 0 0; font-size: 11pt; }
  .gwc .gwc-print-totals { margin: 6mm 0 0 auto; border-collapse: collapse; min-width: 90mm; break-inside: avoid; }
  .gwc .gwc-print-totals th, .gwc .gwc-print-totals td { padding: 3px 0; text-align: left; font-weight: 400; }
  .gwc .gwc-print-totals td { text-align: right; padding-left: 16px; }
  .gwc .gwc-print-totals .is-total th, .gwc .gwc-print-totals .is-total td { border-top: 1.5pt solid #000; font-weight: 700; padding-top: 5px; }
  .gwc .gwc-print-foot { margin-top: 8mm; font-size: 8.5pt; color: #444; word-break: break-all; }
}

/* ---------- small screens ---------- */

@media (max-width: 1100px) {
  .gwc .gwc-main { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); }
}
@media (max-width: 959px) {
  .gwc .gwc-head { padding: 12px var(--gwc-gutter-sm); }
  .gwc .gwc-proto { padding: 8px var(--gwc-gutter-sm); }
  .gwc .gwc-main { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px var(--gwc-gutter-sm) 24px; }
  .gwc .gwc-stage { position: static; }
  .gwc .gwc-drawing { height: clamp(240px, 42vh, 380px); padding: 10px 10px 4px; }
  .gwc .gwc-titleblock { grid-template-columns: 1fr 1fr; }
  .gwc .gwc-titleblock > div:nth-child(3) { border-left: 0; }
  .gwc .gwc-titleblock > div:nth-child(n+3) { border-top: 1px solid var(--gwc-line); }
  .gwc .gwc-steps ol { flex-wrap: nowrap; overflow-x: auto; padding: 12px 14px; scrollbar-width: thin; }
  .gwc .gwc-step { padding: 18px 16px 24px; }
  .gwc .gwc-h2 { font-size: 22px; }
  .gwc .gwc-bar { padding: 10px 14px; border-radius: 0 0 calc(12px * var(--gwc-round)) calc(12px * var(--gwc-round)); }
  .gwc .gwc-panel { border-radius: calc(12px * var(--gwc-round)); }
  .gwc .gwc-toast { left: 16px; right: 16px; bottom: auto; top: 12px; max-width: none; }
}
@media (max-width: 560px) {
  .gwc .gwc-wordmark { font-size: 19px; }
  .gwc .gwc-head-actions { width: 100%; justify-content: space-between; }
  .gwc .gwc-opts--cards { grid-template-columns: 1fr; }
  .gwc .gwc-opt--card .gwc-opt-body { flex-direction: row; align-items: center; }
  .gwc .gwc-opt--card .gwc-opt-art { width: 84px; height: 84px; flex: none; }
  .gwc .gwc-opt--card .gwc-opt-price { margin-left: auto; }
  .gwc .gwc-opts--swatches { grid-template-columns: 1fr 1fr; }
  .gwc .gwc-opt--swatch .gwc-opt-body { flex-wrap: wrap; }
  .gwc .gwc-opt--swatch .gwc-opt-price { width: 100%; padding-left: 40px; margin: 0; }
  .gwc .gwc-review-fields, .gwc .gwc-form-grid { grid-template-columns: 1fr; }
  .gwc .gwc-bar-amount { font-size: 21px; }
  .gwc .gwc-bar-nav { width: 100%; }
  .gwc .gwc-bar-nav .gwc-btn { flex: 1; }
  .gwc .gwc-item { grid-template-columns: 60px minmax(0, 1fr); }
  .gwc .gwc-item-art { height: 70px; }
  .gwc .gwc-item-price { grid-column: 2; text-align: left; }
  .gwc .gwc-drawer-foot .gwc-btn { flex: 1 1 auto; }
  .gwc .gwc-modal-inner { padding: 18px 16px; }
}

/* ---------- pricing admin ---------- */

.gwc .gwc-btn--sm { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.gwc .gwc-btn--block { display: flex; width: 100%; margin: 12px 0; }
.gwc .gwc-btn--danger-ghost { color: var(--gwc-err); border-color: var(--gwc-err); }
.gwc .gwc-btn--danger-ghost:hover { background: var(--gwc-err-bg); color: var(--gwc-err); border-color: var(--gwc-err); }
.gwc .gwc-btn--danger-solid { background: var(--gwc-err); border-color: var(--gwc-err); color: #fff; }
.gwc .gwc-btn--danger-solid:hover { background: var(--gwc-err-dark); border-color: var(--gwc-err-dark); }
.gwc .gwc-file { position: relative; }
.gwc .gwc-file:focus-within { outline: 3px solid var(--gwc-larch); outline-offset: 2px; }
.gwc .gwc-admin-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  max-width: 1600px; margin: 0 auto; padding: 16px 28px 0;
}
.gwc .gwc-admin-status { margin: 0; font-size: 13.5px; color: var(--gwc-ink-2); }
.gwc .gwc-admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.gwc .gwc-admin-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start;
  max-width: 1600px; margin: 0 auto; padding: 16px 28px 48px;
}
.gwc .gwc-admin-editor { min-width: 0; background: var(--gwc-paper); border: 1px solid var(--gwc-line); border-radius: calc(14px * var(--gwc-round)); }
.gwc .gwc-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--gwc-line); }
.gwc .gwc-tab {
  position: relative; padding: 10px 12px 11px; border: 0; background: none; color: var(--gwc-ink-2); font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: calc(6px * var(--gwc-round)) calc(6px * var(--gwc-round)) 0 0; white-space: nowrap;
}
.gwc .gwc-tab:hover { color: var(--gwc-ink); background: var(--gwc-plaster); }
.gwc .gwc-tab[aria-selected="true"] { color: var(--gwc-oak); }
.gwc .gwc-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: calc(2px * var(--gwc-round)); background: var(--gwc-oak); }
.gwc .gwc-tabcount { font-size: 12px; font-weight: 500; color: var(--gwc-ink-2); font-variant-numeric: tabular-nums; }
.gwc .gwc-tabpanel { padding: 20px 22px 24px; }
.gwc .gwc-tabpanel:focus-visible { outline-offset: -3px; }
.gwc .gwc-panel-head { margin-bottom: 14px; }
.gwc .gwc-panel-head .gwc-h2 { margin-bottom: 4px; }
.gwc .gwc-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.gwc .gwc-panel-foot .gwc-help { margin: 0; }
.gwc .gwc-tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--gwc-line); border-radius: calc(10px * var(--gwc-round)); }
.gwc .gwc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gwc .gwc-table th, .gwc .gwc-table td { padding: 6px 8px; border-bottom: 1px solid var(--gwc-line-2); text-align: left; vertical-align: middle; }
.gwc .gwc-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--gwc-sheet); font-size: 12.5px; font-weight: 700; color: var(--gwc-ink-2);
  white-space: nowrap; border-bottom: 1px solid var(--gwc-line);
}
.gwc .gwc-table input[type="text"], .gwc .gwc-table input[type="number"], .gwc .gwc-table select,
.gwc .gwc-afield input[type="text"], .gwc .gwc-afield input[type="number"], .gwc .gwc-afield select, .gwc .gwc-afield textarea {
  width: 100%; min-height: 38px; padding: 6px 9px; border: 1.5px solid var(--gwc-field-line-2); border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-paper);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.gwc .gwc-table input[type="text"] { min-width: 150px; }
.gwc .gwc-table .gwc-c-number input, .gwc .gwc-table .gwc-c-money input { width: 80px; text-align: right; }
.gwc .gwc-table select { min-width: 120px; }
.gwc .gwc-table [aria-invalid="true"], .gwc .gwc-afield [aria-invalid="true"] { border-color: var(--gwc-err); background: var(--gwc-err-soft); }
.gwc .gwc-table input[type="checkbox"], .gwc .gwc-afield input[type="checkbox"], .gwc .gwc-multi input, .gwc .gwc-tchecks input {
  width: 18px; height: 18px; margin: 0; accent-color: var(--gwc-oak); vertical-align: -3px;
}
.gwc .gwc-c-on { width: 64px; text-align: center !important; }
.gwc .gwc-c-order { width: 76px; white-space: nowrap; }
.gwc .gwc-mini {
  width: 30px; height: 30px; margin-right: 3px; border: 1px solid var(--gwc-line); border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-paper);
  color: var(--gwc-ink); font-size: 15px; line-height: 1; cursor: pointer;
}
.gwc .gwc-mini:hover:not(:disabled) { border-color: var(--gwc-ink-2); background: var(--gwc-plaster); }
.gwc .gwc-mini:disabled { opacity: .35; cursor: default; }
.gwc .gwc-row.is-off td:not(.gwc-c-on):not(.gwc-c-order) { opacity: .5; }
.gwc .gwc-detailrow > td { background: var(--gwc-sheet); padding: 14px 16px 12px; }
.gwc .gwc-afields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; margin-bottom: 8px; }
.gwc .gwc-afield { min-width: 0; }
.gwc .gwc-afield--wide { grid-column: 1 / -1; }
.gwc .gwc-afield .gwc-help { margin: 4px 0 0; font-size: 12.5px; }
.gwc .gwc-flabel { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--gwc-ink); }
.gwc .gwc-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gwc .gwc-afield--bool { align-self: end; padding-bottom: 8px; }
.gwc .gwc-multi { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.gwc .gwc-multi label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.gwc .gwc-colorfield { display: inline-flex; align-items: center; gap: 8px; }
.gwc .gwc-colorfield input[type="color"] { width: 38px; height: 34px; padding: 2px; border: 1.5px solid var(--gwc-field-line-2); border-radius: calc(6px * var(--gwc-round)); background: var(--gwc-paper); cursor: pointer; }
.gwc .gwc-colorfield code { font-size: 12px; color: var(--gwc-ink-2); }
.gwc .gwc-affix { display: inline-flex; align-items: center; gap: 6px; width: 100%; }
.gwc .gwc-affix > span { color: var(--gwc-ink-2); font-size: 13px; white-space: nowrap; }
.gwc .gwc-afield .gwc-affix input { flex: 1; min-width: 0; }

.gwc .gwc-admin-test { position: sticky; top: 16px; min-width: 0; }
.gwc .gwc-test { background: var(--gwc-paper); border: 1px solid var(--gwc-line); border-radius: calc(14px * var(--gwc-round)); padding: 18px 18px 8px; max-height: calc(100vh - 32px); overflow-y: auto; }
.gwc .gwc-test-head .gwc-h2 { font-size: 21px; margin-bottom: 2px; }
.gwc .gwc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gwc .gwc-test-art {
  height: 230px; padding: 8px; border: 1px solid var(--gwc-line); border-radius: calc(3px * var(--gwc-round)); background-color: var(--gwc-sheet);
  background-image: linear-gradient(var(--gwc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--gwc-grid) 1px, transparent 1px);
  background-size: 18px 18px;
}
.gwc .gwc-test-art .gwc-svg { width: 100%; height: 100%; display: block; }
.gwc .gwc-test-price { margin: 12px 0 6px; font-size: 13.5px; }
.gwc .gwc-test-amount { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gwc .gwc-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 10px; }
.gwc .gwc-tpane { display: grid; grid-template-columns: 1fr 96px; gap: 10px; margin-bottom: 8px; }
.gwc .gwc-tpane > :only-child { grid-column: 1 / -1; }
.gwc .gwc-tchecks { margin: 8px 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.gwc .gwc-tchecks legend { width: 100%; padding: 0; }
.gwc .gwc-tchecks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

@media (max-width: 1180px) {
  .gwc .gwc-admin-main { grid-template-columns: minmax(0, 1fr); }
  .gwc .gwc-admin-test { position: static; }
  .gwc .gwc-test { max-height: none; }
}
@media (max-width: 959px) {
  .gwc .gwc-admin-bar { padding: 12px 16px 0; }
  .gwc .gwc-admin-main { padding: 12px 16px 32px; }
  .gwc .gwc-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .gwc .gwc-tabpanel { padding: 16px 14px 20px; }
}
@media (max-width: 560px) {
  .gwc .gwc-tgrid { grid-template-columns: 1fr; }
  .gwc .gwc-admin-tools .gwc-btn { flex: 1 1 auto; }
}
.gwc .gwc-bar > [data-part="price"] { min-width: 0; }
.gwc .gwc-breakdown tfoot tr.gwc-sub th, .gwc .gwc-breakdown tfoot tr.gwc-sub td { font-size: 14px; font-weight: 500; }
.gwc .gwc-breakdown tfoot tr.gwc-sub + tr.gwc-sub th, .gwc .gwc-breakdown tfoot tr.gwc-sub + tr.gwc-sub td { border-top: 0; }
.gwc .gwc-breakdown tfoot tr:not(.gwc-sub) + tr th, .gwc .gwc-breakdown tfoot tr:not(.gwc-sub) + tr td { border-top: 0; font-size: 14px; }
@media (max-width: 1240px) {
  .gwc .gwc-titleblock { grid-template-columns: 1fr 1fr; }
  .gwc .gwc-titleblock > div:nth-child(3) { border-left: 0; }
  .gwc .gwc-titleblock > div:nth-child(n+3) { border-top: 1px solid var(--gwc-line); }
}
