:root {
  --gl-red: #da251d;
  --gl-red-dark: #b91515;
  --gl-orange: #e86c00;
  --gl-dark: #333333;
  --gl-topbar: #474747;
  --gl-text: #5f6368;
  --gl-muted: #85878d;
  --gl-line: #c4c4c7;
  --gl-soft: #f5f5f7;
  --gl-paper: #ffffff;
  --gl-ink: #1d1d1f;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  --corner-cut: 18px;
  --corner-accent-width: 4px;
  --corner-accent-opacity: 0.58;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gl-text);
  background: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--gl-paper);
  border-bottom: 1px solid var(--gl-line);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 4px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.88);
  background: var(--gl-topbar);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
}

.brand img {
  display: block;
  width: 93px;
  max-width: 38vw;
  height: 43px;
  object-fit: fill;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--gl-dark);
  text-decoration: none;
  border-radius: 999px;
}

.nav-links a:hover {
  color: #fff;
  background: var(--gl-red);
}

.app-shell {
  --review-reserve: 388px;
  --summary-opacity: 1;
  --summary-shift: 0px;
  --summary-pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  width: min(1440px, calc(100vw - 36px));
  margin: 32px auto;
  align-items: start;
  overflow-x: clip;
}

.workbench {
  grid-column: 1;
  min-width: 0;
}

.workbench-head {
  padding: clamp(28px, 5vw, 54px);
  background: var(--gl-paper);
  border: 1px solid var(--gl-line);
  border-radius: 28px;
}

.eyebrow,
.stage-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--gl-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--gl-ink);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
  padding: 6px;
  background: var(--gl-soft);
  border-radius: 999px;
}

.mode-button {
  min-height: 48px;
  color: var(--gl-dark);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.mode-button.active {
  color: #fff;
  background: var(--gl-red);
  box-shadow: 0 8px 20px rgba(218, 37, 29, 0.24);
}

.visual-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: 270px;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--gl-soft);
  border-radius: 28px;
}

.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: var(--gl-muted);
}

.stage-copy strong {
  margin-bottom: 10px;
  color: var(--gl-ink);
  font-size: 30px;
  line-height: 1.15;
}

.stageProductSeries,
.stageProductCode {
  display: block;
}

.stage-art {
  position: relative;
  min-height: 270px;
  background: linear-gradient(135deg, #fff, #f1f2f4);
  border-radius: 22px 28px 28px 22px;
}

.stage-art img {
  position: absolute;
  inset: 10px 16px 0 auto;
  width: min(760px, 100%);
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.1));
}

.panel {
  margin-bottom: 22px;
  padding: 26px;
  background: var(--gl-paper);
  border: 1px solid var(--gl-line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
}

.panel.hidden {
  display: none;
}

.section-title {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  align-items: start;
}

.section-title > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--gl-red);
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  font-weight: 900;
}

.section-title h2 {
  margin-bottom: 4px;
  color: var(--gl-ink);
  font-size: 28px;
  line-height: 1.1;
}

.section-title p {
  margin-bottom: 0;
  color: var(--gl-muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-grid.model-grid {
  grid-template-columns: 1fr;
}

.config-card,
.check-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 126px;
  padding: 18px;
  text-align: left;
  color: var(--gl-text);
  background: #fff;
  border: 1px solid #bbbcc0;
  border-radius: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.config-card:hover,
.check-card:hover {
  border-color: var(--gl-red);
  transform: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.config-card.selected,
.check-card.selected {
  border-color: var(--gl-red);
  box-shadow: inset 0 0 0 2px var(--gl-red), 0 12px 26px rgba(218, 37, 29, 0.13);
}

.config-card.disabled,
.check-card.disabled {
  color: #777b82;
  background: #f7f7f8;
  border-color: #b8b8bc;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.68;
}

.config-card.disabled:hover,
.check-card.disabled:hover {
  border-color: #b8b8bc;
  transform: none;
  box-shadow: none;
}

.config-card.disabled .expandable-card-summary {
  cursor: not-allowed;
}

.config-card.selected::after,
.check-card.selected::after {
  content: attr(data-selected-label);
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 0 18px 0 14px;
  color: #fff;
  background: var(--gl-red);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.expandable-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.expandable-card.selected::after {
  display: none;
}

.expandable-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 104px;
  padding: 16px 18px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.expandable-card-summary::-webkit-details-marker {
  display: none;
}

.expandable-card-copy {
  display: block;
  min-width: 0;
}

.expand-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 78px;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: #252525;
  border: 1px solid #252525;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, min-width 180ms ease, width 180ms ease;
}

.expand-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.expandable-card[open] .expand-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--gl-ink);
  background: #fff;
  border-color: var(--gl-ink);
}

.expandable-card[open] .expand-label {
  display: none;
}

.expandable-card[open] .expand-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.expandable-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0 16px;
  padding-top: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 180ms ease, opacity 160ms ease, transform 180ms ease, margin-bottom 180ms ease, padding-top 180ms ease, border-color 180ms ease;
}

