/* Voordeelramen — calculator wizard */

.rw-wizard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.rw-wizard-shell--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin: 0 auto;
}

.rw-wizard-panel {
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.rw-wizard-progress {
  padding: 16px 20px 0;
}

.rw-wizard-progress-bar {
  height: 4px;
  background: #EEECE4;
  border-radius: 999px;
  overflow: hidden;
}

.rw-wizard-progress-fill {
  height: 100%;
  background: #17402F;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.rw-wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9AA096;
}

.rw-wizard-body {
  padding: 24px 20px 12px;
  flex: 1;
}

.rw-wizard-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #171B18;
}

.rw-wizard-sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #6B7168;
}

.rw-wizard-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px 20px;
  border-top: 1px solid #EEECE4;
  background: #FAFAF7;
}

.rw-wizard-footer-price {
  min-width: 0;
}

.rw-wizard-footer-price strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17402F;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.rw-wizard-footer-price span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: #6B7168;
}

.rw-wizard-footer-actions {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 220px;
}

.rw-wizard-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.rw-wizard-btn--back {
  flex: 0 0 auto;
  background: #FFFFFF;
  color: #4A5048;
  border: 1px solid #E5E3DC;
  padding-left: 18px;
  padding-right: 18px;
}

.rw-wizard-btn--primary {
  background: #17402F;
  color: #FAFAF7;
}

.rw-wizard-btn--primary:hover,
.rw-wizard-btn--back:hover {
  filter: brightness(0.96);
}

.rw-wizard-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Category grid */
.rw-wiz-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rw-wiz-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1.5px solid #E5E3DC;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: center;
  min-height: 118px;
}

.rw-wiz-cat-btn.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-cat-btn img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.rw-wiz-cat-btn span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #171B18;
}

/* Material / opening list cards */
.rw-wiz-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-wiz-list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E5E3DC;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
}

.rw-wiz-list-card.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-list-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.rw-wiz-list-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.rw-wiz-list-card-body {
  flex: 1;
  min-width: 0;
}

.rw-wiz-list-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #171B18;
}

.rw-wiz-list-card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6B7168;
}

.rw-wiz-badge {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #17402F;
  color: #FAFAF7;
  border-radius: 999px;
  padding: 3px 8px;
}

/* System cards */
.rw-wiz-system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rw-wiz-system-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1.5px solid #E5E3DC;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: center;
}

.rw-wiz-system-card.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-system-card img {
  width: 100%;
  max-width: 112px;
  height: 72px;
  object-fit: contain;
}

.rw-wiz-system-name {
  font-size: 15px;
  font-weight: 700;
  color: #171B18;
}

.rw-wiz-system-choice {
  display: block;
  margin-top: 10px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #17402F;
}

.rw-wiz-system-desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: #6B7168;
}

.rw-wiz-compare-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #17402F;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* Layout grid */
.rw-wiz-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rw-wiz-layout-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid #E5E3DC;
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
}

.rw-wiz-layout-btn.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-layout-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.rw-wiz-layout-btn span {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #171B18;
  text-align: center;
}

.rw-wiz-show-all {
  margin-top: 12px;
  width: 100%;
  padding: 11px;
  border: 1px dashed #B9C4B6;
  border-radius: 12px;
  background: #FAFAF7;
  color: #17402F;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Dimensions */
.rw-wiz-dim-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.rw-wiz-dim-visual img {
  width: 120px;
  height: 130px;
  object-fit: contain;
  opacity: 0.85;
}

.rw-wiz-dim-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.rw-wiz-dim-field label {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA096;
  margin-bottom: 6px;
}

.rw-wiz-dim-field input {
  width: 100%;
  border: 1px solid #E5E3DC;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: #FAFAF7;
  outline: none;
}

.rw-wiz-dim-x {
  font-size: 18px;
  color: #9AA096;
  padding-top: 18px;
}

.rw-wiz-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-wiz-preset {
  border-radius: 999px;
  border: 1px dashed #B9C4B6;
  background: #FFFFFF;
  color: #6B7168;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.rw-wiz-preset.is-selected {
  border-color: #17402F;
  border-style: solid;
  background: #EAF0E9;
  color: #17402F;
}

/* Glazing + color */
.rw-wiz-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.rw-wiz-segment-btn {
  padding: 14px;
  border: 1.5px solid #E5E3DC;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: center;
}

.rw-wiz-segment-btn.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-segment-btn img {
  width: 80px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 6px;
}

.rw-wiz-segment-btn span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #171B18;
  line-height: 1.35;
}

