/* Peekaboo website chat: floating button + panel. Brand: cream #FBFAF7, ink #123A40, CTA #2E8A83, accent #53C8C0 */
.pkc-launch{position:fixed;right:22px;bottom:22px;z-index:80;display:inline-flex;align-items:center;gap:10px;border:3px solid #fff;border-radius:999px;background:var(--teal);color:#fff;font:900 14px var(--display);text-transform:uppercase;letter-spacing:.04em;padding:14px 22px 14px 16px;cursor:pointer;--sc:#1d5f5a;box-shadow:0 6px 0 var(--sc),0 14px 30px -10px rgba(18,58,64,.5);transition:transform .1s ease-out,box-shadow .1s ease-out;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pkc-launch:hover{transform:translateY(-2px);box-shadow:0 8px 0 var(--sc),0 16px 30px -10px rgba(18,58,64,.5)}
.pkc-launch:active,.pkc-launch.is-pressed{transform:translateY(5px);box-shadow:0 1px 0 var(--sc),0 6px 14px -8px rgba(18,58,64,.5)}
.pkc-launch:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.pkc-launch .pkc-ico{width:34px;height:34px;border-radius:50%;background:var(--aqua);display:grid;place-items:center;flex:none}
.pkc-launch .pkc-ico svg{width:20px;height:20px}
.pkc-launch .pkc-dot{position:absolute;top:-9px;right:-9px;min-width:26px;height:26px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:#123A40;color:#FBFAF7;border:3px solid #FBFAF7;box-shadow:0 0 0 3px #53C8C0;font:900 12px/20px 'Montserrat',system-ui,sans-serif;letter-spacing:0;text-align:center;display:none}
.pkc-launch.has-unread .pkc-dot{display:block;animation:pkc-pop .5s cubic-bezier(.3,1.6,.5,1) both,pkc-pulse 2s ease-out .5s 3}
@keyframes pkc-pop{from{transform:scale(.2)}to{transform:scale(1)}}
@keyframes pkc-pulse{0%{box-shadow:0 0 0 3px #53C8C0}70%{box-shadow:0 0 0 12px rgba(83,200,192,0)}100%{box-shadow:0 0 0 3px #53C8C0}}
.pkc-close{margin-left:auto}
.pkc-mute{margin-left:auto;display:grid;place-items:center;padding:0}
.pkc-mute svg{width:18px;height:18px}
.pkc-mute+.pkc-close{margin-left:0}
.pkc-mute[aria-pressed="true"]{background:rgba(255,255,255,.06);color:rgba(255,255,255,.75)}
.pkc-launch[aria-expanded="true"]{display:none}
.pkc-panel{position:fixed;right:22px;bottom:22px;z-index:81;width:min(390px,calc(100vw - 28px));height:min(600px,calc(100vh - 44px));background:var(--cream);border-radius:28px;border:5px solid #fff;box-shadow:0 0 0 4px var(--aqua),0 30px 70px -20px rgba(18,58,64,.55);display:none;flex-direction:column;overflow:hidden;font-family:'Montserrat',system-ui,sans-serif;color:var(--ink)}
.pkc-panel.open{display:flex}
.pkc-head{flex:none;background:var(--ink,#123A40);color:#fff;padding:8px 10px 7px 12px;display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:5px;border-bottom:4px solid var(--aqua,#53C8C0)}
.pkc-head img{width:36px;height:36px;border-radius:50%;background:var(--aqua);padding:4px;flex:none;box-sizing:border-box}
.pkc-head>div{flex:1 1 0;min-width:0}
.pkc-head h2{font:900 16px var(--display);margin:0;line-height:1.15;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pkc-head p{margin:1px 0 0;font-size:12px;font-weight:600;opacity:.85;line-height:1.3}
.pkc-head p.pkc-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.pkc-close,.pkc-mute{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font:900 20px/1 var(--display);cursor:pointer;--sc:rgba(0,0,0,.35);box-shadow:0 3px 0 var(--sc);transition:transform .1s,box-shadow .1s}
.pkc-close:active,.pkc-close.is-pressed,.pkc-mute:active,.pkc-mute.is-pressed{transform:translateY(3px);box-shadow:0 1px 0 var(--sc)}
.pkc-close:focus-visible,.pkc-mute:focus-visible{outline:3px solid var(--sun);outline-offset:2px}
.pkc-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px}
.pkc-intro{background:#fff;border-radius:18px;padding:14px 16px;font-size:14px;font-weight:600;box-shadow:0 3px 0 #E3ECEA}
.pkc-intro b{font-weight:900}
.pkc-form{display:flex;flex-direction:column;gap:10px}
.pkc-form label{font:900 13px var(--display);display:block;margin-bottom:4px}
.pkc-form input,.pkc-form textarea,.pkc-compose textarea{width:100%;padding:12px 14px;border-radius:14px;border:3px solid #D5E2E0;font:600 15px 'Montserrat',sans-serif;color:var(--ink);background:#fff;box-sizing:border-box}
.pkc-form textarea{min-height:92px;resize:vertical}
.pkc-form input:focus,.pkc-form textarea:focus,.pkc-compose textarea:focus{outline:none;border-color:var(--teal)}
.pkc-form .bad input,.pkc-form .bad textarea{border-color:var(--berry)}
.pkc-err{color:var(--berry);font-weight:800;font-size:12px;margin-top:4px;display:none}
.pkc-form .bad .pkc-err{display:block}
.pkc-small{font-size:11.5px;font-weight:600;line-height:1.45;opacity:.85;margin:0}
.pkc-small a{font-weight:800}
.pkc-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.pkc-btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--sun);color:var(--ink);font:900 13px var(--display);text-transform:uppercase;letter-spacing:.04em;padding:14px 22px;cursor:pointer;--sc:#D99E00;box-shadow:0 5px 0 var(--sc);transition:transform .1s ease-out,box-shadow .1s ease-out;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pkc-btn:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--sc)}
.pkc-btn:active,.pkc-btn.is-pressed{transform:translateY(4px);box-shadow:0 1px 0 var(--sc)}
.pkc-btn:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.pkc-btn[disabled]{opacity:.55;cursor:wait;transform:none}
.pkc-msg{max-width:84%;padding:10px 14px;border-radius:18px;font-size:14px;font-weight:600;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.pkc-msg small{display:block;font-size:10.5px;font-weight:800;opacity:.7;margin-bottom:2px;text-transform:uppercase;letter-spacing:.04em}
.pkc-msg.me{align-self:flex-end;background:var(--teal);color:#fff;border-bottom-right-radius:6px}
.pkc-msg.staff{align-self:flex-start;background:#fff;border-bottom-left-radius:6px;box-shadow:0 3px 0 #E3ECEA}
.pkc-msg.sys{align-self:center;background:transparent;font-size:12px;text-align:center;opacity:.8;max-width:95%}
.pkc-msg.sys.warn{background:#FFF4D1;opacity:1;border-radius:12px}
.pkc-compose{flex:none;border-top:3px solid #E3ECEA;padding:12px;display:flex;gap:8px;align-items:flex-end;background:var(--cream)}
.pkc-compose textarea{min-height:48px;max-height:120px;resize:none;padding:11px 12px}
.pkc-compose .pkc-btn{padding:14px 16px}
.pkc-compose[hidden]{display:none}
@media (max-width:640px){
  .pkc-launch{right:14px;bottom:14px;padding:10px}
  .pkc-launch .pkc-label{display:none}
  .pkc-panel{right:0;bottom:0;width:100vw;height:100vh;height:100dvh;border-radius:0;border:0;box-shadow:none}
  .pkc-panel[style*="top"]{bottom:auto}
  .pkc-body{padding:14px;gap:9px}
  .pkc-compose{padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))}
  .pkc-compose textarea{min-height:44px;padding:10px 12px}
  .pkc-compose .pkc-btn{padding:13px 16px}
}
@media (prefers-reduced-motion:reduce){.pkc-launch,.pkc-btn,.pkc-close,.pkc-mute{transition:none}.pkc-launch.has-unread .pkc-dot{animation:none}}
html.calm .pkc-launch{background:#3E7F7A}

/* Chat duty: online / offline dot in the header */
.pkc-state{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:1px;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.pkc-state.on{background:#53C8C0}
.pkc-state.off{background:#F2B33D}
.pkc-msg.sys.pkc-offline{background:#FFF6DF;color:#123A40;border-radius:14px;padding:10px 12px;font-weight:700}
/* Fixed chat hours line under the status */
.pkc-head p.pkc-hours{margin-top:1px;font-size:11px;font-weight:700;opacity:.8;line-height:1.25}
/* Slim line under the header row: email promise + chat hours */
.pkc-head p.pkc-sub{flex:1 0 100%;margin:0;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;line-height:1.3;opacity:1;white-space:nowrap;color:rgba(255,255,255,.82)}
.pkc-sub svg{width:14px;height:14px;flex:none;color:var(--aqua,#53C8C0)}
.pkc-sub b{font-weight:800;color:#fff}
.pkc-sub-txt{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media (min-width:641px){.pkc-head{padding:10px 12px 9px 14px;column-gap:10px;row-gap:6px}.pkc-head img{width:40px;height:40px}.pkc-head h2{font-size:17px}.pkc-head p.pkc-sub{font-size:11.5px}}
.pkc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Typing dots: "Peekaboo is typing…" bubble (staff typing in the CRM) */
.pkc-msg.pkc-typing{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;font-size:12px;font-weight:800;color:var(--ink);white-space:nowrap}
.pkc-dots{display:inline-flex;gap:5px;align-items:center;height:12px}
.pkc-dots i{display:block;width:9px;height:9px;border-radius:50%;background:var(--aqua,#53C8C0);box-shadow:0 2px 0 #2E8A83;animation:pkc-bounce 1.2s ease-in-out infinite}
.pkc-dots i:nth-child(2){animation-delay:.15s}
.pkc-dots i:nth-child(3){animation-delay:.3s}
.pkc-typing-label{opacity:.75;letter-spacing:.01em}
@keyframes pkc-bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.pkc-dots i{animation:pkc-fade 1.6s ease-in-out infinite}.pkc-dots i:nth-child(2){animation-delay:.25s}.pkc-dots i:nth-child(3){animation-delay:.5s}}
@keyframes pkc-fade{0%,100%{opacity:.35}50%{opacity:1}}