.expandable-card[open] .expandable-card-panel {
  grid-template-rows: 1fr;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top-color: #b8b8bd;
  opacity: 1;
  transform: translateY(0);
}

.expandable-card[open].is-opening .expandable-card-panel,
.expandable-card.is-closing .expandable-card-panel {
  grid-template-rows: 0fr;
  margin-bottom: 0;
  padding-top: 0;
  border-top-color: transparent;
  opacity: 0;
  transform: translateY(-4px);
}

.expandable-card-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.expandable-card-panel-inner > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gl-ink);
  font-size: 13px;
  font-weight: 900;
}

.sub-option-list {
  display: grid;
  gap: 8px;
}

.sub-option-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  align-items: center;
  color: var(--gl-text);
  text-align: left;
  background: #fff;
  border: 1px solid #878a8f;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sub-option-title {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.sub-option-button span {
  color: var(--gl-ink);
  font-size: 14px;
  font-weight: 900;
}

.sub-option-checkbox {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 2px solid #6c7077;
  background: #fff;
}

.sub-option-button.selected .sub-option-checkbox {
  border-color: var(--gl-red);
  background: var(--gl-red);
}

.sub-option-button.selected .sub-option-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sub-option-button small {
  grid-column: 1 / -1;
  color: #555a62;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.sub-option-button:hover,
.sub-option-button.selected {
  border-color: var(--gl-red);
  box-shadow: inset 0 0 0 2px rgba(218, 37, 29, 0.18);
}

.sub-option-button.disabled {
  color: #777b82;
  background: #f7f7f8;
  border-color: #b8b8bc;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.7;
}

.sub-option-button.disabled:hover {
  border-color: #b8b8bc;
  box-shadow: none;
}

.sub-option-button:focus-visible {
  border-color: var(--gl-red);
  box-shadow: inset 0 0 0 2px rgba(218, 37, 29, 0.18), 0 0 0 4px rgba(218, 37, 29, 0.12);
}

.unsupported-option-divider {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: center;
  margin: 2px 0;
  color: #9f211a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.unsupported-option-divider::before,
.unsupported-option-divider::after {
  content: "";
  flex: 1;
  min-width: 22px;
  border-top: 1px solid #ecc5c2;
}

.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
}

.confirm-modal {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 22px;
  color: var(--gl-text);
  background: #fff;
  border: 1px solid #c9c9cc;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.confirm-modal-message {
  margin: 0;
  color: var(--gl-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal-cancel,
.confirm-modal-confirm {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.confirm-modal-cancel {
  color: var(--gl-ink);
  background: #fff;
  border: 1px solid #b8b8bc;
}

.confirm-modal-confirm {
  color: #fff;
  background: var(--gl-red);
  border: 1px solid var(--gl-red);
}

@media (prefers-reduced-motion: reduce) {
  .expand-action,
  .expand-chevron,
  .expandable-card-panel,
  .sub-option-button {
    transition: none;
  }
}

.card-title {
  display: block;
  max-width: calc(100% - 80px);
  margin-bottom: 8px;
  color: var(--gl-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.card-body {
  display: block;
  margin-bottom: 12px;
  color: #666a70;
  font-size: 13px;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  color: #333;
  background: #f3f3f5;
  border: 1px solid #c2c2c4;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.pill.warn {
  color: #8b3600;
  background: #fff3e6;
  border-color: #ffd6a8;
}

.dimension-grid,
.quote-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dimension-grid label,
.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--gl-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dimension-grid input,
.quote-form input,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--gl-ink);
  background: #fff;
  border: 1px solid #b1b1b5;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.quote-form textarea {
  min-height: 116px;
  resize: vertical;
}

.quote-form .wide {
  grid-column: 1 / -1;
}

.other-heating-field {
  margin-top: 14px;
}

.other-heating-field label {
  display: grid;
  gap: 6px;
  color: var(--gl-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.other-heating-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--gl-ink);
  background: #fff;
  border: 1px solid #b1b1b5;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: super;
}

.config-review {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 44px 0 24px;
  min-width: 0;
}

.config-review > h2,
.config-review .review-card,
.config-review .next-step-bar {
  width: calc(100% - var(--review-reserve));
  max-width: 100%;
  will-change: width;
}

.config-review > h2 {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--gl-ink);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.review-card {
  padding: clamp(24px, 4vw, 34px);
  background: var(--gl-soft);
  border-radius: 32px;
}

.review-head {
  max-width: 780px;
}

.review-head h3 {
  margin-bottom: 12px;
  color: var(--gl-ink);
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.18;
}

.review-head p {
  margin-bottom: 26px;
  color: var(--gl-ink);
  font-size: 20px;
  font-weight: 800;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 42px;
  padding: 28px 0;
  border-top: 1px solid #b4b4b8;
  border-bottom: 1px solid #b4b4b8;
}

.review-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--gl-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.review-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.review-icon svg {
  width: 31px;
  height: 31px;
  stroke: var(--gl-ink);
  stroke-width: 1.8;
  fill: none;
}

.review-label {
  display: block;
  margin-top: 2px;
}

.review-meta {
  display: block;
  margin-top: 4px;
  color: #73757b;
  font-size: 13px;
  font-weight: 700;
}

.review-details {
  padding-top: 26px;
  color: var(--gl-ink);
  font-size: 18px;
  line-height: 1.55;
}

.review-details p {
  margin-bottom: 10px;
}

.review-warnings {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.review-warning {
  padding: 10px 14px;
  color: #7a2f00;
  background: #fff4e8;
  border: 1px solid #ffd9ad;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 750;
}

.next-step-bar {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0 12px;
}

.next-step-button {
  min-width: 190px;
  min-height: 54px;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(218, 37, 29, 0.22);
}

.complete-shell {
  width: min(1440px, calc(100vw - 36px));
  margin: 32px auto 48px;
}

.checkout-shell {
  width: 100%;
  margin: 0 0 48px;
  padding: 0 0 clamp(44px, 6vw, 82px);
  background: var(--gl-soft);
}

.checkout-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: #fff;
  border-bottom: 1px solid #c9cad0;
}

.checkout-head {
  width: min(1440px, calc(100vw - 36px));
  margin: 0 auto 26px;
  padding-top: clamp(34px, 5vw, 52px);
}

.checkout-head h1,
.complete-card h1 {
  color: var(--gl-ink);
}

.checkout-head h1 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
}

.complete-card h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 0;
  color: var(--gl-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
}

.back-link::before {
  content: "‹";
  margin-right: 8px;
  color: var(--gl-red);
  font-size: 24px;
  line-height: 1;
}

.checkout-layout {
  width: min(1440px, calc(100vw - 36px));
  margin: 0 auto;
}

.checkout-grid-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}

.checkout-form-card,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06);
}

