.estimating{overflow:hidden}.estimate-dialog{--estimate-accent:#215fc4;border:0;border-radius:20px;padding:0;width:min(1050px,calc(100% - 32px));max-height:92svh;background:#f8fafc;color:#172b40;font-family:Arial,sans-serif;box-sizing:border-box}.estimate-dialog.start-mtm{--estimate-accent:#454d58}.estimate-dialog.start-rescue{--estimate-accent:#bc3b0d}.estimate-dialog::backdrop{background:#0b1b30b8;backdrop-filter:blur(7px)}.estimate-head{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:#fff;font-size:12px;font-weight:700}.estimate-head button{font-size:28px;border:0;background:transparent;cursor:pointer}.estimate-progress{height:3px;background:#e2e8ee}.estimate-progress span{display:block;height:100%;background:var(--estimate-accent)}.estimate-body{padding:30px clamp(20px,4vw,48px)}.estimate-body h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.045em;margin:15px 0 24px;outline:0}.estimate-body p{line-height:1.6;color:#58697b}.estimate-foot{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-top:1px solid #dce3eb;gap:20px;font-size:13px}.estimate-foot button,.estimate-add{padding:12px;background:transparent;border:1px solid #c4d0dd;border-radius:7px;color:inherit;cursor:pointer}.estimate-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.estimate-choices button,.estimate-products button{border:1px solid #dde4eb;border-radius:12px;background:#fff;padding:18px;text-align:left;display:flex;flex-direction:column;gap:12px;cursor:pointer;color:inherit}.estimate-choices img{width:100%;height:180px;object-fit:contain}.estimate-choices strong{font-size:23px}.estimate-choices span{font-size:12px}.estimate-products{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.estimate-products img{width:100%;height:100px;object-fit:contain}.estimate-products small{line-height:1.5;color:#52667b}.estimate-dialog button:hover{filter:brightness(.94)}.estimate-dialog button:focus-visible,.estimate-dialog input:focus-visible,.estimate-dialog select:focus-visible{outline:3px solid var(--estimate-accent);outline-offset:3px}.estimate-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.estimate-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:16px}.estimate-dialog input,.estimate-dialog select{font:16px Arial;width:100%;padding:14px;box-sizing:border-box;border:1px solid #bdcad9;border-radius:7px;background:white;color:#172b40}.estimate-selected{display:flex;align-items:center;gap:30px;margin-bottom:24px}.estimate-selected img{width:100px;height:90px;object-fit:contain}.estimate-option-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:36px}.estimate-option-layout>img{width:100%;height:290px;object-fit:contain}.estimate-primary{border:0;border-radius:8px;padding:17px 22px;background:var(--estimate-accent);color:white;font-size:15px;font-weight:600;cursor:pointer}.estimate-live{font-size:28px;font-weight:700}.estimate-live small{font-size:12px;font-weight:400;display:block;margin-top:5px}.estimate-line{display:flex;gap:16px;align-items:center;background:#fff;padding:15px;border:1px solid #dce4ed;border-radius:10px;margin-bottom:12px}.estimate-line img{width:70px;height:70px;object-fit:contain}.estimate-line>div{flex:1}.estimate-line p{font-size:12px;margin:6px 0}.estimate-line button{border:0;background:transparent;color:var(--estimate-accent);cursor:pointer;font-size:12px;padding:5px}.estimate-total{display:flex;justify-content:space-between;font-size:22px;margin-top:24px;padding-top:24px;border-top:1px solid #cbd5df}.estimate-loading{text-align:center;padding:65px 20px}.estimate-spinner{display:block;border:3px solid #dce4ed;border-top-color:var(--estimate-accent);border-radius:50%;width:28px;height:28px;margin:0 auto 22px;animation:estimate-spin .8s linear infinite}@keyframes estimate-spin{to{transform:rotate(360deg)}}.estimate-company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.estimate-company{display:flex;flex-direction:column;background:white;border:1px solid #d8e1eb;border-radius:12px;padding:22px}.estimate-company img{height:44px;max-width:140px;object-fit:contain;object-position:left;margin-bottom:16px}.estimate-company h3{font-size:21px;margin:5px 0 18px}.estimate-company dl{font-size:12px}.estimate-company dl>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.estimate-company dd{margin:0;text-align:right}.company-price{font-size:24px;margin-top:auto;padding-top:18px}.estimate-company>small{font-size:11px;line-height:1.6;margin:9px 0 22px;color:#5d6f82}.estimate-company .estimate-primary{font-size:13px;padding:14px}.estimate-company-grid:has(.estimate-company:only-child){grid-template-columns:minmax(240px,450px)}@media(max-width:650px){.store-start{padding:22px}.start-top>a:last-child{font-size:12px}.start-brand{font-size:18px}.start-brand img{width:38px;height:38px}.start-copy{padding:65px 0}.start-copy h1{font-size:clamp(42px,11vw,66px)}.start-actions{flex-direction:column;align-items:stretch;max-width:340px}.start-note{gap:13px}.start-photo{object-position:65%}.start-shade{background:linear-gradient(90deg,#0b1e34ed,#0b1e34a0)!important}.estimate-dialog{width:100%;max-height:100svh;height:100svh;border-radius:0;margin:0}.estimate-choices{grid-template-columns:1fr}.estimate-choices button{display:grid;grid-template-columns:75px 1fr;padding:14px;gap:8px}.estimate-choices img{width:75px;height:68px;grid-row:span 2}.estimate-choices strong{font-size:20px;align-self:end}.estimate-products{grid-template-columns:repeat(2,1fr)}.estimate-option-layout{grid-template-columns:1fr;gap:16px}.estimate-option-layout>img{height:160px}.estimate-company-grid{grid-template-columns:1fr}.estimate-line{flex-wrap:wrap}.estimate-line>strong{margin-left:auto}.estimate-head,.estimate-foot{padding:15px 20px}.estimate-body{padding:24px 20px}}@media(prefers-reduced-motion:reduce){.estimate-spinner{animation:none}}
/* Keep existing catalogue header and button rules outside the estimator. */
.estimate-dialog .estimate-company .estimate-primary,.estimate-dialog form>.estimate-primary,.estimate-dialog [data-compare]{background:var(--estimate-accent);color:#fff;border:0;opacity:1}.estimate-dialog .estimate-head{height:auto;min-height:0;position:static;margin:0}.estimate-dialog .estimate-foot{display:flex;grid-template-columns:none;background:transparent;margin:0}.estimate-dialog .estimate-company>p{min-height:30px}.estimate-dialog .estimate-company>.estimate-primary{margin-top:auto}.estimate-dialog .estimate-company>small{min-height:36px}.estimate-dialog .estimate-company{min-width:0}

/* v32: modal uses the actual viewport, unaffected by catalogue header/grid rules. */
.estimate-dialog[open]{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);height:min(780px,calc(100dvh - 24px));margin:auto;inset:0}
.estimate-dialog *{box-sizing:border-box}.estimate-dialog .estimate-head{position:static;display:flex;flex:none;width:100%;height:auto;min-height:54px;padding:12px 18px;line-height:1.3;gap:12px}.estimate-dialog .estimate-head span{font-size:12px}.estimate-dialog .estimate-head button{position:static;flex:none;width:40px;min-height:40px;padding:0;font-size:30px;color:inherit}.estimate-dialog .estimate-progress{flex:none}.estimate-dialog .estimate-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px}.estimate-dialog .estimate-foot{position:static;flex:none;padding:10px 18px;min-height:54px;background:#fff;width:100%;gap:10px}.estimate-dialog .estimate-body h2{font-size:clamp(25px,4vw,38px);line-height:1.12;margin:8px 0 14px}.estimate-dialog .start-eyebrow{font-size:11px;margin:0 0 8px}.estimate-dialog #estimate-stage>p{font-size:14px;line-height:1.4;margin:0 0 14px}.estimate-dialog .estimate-choices button{min-width:0}.estimate-dialog .estimate-products{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.estimate-dialog .estimate-products button{padding:12px;gap:7px}.estimate-dialog .estimate-products img{height:75px}.estimate-dialog .estimate-fields{gap:10px}.estimate-dialog label{margin-bottom:10px}.estimate-dialog .estimate-live{font-size:23px;margin:8px 0}.estimate-dialog .estimate-primary{padding:13px 18px}
@media(max-width:650px){.estimate-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0;inset:0}.estimate-dialog .estimate-body{padding:14px 16px}.estimate-dialog .estimate-choices{gap:10px}.estimate-dialog .estimate-choices button{grid-template-columns:60px 1fr;gap:4px 12px;padding:12px}.estimate-dialog .estimate-choices img{width:60px;height:58px}.estimate-dialog .estimate-choices strong{font-size:18px}.estimate-dialog .estimate-option-layout{grid-template-columns:1fr;gap:6px}.estimate-dialog .estimate-option-layout>img{height:80px}.estimate-dialog .estimate-selected{margin-bottom:12px;gap:14px}.estimate-dialog .estimate-selected img{height:60px;width:60px}.estimate-dialog .estimate-foot{font-size:11px}.estimate-dialog .estimate-company-grid{grid-template-columns:1fr}.estimate-dialog .estimate-company{padding:16px}}

