/* A focused calculator, separate from product specifications. */
body.calculator-open{overflow:hidden}
.choice-calc-trigger,.carousel-calculate{display:block;padding:12px 18px;border:1px solid #008fce;border-radius:9px;background:#007db8;color:#fff;font-size:15px;font-weight:650;cursor:pointer;transition:background 180ms,box-shadow 180ms,transform 180ms}
.choice-calc-trigger{margin-top:12px;width:100%}
.carousel-calculate{margin:10px auto 0;max-width:calc(100% - 32px)}
.carousel-calculate[hidden]{display:none}
.choice-calc-trigger:hover,.carousel-calculate:hover{background:#006c9f;box-shadow:0 6px 22px #008fce35;transform:translateY(-2px)}
.choice-calc-trigger:focus-visible,.carousel-calculate:focus-visible{outline:3px solid #40c5ff;outline-offset:4px}
#paintCalculatorDialog{box-sizing:border-box;padding:0;width:min(510px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #84afc7;border-radius:16px;background:#fff;color:#172d3c;box-shadow:0 24px 80px #0007}
#paintCalculatorDialog[open]{animation:calculator-enter 240ms cubic-bezier(.2,.75,.2,1)}
#paintCalculatorDialog::backdrop{background:#06111bc7;backdrop-filter:blur(5px)}
.calculator-heading{position:relative;padding:22px 58px 20px 24px;background:#111c25;border-bottom:3px solid #009fe3}
.calculator-heading>p{margin:0 0 7px;color:#88d3f6;font-size:14px}
.calculator-heading h2{color:#fff;font-size:25px;line-height:1.2;margin:0}
.calculator-close{position:absolute;right:14px;top:16px;width:34px;height:34px;display:grid;place-content:center;font-size:25px;background:#23333e;color:white;border:1px solid #748fa0;border-radius:50%;cursor:pointer}
.calculator-body{padding:24px}
.calculator-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.calculator-fields label{display:flex;flex-direction:column;font-size:14px;font-weight:600;line-height:1.5}
.calculator-fields label>span{display:block;color:#507185;font-weight:400;font-size:14px}
.calculator-fields input{box-sizing:border-box;width:100%;margin-top:auto;padding:13px 12px;border:1px solid #a8c2d3;border-radius:8px;background:#f8fbfd;color:#142c3e;font:inherit;font-size:20px}
.calculator-fields label>span{padding-bottom:7px}
.calculator-fields input:focus{outline:2px solid #009fe3;outline-offset:2px}
.calculator-fields input[aria-invalid=true]{border-color:#ac3f39}
.calculator-thickness-hint{grid-column:1/-1;margin:0;padding:10px 12px;border-left:3px solid #009fe3;border-radius:0 6px 6px 0;background:#edf7fc;color:#31566c;font-size:13px;line-height:1.5}
.calculator-thickness-hint strong{color:#153e55;font-weight:650}
.calculator-total{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;box-sizing:border-box;margin-top:20px;padding:16px;background:#edf4f8;border-radius:10px;color:#496678;font-size:15px;transition:background 200ms,color 200ms}
.calculator-total strong{font-size:30px;line-height:1;white-space:nowrap}
.calculator-total.is-ready{background:#082e45;color:#fff}
.calculator-note{font-size:13px;line-height:1.5;color:#536c7c;margin:14px 0 0}
/* Flatten the hit-testing plane while retaining the projected 3D transforms. */
.carousel-stage{transform-style:flat}
.carousel-card:not(.is-active):hover{border-color:#008fce;box-shadow:0 16px 35px #008fce40}
.carousel-card img{pointer-events:none;user-select:none}
@keyframes calculator-enter{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:440px){.calculator-body{padding:18px}.calculator-heading{padding-left:18px}.calculator-heading h2{font-size:23px}.calculator-fields{gap:12px}.calculator-fields label{font-size:14px;min-height:85px}.calculator-total{flex-wrap:wrap}.calculator-total strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){#paintCalculatorDialog[open]{animation:none}.choice-calc-trigger,.carousel-calculate,.calculator-total{transition:none}.choice-calc-trigger:hover,.carousel-calculate:hover{transform:none}}
