.calculator-page {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 42%),
    var(--paper);
}

/* Selectores visuales derivados del patrón de la calculadora original */
.visual-field {
  position: relative;
}

.visual-select-trigger {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #2a3555;
  border-radius: 8px;
  background: #0d1220;
  color: #e8e8ec;
  cursor: pointer;
  text-align: left;
}

.visual-select-trigger:hover,
.visual-select-trigger[aria-expanded="true"] {
  border-color: var(--gold);
}

.visual-select-swatch,
.visual-select-icon {
  width: 42px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  object-fit: cover;
  background: #fff;
}

.handle-field {
  grid-column: 1 / -1;
}

.handle-field[hidden],
.closure-field[hidden] {
  display: none;
}

.handle-trigger-image {
  object-fit: contain;
}

.handle-modal-dialog {
  max-width: 760px;
}

.handle-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.handle-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 2px solid oklch(86% 0.01 250);
  border-radius: 12px;
  background: white;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.handle-card:hover,
.handle-card.selected {
  border-color: var(--gold);
  background: oklch(97% 0.025 87);
}

.handle-card img {
  width: 100%;
  height: 150px;
  border-radius: 9px;
  object-fit: contain;
  background: oklch(96.5% 0.012 88);
}

.handle-card b,
.handle-card small {
  display: block;
}

.closure-field {
  grid-column: 1 / -1;
}

.door-options-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid oklch(80% 0.04 82);
  border-radius: 14px;
  background: oklch(97% 0.018 88);
}

.door-options-panel[hidden] {
  display: none;
}

.door-options-heading {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.door-options-heading span {
  color: #8a5400;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.door-options-heading h3 {
  margin: 3px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}

.door-options-heading p {
  max-width: 340px;
  margin: 0;
  color: oklch(44% 0.01 250);
  font-size: 13px;
  line-height: 1.45;
}

.door-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.door-option-field {
  display: grid;
  gap: 7px;
}

.door-option-field > span {
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.door-option-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 12px;
  border: 1px solid oklch(78% 0.01 250);
  border-radius: 9px;
  background: white;
  color: var(--black);
  font: inherit;
}

@media (max-width: 700px) {
  .door-options-heading {
    display: grid;
  }

  .door-options-grid {
    grid-template-columns: 1fr;
  }
}

.closure-trigger-points {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 19px;
  place-items: center;
}

.closure-modal-dialog {
  max-width: 780px;
}

.closure-height-note {
  margin: 0 0 14px;
  color: #c6c8d0;
  font-size: 13px;
}

.closure-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.closure-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 11px;
  background: #181a25;
  color: #f3f0e8;
  text-align: left;
  cursor: pointer;
}

.closure-card:hover,
.closure-card.selected {
  border-color: var(--gold);
  background: rgba(213,155,66,.12);
}

.closure-card-points {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #090a0f;
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 20px;
  place-items: center;
}

.closure-card b,
.closure-card small {
  display: block;
}

.closure-card b {
  font-size: 13px;
}

.closure-card small {
  margin-top: 4px;
  color: #999daa;
  font-size: 10px;
}

@media (max-width: 640px) {
  .closure-card-grid {
    grid-template-columns: 1fr;
  }
}

.handle-card b {
  font-size: 14px;
  line-height: 1.25;
}

.handle-card small {
  margin-top: 4px;
  color: oklch(48% 0.008 250);
  font-size: 11px;
}

.glass-icon {
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(145,201,219,.4)),
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.7) 8px 9px);
  box-shadow: inset 0 0 0 3px #c6dce2;
}

.visual-select-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.visual-select-copy b,
.visual-select-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-select-copy b {
  font-size: 13px;
}

.visual-select-copy small {
  margin-top: 3px;
  color: #8e94a5;
  font-size: 10px;
}

.visual-select-arrow {
  color: #777f92;
  font-size: 10px;
}

.visual-select-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  padding: 12px;
  border: 1px solid rgba(213, 155, 66, .5);
  border-radius: 8px;
  background: #0d0d1a;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .32);
}

.visual-select-search {
  width: 100%;
  height: 38px;
  margin-bottom: 10px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  outline: none;
  background: #1a1a2f;
  color: #eee;
}

.visual-select-search:focus {
  border-color: var(--gold);
}

.visual-select-list {
  display: grid;
  max-height: 310px;
  gap: 5px;
  overflow-y: auto;
}

.visual-list-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: #d9dae0;
  cursor: pointer;
  text-align: left;
}

.visual-list-item:hover,
.visual-list-item.selected {
  border-color: var(--gold);
  background: rgba(213,155,66,.12);
}

.visual-list-item span {
  display: grid;
}

.visual-list-item small {
  margin-top: 2px;
  color: #777e90;
  font-size: 10px;
}

