/* Price calculator. Uses the colour and type tokens from styles.css. */
.calc-page-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 28px; }
.calc-page-head h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; }
.calc-page-head .lead { font-size: var(--step-1); color: var(--muted); }

.calc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.calc-tab {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  font: 700 1.05rem/1.2 var(--f-display); cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
}
.calc-tab:hover { border-color: var(--muted); }
.calc-tab[aria-selected="true"] { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.calc-ico { width: 34px; height: 34px; flex: none; color: var(--accent-ink); }
.calc-tab[aria-selected="true"] .calc-ico { color: var(--accent); }
.calc-ico .ray { stroke: var(--accent); }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3.5vw, 32px); min-width: 0; }
.calc-questions { display: flex; flex-direction: column; }
.calc-q { display: flex; flex-direction: column; gap: 10px; padding-block: 18px; border-top: 1px solid var(--line); }
.calc-q:first-child { border-top: 0; padding-top: 0; }
.calc-q:last-child { padding-bottom: 0; }
.calc-label { font: 700 1.08rem/1.3 var(--f-display); }
.calc-hint { color: var(--muted); font-size: 0.9rem; }

.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips-rich { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.calc-chip { position: relative; min-width: 0; }
.calc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-chip span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%;
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s;
}
.calc-chip strong { font-weight: 600; font-size: 0.97rem; }
.calc-chip small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.calc-chip span:hover { border-color: var(--muted); }
.calc-chip input:checked + span { border-color: var(--green); background: color-mix(in srgb, var(--green) 18%, var(--surface)); }
.calc-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.calc-stepper { display: inline-flex; align-items: center; gap: 8px; }
.calc-stepper select { width: 84px; min-height: 48px; text-align: center; font: 700 1.1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; }
.calc-step { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1.4rem/1 var(--f-body); cursor: pointer; }
.calc-step:hover:not(:disabled) { border-color: var(--accent); }
.calc-step:disabled { opacity: .35; cursor: default; }

.calc-panel {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--night); color: var(--night-ink); border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden; isolation: isolate;
}
.calc-panel::before {
  content: ""; position: absolute; z-index: -1; right: -90px; top: -120px; width: 300px; height: 300px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent);
}
.calc-eyebrow { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.calc-total { font: 800 clamp(2.8rem, 2rem + 3vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-for { color: var(--night-muted); }
.calc-lines { margin: 4px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--night-line); }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--night-line); font-size: 0.92rem; }
.calc-lines dt { color: var(--night-muted); display: flex; flex-direction: column; min-width: 0; }
.calc-lines dt span { color: var(--night-ink); font-weight: 600; }
.calc-lines dd { margin: 0; font-family: var(--f-mono); font-size: 0.82rem; white-space: nowrap; align-self: center; color: var(--accent); }
.calc-how summary { cursor: pointer; color: var(--night-muted); font-size: 0.9rem; }
.calc-how summary:hover { color: var(--night-ink); }
.calc-worked { margin-top: 8px; font-family: var(--f-mono); font-size: 0.8rem; color: var(--night-ink); overflow-wrap: anywhere; background: color-mix(in srgb, var(--night-ink) 7%, var(--night)); padding: 10px 12px; border-radius: 8px; }
.calc-book { width: 100%; margin-top: 6px; }
.calc-note:empty { display: none; }
.calc-note { color: var(--night-muted); font-size: 0.82rem; line-height: 1.45; }
.calc-mobile-bar { display: none; }