.rw-wiz-segment-btn.is-selected span {
  color: #17402F;
}

.rw-wiz-color-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-wiz-color-chip {
  border-radius: 999px;
  border: 1px solid #E5E3DC;
  background: #FFFFFF;
  color: #4A5048;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.rw-wiz-color-chip.is-selected {
  border-color: #17402F;
  background: #17402F;
  color: #FAFAF7;
}

/* Cart sidebar */
.rw-wiz-cart {
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  border-radius: 20px;
  padding: 20px;
  position: sticky;
  top: 92px;
}

.rw-wiz-cart-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
}

.rw-wiz-live-price {
  margin: 0 0 16px;
  padding: 14px 14px 16px;
  background: #F4F7F3;
  border: 1px solid #D7E2D6;
  border-radius: 14px;
}

.rw-wiz-live-price--sheet {
  margin-bottom: 0;
}

.rw-wiz-live-price-label {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #17402F;
}

.rw-wiz-live-price-value {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17402F;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.rw-wiz-live-price-spec {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #4A5048;
  line-height: 1.4;
}

.rw-wiz-live-price-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6B7168;
  line-height: 1.4;
}

.rw-wiz-cart-empty {
  font-size: 13.5px;
  color: #9AA096;
  line-height: 1.5;
  margin: 0;
}

.rw-wiz-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rw-wiz-cart-line {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EEECE4;
}

.rw-wiz-cart-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rw-wiz-cart-thumb {
  width: 44px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  background: #F4F3EC;
  border-radius: 8px;
  padding: 4px;
}

.rw-wiz-cart-info {
  flex: 1;
  min-width: 0;
}

.rw-wiz-cart-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.rw-wiz-cart-spec {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6B7168;
  line-height: 1.35;
}

.rw-wiz-cart-price {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: #17402F;
  margin-top: 4px;
}

.rw-wiz-cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.rw-wiz-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #E5E3DC;
  border-radius: 999px;
  padding: 2px;
}

.rw-wiz-qty button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: #F2F1EA;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.rw-wiz-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.rw-wiz-edit-link {
  font-size: 12px;
  font-weight: 600;
  color: #17402F;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.rw-wiz-cart-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EEECE4;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.rw-wiz-cart-total strong {
  font-family: "DM Mono", monospace;
  font-size: 16px;
  color: #17402F;
}

.rw-wiz-cart-breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EEECE4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rw-wiz-cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #6B7168;
}

.rw-wiz-cart-breakdown-row span:last-child {
  font-family: "DM Mono", monospace;
  font-size: 12px;
  color: #171B18;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rw-wiz-cart-breakdown-row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #EEECE4;
  font-size: 14px;
  color: #171B18;
  font-weight: 600;
}

.rw-wiz-cart-breakdown-row--total strong {
  font-family: "DM Mono", monospace;
  font-size: 15px;
  color: #17402F;
}

.rw-wiz-cart-breakdown-row--subtotal {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #E5E3DC;
  font-weight: 600;
  color: #4A5048;
}

.rw-wiz-cart-breakdown-row--discount span:first-child {
  color: #17402F;
  font-weight: 600;
}

.rw-wiz-cart-breakdown-row--discount span:last-child {
  color: #1F6B45;
  font-weight: 700;
}

.rw-wiz-volume-discount {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EAF5EE 0%, #F4FAF6 100%);
  border: 1px solid #B9D9C4;
}

.rw-wiz-volume-discount--confirm,
.rw-wiz-volume-discount--mobile {
  margin-top: 0;
  margin-bottom: 12px;
}

.rw-wiz-volume-discount-badge {
  flex-shrink: 0;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #17402F;
  color: #FAFAF7;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.rw-wiz-volume-discount-copy strong {
  display: block;
  font-size: 14px;
  color: #17402F;
  margin-bottom: 4px;
}