.phone-offer{position:relative;display:flex;align-items:center;gap:20px;margin:16px auto;padding:18px 42px 18px 20px;max-width:1200px;border:1px solid #ceddee;border-radius:14px;background:#f0f6ff;color:#172b40;font:14px/1.4 system-ui}.phone-offer>div{flex:1}.phone-offer strong{font-size:18px}.phone-offer p{margin:6px 0}.phone-offer form{flex:1;min-width:0}.phone-offer label{display:block;font-size:12px;margin-bottom:5px}.phone-offer form>div{display:flex;gap:8px}.phone-offer input{min-width:0;width:100%;font:16px system-ui;padding:11px;border:1px solid #a8b9cc;border-radius:7px;background:#fff;color:#172b40}.phone-offer button{font:600 13px system-ui;background:#215fc4;color:#fff;border:0;border-radius:7px;padding:10px;cursor:pointer}.phone-offer [data-dismiss]{position:absolute;right:8px;top:6px;background:transparent;color:#172b40;font-size:25px;padding:4px 8px}.phone-offer small{display:block;font-size:11px;margin-top:6px}.phone-offer [role=status]:empty{display:none}.phone-offer :focus-visible{outline:2px solid #215fc4;outline-offset:2px}@media(max-width:650px){.phone-offer{display:block;margin:12px;padding:15px 38px 15px 15px}.phone-offer form{margin-top:10px}.phone-offer strong{font-size:16px}.phone-offer p{font-size:12px}.phone-offer form>div button{min-width:115px}}

/* Contractor comparison: the second price remains visible and selectable. */
.estimate-project-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.estimate-offer-stack{max-width:720px;margin:20px auto}.estimate-offer-stack .recommended{position:relative;padding:32px;border:1px solid #8aa8d0;background:linear-gradient(145deg,#fff,#edf4ff);box-shadow:0 18px 48px #183e6817}.estimate-offer-stack .estimate-recommendation{align-self:flex-start;margin-bottom:18px}.estimate-offer-stack h3{font-size:clamp(24px,5vw,34px);letter-spacing:-.035em}.estimate-offer-stack dl{font-size:15px;margin:18px 0}.estimate-offer-stack .company-price{font-size:clamp(28px,6vw,42px);padding-top:12px}.estimate-alternative{margin-top:18px;background:#fff}.estimate-alternative-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px}.estimate-alternative-heading h3{font-size:20px;margin:0}.estimate-alternative-heading .company-price{font-size:24px;padding:0}.estimate-secondary-preview{filter:blur(4px);user-select:none;font-size:13px;margin:0 0 12px;color:#59718a}.estimate-alternative:has(details[open]) .estimate-secondary-preview{display:none}.estimate-alternative summary{cursor:pointer;padding:12px 0;font-weight:600;min-height:44px;box-sizing:border-box}.estimate-secondary-select{background:#fff;color:#214d83;border:1px solid #a5bad3;border-radius:8px;padding:15px;margin-top:12px;font-size:15px;cursor:pointer}.estimate-price-notice{font-size:13px;max-width:720px;margin:22px auto}.estimate-request-form textarea{font:16px Arial;box-sizing:border-box;width:100%;padding:14px;border:1px solid #bdcad9;border-radius:7px;resize:vertical}.estimate-dialog{overflow-y:auto;overscroll-behavior:contain;scroll-padding:24px}.estimate-dialog input,.estimate-dialog textarea,.estimate-dialog select{scroll-margin:24px}.estimate-dialog summary:focus-visible{outline:3px solid var(--estimate-accent);outline-offset:3px}@media(max-width:650px){.estimate-offer-stack .recommended{padding:24px}.estimate-alternative-heading{flex-wrap:wrap}.estimate-body{padding-bottom:32px}.estimate-foot{padding-bottom:max(20px,env(safe-area-inset-bottom))}}

.estimate-dialog .estimate-company-logo{display:block;object-fit:contain;object-position:left center;width:auto;max-width:180px;height:44px;margin:0 0 16px}.estimate-dialog .estimate-alternative-heading{flex-wrap:wrap}.estimate-dialog .estimate-alternative-heading .estimate-company-logo{flex-basis:100%;object-position:left center;max-width:150px;margin:0 0 4px}


/* Keep the recommended option and its action together. */
.estimate-dialog .estimate-offer-stack .recommended{padding:24px;background:#fff;box-shadow:none}.estimate-dialog .estimate-offer-stack .estimate-recommendation{margin:0 0 12px}.estimate-dialog .estimate-offer-stack h3{margin:4px 0 10px;font-size:clamp(24px,3vw,30px)}.estimate-dialog .estimate-offer-stack .estimate-company>p{margin:0 0 8px;min-height:0}.estimate-dialog .estimate-offer-stack dl{margin:10px 0}.estimate-dialog .estimate-offer-stack dl>div{margin-bottom:8px}.estimate-dialog .estimate-offer-stack .company-price{padding-top:0}.estimate-dialog .estimate-offer-stack .estimate-company>small{min-height:0;margin:6px 0 14px}.estimate-dialog .estimate-offer-stack .estimate-company-logo{margin-bottom:10px}

.estimate-project-form{display:grid;gap:16px}.estimate-project-form label{display:grid;gap:7px;font-size:14px;font-weight:600}.estimate-project-form input:not([type=file]),.estimate-project-form textarea,.estimate-project-form select{box-sizing:border-box;width:100%;min-height:46px;padding:11px 12px;border:1px solid #9aaebb;border-radius:6px;background:#fff;color:#172b3d;font:16px/1.4 Arial,sans-serif}.estimate-project-form small{font-weight:400;color:#526272}.estimate-project-form [hidden]{display:none!important}.estimate-project-photos{padding:16px;border:1px solid #cad5de;border-radius:8px;background:#f6f8fa}.estimate-project-photos p{font-size:13px;line-height:1.5}.estimate-project-photos input{max-width:100%;font:14px Arial,sans-serif}.estimate-project-photos ul{list-style:none;margin:12px 0 0;padding:0}.estimate-project-photos li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #d5dfe6}.estimate-project-photos li span{min-width:0;overflow-wrap:anywhere;font-size:13px}.estimate-project-photos button{min-height:44px;padding:10px;border:1px solid #9aabb8;border-radius:6px;background:#fff;color:#173f64}.estimate-project-form [data-error=true],.estimate-project-form [role=alert]{color:#94301c}.estimate-project-form [data-project-status]{font-size:13px}.estimate-project-form :is(button,input,select,textarea):focus-visible{outline:3px solid #084b8a;outline-offset:3px}

.estimate-dialog .estimate-request-totals{border-block:1px solid #d5dfe6;padding:6px 0;margin:14px 0}.estimate-dialog .estimate-request-totals dl>div{display:flex;justify-content:space-between;gap:16px;padding:5px 0}.estimate-dialog .estimate-request-totals dd{margin:0}.estimate-dialog .estimate-request-totals p{font-size:14px}