/* Booking step */
.book { margin-top: 28px; }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3.5vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.book-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.book-summary strong { font: 800 var(--step-2)/1 var(--f-display); }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-panel { position: relative; top: auto; }
}
@media (max-width: 600px) {
  .calc-tabs { gap: 6px; }
  .calc-tab { flex-direction: column; justify-content: center; gap: 6px; text-align: center; font-size: 0.88rem; min-height: 84px; padding: 10px 6px; }
  .calc-ico { width: 30px; height: 30px; }
  .calc-chips-rich { grid-template-columns: 1fr; }
  .in-calc .calc-mobile-bar, .calc-page .calc-mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--night); color: var(--night-ink);
  }
  .calc-mobile-bar span { display: flex; flex-direction: column; line-height: 1.1; }
  .calc-mobile-bar small { color: var(--night-muted); font-size: 0.75rem; }
  .calc-mobile-bar strong { font: 800 1.6rem var(--f-display); font-variant-numeric: tabular-nums; }
  .calc-mobile-bar .btn { min-width: 120px; }
  .calc-page .mobile-bar, .in-calc .mobile-bar { display: none; }
}
.calc-page .site-footer { padding-block: 24px 96px; }
.calc-page .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.calc-custom .calc-total { font-size: clamp(2.2rem, 1.8rem + 2vw, 2.8rem); }