.rw-wiz-volume-discount-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4A5048;
}

.rw-wiz-volume-upsell {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FAFAF7;
  border: 1px dashed #D5D2C8;
}

.rw-wiz-volume-upsell p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6B7168;
}

.rw-wiz-cart-total-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9AA096;
}

.rw-wiz-cart-services {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #EEECE4;
}

.rw-wiz-cart-services-label {
  margin: 0;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B7168;
}

.rw-wiz-cart-services-note {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #6B7168;
}

.rw-wiz-service-grid--cart {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .rw-wiz-service-grid--cart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rw-wiz-mobile-cart-breakdown {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid #EEECE4;
  background: #FFFFFF;
  flex-shrink: 0;
}

.rw-wiz-mobile-cart-note {
  margin: 0;
  padding: 0 18px 12px;
  background: #FFFFFF;
  flex-shrink: 0;
}

/* Full cart screen */
.rw-wiz-cart-main {
  min-width: 0;
}

.rw-wiz-cart-main .rw-wiz-cart-line {
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  border-radius: 14px;
  padding: 14px;
  border-bottom: 1px solid #E5E3DC;
}

.rw-wiz-cart-cta {
  margin-top: 24px;
}

.rw-wiz-add-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 1.5px dashed #B9C4B6;
  border-radius: 14px;
  background: #FAFAF7;
  color: #17402F;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Service cards */
.rw-wiz-service-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.rw-wiz-service-card {
  padding: 16px 18px;
  border: 1.5px solid #E5E3DC;
  border-radius: 14px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.rw-wiz-service-card.is-selected {
  border-color: #17402F;
  background: #EAF0E9;
}

.rw-wiz-service-card strong {
  display: block;
  font-size: 15px;
  color: #171B18;
}

.rw-wiz-service-card span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #6B7168;
}

.rw-wiz-postcode {
  margin-top: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.rw-wiz-postcode input {
  width: 100%;
  max-width: 200px;
  border: 1px solid #E5E3DC;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  text-transform: uppercase;
  background: #FFFFFF;
}

/* Compare modal */
.rw-wiz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 24, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.rw-wiz-modal {
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
}

.rw-wiz-modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.rw-wiz-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rw-wiz-compare-table th,
.rw-wiz-compare-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #EEECE4;
  text-align: left;
  vertical-align: top;
}

.rw-wiz-compare-table th {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9AA096;
  font-weight: 500;
}

.rw-wiz-modal-close {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: #17402F;
  color: #FAFAF7;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Mobile sticky bar */
.rw-wiz-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #FFFFFF;
  border-top: 1px solid #E5E3DC;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -8px 24px rgba(23, 27, 24, 0.08);
}

.rw-wiz-mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.rw-wiz-mobile-bar-total {
  font-family: "DM Mono", monospace;
  font-size: 17px;
  font-weight: 700;
  color: #17402F;
}

.rw-wiz-mobile-bar-caption {
  font-size: 11px;
  color: #9AA096;
}

.rw-wiz-mobile-bar-summary {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font-family: inherit;
}

.rw-wiz-mobile-bar-summary::after {
  content: "▲";
  display: block;
  font-size: 9px;
  color: #9AA096;
  margin-top: 2px;
  letter-spacing: 0.08em;
}

.rw-wiz-mobile-bar-action {
  flex: 0 0 auto;
  padding: 12px 18px;
}

/* Mobile cart bottom sheet */
.rw-wiz-mobile-cart-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 13, 0.45);
  align-items: flex-end;
  justify-content: center;
}

.rw-wiz-mobile-cart-sheet {
  width: 100%;
  max-height: min(85vh, 720px);
  background: #FAFAF7;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 48px rgba(18, 16, 13, 0.18);
  animation: rw-cart-sheet-in 0.28s ease;
}

@keyframes rw-cart-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.rw-wiz-mobile-cart-handle {
  width: 40px;
  height: 4px;
  background: #D5D2C8;
  border-radius: 999px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.rw-wiz-mobile-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #EEECE4;
}