.checkout-form-card {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(28px, 4vw, 44px);
}

.checkout-form-section + .checkout-form-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #c5c8cc;
}

.checkout-form-section h2,
.checkout-summary-head h2 {
  margin: 0;
  color: var(--gl-ink);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.16;
  font-weight: 900;
}

.form-section-head,
.checkout-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.form-section-head span {
  color: #858993;
  font-size: 14px;
  font-weight: 700;
}

.form-section-head a,
.checkout-summary-head a {
  color: var(--gl-red);
  font-weight: 850;
  text-decoration: none;
}

.checkout-add-more {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.checkout-add-more span {
  color: #8a8d94;
  font-size: 12px;
  font-weight: 750;
}

.checkout-add-more button {
  min-height: 34px;
  padding: 0;
  color: var(--gl-red);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.checkout-field {
  display: grid;
  gap: 8px;
  color: #9aa0aa;
  font-size: 13px;
  font-weight: 800;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 13px 18px;
  color: var(--gl-ink);
  background: #fff;
  border: 1px solid #bcc0c4;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.checkout-field textarea {
  min-height: 132px;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: var(--gl-red);
  box-shadow: 0 0 0 4px rgba(218, 37, 29, 0.08);
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
  color: #b5bac4;
}

.form-hint {
  margin: 14px 0 0;
  color: #7a7f88;
  font-size: 13px;
  font-weight: 650;
}

.cart-product-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid #c9cbcf;
}

.cart-product-art {
  display: grid;
  place-items: center;
  min-height: 74px;
  aspect-ratio: 1;
  background: var(--gl-soft);
  border: 1px solid #c9c9cc;
  border-radius: 10px;
  overflow: hidden;
}

.cart-product-art img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.cart-product-copy h2 {
  margin-bottom: 5px;
  color: var(--gl-ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.cart-product-copy h2 span,
.checkout-item-title span {
  display: block;
}

.checkout-detail-list {
  display: grid;
  gap: 16px;
  margin-top: 5px;
  color: #777b81;
  font-size: 12px;
  line-height: 1.48;
}

.checkout-item + .checkout-item {
  padding-top: 16px;
  border-top: 1px solid #c9cbcf;
}

.checkout-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 5px;
}

.checkout-item-title {
  color: var(--gl-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.checkout-quantity {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #7b8089;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-item-controls {
  display: grid;
  gap: 8px;
  align-items: start;
  justify-items: end;
  justify-content: flex-end;
}

.checkout-quantity-controls {
  display: inline-grid;
  grid-template-columns: 26px 52px 26px;
  gap: 5px;
  align-items: center;
}

.checkout-quantity-step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  min-height: 30px;
  padding: 0;
  color: var(--gl-ink);
  background: #fff;
  border: 1px solid #b8bbc1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.checkout-quantity-step:hover {
  color: var(--gl-ink);
  background: #f7f8fa;
  border-color: #aaaeb8;
}

.checkout-quantity-value {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-height: 30px;
  color: var(--gl-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.checkout-item-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding-top: 2px;
}

.checkout-edit-button,
.checkout-remove-button {
  padding: 0;
  color: #8a8d94;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.checkout-edit-button:hover,
.checkout-remove-button:hover {
  color: var(--gl-red);
  text-decoration: underline;
}

.checkout-brief-list,
.checkout-brief-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-brief-list > li {
  position: relative;
  padding-left: 12px;
  color: #777b81;
  font-weight: 650;
}

.checkout-brief-list > li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #777b81;
}

.checkout-brief-addons > span {
  display: block;
}

.checkout-brief-addons ul {
  margin-top: 1px;
}

.checkout-brief-addons li {
  position: relative;
  padding-left: 14px;
}

.checkout-brief-addons li::before {
  content: "-";
  position: absolute;
  left: 1px;
  color: #777b81;
}

.checkout-summary {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 114px;
  padding: clamp(26px, 3vw, 40px);
}

.response-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid #c9cbcf;
}

.response-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #8d939d;
  flex: 0 0 auto;
}

.response-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.response-row strong,
.response-row > div > span {
  display: block;
}

.response-row strong {
  color: var(--gl-ink);
  font-size: 15px;
}

.response-row > div > span {
  margin-top: 4px;
  color: var(--gl-muted);
  font-size: 13px;
  font-weight: 750;
}

.checkout-total-list {
  display: grid;
  gap: 14px;
  padding: 24px 0 26px;
  color: #737881;
  font-size: 14px;
}

.checkout-total-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.checkout-total-list strong {
  color: #30333a;
  font-size: 15px;
  font-weight: 900;
}

.checkout-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  color: #fff;
  background: var(--gl-red);
  border-color: var(--gl-red);
  border-radius: 999px;
  font-size: 17px;
  box-shadow: 0 14px 30px rgba(218, 37, 29, 0.22);
}

.checkout-form-card .checkout-submit {
  margin-top: 30px;
}

.checkout-submit:hover {
  color: #fff;
  background: var(--gl-red-dark);
  border-color: var(--gl-red-dark);
}

.checkout-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.submit-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #6d727c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.submit-status.error {
  color: #b91515;
}