.visual-tabs,
.shutter-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.visual-tab,
.shutter-group-tab {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  background: rgba(255,255,255,.03);
  color: #9095a4;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.visual-tab.selected,
.shutter-group-tab.selected {
  border-color: var(--gold);
  background: rgba(213,155,66,.14);
  color: var(--gold);
}

.colour-grid,
.shutter-colour-grid {
  display: grid;
  max-height: 320px;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 7px;
  overflow-y: auto;
}

.colour-item,
.shutter-colour-item {
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: #ccc;
  cursor: pointer;
  font-size: 10px;
  text-align: center;
}

.colour-item:hover,
.colour-item.selected,
.shutter-colour-item:hover,
.shutter-colour-item.selected {
  border-color: var(--gold);
  color: var(--gold);
}

.colour-item img,
.shutter-colour-item img {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: 5px;
  border-radius: 4px;
  object-fit: cover;
}

.colour-item small {
  display: block;
  margin-top: 2px;
  color: #6f7688;
  font-size: 8px;
}

.shutter-launch {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border: 1px solid #2a3555;
  border-radius: 10px;
  background: #0d1220;
  color: #eee;
  cursor: pointer;
  text-align: left;
}

.shutter-launch:hover {
  border-color: var(--gold);
}

.shutter-launch > span:first-child {
  display: grid;
  gap: 4px;
}

.shutter-launch small {
  color: #858b9b;
}

.shutter-launch > span:last-child {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Modal oscuro: misma jerarquía de la calculadora original */
.option-modal[hidden] {
  display: none;
}

.option-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.option-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 12, .78);
  backdrop-filter: blur(5px);
}

.option-modal-dialog {
  position: relative;
  display: flex;
  width: min(900px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(213,155,66,.42);
  border-radius: 14px;
  background: #11121c;
  color: #f3f0e8;
  box-shadow: 0 35px 90px rgba(0,0,0,.55);
}

.option-modal-header,
.option-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-color: rgba(255,255,255,.08);
  background: #0b0c14;
}

.option-modal-header {
  border-bottom-style: solid;
  border-bottom-width: 1px;
}

.option-modal-header span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.option-modal-header h2 {
  margin: 3px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 27px;
  font-weight: 400;
  text-transform: uppercase;
}

.option-modal-close {
  border: 0;
  background: transparent;
  color: #8e91a0;
  cursor: pointer;
  font-size: 30px;
}

.option-modal-body {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 18px 22px;
}

.modal-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

.modal-step > div {
  min-width: 0;
}

.modal-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.modal-step h3 {
  margin: 3px 0 13px;
  font-size: 13px;
  text-transform: uppercase;
}

.modal-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.modal-type-card {
  display: grid;
  min-height: 82px;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: #191a26;
  color: #ddd;
  cursor: pointer;
  text-align: left;
}

.modal-type-card small {
  color: #777d8e;
  line-height: 1.3;
}

.modal-type-card:hover,
.modal-type-card.selected {
  border-color: var(--gold);
  background: rgba(213,155,66,.1);
}

.modal-field,
.modal-inline-options label {
  display: grid;
  gap: 7px;
  color: #a9adba;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.modal-field input,
.modal-inline-options select,
.modal-dark-select {
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  outline: none;
  background: #1a1a2b;
  color: #eee;
}

.modal-inline-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.modal-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
}

.modal-choice {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  background: #191a26;
  color: #ddd;
  cursor: pointer;
  text-align: left;
}

.modal-choice.selected {
  border-color: var(--gold);
  color: var(--gold);
}

.modal-choice small {
  color: #7c8190;
}

.modal-check {
  display: flex;
  margin-top: 12px;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 12px;
}

.modal-dark-select {
  width: 100%;
}

.option-modal-footer {
  border-top-style: solid;
  border-top-width: 1px;
}

.option-modal-footer > div {
  display: flex;
  gap: 8px;
}

.modal-reset,
.modal-cancel,
.modal-apply {
  padding: 11px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-reset,
.modal-cancel {
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #aaaeba;
}

.modal-apply {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
}

body.modal-open {
  overflow: hidden;
}

body.cart-open {
  overflow: hidden;
}

body.cart-open .mqf-consent-manage {
  display: none;
}

@media (max-width: 720px) {
  .modal-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-inline-options {
    grid-template-columns: 1fr;
  }

  .option-modal {
    padding: 10px;
  }

  .option-modal-dialog {
    max-height: calc(100vh - 20px);
  }
}

.calculator-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 52px clamp(24px, 4vw, 72px) 80px;
}