.rw-wiz-mobile-cart-head .rw-wiz-cart-title {
  margin: 0;
}

.rw-wiz-mobile-cart-close {
  border: none;
  background: #F2F1EA;
  color: #4A5048;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.rw-wiz-mobile-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 8px;
  -webkit-overflow-scrolling: touch;
}

.rw-wiz-mobile-cart-body .rw-wiz-cart-line {
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.rw-wiz-mobile-cart-foot {
  margin: 0;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid #EEECE4;
  background: #FFFFFF;
  flex-shrink: 0;
}

.rw-wiz-special-compact {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #E5E3DC;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-wiz-special-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
}

.rw-wiz-special-compact-name {
  font-size: 12px;
  font-weight: 600;
  color: #171B18;
  line-height: 1.3;
}

.rw-wiz-special-compact-meta {
  font-size: 10.5px;
  color: #9AA096;
  white-space: nowrap;
  font-family: "DM Mono", monospace;
}

.rw-wiz-special-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #FAFAF7;
  border-radius: 10px;
  border: 1px solid #EEECE4;
}

.rw-wiz-special-row-main {
  min-width: 0;
  flex: 1;
}

.rw-wiz-special-row-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #171B18;
  line-height: 1.25;
}

.rw-wiz-special-row-meta {
  display: block;
  font-size: 11px;
  color: #9AA096;
  margin-top: 1px;
}

.rw-wiz-cart-actions--inline {
  margin-top: 0;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rw-wiz-cart-info--full {
  width: 100%;
}

.rw-wiz-cart-price--muted {
  color: #9AA096 !important;
}

.rw-wiz-special-added {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rw-wiz-special-added-label {
  margin: 0;
  font-size: 11px;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9AA096;
}

@media (max-width: 1024px) {
  .rw-wizard-shell {
    grid-template-columns: 1fr;
  }

  .rw-wiz-cart--sidebar {
    display: none;
  }

  .rw-wiz-mobile-bar {
    display: block;
  }

  .rw-wiz-mobile-cart-backdrop {
    display: flex;
  }

  #calculator {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0)) !important;
  }
}

@media (min-width: 901px) {
  .rw-wiz-modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .rw-wiz-modal {
    border-radius: 20px;
  }
}

@media (max-width: 900px) {
  .rw-wiz-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rw-wiz-system-grid {
    grid-template-columns: 1fr;
  }

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

  .rw-wizard-title {
    font-size: 20px;
  }
}

/* Step progress with icons */
.rw-wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.rw-wizard-steps::-webkit-scrollbar {
  display: none;
}

.rw-wizard-step {
  flex: 1;
  min-width: 52px;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  opacity: 1;
}

.rw-wizard-step-icon {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.45;
}

.rw-wizard-step-label {
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #9AA096;
  text-align: center;
  line-height: 1.2;
}

.rw-wizard-step.is-done .rw-wizard-step-icon {
  opacity: 0.75;
}

.rw-wizard-step.is-done .rw-wizard-step-label {
  color: #6B7168;
}

.rw-wizard-step.is-current .rw-wizard-step-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1200%) hue-rotate(115deg) brightness(95%);
}

.rw-wizard-step.is-done .rw-wizard-step-icon {
  opacity: 0.85;
  filter: brightness(0) saturate(100%) invert(42%) sepia(8%) saturate(600%) hue-rotate(70deg) brightness(95%);
}

.rw-wizard-step.is-current .rw-wizard-step-label {
  color: #17402F;
  font-weight: 600;
}

.rw-wizard-step.is-upcoming.is-locked {
  cursor: not-allowed;
  opacity: 0.5;
}

.rw-wizard-step.is-done:hover .rw-wizard-step-icon,
.rw-wizard-step.is-current:hover .rw-wizard-step-icon {
  opacity: 1;
}

.rw-wizard-progress--compact .rw-wizard-step {
  min-width: 44px;
  max-width: 56px;
}

.rw-wizard-progress--compact .rw-wizard-step-icon {
  width: 18px;
  height: 18px;
}

.rw-wizard-progress--compact .rw-wizard-step-label {
  font-size: 8px;
}