.submit-status.success {
  color: #1f7a4d;
}

.checkout-utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.checkout-secondary {
  width: 100%;
  min-height: 42px;
  color: #60656f;
  background: #fff;
  border-color: #bec1c6;
  font-size: 13px;
}

.complete-shell {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
}

.complete-card {
  width: min(760px, 100%);
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--gl-line);
  border-radius: 32px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.08);
}

.complete-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--gl-red);
  border-radius: 50%;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(218, 37, 29, 0.22);
}

.complete-card p:not(.eyebrow) {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--gl-muted);
  font-size: 18px;
}

.complete-output {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin: 26px auto;
  padding: 18px;
  color: var(--gl-dark);
  background: var(--gl-soft);
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
}

.complete-home {
  min-width: 180px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  color: #fff;
  background: var(--gl-red);
  border: 1px solid var(--gl-red);
}

.primary:hover {
  background: var(--gl-red-dark);
  border-color: var(--gl-red-dark);
}

.primary.checkout-submit {
  color: #fff;
  background: var(--gl-red);
  border-color: var(--gl-red);
  box-shadow: 0 14px 30px rgba(218, 37, 29, 0.22);
}

.primary.checkout-submit:hover {
  color: #fff;
  background: var(--gl-red-dark);
  border-color: var(--gl-red-dark);
}

.secondary {
  color: var(--gl-dark);
  background: #fff;
  border: 1px solid #a2a3a7;
}

.secondary:hover {
  color: var(--gl-red);
  border-color: var(--gl-red);
}