.calculator-heading {
  display: flex;
  max-width: 1380px;
  margin: 0 auto 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.calculator-kicker {
  display: block;
  margin-bottom: 10px;
  color: oklch(48% 0.12 77);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.calculator-heading h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 0.98;
  text-transform: uppercase;
}

.calculator-heading p {
  max-width: 720px;
  margin: 18px 0 0;
  color: oklch(40% 0.01 250);
  font-size: 16px;
  line-height: 1.65;
}

.measure-link {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 2px solid var(--black);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-layout {
  display: grid;
  max-width: 1380px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: start;
}

.configurator {
  overflow: hidden;
  border: 1px solid oklch(87% 0.008 250);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 60px rgba(18, 18, 16, 0.07);
}

.config-section {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  border-bottom: 1px solid oklch(89% 0.007 250);
}

.section-number {
  padding: 31px 12px;
  background: var(--black);
  color: var(--gold);
  font-family: "Anton", sans-serif;
  font-size: 22px;
  text-align: center;
}

.section-content {
  padding: 28px 30px 30px;
}

.section-content h2 {
  margin: 0 0 20px;
  font-family: "Anton", sans-serif;
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-field {
  margin-top: 20px;
}

.series-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.series-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.series-choice-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 2px solid oklch(88% 0.008 250);
  border-radius: 14px;
  background: oklch(98% 0.003 250);
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.series-choice-card[hidden] {
  display: none;
}

.series-choice-card:hover {
  transform: translateY(-1px);
  border-color: oklch(62% 0.12 82);
}

.series-choice-card.selected {
  border-color: var(--gold);
  background: oklch(97% 0.035 87);
}

.series-choice-card:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--gold) 55%, white);
  outline-offset: 3px;
}

.series-choice-visual {
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 12px;
  border-radius: 10px;
  background: oklch(96.5% 0.012 88);
}

.series-choice-visual img {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 116px;
  object-fit: contain;
}

.series-choice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.series-choice-copy small {
  padding-right: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.series-choice-copy strong {
  margin: 3px 0 7px;
  font-family: "Anton", sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 0.95;
}

.series-choice-copy > span {
  color: oklch(42% 0.008 250);
  font-size: 12px;
  line-height: 1.35;
}

.series-choice-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid oklch(82% 0.01 250);
  border-radius: 50%;
  background: white;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
}

.series-choice-card.selected .series-choice-check {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 2px solid oklch(88% 0.008 250);
  border-radius: 12px;
  background: oklch(98% 0.003 250);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: oklch(62% 0.12 82);
}

.choice-card.selected,
.choice-card:has(input:checked) {
  border-color: var(--gold);
  background: oklch(97% 0.035 87);
}

.choice-card.disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span:not(.mini-window) {
  display: block;
}

.choice-title {
  font-weight: 800;
}

.choice-card small {
  display: block;
  margin-top: 4px;
  color: oklch(49% 0.008 250);
  font-size: 12px;
  line-height: 1.35;
}

.opening-choice {
  min-height: 128px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.typology-count {
  margin: -10px 0 14px;
  color: oklch(48% 0.008 250);
  font-size: 12px;
}

.typology-picker-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fbf8ef;
  color: var(--black);
  cursor: pointer;
  text-align: left;
}

.typology-picker-trigger > span {
  min-width: 0;
}

.typology-picker-trigger small,
.typology-picker-trigger em {
  display: block;
  color: oklch(48% 0.01 85);
  font-size: 10px;
  font-style: normal;
}

.typology-picker-trigger small {
  margin-bottom: 5px;
  color: oklch(45% 0.11 72);
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.typology-picker-trigger b {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typology-picker-trigger strong {
  padding: 10px 13px;
  border-radius: 8px;
  background: var(--black);
  color: white;
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.typology-picker-trigger .maia-type-icon {
  width: 62px;
  height: 76px;
}

.typology-picker-panel[hidden] {
  display: none;
}

.typology-picker-panel {
  position: fixed;
  z-index: 1450;
  inset: 0;
}

.typology-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(6, 7, 12, .72);
  backdrop-filter: blur(5px);
}

.typology-picker-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(1050px, calc(100% - 42px));
  max-height: calc(100% - 42px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f3ed;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}

.typology-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--black);
  color: white;
}

.typology-picker-header span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.typology-picker-header h3 {
  margin: 3px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.typology-picker-header button {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  font-size: 30px;
}

.typology-picker-tools {
  display: grid;
  gap: 12px;
  padding: 18px 22px 12px;
  background: white;
}

.typology-picker-tools input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid oklch(80% 0.01 250);
  border-radius: 8px;
  font: inherit;
}

.typology-filter-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.typology-filter-tabs button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid oklch(80% 0.01 250);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.typology-filter-tabs button.selected {
  border-color: var(--gold);
  background: var(--gold);
}

.typology-grid {
  display: grid;
  max-height: 470px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 3px 8px 5px 3px;
  scrollbar-color: var(--gold) oklch(92% 0.006 250);
}

.typology-picker-dialog .typology-grid {
  max-height: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 10px 22px 22px;
}

.typology-picker-dialog .opening-choice {
  min-height: 142px;
  background: white;
}

.typology-empty {
  grid-column: 1 / -1;
  margin: 30px 0;
  color: oklch(45% 0.01 250);
  text-align: center;
}

