/* Price-list calculator: grouped tasks and accessible quantity controls. */
.calculator-panel { align-self: start; scroll-margin-top: 100px; }
.quote-extras { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.quote-extras > legend { font-weight: 700; margin-bottom: 14px; }
.calc-note { font-size: 12px; line-height: 1.6; color: #527285; margin: 12px 0; }
.calc-note a { color: #0877b1; text-underline-offset: 3px; text-decoration: underline; }
.calc-extra-groups { border-top: 1px solid #cce1ec; margin-top: 14px; }
.calc-extra-group { border-bottom: 1px solid #cce1ec; }
.calc-extra-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; color: #183e53; font-weight: 650; cursor: pointer; list-style: none; }
.calc-extra-group > summary::-webkit-details-marker { display: none; }
.calc-extra-group > summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: 0 0 auto; transition: transform .2s; }
.calc-extra-group[open] > summary svg { transform: rotate(180deg); }
.calc-option-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; min-width: 0; }
.calc-option-row + .calc-option-row { border-top: 1px solid rgb(150 184 200 / .22); }
.calc-option-copy { min-width: 0; flex: 1; }
.calc-option-copy > label, .calc-option-copy > strong { display: block; color: #183e53; font-size: 14px; line-height: 1.4; font-weight: 650; text-wrap: pretty; }
.calc-option-copy > p, .calc-option-hint { display: block; font-size: 12px; line-height: 1.5; color: #527285; margin: 5px 0; }
.calc-option-copy > small { display: block; color: #0877b1; font-size: 12px; margin-top: 5px; }
.calc-counter { display: grid; grid-template-columns: 34px 36px 34px; align-items: center; background: #fff; border: 1px solid #b8d6e5; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.calc-counter button { display: grid; place-items: center; width: 34px; height: 40px; padding: 0; color: #0877b1; background: transparent; border: 0; }
.calc-counter button:hover { background: #e5f4fc; }
.calc-counter button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.calc-counter input { display: block; width: 36px; min-width: 0; height: 40px; padding: 0; text-align: center; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; color: #183e53; border: 0; border-radius: 0; background: transparent; appearance: textfield; -moz-appearance: textfield; }
.calc-counter input::-webkit-inner-spin-button, .calc-counter input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.calc-checkbox { justify-content: flex-start; cursor: pointer; }
.calc-checkbox > input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #0877b1; margin: 0; }
.calc-express-option { margin-top: 22px; padding: 18px; border: 1px solid #add2e8; border-radius: 14px; background: linear-gradient(115deg,#dbeefa,#e3f6f4); }
.calc-express-option .calc-option-copy > strong { font-size: 15px; }
#area[type="number"] { width: 100%; max-width: 190px; padding: 11px 14px; border: 1px solid #b8d6e5; border-radius: 10px; background: #fff; color: #183e53; font: inherit; font-size: 18px; }
#estimate-price { font-size: clamp(28px,3vw,42px); line-height: 1.2; text-wrap: balance; }
.estimate-breakdown { text-align: left; margin: 24px 0; border-top: 1px solid #cce1ec; }
.estimate-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #cce1ec; font-size: 13px; line-height: 1.5; }
.estimate-breakdown dt { min-width: 0; color: #527285; text-wrap: pretty; }
.estimate-breakdown dd { margin: 0; flex: 0 0 auto; color: #183e53; font-weight: 650; }
.calc-counter :focus-visible, .calc-checkbox input:focus-visible, .calc-extra-group > summary:focus-visible { outline: 2px solid #0877b1; outline-offset: -3px; }
@media (max-width: 479px) {
  .calculator-panel { scroll-margin-top: 85px; }
  .calc-option-row { gap: 12px; }
  .calc-option-copy > label, .calc-option-copy > strong { font-size: 13px; }
  .calc-option-copy > p, .calc-option-hint, .calc-option-copy > small { font-size: 11px; }
  .calc-counter { grid-template-columns: 30px 30px 30px; }
  .calc-counter button { width: 30px; height: 42px; }
  .calc-counter input { width: 30px; height: 42px; font-size: 16px; }
  .calc-express-option { padding: 14px; }
  .estimate-breakdown > div { font-size: 12px; gap: 12px; }
}
