.bath-calc { padding-top: clamp(40px, 6vw, 86px); padding-bottom: 80px; }
.calc-intro { max-width: 720px; margin-bottom: 36px; }
.calc-intro h1 { font-size: clamp(36px, 6vw, 68px); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.bath-calc fieldset, .calc-summary { min-width: 0; padding: clamp(16px, 3vw, 30px); border: 1px solid #dce2e5; margin: 0 0 24px; }
.bath-calc legend { padding: 0 8px; font-weight: 700; font-size: 1.13rem; }
.bath-calc label { display: grid; gap: 6px; margin-bottom: 14px; }
.bath-calc input:not([type=checkbox]), .bath-calc select { box-sizing: border-box; min-width: 0; width: 100%; padding: .7em; border: 1px solid #84949c; border-radius: 2px; font: inherit; background: #fff; color: #242424; }
.bath-calc select { text-overflow: ellipsis; }
.calc-dims { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#calc-extras label { display: flex; gap: .65em; align-items: center; min-height: 32px; cursor: pointer; }
.calc-summary { background: #f2f6f7; position: sticky; top: 20px; }
.calc-summary h2 { font-size: clamp(21px, 3vw, 29px); }
#calc-items { list-style: none; padding: 0; }
#calc-items li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2em 1em; border-bottom: 1px solid #dce2e5; padding: .65em 0; }
.bath-calc :is(td,li) a { text-decoration: underline; text-underline-offset: .17em; }
.calc-summary .calc-total { font-weight: 700; font-size: 1.2rem; }
.calc-note { font-size: .9rem; }
.calc-list summary { cursor: pointer; font-weight: 700; padding: 1em 0; }
.calc-list table { width: 100%; border-collapse: collapse; }
.calc-list caption, .calc-list td, .calc-list th { text-align: left; padding: .65em; }
.calc-list td, .calc-list th { border-bottom: 1px solid #dce2e5; }
@media(max-width: 800px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .calc-summary { position: static; }
}
@media(max-width: 380px) {
  .calc-dims { grid-template-columns: 1fr; gap: 0; }
}

.calc-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0 20px; }
.calc-card { min-width: 0; padding: 12px; background: white; border: 1px solid #dce2e5; display: flex; flex-direction: column; }
.calc-card:has(input:checked) { border-color: #315c70; box-shadow: inset 0 0 0 1px #315c70; }
.calc-card-info, .calc-inline-info { border: 0; background: transparent; color: #244c60; text-align: left; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: .18em; }
.calc-card-info { display: grid; width: 100%; gap: 10px; font-weight: 700; overflow-wrap: anywhere; }
.calc-card-info img { width: 100%; height: 108px; object-fit: contain; display: block; mix-blend-mode: multiply; }
#calc-generator .calc-card-info img { height: 144px; }
#calc-generator:not(:empty) { padding: 12px; margin: 10px 0; background: white; }
.calc-card-price { color: #48575c; font-size: .9rem; margin: auto 0 0; padding-top: 6px; }
.bath-calc .calc-card label, .bath-calc .calc-no-control { display: flex; align-items: center; gap: .5em; min-height: 36px; margin: 2px 0 0; cursor: pointer; }
#calc-details { width: min(580px,calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; border: 1px solid #dce2e5; padding: clamp(16px,4vw,32px); color: #242424; background: white; }
#calc-details::backdrop { background: #10243299; }
.calc-dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.calc-dialog-top h2 { margin: 0; font-size: clamp(20px,4vw,28px); }
.calc-dialog-top button { font: inherit; font-size: 1.6rem; min-width: 44px; min-height: 44px; cursor: pointer; }
#calc-details-image { display: block; width: 100%; height: clamp(120px,32vh,270px); object-fit: contain; margin-top: 14px; }
#calc-details-link { text-decoration: underline; text-underline-offset: .18em; color: #244c60; }