/* Length input for roofline lighting */
.calc-len-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-unit { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.calc-unit label { position: relative; }
.calc-unit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-unit span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.calc-unit input:checked + span { background: var(--night); color: var(--night-ink); }
.calc-unit input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-len { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px 12px; }
.calc-len input[type="number"] { width: 110px; min-height: 52px; font: 700 1.4rem var(--f-display); text-align: center; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.calc-len input[type="number"]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.calc-len-unit { font-weight: 600; color: var(--muted); }
.calc-len input[type="range"] { width: 100%; min-width: 0; accent-color: var(--green); height: 32px; }
@media (max-width: 600px) { .calc-len { grid-template-columns: auto 1fr; } .calc-len input[type="range"] { grid-column: 1 / -1; } }

/* Simplified estimate panel: total, what it covers, one action */
.calc-notice { color: var(--accent); font-size: 0.88rem; }
.calc-notice:empty { display: none; }
.calc-covers { border-top: 1px solid var(--night-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.calc-covers > p:first-child { font-weight: 600; font-size: 0.92rem; }
.calc-covers ul { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: var(--night-muted); }
.calc-covers li { position: relative; padding-left: 22px; }
.calc-covers li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.calc-tabs[hidden] { display: none; }
.calc-len-select { width: 100%; max-width: 260px; min-height: 52px; font: 700 1.1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; }
.calc-len-select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }

/* Fixed lengths: a slider that stops only at the lengths on sale */
.calc-len-out { font: 700 1.4rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-len-out strong { font: inherit; }
.calc-stop-range { width: 100%; accent-color: var(--green); height: 32px; margin: 4px 0 0; }
.calc-stops { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin: 0 2px 6px; }
.calc-stops span.on { color: var(--ink); font-weight: 700; }

/* Discount code: shown only when the admin panel has an active code */
.calc-was { font: 600 1.05rem/1 var(--f-display); color: var(--night-muted); text-decoration: line-through; font-variant-numeric: tabular-nums; margin-bottom: -6px; }
.calc-was:empty { display: none; }
.calc-has-disc .calc-total { color: var(--accent); }
.calc-code { border-top: 1px solid var(--night-line); padding-top: 12px; font-size: 0.92rem; }
.calc-code[hidden] { display: none; }
.calc-code summary { cursor: pointer; color: var(--night-muted); width: fit-content; }
.calc-code summary:hover, .calc-code[open] summary { color: var(--night-ink); }
.calc-code-row { display: flex; gap: 8px; margin-top: 10px; }
.calc-code-row[hidden] { display: none; }
.calc-code-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--night-line); background: color-mix(in srgb, var(--night-ink) 7%, var(--night)); color: var(--night-ink); font: 600 1rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-code-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--night-muted); font-family: var(--f-body); font-weight: 400; }
.calc-code-row input:focus { outline: none; border-color: var(--accent); }
.calc-code-row button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--accent); background: transparent; color: var(--night-ink); font: 600 0.95rem var(--f-body); cursor: pointer; }
.calc-code-row button:hover:not(:disabled) { background: var(--accent); color: var(--night); }
.calc-code-row button:disabled { opacity: .5; cursor: default; }
.calc-code-msg { margin-top: 8px; color: var(--night-muted); line-height: 1.45; }
.calc-code-msg:empty { display: none; }
.calc-code-msg.ok { color: var(--night-ink); }
.calc-code-msg.bad { color: #ffb4a8; }
.calc-code-rm { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Price breakdown: installation, lights, discount, shipping and HST add up to the big total */
.calc-sum { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--night-line); }
.calc-sum[hidden] { display: none; }
.calc-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--night-line); font-size: 0.9rem; }
.calc-sum dt { color: var(--night-muted); }
.calc-sum dd { margin: 0; font-family: var(--f-mono); font-size: 0.85rem; white-space: nowrap; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.calc-sum div:nth-last-child(1) dd { color: var(--accent); }
.calc-stops i { font-style: normal; }
@media (max-width: 600px) { .calc-stops { font-size: 0.78rem; } .calc-stops i { display: none; } }

/* ---------- Compact calculator: every question is one row that opens like a drop-down ---------- */
.calc-grid { grid-template-columns: minmax(0, 1fr) 420px; }
.calc-card { padding: clamp(14px, 2.4vw, 22px); }
.calc-q { gap: 8px; padding-block: 12px; }
.calc-dd { gap: 0; }
.calc-dd-btn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q chev" "a chev"; align-items: center; gap: 2px 12px;
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.calc-dd-btn:hover { border-color: var(--muted); }
.calc-dd-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-dd.open .calc-dd-btn { border-color: var(--green); border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: var(--surface); }
.calc-dd-q { grid-area: q; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.calc-dd-a { grid-area: a; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.calc-dd-a strong { font: 700 1rem/1.3 var(--f-display); }
.calc-dd-a small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.calc-dd-chev { grid-area: chev; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.calc-dd.open .calc-dd-chev { transform: rotate(-135deg) translateY(-3px); }
.calc-dd-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1.5px solid var(--green); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface); }
.calc-dd-list[hidden] { display: none; }
.calc-dd-list .calc-hint { padding: 4px 8px 2px; font-size: 0.82rem; }
.calc-opt { position: relative; }
.calc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-opt span { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 8px 36px; border-radius: 10px; cursor: pointer; position: relative; }
.calc-opt span::before { content: ""; position: absolute; left: 12px; top: 0.85em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.calc-opt strong { font-weight: 600; font-size: 0.95rem; }
.calc-opt small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.calc-opt span:hover { background: var(--bg); }
.calc-opt input:checked + span { background: color-mix(in srgb, var(--green) 16%, var(--surface)); }
.calc-opt input:checked + span::before { border-color: var(--green); box-shadow: inset 0 0 0 3px var(--surface); background: var(--green); }
.calc-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

.calc-q-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.calc-q-row .calc-label { font-size: 1rem; }
.calc-q-row .calc-hint { flex-basis: 100%; font-size: 0.82rem; }
.calc-q-row .calc-step { width: 40px; height: 40px; }
.calc-q-row .calc-stepper select { min-height: 40px; width: 72px; }
.calc-label { font-size: 1rem; }
.calc-len-out { font-size: 1.15rem; }
.calc-q .calc-hint { font-size: 0.82rem; }

/* Optional extra (e.g. premium installation): a tick box with its price per foot */
.calc-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.calc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-check-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); background: var(--surface); position: relative; }
.calc-check input:checked ~ .calc-check-box { background: var(--green); border-color: var(--green); }
.calc-check input:checked ~ .calc-check-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); }
.calc-check:has(input:checked) { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--surface)); }
.calc-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-check-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.calc-check-text strong { font: 700 1rem/1.3 var(--f-display); }
.calc-check-text small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.calc-check-price { font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }

