/* Product selection and a complete XIOT-ENERGY equipment estimate. */
[hidden] { display: none !important; }

.hero-price { margin-top: 24px; font-size: 14px; color: var(--muted); }
.hero-price strong { color: var(--navy); font-size: 19px; white-space: nowrap; font-weight: 700; }
.hero-price > span { display: block; margin-top: 4px; font-size: 12px; }
.scene-hardware { width: 100%; height: 205px; object-fit: contain; }
.step-mark { display: inline-grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: #fff; font-size: 10px; letter-spacing: 0; }

.panels .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.panels .panel-card { padding: 0; display: flex; flex-direction: column; border: 1px solid #d7dfe3; border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.panels .panel-card.is-selected { border-color: var(--green-ink); box-shadow: 0 0 0 1px var(--green-ink), 0 16px 42px #06131f0a; }
.panel-photo-area { min-width: 0; padding: 24px 26px 0; }
.product-view-controls { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin: 0 auto 20px; border: 1px solid #e3e8ea; border-radius: 9px; background: #f4f6f6; }
.product-view-controls button { min-height: 36px; padding: 8px 13px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.35; font-weight: 600; }
.product-view-controls button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 6px #06131f12; }
.product-photo { display: grid; grid-template-rows: minmax(0, 1fr) 36px; align-items: center; gap: 18px; height: 355px; margin: 0; }
.product-photo img { width: 100%; height: 100%; min-height: 0; max-height: 300px; object-fit: contain; }
.product-render { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.product-render img { max-height: none; }
.product-render-wide img { position: absolute; top: 50%; left: 50%; width: min(100%,460px); height: auto; max-height: none; transform: translate(-50%,-47%); }
.product-photo figcaption { align-self: start; max-width: 390px; margin-inline: auto; text-align: center; font-size: 10px; line-height: 1.5; color: #78838b; }
.product-screen img { width: auto; max-width: 100%; justify-self: center; object-fit: contain; border: 7px solid #18252e; border-radius: 12px; box-shadow: 0 12px 22px #06131f18; }
.panels .panel-card .panel-info { display: flex; flex: 1; flex-direction: column; padding: 26px 30px 30px; }
.panels .panel-label { font-size: 11px; line-height: 1.5; }
.panels .panel-card h3 { margin: 10px 0 12px; font-size: 29px; line-height: 1.15; letter-spacing: -.045em; }
.panel-description { min-height: 50px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.panel-price { margin: 26px 0 25px; color: var(--navy); font-size: 42px; line-height: 1.05; font-weight: 720; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.panel-price > span { font-size: .7em; font-weight: 550; }
.panel-price small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; letter-spacing: 0; font-weight: 450; }
.panel-purchase { display: flex; align-items: center; flex-wrap: wrap; gap: 17px 22px; margin-top: auto; padding-top: 23px; border-top: 1px solid var(--line); }
.panel-choice { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 50px; padding: 12px 18px; border: 1px solid #cbd4d9; border-radius: 9px; color: var(--navy); background: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.panel-choice input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: var(--green); cursor: pointer; }
.panel-card.is-selected .panel-choice { background: var(--navy); border-color: var(--navy); color: #fff; }
.panel-choice:focus-within { outline: 3px solid var(--green-ink); outline-offset: 4px; }
.panel-purchase > a { color: var(--muted); font-size: 11px; font-weight: 550; text-decoration: none; }
.panel-purchase > a:hover { color: var(--navy); text-decoration: underline; }
.panel-next { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; line-height: 1.5; }

.configurator { background: #fff; }
.config-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 46px; align-items: start; }
.config-builder { min-width: 0; }
.config-panel-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; padding: 23px 25px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 12px; background: var(--paper); }
.config-panel-line > div { min-width: 0; }
.config-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .07em; text-transform: uppercase; }
.config-panel-line strong { display: block; color: var(--navy); font-size: 20px; font-weight: 680; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.config-panel-line > a { flex: 0 0 auto; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 550; }
.config-panel-line > a:hover { color: var(--green-ink); }
.config-breaker-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.config-breaker-heading h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; }
.config-breaker-heading > span { flex: 0 0 auto; padding: 4px 9px; border-radius: 6px; background: var(--paper); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
#breakerRows { display: grid; gap: 14px; }
.breaker-row { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.breaker-select-field { min-width: 0; }
.breaker-select-field label { display: block; margin-bottom: 9px; font-size: 10px; line-height: 1.45; font-weight: 650; color: var(--muted); letter-spacing: .035em; }
.breaker-select-field select { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 11px 35px 11px 13px; border: 1px solid #c9d3d9; border-radius: 8px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 550; text-overflow: ellipsis; }
.breaker-detail { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.breaker-row-bottom { display: flex; align-items: center; gap: 16px; margin-top: 21px; padding-top: 17px; border-top: 1px solid #edf0f1; }
.breaker-quantity { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; border: 1px solid #d1d9de; border-radius: 8px; background: #fff; }
.breaker-quantity button { width: 40px; height: 42px; flex: 0 0 40px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--navy); font-size: 21px; line-height: 1; }
.breaker-quantity button:disabled { color: #a5afb5; cursor: default; }
.breaker-quantity input { width: 42px; height: 40px; min-width: 0; padding: 0 2px; border: 0; background: transparent; color: var(--navy); text-align: center; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.breaker-quantity input::-webkit-inner-spin-button,.breaker-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.breaker-row-price { min-width: 0; margin-left: auto; text-align: right; }
.breaker-row-price small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.breaker-row-price strong { display: block; color: var(--navy); font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.breaker-remove { display: inline-grid; place-items: center; min-width: 40px; height: 44px; flex: 0 0 auto; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #818b93; font-size: 12px; line-height: 1.3; }
.breaker-remove svg { width: 18px; height: 18px; }
.breaker-remove:hover { background: #fceff0; color: #ad3741; }
.config-add { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 49px; margin-top: 17px; padding: 11px 18px; border: 1px dashed #b9c8c2; border-radius: 10px; background: #f4faf7; color: var(--green-ink); font-size: 13px; font-weight: 600; }
.config-add > span { font-size: 21px; line-height: 1; }
.config-add:disabled { opacity: .5; cursor: default; }
.config-engineering-note { margin-top: 19px; color: #79858d; font-size: 11px; line-height: 1.7; }
.config-empty,.config-fallback { padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--paper); font-size: 14px; line-height: 1.65; }
.config-summary { position: sticky; top: calc(var(--header-height) + 24px); min-width: 0; padding: 31px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 0 22px 45px #06131f15; }
.config-summary-kicker { color: #fff; font-size: 15px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.config-summary-phases { display: flex; gap: 6px; width: 90px; margin: 20px 0 28px; }
.config-summary-phases i { flex: 1; height: 4px; border-radius: 2px; background: var(--yellow); }
.config-summary-phases i:nth-child(2) { background: var(--green); }
.config-summary-phases i:nth-child(3) { background: var(--red); }
.config-summary dl { margin: 0; }
.config-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding: 13px 0; border-bottom: 1px solid #ffffff18; }
.config-summary dt { color: #b4c1cb; font-size: 12px; }
.config-summary dd { margin: 0 0 0 auto; color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.config-total { margin-top: 26px; }
.config-total > span { display: block; margin-bottom: 9px; font-size: 11px; color: #b4c1cb; }
.config-total > strong { display: block; color: #fff; font-size: clamp(29px,3.5vw,46px); line-height: 1.12; font-weight: 680; letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.config-summary .config-order { width: 100%; min-height: 54px; margin-top: 25px; padding-inline: 17px; border-color: var(--green); background: var(--green); color: var(--navy); font-size: 14px; font-weight: 680; }
.config-summary .config-order::after { content: '→'; }
.config-summary .config-order:hover { background: #68d5a4; border-color: #68d5a4; }
.config-summary .config-order:focus-visible { outline-color: var(--yellow); }
.config-order-note { margin-top: 15px; color: #bdc9d1; font-size: 11px; line-height: 1.65; }
.config-price-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ffffff18; color: #91a4b2; font-size: 10px; line-height: 1.7; }

.consult-selection { max-height: 190px; overflow-y: auto; margin-bottom: 24px; padding: 17px 19px; border: 1px solid #d9e8df; border-left: 3px solid var(--green); border-radius: 9px; background: #f4f9f6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.consult-form textarea { display: block; width: 100%; min-width: 0; min-height: 98px; padding: 12px; border: 1px solid #ccd4d9; border-radius: 8px; background: #fff; color: var(--navy); font: 16px/1.5 var(--font); resize: vertical; }
.consult-form textarea::placeholder { color: #7d8991; }
.consult-form label[for="consultComment"] { align-self: start; margin-top: 13px; }
.consult-status { grid-column: 1/-1; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.consult-status:empty { display: none; }
.consult-status.is-error,.consult-status[data-state="error"] { color: #a63643; }
.consult-status.is-success,.consult-status[data-state="success"] { color: var(--green-ink); }
.consult-status { margin-top: 18px; }
.consult-form :disabled { opacity: .65; cursor: wait; }
.modal-close:disabled { opacity: .4; cursor: wait; }
.breaker-quantity input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: -2px; }
.config-summary .config-order:disabled { opacity: .5; cursor: default; transform: none; }

@media (min-width:901px) and (max-width:1150px) {
  .header-inner { gap: 20px; }
  .header-inner > nav { gap: 17px; }
  .header-inner > nav a { font-size: 12px; white-space: nowrap; }
  .header-inner > .button { flex: 0 0 auto; gap: 10px; padding-inline: 13px; font-size: 12px; }
}
@media (max-width:1100px) {
  .config-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .config-summary { position: static; }
  .config-summary .config-order { max-width: 440px; }
  .config-total > strong { font-size: 43px; }
  .config-order-note,.config-price-note { max-width: 650px; }
  .panels .panel-card .panel-info { padding: 24px; }
  .panels .panel-card h3 { font-size: 27px; }
  .panel-photo-area { padding: 20px 20px 0; }
  .product-photo { height: 315px; }
  .panel-price { font-size: 38px; }
  .panel-description { min-height: 68px; }
}
@media (max-width:900px) {
  .scene-hardware { height: 260px; }
  .product-photo { height: 290px; grid-template-rows: minmax(0,1fr) 46px; }
  .product-view-controls { gap: 2px; padding: 3px; }
  .product-view-controls button { padding-inline: 10px; font-size: 10px; }
  .panel-purchase { align-items: flex-start; flex-direction: column; gap: 14px; }
  .panel-choice { width: 100%; }
  .panels .panel-card h3 { font-size: 25px; }
}
@media (max-width:760px) {
  .panels .panel-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .product-photo { height: 345px; grid-template-rows: minmax(0,1fr) 36px; }
  .product-photo img { max-width: 420px; justify-self: center; }
  .panel-purchase { flex-direction: row; align-items: center; }
  .panel-choice { width: auto; }
  .panel-description { min-height: 0; }
}
@media (max-width:640px) {
  .hero-price { margin-top: 20px; font-size: 12px; }
  .hero-price strong { font-size: 17px; }
  .hero-price > span { max-width: 290px; font-size: 11px; line-height: 1.5; }
  .scene-hardware { height: 145px; }
  .step-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .panel-photo-area { padding: 17px 18px 0; }
  .product-view-controls { margin-bottom: 14px; }
  .product-view-controls button { min-height: 40px; padding: 9px 13px; font-size: 11px; }
  .product-photo { height: 305px; gap: 12px; grid-template-rows: minmax(0,1fr) 42px; }
  .product-photo figcaption { font-size: 9px; }
  .product-screen img { border-width: 5px; border-radius: 9px; }
  .panels .panel-card .panel-info { padding: 22px; }
  .panels .panel-card h3 { font-size: 27px; }
  .panels .panel-label { font-size: 10px; }
  .panel-description { font-size: 13px; }
  .panel-price { font-size: 38px; margin-block: 23px; }
  .panel-purchase { align-items: flex-start; flex-direction: column; gap: 17px; padding-top: 20px; }
  .panel-choice { width: 100%; }
  .panel-next { align-items: flex-start; font-size: 12px; margin-top: 23px; }
  .config-layout { gap: 25px; }
  .config-panel-line { padding: 20px; margin-bottom: 26px; gap: 14px; }
  .config-panel-line strong { font-size: 17px; }
  .config-label { font-size: 9px; }
  .config-breaker-heading h3 { font-size: 16px; }
  .breaker-row { padding: 20px; }
  .breaker-select-field select { font-size: 16px; }
  .breaker-quantity input { font-size: 16px; }
  .config-engineering-note { font-size: 10px; }
  .config-summary { padding: 26px; border-radius: 15px; }
  .config-total > strong { font-size: clamp(29px,8vw,42px); }
  .config-summary-kicker { font-size: 14px; }
  .config-order-note { font-size: 11px; }
  .config-price-note { font-size: 10px; }
  .consult-selection { max-height: 155px; padding: 14px; font-size: 11px; }
  .consult-form label[for="consultComment"] { margin-top: 7px; }
}
@media (max-width:520px) {
  .breaker-row-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; }
  .breaker-quantity { justify-self: start; }
  .breaker-row-price { grid-column: 1/-1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; width: 100%; margin: 0; gap: 7px; }
  .breaker-row-price small { margin: 0; }
  .breaker-row-price strong { margin-left: auto; font-size: 23px; }
  .breaker-remove { grid-column: 2; grid-row: 1; }
}
@media (max-width:360px) {
  .panels .panel-card .panel-info { padding: 19px; }
  .panels .panel-card h3 { font-size: 25px; }
  .product-photo { height: 275px; }
  .panel-price { font-size: 36px; }
  .config-panel-line { padding: 17px; }
  .config-panel-line strong { font-size: 15px; }
  .breaker-row { padding: 16px; }
  .config-summary { padding: 23px; }
  .config-summary dl > div { gap: 7px; }
  .config-summary dt { font-size: 11px; }
  .config-summary dd { font-size: 14px; }
}