/* Hero layout — mobile first (1 col), desktop 2 col */
.rw-hero-section {
  position: relative;
  overflow: hidden;
  background: #fafaf7;
}

.rw-hero-video-wrap {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rw-hero-video-media {
  position: absolute;
  inset: 0;
  filter: grayscale(55%) saturate(0.65) contrast(0.95) brightness(1.06);
  opacity: 0.42;
  transform: scale(1.03);
  -webkit-transform: scale(1.03);
}

.rw-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.rw-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(250, 250, 247, 0.96) 0%,
    rgba(250, 250, 247, 0.88) 34%,
    rgba(250, 250, 247, 0.62) 58%,
    rgba(250, 250, 247, 0.78) 100%
  );
}

@media (max-width: 768px) {
  .rw-hero-video-media {
    opacity: 0.52;
  }

  .rw-hero-video {
    object-position: center 28%;
  }

  .rw-hero-video-overlay {
    background: linear-gradient(
      180deg,
      rgba(250, 250, 247, 0.84) 0%,
      rgba(250, 250, 247, 0.62) 42%,
      rgba(250, 250, 247, 0.74) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .rw-hero-video {
    display: block;
  }
}

.rw-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 901px) {
  .rw-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Hero mini-calculator */
.rw-hero-wizard {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  min-height: auto;
  box-shadow: 0 20px 48px rgba(23, 64, 47, 0.14);
  border: 1.5px solid #17402F;
}

@media (min-width: 901px) {
  .rw-hero-wizard {
    margin-left: auto;
  }
}

.rw-hero-wizard.rw-wizard-panel {
  min-height: 0;
  overflow: visible;
}

.rw-hero-wizard .rw-wizard-progress {
  flex-shrink: 0;
  padding-bottom: 14px;
}

.rw-hero-wizard .rw-wizard-footer {
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .rw-hero-wizard {
    max-width: none;
  }

  .rw-wiz-cat-grid--hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rw-wiz-layout-grid--hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rw-wizard-progress--compact .rw-wizard-step {
    min-width: 48px;
    max-width: 64px;
  }

  .rw-wizard-progress--compact .rw-wizard-step-icon {
    width: 20px;
    height: 20px;
  }
}

.rw-hero-wizard-head {
  padding: 18px 18px 0;
  flex-shrink: 0;
}

.rw-hero-wizard-price {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #17402F;
  font-variant-numeric: tabular-nums;
}

.rw-wizard-body--hero {
  padding: 4px 16px 8px;
  flex: 0 1 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.rw-wizard-body--hero .rw-wiz-show-all {
  margin-bottom: 4px;
}

.rw-wizard-body--hero .rw-wizard-title {
  font-size: 17px;
  margin: 0 0 12px;
  line-height: 1.25;
}

.rw-wiz-cat-grid--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rw-wiz-layout-grid--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rw-wiz-segment--hero {
  margin-bottom: 12px;
}

.rw-hero-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

@media (min-width: 901px) {
  .rw-hero-form {
    justify-content: flex-start;
    align-self: start;
    margin-top: -4px;
  }

  /* Filled state: compact summary card, vertically centered vs left copy */
  .rw-hero-form:has(.rw-hero-summary) {
    justify-content: center;
    align-self: stretch;
    margin-top: 0;
  }
}

.rw-hero-summary {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

/* Clear calculation confirm */
.rw-clear-calc-wrap {
  position: relative;
}

.rw-clear-calc-wrap--hero {
  margin-top: 18px;
  text-align: center;
}

.rw-clear-calc-wrap--hero .rw-clear-calc-confirm {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 48px));
}

.rw-clear-calc-trigger {
  border: none;
  background: transparent;
  color: #B4552D;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rw-clear-calc-confirm {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(300px, 90vw);
  background: #FFFFFF;
  border: 1px solid #E5E3DC;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(18, 16, 13, 0.12);
}

.rw-clear-calc-btn {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.rw-clear-calc-btn--danger {
  background: #B4552D;
  color: #FAFAF7;
}

.rw-clear-calc-btn--cancel {
  background: #F4F3EF;
  color: #4A5048;
}
