/* Evercrest chat widget */
.ec-chat .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.ec-chat{--ec-chat-bottom:24px;--ec-chat-right:24px;font-family:var(--body);color:var(--text);position:fixed;z-index:70;inset:auto var(--ec-chat-right) var(--ec-chat-bottom) auto;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.ec-chat *{box-sizing:border-box}
.ec-chat button,.ec-chat input,.ec-chat textarea,.ec-chat a{font:inherit;color:inherit}
.ec-chat__panel{pointer-events:auto;width:min(392px,calc(100vw - 32px));height:min(660px,calc(100dvh - 36px));display:none;flex-direction:column;background:var(--bg2);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px -20px rgba(0,0,0,.75),0 0 0 1px rgba(201,129,79,.12);overflow:hidden}
.ec-chat.is-open .ec-chat__panel{display:flex}
.ec-chat__banner{flex:none;background:#1f1710;color:var(--copper2);font:600 .72rem/1.3 var(--body);letter-spacing:.08em;text-transform:uppercase;padding:7px 14px;text-align:center;border-bottom:1px solid var(--line)}
.ec-chat__head{flex:none;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 14px;background:linear-gradient(180deg,#1b1e22,#15171b);border-bottom:1px solid var(--line)}
.ec-chat__logo{width:44px;height:44px;border-radius:50%;object-fit:contain;padding:4px;background:#0d0e10;border:1px solid var(--line);flex:none}
.ec-chat__who{flex:1;min-width:0}
.ec-chat__name{font-family:var(--head);font-weight:600;letter-spacing:.04em;text-transform:uppercase;font-size:1.02rem;line-height:1.1;margin:0}
.ec-chat__status{margin:4px 0 0;font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.ec-chat__dot{width:8px;height:8px;border-radius:50%;background:#6fbf73;box-shadow:0 0 0 3px rgba(111,191,115,.18);flex:none}
.ec-chat__close{appearance:none;background:transparent;border:0;color:var(--silver);width:40px;height:40px;border-radius:10px;cursor:pointer;display:grid;place-items:center;flex:none}
.ec-chat__close:hover{background:rgba(255,255,255,.06);color:#fff}
.ec-chat__close:focus-visible{outline:3px solid var(--copper2);outline-offset:2px}
.ec-chat__close svg{width:18px;height:18px}
.ec-chat__body{flex:1;min-height:0;overflow-y:auto;background:var(--bg);scrollbar-width:thin;scrollbar-color:#3a3f46 transparent;display:flex;flex-direction:column}
.ec-chat__thread{padding:12px 16px 4px;display:flex;flex-direction:column;gap:12px}
.ec-chat__msg{max-width:92%;padding:12px 14px;border-radius:14px;font-size:.95rem;line-height:1.5}
.ec-chat__msg p{margin:0}
.ec-chat__msg p+p{margin-top:.55em}
.ec-chat__msg--us{align-self:flex-start;background:var(--bg3);border:1px solid var(--line);border-top-left-radius:4px;color:var(--text)}
.ec-chat__msg--them{align-self:flex-end;background:linear-gradient(180deg,var(--copper2),var(--copper));color:#140b05;border-top-right-radius:4px;font-weight:550}
.ec-chat__meta{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:6px;font-weight:600}
.ec-chat__msg--them .ec-chat__meta{color:rgba(20,11,5,.62)}
.ec-chat__form{flex:none;padding:2px 16px 10px;display:block;border-top:1px solid transparent}
.ec-chat__form-bar{display:block;flex:none;padding:10px 16px 12px;border-top:1px solid var(--line);background:var(--bg2)}
.ec-chat__form-bar .ec-chat__sendform{margin:0}
.ec-chat__form h3{font-family:var(--head);font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;margin:0 0 6px}
.ec-chat__form p{margin:0 0 8px;font-size:.82rem;color:var(--muted);line-height:1.4}
.ec-chat__field{display:block;margin:0 0 6px}
.ec-chat__field span{display:block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.ec-chat__field input,.ec-chat__field textarea{width:100%;background:#0d0e10;border:1px solid var(--line);border-radius:10px;color:var(--text);padding:8px 12px;font:400 .95rem/1.4 var(--body)}
.ec-chat__field textarea{min-height:44px;resize:vertical}
.ec-chat__field input:focus,.ec-chat__field textarea:focus{outline:none;border-color:var(--copper)}
.ec-chat__err{display:none;color:#e07a6a;font-size:.82rem;margin:0 0 8px}
.ec-chat__err.is-on{display:block}
.ec-chat__sendform{appearance:none;width:100%;border:0;border-radius:999px;padding:11px 18px;margin-top:2px;font:700 .95rem/1 var(--body);cursor:pointer;background:linear-gradient(180deg,var(--copper2),var(--copper));color:#140b05;box-shadow:0 10px 24px -10px rgba(224,154,102,.55)}
.ec-chat__sendform:hover{transform:translateY(-1px)}
.ec-chat__sendform:focus-visible{outline:3px solid var(--copper2);outline-offset:2px}
.ec-chat__sendform:disabled{opacity:.6;cursor:wait;transform:none}
.ec-chat__launcher{pointer-events:auto;appearance:none;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;background:linear-gradient(180deg,var(--copper2),var(--copper));color:#140b05;box-shadow:0 12px 30px -8px rgba(224,154,102,.7),0 0 0 1px rgba(20,11,5,.25);position:relative}
.ec-chat__launcher:hover{transform:translateY(-2px)}
.ec-chat__launcher:focus-visible{outline:3px solid var(--copper2);outline-offset:3px}
.ec-chat.is-open .ec-chat__launcher{display:none}
.ec-chat__launcher svg{width:28px;height:28px}
.ec-chat__badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#0d0e10;color:var(--copper2);border:2px solid var(--copper);font:700 .68rem/16px var(--body);display:grid;place-items:center}
@media (max-width:900px){
  .ec-chat{
    --ec-chat-bottom:calc(78px + env(safe-area-inset-bottom,0px));
    --ec-chat-right:16px;
  }
  .ec-chat__panel{
    width:min(392px,calc(100vw - 24px));
    height:min(660px,calc(100dvh - 88px - env(safe-area-inset-bottom,0px)));
  }
  .ec-chat__launcher{width:56px;height:56px}
}
@media (prefers-reduced-motion:reduce){
  .ec-chat__launcher,.ec-chat__sendform{transition:none}
  .ec-chat__launcher:hover,.ec-chat__sendform:hover{transform:none}
}

.ec-chat.is-sent .ec-chat__form,
.ec-chat.is-sent .ec-chat__form-bar{display:none!important}