.secondary.checkout-secondary {
  color: #60656f;
  background: #fff;
  border-color: #bec1c6;
}

.inquiry-output {
  margin-top: 18px;
  padding: 18px;
  color: #203124;
  background: #f2faf4;
  border: 1px solid #cbe8d1;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.inquiry-output strong {
  display: block;
  margin-bottom: 8px;
  color: #15361f;
  font-size: 18px;
}

.summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  z-index: 0;
  position: sticky;
  top: 114px;
  opacity: var(--summary-opacity);
  transform: translateX(var(--summary-shift));
  pointer-events: var(--summary-pointer-events);
  will-change: opacity, transform;
}

.summary-inner {
  overflow: hidden;
  background: #1f1f1f;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.summary-head {
  padding: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: #2d2d2d;
  border-bottom: 3px solid var(--gl-red);
}

.summary-head span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-head strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list div {
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-list dd {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.summary-block {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-block h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.summary-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
  font-size: 13px;
}

.warning-block li {
  color: #ffd6a8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.72);
  background: #222;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .app-shell,
  .checkout-grid-form {
    grid-template-columns: 1fr;
  }

  .checkout-form-card,
  .checkout-summary {
    grid-column: 1;
  }

  .checkout-summary {
    grid-row: 1;
  }

  .checkout-form-card {
    grid-row: 2;
  }

  .workbench,
  .summary,
  .config-review {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .config-review > h2,
  .config-review .review-card,
  .config-review .next-step-bar {
    width: 100%;
  }

  .summary,
  .checkout-summary {
    position: static;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 840px) {
  .brand-nav,
  .top-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-stage {
    grid-template-columns: 1fr;
  }

  .stage-art {
    min-height: 220px;
    border-radius: 0 0 28px 28px;
  }

  .card-grid,
  .card-grid.model-grid,
  .dimension-grid,
  .quote-form,
  .checkout-field-grid,
  .check-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .checkout-topbar {
    min-height: 66px;
  }
}

@media (max-width: 520px) {
  .app-shell,
  .complete-shell {
    width: min(100vw - 18px, 1440px);
    margin-top: 14px;
  }

  .checkout-shell {
    width: 100%;
    margin: 0 0 32px;
    padding-bottom: 32px;
  }

  .checkout-head,
  .checkout-layout {
    width: min(100vw - 18px, 1440px);
  }

  .checkout-topbar {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .panel,
  .workbench-head,
  .checkout-form-card,
  .checkout-summary,
  .complete-card {
    padding: 18px;
    border-radius: 20px;
  }

  .form-section-head,
  .checkout-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .cart-product-card {
    grid-template-columns: 1fr;
  }

  .checkout-item-head {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
  }

  .checkout-item-controls {
    width: 100%;
    justify-content: stretch;
    justify-items: start;
  }

  .checkout-quantity {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-item-actions {
    min-width: auto;
    padding-top: 0;
  }

  .cart-product-art {
    min-height: 140px;
  }

  .checkout-utility-actions {
    grid-template-columns: 1fr;
  }

  .mode-switch,
  .metric-list {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .review-card {
    border-radius: 24px;
  }

  .next-step-bar {
    justify-content: stretch;
  }

  .next-step-button {
    width: 100%;
  }

  .checkout-head h1 {
    font-size: 36px;
  }

  .complete-card h1 {
    font-size: 34px;
  }
}

:where(
  .workbench-head,
  .visual-stage,
  .panel,
  .config-card,
  .check-card,
  .confirm-modal,
  .review-card,
  .checkout-form-card,
  .checkout-summary,
  .complete-card,
  .summary-inner
) {
  border-radius: 0 !important;
}

:where(
  .workbench-head,
  .visual-stage,
  .panel,
  .confirm-modal,
  .review-card,
  .checkout-form-card,
  .checkout-summary,
  .complete-card,
  .summary-inner
) {
  border: 1px solid var(--gl-line);
}

:where(
  .workbench-head,
  .visual-stage,
  .panel,
  .confirm-modal,
  .review-card,
  .checkout-form-card,
  .complete-card,
  .summary-inner
) {
  position: relative;
}

@media (max-width: 1180px) {
  .checkout-summary {
    position: relative;
    top: auto;
  }
}

.config-card::before,
.check-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--corner-cut);
  height: var(--corner-cut);
  background: rgba(218, 37, 29, var(--corner-accent-opacity));
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.config-card:hover::before,
.check-card:hover::before {
  opacity: 1;
}

.config-card.disabled:hover::before,
.check-card.disabled:hover::before {
  opacity: 0;
}

body *,
body *::before,
body *::after {
  border-radius: 0 !important;
}
