/* Website chat (Vanessa). Uses the tokens from style.css, so load that first. */
.epc{--epc-gap:16px;font:400 16px/1.45 var(--text);color:var(--ink)}
.epc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.epc [hidden]{display:none!important}

/* the button */
.epc-launch{position:fixed;z-index:50;right:var(--epc-gap);bottom:var(--epc-gap);display:inline-flex;align-items:center;gap:8px;min-height:52px;max-width:calc(100vw - 2 * var(--epc-gap));padding:0 18px 0 8px;border:0;border-radius:14px;background:var(--night);color:var(--night-ink);font:700 16px/1.2 var(--text);text-align:left;cursor:pointer;box-shadow:0 2px 4px rgba(20,33,43,.2),0 10px 28px rgba(20,33,43,.24);transition:transform .28s var(--spring)}
.epc-launch:active{transform:scale(.96);transition:transform .08s ease-out}
@media (hover:hover){.epc-launch:hover{transform:translateY(-2px)}}
.epc-launch-av{width:36px;height:36px}
.epc-launch-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:#1D9E75;border:2px solid var(--night)}
.epc-spark{display:inline-flex;color:var(--mint);margin-left:2px}

/* Vanessa's picture: an animated orb */
.epc-orb{position:relative;flex:none;display:block;border-radius:50%}
.epc-orb-a,.epc-orb-b,.epc-orb-c{position:absolute;display:block}
.epc-orb-a{inset:0;background:var(--accent);animation:epc-morph 3s ease-in-out infinite,epc-spin 9s linear infinite}
.epc-orb-b{inset:14%;background:var(--mint);animation:epc-morph 2.4s ease-in-out infinite reverse,epc-spin 6s linear infinite reverse}
.epc-orb-c{inset:32%;border-radius:50%;background:var(--night-ink)}
.epc-launch-av .epc-orb-a{background:var(--mint)}
.epc-launch-av .epc-orb-b{background:var(--accent)}
@keyframes epc-spin{to{transform:rotate(360deg)}}
@keyframes epc-morph{0%,100%{border-radius:50% 44% 56% 47%}50%{border-radius:44% 56% 47% 53%}}

/* the greeting bubble */
.epc-tip{position:fixed;z-index:50;right:var(--epc-gap);bottom:calc(var(--epc-gap) + 74px);display:flex;align-items:flex-start;max-width:min(260px,calc(100vw - 2 * var(--epc-gap)));background:var(--ground);border-radius:16px 16px 4px 16px;box-shadow:0 2px 4px rgba(20,33,43,.12),0 10px 28px rgba(20,33,43,.18);animation:epc-in .3s var(--ease)}
.epc-tip-text{flex:1;padding:12px 4px 12px 14px;border:0;background:transparent;color:var(--ink);font:400 15px/1.4 var(--text);text-align:left;cursor:pointer}
.epc-tip-x{flex:none;display:grid;place-items:center;width:32px;height:32px;margin:4px 4px 0 0;border:0;border-radius:50%;background:transparent;color:var(--ink-soft);cursor:pointer}
.epc-tip-x:hover{background:var(--surface)}
@media (max-width:519px){.epc-tip{max-width:220px}.epc-tip-text{font-size:14px;padding:10px 2px 10px 12px}}
.epc :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.epc-launch:focus-visible{outline-color:var(--mint)}

/* the panel */
.epc-panel{position:fixed;z-index:51;left:var(--epc-gap);right:var(--epc-gap);bottom:var(--epc-gap);display:flex;flex-direction:column;max-height:calc(100vh - 2 * var(--epc-gap));max-height:calc(100dvh - 2 * var(--epc-gap));height:560px;background:var(--ground);border-radius:var(--radius);box-shadow:0 2px 6px rgba(20,33,43,.16),0 24px 64px rgba(20,33,43,.28);overflow:hidden;animation:epc-in .22s var(--ease)}
@keyframes epc-in{from{opacity:0;transform:translateY(12px) scale(.98)}}
@media (min-width:520px){
  .epc{--epc-gap:24px}
  .epc-panel{left:auto;width:384px}
}

.epc-head{display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:var(--night);color:var(--night-ink)}
.epc-av{width:44px;height:44px}
.epc-titles{flex:1;min-width:0}
.epc-title{font:600 22px/1.1 var(--display);letter-spacing:-0.01em}
.epc-sub{font-size:14px;color:var(--night-soft)}
.epc-close{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--night-ink);cursor:pointer}
.epc-close:hover{background:var(--night-2)}
.epc-head :focus-visible{outline-color:var(--mint)}

.epc-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--surface)}
.epc-log:focus-visible{outline-offset:-3px}
.epc-msg{max-width:86%;padding:10px 14px;border-radius:18px;font-size:16px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.epc-msg.in{align-self:flex-start;background:var(--ground);border-bottom-left-radius:6px;box-shadow:0 1px 2px rgba(20,33,43,.06)}
.epc-msg.out{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:6px}
.epc-msg a{font-weight:700;text-decoration:underline;text-underline-offset:3px;color:var(--accent)}
.epc-msg.out a{color:var(--accent-ink)}
.epc-msg.epc-note{background:var(--pearl)}

.epc-typing{display:inline-flex;align-items:center;min-height:42px}
.epc-dots{display:inline-flex;gap:5px}
.epc-dots i{width:7px;height:7px;border-radius:50%;background:var(--ink-soft);animation:epc-dot 1.1s infinite ease-in-out}
.epc-dots i:nth-child(2){animation-delay:.15s}
.epc-dots i:nth-child(3){animation-delay:.3s}
@keyframes epc-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.epc-form{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--surface-2);background:var(--ground)}
/* 16px text so phones don't zoom in on focus. */
.epc-input{flex:1;min-width:0;min-height:44px;max-height:132px;resize:none;overflow-y:hidden;scrollbar-width:thin;padding:11px 14px;border:2px solid var(--surface-2);border-radius:22px;background:var(--ground);color:var(--ink);font:400 16px/1.35 var(--text)}
.epc-input:focus{border-color:var(--accent);outline:none}
.epc-input:focus-visible{outline:none}
.epc-input:disabled{background:var(--surface);color:var(--ink-soft)}
.epc-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--accent);color:var(--accent-ink);cursor:pointer}
.epc-send:hover{background:var(--accent-hover)}
.epc-send:disabled{opacity:.45;cursor:default}

@media (prefers-reduced-motion:reduce){
  .epc-panel,.epc-tip,.epc-orb-a,.epc-orb-b{animation:none}
  .epc-launch,.epc-launch:hover,.epc-launch:active{transform:none;transition:none}
  .epc-dots i{animation:none;opacity:.7}
}
@media print{.epc{display:none}}