/* Estimate panel: total, itemised list, then the request form */
.calc-panel { padding: 22px; gap: 10px; }
.calc-top { display: flex; flex-direction: column; gap: 6px; }
.calc-total { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3rem); }
.calc-for { font-size: 0.92rem; }
.calc-sum div { padding: 6px 0; align-items: center; }
.calc-sum dt { display: flex; flex-direction: column; min-width: 0; color: var(--night-ink); }
.calc-sum dt small { color: var(--night-muted); font-size: 0.78rem; line-height: 1.3; }
.calc-sum div:nth-last-child(1) dd { color: var(--night-ink); }
.calc-sum .calc-sum-total dt { font-weight: 700; }
.calc-sum .calc-sum-total dd { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.calc-extras { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.calc-extras > details { flex: 1 1 100%; }
.calc-covers { border-top: 0; padding-top: 0; gap: 0; font-size: 0.88rem; }
.calc-covers summary, .calc-code summary { cursor: pointer; color: var(--night-muted); width: fit-content; font-size: 0.88rem; }
.calc-covers summary:hover, .calc-covers[open] summary { color: var(--night-ink); }
.calc-covers ul { margin-top: 8px; gap: 4px; font-size: 0.86rem; }
.calc-code { border-top: 0; padding-top: 0; }
.calc-has-form .calc-panel > .calc-book { display: none; }
.calc-form-slot:empty { display: none; }
.calc-form-slot { border-top: 1px solid var(--night-line); padding-top: 12px; }

/* The request form inside the dark panel */
.calc-panel .quote-form { gap: 10px; }
.calc-panel .form-estimate, .calc-panel [data-service-pick][hidden] { display: none; }
.calc-panel .form-block { background: none; border: 0; padding: 0; border-radius: 0; gap: 10px; }
.calc-panel .field { gap: 4px; }
.calc-panel .field-row { gap: 10px; flex-wrap: nowrap; }
.calc-panel .field-row .field { min-width: 0; }
.calc-panel .label, .calc-panel legend { font-size: 0.8rem; font-weight: 600; color: var(--night-muted); }
.calc-panel .label .muted { color: var(--night-muted); font-weight: 400; }
.calc-panel input:not([type="file"]), .calc-panel textarea, .calc-panel .quote-form select {
  min-height: 40px; padding: 8px 11px; font-size: 0.92rem; border-radius: 9px;
  background: color-mix(in srgb, var(--night-ink) 8%, var(--night)); border: 1.5px solid var(--night-line); color: var(--night-ink); width: 100%;
}
.calc-panel textarea { min-height: 0; resize: vertical; }
.calc-panel input::placeholder, .calc-panel textarea::placeholder { color: var(--night-muted); opacity: .8; }
.calc-panel .quote-form select { appearance: auto; font-family: inherit; }
.calc-panel .quote-form select option { color: var(--ink); background: var(--surface); }
.calc-panel input:focus, .calc-panel textarea:focus, .calc-panel .quote-form select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.calc-panel input[type="date"] { color-scheme: dark; }
.calc-panel .photo-pick { gap: 8px 10px; flex-wrap: nowrap; }
.calc-panel .photo-pick .btn.btn-ghost.btn-sm { color: var(--night-ink); border-color: var(--night-line); min-height: 34px; padding: 0 12px; font-size: 0.85rem; flex: none; }
.calc-panel .photo-pick .muted { color: var(--night-muted); font-size: 0.78rem; line-height: 1.3; }
.calc-panel .chips .chip span { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.calc-panel .form-submit { flex-direction: column; align-items: stretch; gap: 6px; }
.calc-panel .form-submit .btn { width: 100%; }
.calc-panel .form-submit .muted { color: var(--night-muted); font-size: 0.78rem; text-align: center; }
.calc-panel .q-error { color: #ffb4a8; }
.calc-panel .q-done { background: none; border: 0; padding: 0; color: var(--night-ink); }
.calc-panel .q-done .muted { color: var(--night-muted); }
.calc-panel .q-done .btn-ghost { color: var(--night-ink); border-color: var(--night-line); }
@media (max-width: 1100px) { .calc-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .calc-panel .field-row { flex-wrap: wrap; } }
.calc-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
/* A price beside each light model in its list */
.calc-opt-priced span { padding-right: 96px; }
.calc-opt-price { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* A short note at the top of a calculator (e.g. the Permanent lights page: the wires are fully covered) */
.calc-lead { margin-bottom: 4px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); font-size: 0.9rem; line-height: 1.45; }

/* Estimate panel in brand colours: the price on a yellow band, the rest on a soft green-grey card with white fields */
.calc-panel, .calc-mobile-bar { --night: #f2f5ea; --night-ink: #111111; --night-muted: #55594f; --night-line: #dfe5d2; }
.calc-panel { border: 1px solid #dfe5d2; box-shadow: 0 30px 60px -40px rgba(10, 10, 10, .35); }
.calc-panel::before { display: none; }
.calc-panel .calc-top { margin: -22px -22px 4px; padding: 20px 22px 18px; background: var(--accent); color: #111; position: relative; overflow: hidden; }
.calc-panel .calc-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .28); pointer-events: none; }
.calc-panel .calc-top .calc-eyebrow { color: #111; opacity: .75; font-weight: 600; letter-spacing: .16em; }
.calc-panel .calc-top .calc-for, .calc-panel .calc-top .calc-was { color: #3b3200; }
.calc-panel .calc-top .calc-total, .calc-panel.calc-has-disc .calc-top .calc-total, .calc-has-disc .calc-top .calc-total { color: #111; }
.calc-panel .calc-lines dd, .calc-panel .calc-notice, .calc-panel .calc-code-rm,
.calc-panel .calc-sum div:nth-last-child(1) dd, .calc-panel .calc-sum .calc-sum-total dd { color: var(--accent-ink); }
.calc-panel input:not([type="file"]), .calc-panel textarea, .calc-panel .quote-form select { background: #ffffff; }
.calc-panel .calc-code-row button:hover:not(:disabled) { color: #111; }
.calc-mobile-bar { --night: #ffc102; --night-muted: #3b3200; box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .3); }
.calc-mobile-bar .btn { background: #111; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .calc-panel { --night: #171a14; --night-ink: #f2f2ee; --night-muted: #a9aba4; --night-line: #2a2f24; border-color: #2a2f24; }
  :root:not([data-theme="light"]) .calc-panel input:not([type="file"]), :root:not([data-theme="light"]) .calc-panel textarea, :root:not([data-theme="light"]) .calc-panel .quote-form select { background: #0f110d; }
}

/* Sides and levels: two short rows of tick boxes right under the height question */
.calc-areas { border-top: 0; padding-top: 0; gap: 6px; }
.calc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.calc-chips-l { font-size: 0.8rem; font-weight: 600; color: var(--muted); width: 48px; flex: none; }
.calc-chip { position: relative; cursor: pointer; }
.calc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 500; line-height: 1.2; background: var(--surface); }
.calc-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #b9bcb3; box-sizing: border-box; }
.calc-chip input:checked + span { border-color: #ffc102; background: #fff8dc; }
.calc-chip input:checked + span::before { border-color: #ffc102; background: #ffc102 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.calc-chip input:focus-visible + span { outline: 3px solid rgba(255, 193, 2, .55); outline-offset: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-chip input:checked + span { background: #2a2410; } }
:root[data-theme="dark"] .calc-chip input:checked + span { background: #2a2410; }
.calc-areas .calc-chip > span { display: inline-flex; flex-direction: row; white-space: nowrap; padding: 4px 10px 4px 7px; min-height: 0; font-size: 0.86rem; gap: 5px; }
.calc-areas .calc-chips { gap: 5px; }
.calc-areas .calc-chips-l { width: 44px; }
@media (max-width: 420px) { .calc-areas .calc-chips { gap: 4px; } .calc-areas .calc-chips-l { width: 40px; font-size: 0.76rem; } .calc-areas .calc-chip > span { padding: 4px 8px 4px 6px; font-size: 0.84rem; gap: 4px; } }
