/* Crispy Pools quick estimate: floating helper, chat panel and mobile action bar. Everything is scoped under #cpe. */
#cpe,#cpe *{box-sizing:border-box}
#cpe{--ink:#0E1636;--muted:#46536F;--paper:#FCFDFF;--mist:#F2F6FB;--line:#DAE3EE;--navy:#151E6B;--deep:#0D1547;--brand:#212394;--brand-d:#181A78;--aqua:#1DA8E0;--aqua-t:#066A97;--aqua-s:#E3F4FB;--aqua-l:#8ADBF7;--ok:#0B7A4B;--bad:#B3261E;
  font:400 15px/1.5 Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--ink);-webkit-text-size-adjust:100%}
#cpe button,#cpe input,#cpe textarea{font:inherit;color:inherit}
#cpe svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#cpe [hidden]{display:none!important}
.cpe-hd{font-family:Montserrat,Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}

/* floating launcher (desktop) */
#cpe .cpe-launch{position:fixed;right:22px;bottom:22px;z-index:2147482000;display:flex;align-items:center;gap:12px;padding:8px 22px 8px 8px;border:0;border-radius:999px;background:var(--brand);color:#fff;box-shadow:0 14px 34px rgba(13,21,71,.38);cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}
#cpe .cpe-launch:hover{background:var(--brand-d);transform:translateY(-2px);box-shadow:0 18px 40px rgba(13,21,71,.46)}
#cpe .cpe-launch:focus-visible,#cpe .cpe-bar button:focus-visible,#cpe .cpe-bar a:focus-visible{outline:3px solid var(--aqua);outline-offset:3px}
#cpe .cpe-av{position:relative;flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;color:var(--brand)}
#cpe .cpe-av svg{width:25px;height:25px}
#cpe .cpe-lt{display:block;text-align:left}
#cpe .cpe-lt b{display:block;font:700 14px/1.2 Montserrat,Inter,sans-serif;letter-spacing:.03em}
#cpe .cpe-lt i{display:block;margin-top:2px;font-style:normal;font-size:12.5px;opacity:.88}
#cpe.cpe-left .cpe-launch{right:auto;left:22px}
#cpe.cpe-left .cpe-panel{right:auto;left:22px}
#cpe.cpe-left .cpe-nudge{right:auto;left:22px}
#cpe.cpe-open .cpe-launch{display:none}
@media (prefers-reduced-motion:no-preference){
 #cpe .cpe-log{scroll-behavior:smooth}
 #cpe .cpe-launch::before{content:'';position:absolute;inset:0;border-radius:inherit;animation:cpe-pulse 3.2s ease-out 1.5s infinite}
 @keyframes cpe-pulse{0%{box-shadow:0 0 0 0 rgba(33,35,148,.5)}70%,100%{box-shadow:0 0 0 18px rgba(33,35,148,0)}}
 #cpe .cpe-nudge.show{animation:cpe-pop .4s cubic-bezier(.2,.8,.2,1)}
 @keyframes cpe-pop{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
 #cpe .cpe-panel.open{animation:cpe-in .3s cubic-bezier(.2,.8,.2,1)}
 @keyframes cpe-in{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
 #cpe .m,#cpe .u,#cpe .cpe-res{animation:cpe-msg .32s cubic-bezier(.2,.8,.2,1)}
 @keyframes cpe-msg{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
 #cpe .typing i{animation:cpe-dot 1.1s infinite ease-in-out}
 #cpe .typing i:nth-child(2){animation-delay:.15s}
 #cpe .typing i:nth-child(3){animation-delay:.3s}
 @keyframes cpe-dot{0%,60%,100%{transform:none;opacity:.45}30%{transform:translateY(-4px);opacity:1}}
}
#cpe .cpe-nudge{position:fixed;right:22px;bottom:92px;z-index:2147482000;display:flex;align-items:flex-start;gap:10px;width:288px;max-width:calc(100vw - 44px);padding:14px 14px 14px 16px;background:#fff;border-radius:16px 16px 4px 16px;box-shadow:0 18px 44px rgba(13,21,71,.28),0 0 0 1px rgba(13,21,71,.07)}
#cpe .cpe-nudge p{margin:0;font-size:14.5px;line-height:1.45;color:var(--ink)}
#cpe .cpe-nudge p b{display:block;margin-bottom:2px;font:700 14.5px/1.3 Montserrat,Inter,sans-serif;color:var(--deep)}
#cpe .cpe-nudge button.go{margin-top:8px;padding:0;border:0;background:none;color:var(--brand);font:700 13px/1.2 Montserrat,Inter,sans-serif;text-transform:uppercase;letter-spacing:.05em;text-decoration:underline;text-decoration-color:var(--aqua);text-decoration-thickness:2px;text-underline-offset:4px;cursor:pointer}
#cpe .cpe-nudge .x{flex:none;display:grid;place-items:center;width:30px;height:30px;margin:-6px -6px 0 0;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
#cpe .cpe-nudge .x:hover{background:var(--mist)}
#cpe .cpe-nudge .x svg{width:16px;height:16px}

/* chat panel */
#cpe .cpe-panel{position:fixed;right:22px;bottom:22px;z-index:2147482001;display:flex;flex-direction:column;width:396px;max-width:calc(100vw - 24px);height:min(660px,calc(100vh - 44px));background:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(5,9,42,.38),0 0 0 1px rgba(13,21,71,.08);overflow:hidden}
#cpe .cpe-top{flex:none;display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:linear-gradient(135deg,#0D1547 0%,#212394 100%);color:#fff}
#cpe .cpe-top .cpe-av{width:42px;height:42px}
#cpe .cpe-top .t{flex:1;min-width:0}
#cpe .cpe-top .t b{display:block;font:700 15.5px/1.2 Montserrat,Inter,sans-serif}
#cpe .cpe-top .t span{display:block;margin-top:2px;font-size:12.5px;color:#C4CCF5}
#cpe .cpe-ib{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;transition:background .2s}
#cpe .cpe-ib:hover{background:rgba(255,255,255,.26)}
#cpe .cpe-ib:focus-visible{outline:3px solid var(--aqua-l);outline-offset:2px}
#cpe .cpe-ib svg{width:20px;height:20px}
#cpe .cpe-prog{flex:none;height:4px;background:#DDE3F5}
#cpe .cpe-prog i{display:block;height:100%;width:0;background:var(--aqua);transition:width .4s ease}
#cpe .cpe-log{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:16px 14px;overflow-y:auto;background:var(--mist);overscroll-behavior:contain}
#cpe .cpe-log>*{flex:none}
#cpe .m,#cpe .u{max-width:88%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
#cpe .m{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;color:var(--ink)}
#cpe .m b{font-weight:600;color:var(--deep)}
#cpe .u{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px}
#cpe .typing{display:flex;gap:5px;align-items:center;min-height:42px}
#cpe .typing i{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.6}
#cpe .cpe-in{flex:none;max-height:52%;overflow-y:auto;padding:12px 14px 14px;background:#fff;border-top:1px solid var(--line)}
#cpe .cpe-in:empty{display:none}
#cpe .cpe-chips{display:flex;flex-wrap:wrap;gap:8px}
#cpe .cpe-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#cpe .chip{min-height:44px;padding:9px 16px;border:1.5px solid var(--brand);border-radius:999px;background:#fff;color:var(--brand);font:600 14px/1.25 Montserrat,Inter,sans-serif;text-align:center;cursor:pointer;transition:background .15s,color .15s,transform .15s}
#cpe .chip:hover{background:var(--brand);color:#fff}
#cpe .chip:active{transform:scale(.97)}
#cpe .chip:focus-visible{outline:3px solid var(--aqua);outline-offset:2px}
#cpe .chip.sel{background:var(--brand);color:#fff}
#cpe .chip.l{display:flex;flex-direction:column;justify-content:center;gap:2px;border-radius:14px;padding:10px 12px;text-align:left}
#cpe .chip.l small{font:400 12.5px/1.3 Inter,sans-serif;color:var(--muted);transition:color .15s}
#cpe .chip.l:hover small,#cpe .chip.l.sel small{color:#D5DAFF}
#cpe .chip.hot{border-color:var(--aqua-t);box-shadow:inset 0 0 0 1px var(--aqua-t)}
#cpe .cpe-act{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
#cpe .cpe-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border:0;border-radius:12px;background:var(--brand);color:#fff;font:700 13.5px/1.2 Montserrat,Inter,sans-serif;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:background .2s,transform .2s}
#cpe .cpe-btn:hover{background:var(--brand-d)}
#cpe .cpe-btn:focus-visible{outline:3px solid var(--aqua);outline-offset:2px}
#cpe .cpe-btn svg{width:18px;height:18px}
#cpe .cpe-btn.alt{background:#fff;color:var(--brand);box-shadow:inset 0 0 0 2px var(--brand)}
#cpe .cpe-btn.alt:hover{background:var(--mist)}
#cpe .cpe-btn.wide{width:100%}
#cpe .cpe-btn[disabled]{opacity:.45;cursor:not-allowed}
#cpe .cpe-link{padding:6px 2px;border:0;background:none;color:var(--muted);font-size:13.5px;text-decoration:underline;text-decoration-color:var(--aqua);text-underline-offset:4px;cursor:pointer}
#cpe .cpe-link:hover{color:var(--deep)}
#cpe form{display:flex;flex-direction:column;gap:10px;margin:0}
#cpe .f{display:flex;flex-direction:column;gap:4px}
#cpe .f label{font:600 12.5px/1.2 Montserrat,Inter,sans-serif;letter-spacing:.02em;color:var(--deep)}
#cpe .f label em{font-style:normal;font-weight:400;color:var(--muted)}
#cpe input[type=text],#cpe input[type=tel],#cpe input[type=email],#cpe input[type=number],#cpe textarea{width:100%;min-height:46px;padding:10px 12px;border:1.5px solid #BFCBDD;border-radius:10px;background:#fff;font-size:16px;line-height:1.3}
#cpe textarea{min-height:64px;resize:vertical}
#cpe input:focus,#cpe textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(33,35,148,.18)}
#cpe .f.err input,#cpe .f.err textarea{border-color:var(--bad)}
#cpe .f .em{min-height:0;font-size:12.5px;color:var(--bad)}
#cpe .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#cpe .row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
#cpe .cons{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.45;color:var(--muted)}
#cpe .cons input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--brand)}
#cpe .cons a{color:var(--brand);text-decoration:underline;text-decoration-color:var(--aqua)}
#cpe .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* the estimate */
#cpe .cpe-res{align-self:stretch;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
#cpe .cpe-res .h{padding:14px 16px;background:var(--aqua-s);border-bottom:1px solid var(--line)}
#cpe .cpe-res .h small{display:block;font:700 11.5px/1.2 Montserrat,Inter,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--aqua-t)}
#cpe .cpe-res .h b{display:block;margin-top:4px;font:800 24px/1.15 Montserrat,Inter,sans-serif;letter-spacing:-.01em;color:var(--deep)}
#cpe .cpe-res .h span{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
#cpe .cpe-res .b{padding:12px 16px 16px;font-size:14px}
#cpe .cpe-res ul{list-style:none;margin:0;padding:0}
#cpe .cpe-res li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
#cpe .cpe-res li:first-child{border-top:0}
#cpe .cpe-res li span.t{flex:1;min-width:0}
#cpe .cpe-res li span.t small{display:block;font-size:12px;color:var(--muted)}
#cpe .cpe-res li span.v{flex:none;font-weight:600;color:var(--deep);white-space:nowrap}
#cpe .cpe-res h4{margin:12px 0 4px;font:700 12px/1.2 Montserrat,Inter,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--aqua-t)}
#cpe .cpe-res p{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
#cpe .cpe-res .after li{display:block;padding:5px 0 5px 18px;position:relative;border:0;font-size:13.5px}
#cpe .cpe-res .after li::before{content:'';position:absolute;left:3px;top:13px;width:6px;height:6px;border-radius:50%;background:var(--aqua)}
#cpe .cpe-res .btns{display:flex;flex-direction:column;gap:8px;padding:0 16px 16px}
#cpe .status{padding:0 16px 14px;font-size:13px;color:var(--muted)}
#cpe .status.ok{color:var(--ok)}
#cpe .status.bad{color:var(--bad)}
#cpe .pv{display:inline-block;margin:0 0 0 6px;padding:1px 8px;border-radius:999px;background:#FFF4D6;color:#7A5200;font:700 10.5px/1.6 Montserrat,Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase}

/* mobile action bar */
#cpe .cpe-bar{display:none}
@media (max-width:700px){
 #cpe .cpe-launch,#cpe .cpe-nudge{display:none}
 #cpe .cpe-bar{position:fixed;left:0;right:0;bottom:0;z-index:2147482000;display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -10px 30px rgba(13,21,71,.18)}
 #cpe .cpe-bar a,#cpe .cpe-bar button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:0 8px;border:0;border-radius:12px;font:700 12.5px/1.1 Montserrat,Inter,sans-serif;letter-spacing:.04em;text-transform:uppercase;text-decoration:none;cursor:pointer}
 #cpe .cpe-bar svg{width:19px;height:19px;flex:none}
 #cpe .cpe-bar .b1{background:var(--brand);color:#fff}
 #cpe .cpe-bar .b2{background:var(--aqua-s);color:var(--deep)}
 #cpe .cpe-bar .b3{background:var(--mist);color:var(--deep)}
 #cpe.cpe-open .cpe-bar{display:none}
 #cpe .cpe-panel,#cpe.cpe-left .cpe-panel{left:0;right:0;bottom:0;width:100%;max-width:none;height:min(90vh,780px);border-radius:22px 22px 0 0}
 #cpe .cpe-grid{grid-template-columns:1fr 1fr}
 html.cpe-bar-on body{padding-bottom:74px!important}
}
@media (max-width:380px){#cpe .cpe-bar .b2 span,#cpe .cpe-bar .b3 span{display:none}#cpe .cpe-bar{grid-template-columns:1.7fr .7fr .7fr}}
@media print{#cpe{display:none}}