.maia-type-icon {
  display: block;
  width: 54px;
  height: 68px;
  flex: 0 0 auto;
  object-fit: fill;
  filter: saturate(0.95) contrast(1.08);
}

.typology-grid .choice-title {
  font-size: 12px;
  line-height: 1.35;
}

.compact-choices {
  margin-top: 12px;
}

.compact-choices .choice-card {
  min-height: 58px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field > span:first-child {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid oklch(80% 0.009 250);
  border-radius: 8px;
  background: white;
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  outline: 3px solid oklch(88% 0.1 85 / 0.35);
}

.fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 100px;
  gap: 14px;
}

.fields-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dimensions-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) 72px;
  gap: 10px;
}

.fields-row .field {
  margin-top: 0;
}

.measurement-input {
  position: relative;
  display: block;
}

.measurement-input input {
  padding-right: 35px;
  padding-left: 12px;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}

.measurement-input input::-webkit-inner-spin-button,
.measurement-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.measurement-input b {
  position: absolute;
  top: 50%;
  right: 9px;
  color: oklch(53% 0.008 250);
  font-size: 10px;
  transform: translateY(-50%);
}

.dimensions-row .quantity-field input {
  padding-inline: 10px;
}

.field-note {
  margin: 13px 0 0;
  color: oklch(49% 0.008 250);
  font-size: 12px;
  line-height: 1.5;
}

.auto-calculate-note {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 20px 30px 20px 98px;
  background: var(--gold);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 0 0 0 rgba(20, 20, 18, 0.45);
  animation: live-pulse 1.8s infinite;
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 8px rgba(20, 20, 18, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 20, 18, 0); }
}

.result-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
}

.preview-card,
.price-card {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(18, 18, 16, 0.08);
}

.preview-card {
  padding: 22px;
  border: 1px solid oklch(88% 0.012 85);
  background: #f7f3e8;
  color: var(--black);
}

.preview-label,
.price-label {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.preview-label {
  color: oklch(44% 0.11 72);
}

.window-stage {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 12px;
  border: 1px solid oklch(84% 0.018 85);
  border-radius: 12px;
  background: #fbf8ef;
}

.window-preview {
  position: relative;
  width: 100%;
  height: 320px;
  min-width: 0;
}

.window-preview svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 20px rgba(66, 54, 34, 0.12));
}

.preview-measures {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  color: oklch(42% 0.012 85);
  font-size: 12px;
}

.preview-measures b {
  color: var(--black);
}

.price-card {
  padding: 26px;
  background: white;
}

.promotion-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  margin: -26px -26px 22px;
  padding: 16px 18px;
  border-radius: 18px 18px 0 0;
  background: var(--yellow);
  color: var(--black);
}

.promotion-banner[hidden] { display: none; }

.promotion-banner strong {
  grid-row: span 2;
  align-self: center;
  font-family: "Anton", sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.promotion-banner span {
  align-self: end;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.promotion-banner small {
  font-size: 10px;
  font-weight: 700;
}

.promotion-previous {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 6px;
  color: oklch(45% 0.012 250);
  font-size: 12px;
  font-weight: 700;
}

.promotion-previous[hidden],
.promotion-saving[hidden] { display: none; }

.promotion-previous del {
  color: oklch(43% 0.04 30);
  font-size: 15px;
  text-decoration-thickness: 2px;
}

.promotion-saving {
  margin: 12px 0 0;
  padding: 9px 11px;
  border-left: 5px solid var(--yellow);
  background: oklch(96% 0.045 88);
  font-size: 11px;
  font-weight: 900;
}

.price-placeholder,
.price-error {
  padding: 18px;
  border-radius: 9px;
  color: oklch(42% 0.01 250);
  background: oklch(95% 0.006 250);
  font-size: 13px;
  line-height: 1.5;
}

.price-error {
  color: oklch(40% 0.16 28);
  background: oklch(95% 0.035 28);
}

.price-result > strong {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.price-result > small {
  display: block;
  margin-top: 6px;
  color: oklch(48% 0.008 250);
}

.price-result dl {
  margin: 22px 0 0;
  border-top: 1px solid oklch(88% 0.008 250);
}

.price-result dl div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid oklch(91% 0.006 250);
  font-size: 12px;
}

.price-result dt {
  color: oklch(47% 0.008 250);
}

.price-result dd {
  margin: 0;
  font-weight: 800;
}

.cart-button {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border: 0;
  border-radius: 7px;
  background: var(--black);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.result-note {
  margin: 15px 0 0;
  color: oklch(48% 0.008 250);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .calculator-main {
    margin-left: 0;
    padding: 86px 16px 44px;
  }

  .calculator-heading {
    display: block;
  }

  .measure-link {
    display: inline-block;
    margin-top: 20px;
  }

  .config-section {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .section-content {
    padding: 22px 17px 24px;
  }

  .section-number {
    padding: 25px 8px;
    font-size: 18px;
  }

  .choice-grid-two,
  .series-choice-grid,
  .handle-card-grid,
  .fields-row,
  .fields-row-two,
  .result-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .typology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-calculate-note {
    padding-left: 63px;
  }

  .window-stage {
    min-height: 275px;
  }
}

/* Pedido como espacio de trabajo independiente, no como cajón estrecho. */
.cart-drawer {
  top: 50%;
  right: auto;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 48px));
  height: min(860px, calc(100% - 48px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .42);
  transform: translate(-50%, -50%);
}

.cart-header {
  padding: 18px 24px;
}

.cart-header h2 {
  font-size: 32px;
}

.cart-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
}

.cart-products-panel,
.cart-logistics-panel {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  border: 1px solid #d9dadd;
  border-radius: 12px;
  background: #fff;
  scrollbar-color: var(--gold) #ecece8;
}

.cart-products-panel {
  padding: 0 16px 16px;
}

.cart-logistics-panel {
  padding: 0 18px 18px;
  background: #f9f8f3;
}

.cart-panel-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -16px 14px;
  padding: 16px;
  border-bottom: 1px solid #dedfe1;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
}

.cart-logistics-heading {
  margin-inline: -18px;
  padding-inline: 18px;
  background: rgba(249, 248, 243, .97);
}

.cart-panel-heading span {
  color: #a66f00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cart-panel-heading h3 {
  margin: 3px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.cart-panel-heading .cart-keep-shopping {
  width: auto;
  margin: 0;
  padding: 10px 13px;
  border: 0;
  background: var(--gold);
  white-space: nowrap;
}

.cart-products-panel .offcut-notice {
  margin-bottom: 12px;
}

.cart-products-panel .cart-items {
  margin-top: 0;
}

.cart-item {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 15px;
  padding: 15px;
}

.cart-item-visual {
  min-height: 96px;
}

.cart-item-visual svg {
  height: 88px;
}

.cart-item-title b {
  font-size: 14px;
}

.cart-item-price strong {
  font-size: 17px;
}

.cart-item-meta {
  font-size: 11px;
}

.cart-shipping,
.cart-delivery {
  padding-block: 8px 22px;
}

.shipping-result.calculating {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  border-left-color: var(--gold);
  background: #fff8e5;
  color: #332b18;
  font-weight: 750;
  line-height: 1.5;
}

.shipping-result.calculating::before {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(9, 9, 9, .18);
  border-top-color: #090909;
  border-radius: 50%;
  content: "";
  animation: shipping-spin .8s linear infinite;
}

@keyframes shipping-spin {
  to { transform: rotate(360deg); }
}

.cart-footer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(210px, .7fr) minmax(320px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
}

.cart-total-block {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 3px 12px;
}

.cart-total-block span {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-total-block strong {
  font-size: 27px;
}

.cart-total-block small {
  grid-column: 1 / -1;
  margin: 0;
}

.cart-installation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
  padding: 10px 12px;
}

.cart-installation a {
  padding: 0;
  background: transparent;
  color: #090909;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-footer-actions {
  display: grid !important;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 9px;
}

.cart-footer-actions .cart-client-area,
.cart-footer-actions .cart-continue,
.cart-footer-actions .cart-whatsapp {
  display: grid;
  min-height: 46px;
  margin: 0;
  place-items: center;
}

.cart-whatsapp {
  padding: 12px 14px;
  border: 1px solid #1f7a3d;
  border-radius: 7px;
  background: #1f7a3d;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.cart-whatsapp:hover,
.cart-whatsapp:focus-visible {
  background: #155b2c;
  outline: none;
}

.cart-whatsapp.disabled {
  opacity: .42;
  pointer-events: none;
}

.cart-whatsapp[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .cart-drawer {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }

  .cart-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .cart-products-panel,
  .cart-logistics-panel {
    overflow: visible;
  }

  .cart-footer {
    grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr);
  }

  .cart-installation {
    display: none;
  }
}

@media (max-width: 620px) {
  .cart-drawer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    transform: none;
  }

  .cart-header {
    padding: 14px 16px;
  }

  .cart-header h2 {
    font-size: 26px;
  }

  .cart-body {
    gap: 12px;
    padding: 12px;
  }

  .cart-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-panel-heading .cart-keep-shopping {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .cart-item-visual {
    min-height: 76px;
  }

  .cart-item-visual svg {
    height: 70px;
  }

  .cart-footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cart-total-block small {
    display: none;
  }

  .cart-footer-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shipping-result.calculating::before {
    animation-duration: 1.8s;
  }
}

.cart-fab {
  position: fixed;
  z-index: 90;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px 11px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--black);
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-fab b {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  place-items: center;
}

.cart-shell[hidden] {
  display: none;
}

.cart-shell {
  position: fixed;
  z-index: 1300;
  inset: 0;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(6,7,12,.65);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(470px, 100%);
  height: 100%;
  flex-direction: column;
  background: #f5f3ed;
  box-shadow: -25px 0 70px rgba(0,0,0,.25);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--black);
  color: white;
}

.cart-header span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cart-header h2 {
  margin: 2px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 29px;
  font-weight: 400;
  text-transform: uppercase;
}

.cart-header button {
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 30px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.offcut-notice {
  padding: 14px 15px;
  border: 1px solid oklch(78% 0.1 83);
  border-radius: 9px;
  background: oklch(96% 0.05 86);
  color: oklch(31% 0.025 75);
}

.offcut-notice b {
  font-size: 12px;
  text-transform: uppercase;
}

.offcut-notice p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.cart-empty {
  display: grid;
  min-height: 180px;
  color: oklch(47% 0.01 250);
  place-content: center;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty span {
  margin-top: 5px;
  font-size: 11px;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid oklch(85% 0.01 250);
  border-radius: 10px;
  background: white;
}

.cart-item-visual {
  display: grid;
  min-height: 75px;
  padding: 7px;
  border-radius: 7px;
  background: oklch(96% 0.008 250);
  place-items: center;
}

.cart-item-visual svg {
  width: 100%;
  max-width: 74px;
  height: 72px;
}

.fixed-zones-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid oklch(82% 0.035 78);
  border-radius: 12px;
  background: #fbf8ef;
}

.fixed-zones-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.fixed-zones-heading span {
  color: oklch(50% 0.13 72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.fixed-zones-heading h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.fixed-zones-heading p {
  max-width: 330px;
  margin: 0;
  color: oklch(43% 0.012 85);
  font-size: 12px;
  line-height: 1.5;
}

.fixed-zones-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.fixed-zone-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 13px;
  padding: 15px;
  border: 1px solid oklch(86% 0.02 80);
  border-radius: 10px;
  background: white;
}

.fixed-zone-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.fixed-zone-title b {
  font-size: 14px;
}

.fixed-zone-title small {
  color: oklch(48% 0.01 85);
  font-size: 10px;
}

.fixed-measure-field,
.fixed-glass-field {
  display: grid;
  gap: 7px;
}

.fixed-measure-field > span:first-child,
.fixed-glass-field > span:first-child {
  color: oklch(30% 0.015 85);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.fixed-zone-card .visual-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 64px;
}

.fixed-zone-card .visual-select-copy {
  min-width: 0;
}

.fixed-zone-card .visual-select-copy b,
.fixed-zone-card .visual-select-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .fixed-zones-heading {
    display: grid;
  }

  .fixed-zones-grid {
    grid-template-columns: 1fr;
  }

  .fixed-zone-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.cart-item-main {
  min-width: 0;
}

.cart-item-title,
.cart-item-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title b {
  font-size: 12px;
  line-height: 1.35;
}

.cart-item-price strong {
  font-size: 15px;
}

.cart-item-meta {
  margin: 4px 0 8px;
  color: oklch(47% 0.01 250);
  font-size: 10px;
  line-height: 1.45;
}

.cart-offcut-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: oklch(93% 0.06 80);
  color: oklch(40% 0.08 70);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-offcut-badge.exempt {
  background: oklch(94% 0.04 150);
  color: oklch(38% 0.08 150);
}

.cart-item-offcuts {
  border-color: oklch(78% 0.09 82);
  background: oklch(98% 0.018 82);
}

.cart-offcut-visual {
  align-content: center;
  gap: 5px;
  background: oklch(93% 0.055 82);
}

.cart-offcut-visual span {
  display: block;
  width: 42px;
  height: 6px;
  border-radius: 99px;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px oklch(64% 0.13 77);
}

.cart-offcut-visual span:nth-child(2) {
  width: 28px;
}

.cart-offcut-visual span:nth-child(3) {
  width: 36px;
}

.cart-offcut-badge.automatic {
  background: oklch(91% 0.055 82);
  color: oklch(34% 0.07 70);
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cart-item-actions button {
  padding: 5px 7px;
  border: 1px solid oklch(82% 0.01 250);
  border-radius: 5px;
  background: white;
  color: var(--black);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-item-actions button[data-cart-action="remove"] {
  color: oklch(48% .16 30);
}

.cart-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid oklch(84% 0.01 250);
  background: white;
}

.cart-footer > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-footer > div span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-footer strong {
  font-size: 25px;
}

.cart-footer small {
  display: block;
  margin: 5px 0 13px;
  color: oklch(48% 0.01 250);
  font-size: 9px;
  line-height: 1.4;
}

.cart-client-area {
  display: block;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid var(--black);
  border-radius: 7px;
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.cart-client-area:hover,
.cart-client-area:focus-visible {
  background: var(--black);
  color: white;
  outline: none;
}

.cart-installation {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid oklch(72% 0.12 82);
  border-radius: 9px;
  background: oklch(96% 0.045 84);
}

.cart-installation strong,
.cart-installation p,
.cart-installation a {
  display: block;
}

.cart-installation strong {
  font-size: 12px;
  text-transform: uppercase;
}

.cart-installation p {
  margin: 5px 0 9px;
  color: oklch(42% 0.01 250);
  font-size: 10px;
  line-height: 1.45;
}

.cart-installation a {
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--black);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.cart-continue,
.cart-keep-shopping {
  width: 100%;
  padding: 13px;
  border-radius: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-keep-shopping {
  margin-bottom: 8px;
  border: 1px solid var(--black);
  background: white;
  color: var(--black);
  cursor: pointer;
}

.cart-continue {
  border: 0;
  background: var(--black);
  color: white;
}

.cart-continue:disabled {
  opacity: .38;
  cursor: wait;
}

.cart-shipping,
.cart-delivery {
  display: grid;
  gap: 12px;
  padding: 16px 0 20px;
  border-bottom: 1px solid #d5d7da;
}

.shipping-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shipping-method {
  display: flex;
  min-width: 0;
  padding: 12px;
  border: 2px solid #d4d7dc;
  background: #fff;
  cursor: pointer;
}

.shipping-method:hover,
.shipping-method.selected {
  border-color: #090909;
}

.shipping-method.selected {
  box-shadow: inset 6px 0 #f2ae00;
  background: #fff8e5;
}

.shipping-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-method span {
  display: grid;
  gap: 3px;
}

.shipping-method b {
  font-size: 13px;
}

.shipping-method small,
.shipping-disclaimer {
  color: #656a72;
  font-size: 10px;
  line-height: 1.45;
}

.shipping-postal {
  display: grid;
  gap: 6px;
}

/* `display: grid` gana al `display: none` del atributo `hidden`: con recogida
   en fabrica el bloque de codigo postal debe desaparecer de verdad. */
.shipping-postal[hidden] {
  display: none;
}

.shipping-postal > label {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.shipping-postal > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.shipping-postal input,
.shipping-postal button {
  min-height: 42px;
  border: 2px solid #090909;
  border-radius: 0;
  font: inherit;
}

.shipping-postal input {
  min-width: 0;
  padding: 0 11px;
  background: #fff;
}

.shipping-postal button {
  padding: 0 14px;
  background: #090909;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.shipping-postal button:disabled {
  opacity: .45;
  cursor: wait;
}

.shipping-result {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-left: 5px solid #f2ae00;
  background: #fff8e5;
  font-size: 11px;
}

.shipping-result:empty {
  display: none;
}

.shipping-result strong {
  font-size: 15px;
}

.shipping-result small {
  line-height: 1.4;
}

.shipping-result.error {
  border-left-color: #9e2720;
  background: #fff0ef;
  color: #9e2720;
}

.shipping-result.success {
  border-left-color: #347237;
  background: #eef8ee;
}

.shipping-disclaimer {
  margin: 0;
}

.cart-delivery-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-delivery-heading > div {
  display: grid;
  gap: 2px;
}

.cart-delivery-heading small,
.delivery-disclaimer {
  color: #656a72;
  font-size: 11px;
}

.cart-delivery-number {
  color: #f2ae00;
  font-size: 22px;
  font-weight: 950;
}

.delivery-options {
  display: grid;
  gap: 8px;
}

.delivery-option {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 2px solid #d4d7dc;
  background: #fff;
  cursor: pointer;
}

.delivery-option:hover,
.delivery-option.selected {
  border-color: #090909;
}

.delivery-option.selected {
  box-shadow: inset 7px 0 #f2ae00;
  background: #fff8e5;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-option-top,
.delivery-option-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delivery-option-top b {
  font-size: 14px;
}

.delivery-option-top em {
  padding: 3px 7px;
  background: #090909;
  color: #f2ae00;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-date {
  font-size: 12px;
}

.delivery-option-bottom {
  color: #656a72;
  font-size: 11px;
}

.delivery-option-bottom strong {
  color: #090909;
  font-size: 16px;
}

.delivery-disclaimer,
.delivery-state {
  margin: 0;
}

.delivery-state {
  padding: 13px;
  border-left: 5px solid #f2ae00;
  background: #fff8e5;
  font-size: 12px;
  font-weight: 800;
}

.delivery-state.error {
  border-left-color: #9e2720;
  background: #fff0ef;
  color: #9e2720;
}

.cart-toast {
  position: fixed;
  z-index: 1500;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--black);
  color: white;
  box-shadow: 0 15px 45px rgba(0,0,0,.25);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .cart-fab {
    top: 18px;
    right: 14px;
  }

  .cart-fab > span {
    display: none;
  }

  .shipping-methods {
    grid-template-columns: 1fr;
  }
}

.visual-field .visual-select-search {
  height: 38px;
  padding: 0 11px;
  border-color: rgba(255,255,255,.14);
  background: #1a1a2f;
  color: #eee;
  font-size: 12px;
  font-weight: 500;
}

/* Segunda propuesta: tarjeta resumen + selector en modal */
.visual-field .visual-select-trigger {
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid oklch(82% 0.01 250);
  border-radius: 10px;
  background: oklch(98% 0.003 250);
  color: var(--black);
  box-shadow: none;
}

.visual-field .visual-select-trigger:hover,
.visual-field .visual-select-trigger[aria-expanded="true"] {
  border-color: var(--gold);
  background: oklch(97% 0.025 86);
}

.visual-field .visual-select-copy b {
  color: var(--black);
  font-size: 14px;
}

.visual-field .visual-select-copy small {
  color: oklch(48% 0.01 250);
  font-size: 10px;
}

.visual-field .visual-select-arrow {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  place-items: center;
}

.visual-select-panel {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  width: auto;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  place-items: center;
}

.visual-select-panel[hidden] {
  display: none;
}

.visual-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 7, 12, .78);
  backdrop-filter: blur(5px);
}

.visual-modal-dialog {
  position: relative;
  display: flex;
  width: min(900px, 100%);
  max-height: min(800px, calc(100vh - 48px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(213,155,66,.42);
  border-radius: 14px;
  background: #11121c;
  color: #f3f0e8;
  box-shadow: 0 35px 90px rgba(0,0,0,.55);
}

.visual-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0b0c14;
}

.visual-modal-header span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.visual-modal-header h3 {
  margin: 3px 0 0;
  font-family: "Anton", sans-serif;
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.visual-modal-header button {
  border: 0;
  background: transparent;
  color: #8e91a0;
  cursor: pointer;
  font-size: 30px;
}

.visual-modal-body {
  overflow-y: auto;
  padding: 18px 22px 22px;
}

.visual-modal-body .visual-select-search {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 44px;
  margin-bottom: 12px;
}

.glass-thickness-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.glass-thickness-tab {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: transparent;
  color: #9095a4;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.glass-thickness-tab.selected {
  border-color: var(--gold);
  background: rgba(213,155,66,.14);
  color: var(--gold);
}

.glass-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
}

.glass-card-grid .visual-list-item {
  min-height: 68px;
}

.trim-help {
  margin: -10px 0 14px;
}

.mosquito-add-field {
  display: grid;
  max-width: 520px;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mosquito-add-field select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #c8cdd4;
  border-radius: 10px;
  background: #f8f9fa;
  color: var(--black);
  font: inherit;
  font-size: 15px;
  text-transform: none;
}

.mosquito-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c8cdd4;
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  background: #f8f9fa;
}

.mosquito-config[hidden] {
  display: none;
}

.mosquito-config h3 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
}

.mosquito-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.mosquito-type-options button {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid #c8cdd4;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.mosquito-type-options button:hover,
.mosquito-type-options button.selected {
  border-color: var(--gold);
  background: oklch(97% 0.035 87);
}

.mosquito-type-options small,
.mosquito-colour-trigger small {
  color: #6f7680;
  font-size: 10px;
  line-height: 1.35;
}

.mosquito-colour-field {
  position: relative;
}

.mosquito-colour-trigger {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid #c8cdd4;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.mosquito-colour-trigger > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.mosquito-swatch {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

.mosquito-colour-menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 7px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: white;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .14);
}

.mosquito-colour-menu[hidden] {
  display: none;
}

.mosquito-colour-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #e0e2e5;
  background: white;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.mosquito-colour-menu button:hover,
.mosquito-colour-menu button[aria-selected="true"] {
  background: #fff4ce;
}

.mosquito-measures {
  grid-column: 1 / -1;
  margin: 0;
  color: #5c626d;
  font-size: 12px;
  font-weight: 700;
}

.trim-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.trim-option {
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  padding: 11px;
  border: 2px solid oklch(88% 0.008 250);
  border-radius: 9px;
  background: oklch(98% 0.003 250);
  color: var(--black);
  cursor: pointer;
  text-align: left;
}

.trim-option:hover,
.trim-option.selected {
  border-color: var(--gold);
  background: oklch(97% 0.035 87);
}

.trim-option small,
.trim-loading {
  color: oklch(48% 0.008 250);
  font-size: 10px;
}

.trim-loading {
  align-self: center;
}

@media (max-width: 760px) {
  .visual-select-panel {
    padding: 10px;
  }

  .visual-modal-dialog {
    max-height: calc(100vh - 20px);
  }

  .glass-card-grid,
  .trim-options,
  .mosquito-config,
  .mosquito-type-options {
    grid-template-columns: 1fr;
  }

  .mosquito-colour-menu {
    position: static;
    margin-top: 7px;
    box-shadow: none;
  }
}
