/* Chat widget styles for the homepage. Extracted from site.css (tokens + CARE ASSISTANT CHAT WIDGET block). If you change the chat styles in site.css, copy them here too. */
:root{
  /* Calming blues/teals */
  --teal-900:#0B3C46;
  --teal-800:#0E4E5A;
  --teal-700:#116273;   /* primary */
  --teal-600:#177A8E;
  --teal-500:#2596AC;
  --teal-100:#D7EEF3;
  --teal-50:#EFF8FA;
  /* Warm coral accent */
  --coral-700:#B03D20;  /* CTA (AA on white) */
  --coral-600:#C24728;  /* CTA hover base */
  --coral-500:#E4744F;  /* decorative */
  --coral-100:#FBE3DA;
  --coral-50:#FDF3EF;
  /* Warm gold (badges / stars) */
  --gold-500:#D99A2B;
  --gold-100:#F9EDD4;
  /* Neutrals */
  --ink:#152F38;
  --ink-soft:#3E5A64;
  --white:#FFFFFF;
  --off-white:#F7FAFB;
  --border:#DCE9EC;

  --radius-lg:24px;
  --radius-md:16px;
  --radius-sm:10px;
  --shadow-soft:0 6px 24px rgba(14,78,90,.10);
  --shadow-card:0 4px 16px rgba(14,78,90,.08);
  --shadow-lift:0 12px 32px rgba(14,78,90,.16);

  --font-head:'Figtree','Segoe UI',system-ui,sans-serif;
  --font-body:'Noto Sans','Segoe UI',system-ui,sans-serif;

  --header-h:76px;
}


/* ============================================================
   CARE ASSISTANT CHAT WIDGET
   ============================================================ */
.wm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Launcher */
.wm-chat-launcher{
  position:fixed;right:1.25rem;bottom:1.25rem;z-index:120;
  display:flex;align-items:center;gap:.55rem;
  background:#175E54;color:#F7F6F1;border:none;cursor:pointer;
  font-family:var(--font-head);font-weight:700;font-size:1rem;
  padding:.85rem 1.35rem;min-height:56px;border-radius:999px;
  box-shadow:0 8px 24px rgba(11,60,70,.30);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.wm-chat-launcher:hover{transform:translateY(-2px);background:#12504a;box-shadow:0 12px 30px rgba(11,60,70,.36)}
.wm-chat-launcher svg{width:24px;height:24px;flex:none}
.wm-chat-launcher .wm-ic-close{display:none}
.wm-chat-launcher[aria-expanded="true"] .wm-ic-chat{display:none}
.wm-chat-launcher[aria-expanded="true"] .wm-ic-close{display:block}
.wm-chat-launcher[aria-expanded="true"] .wm-chat-launcher-txt{display:none}
.wm-chat-launcher[aria-expanded="true"]{padding:.85rem;border-radius:50%}

/* Panel */
.wm-chat-panel{
  position:fixed;right:1.25rem;bottom:5.75rem;z-index:120;
  width:min(400px,calc(100vw - 2.5rem));height:min(560px,calc(100vh - 8rem));
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);
  box-shadow:0 20px 56px rgba(11,60,70,.26);
  animation:wm-pop .2s ease-out;
}
.wm-chat-panel[hidden]{display:none}
@keyframes wm-pop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

.wm-chat-head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;background:#175E54;color:#F7F6F1;flex:none}
.wm-chat-avatar{width:40px;height:40px;border-radius:11px;background:rgba(255,255,255,.15);display:grid;place-items:center;flex:none;color:#F7F6F1}
.wm-chat-avatar svg{width:22px;height:22px}
.wm-chat-title{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.wm-chat-title strong{font-family:var(--font-head);font-size:1rem}
.wm-chat-title span{font-size:.78rem;opacity:.8}
.wm-chat-x{margin-left:auto;background:transparent;border:none;color:#F7F6F1;cursor:pointer;padding:.4rem;border-radius:8px;flex:none}
.wm-chat-x:hover{background:rgba(255,255,255,.15)}
.wm-chat-x svg{width:20px;height:20px;display:block}

/* Message log */
.wm-chat-log{flex:1;overflow-y:auto;padding:1.1rem 1rem .5rem;background:var(--teal-50);display:flex;flex-direction:column;gap:.75rem}
.wm-msg{display:flex;max-width:92%}
.wm-msg.wm-bot{align-self:flex-start}
.wm-msg.wm-user{align-self:flex-end}
.wm-bubble{
  padding:.75rem .95rem;border-radius:16px;font-size:.97rem;line-height:1.55;
  box-shadow:var(--shadow-card);word-wrap:break-word;overflow-wrap:anywhere;
}
.wm-bot .wm-bubble{background:#fff;color:var(--ink);border-bottom-left-radius:5px}
.wm-user .wm-bubble{background:#175E54;color:#F7F6F1;border-bottom-right-radius:5px}
.wm-bubble p{margin:0 0 .55rem;max-width:none}
.wm-bubble p:last-child{margin-bottom:0}
.wm-bubble ul,.wm-bubble ol{margin:.2rem 0 .6rem 1.15rem;display:grid;gap:.3rem}
.wm-bubble li{font-size:.95rem}
.wm-bubble a{color:var(--teal-700);font-weight:600}
.wm-bubble a.wm-chat-cta{
  display:inline-block;margin-top:.4rem;background:var(--coral-700);color:#fff;
  text-decoration:none;font-family:var(--font-head);padding:.6rem 1.1rem;border-radius:999px;
}
.wm-bubble a.wm-chat-cta:hover{background:var(--coral-600)}

/* Typing indicator */
.wm-typing .wm-bubble{display:flex;gap:4px;padding:.85rem 1rem}
.wm-typing span{width:7px;height:7px;border-radius:50%;background:var(--teal-500);animation:wm-blink 1.2s infinite}
.wm-typing span:nth-child(2){animation-delay:.2s}
.wm-typing span:nth-child(3){animation-delay:.4s}
@keyframes wm-blink{0%,60%,100%{opacity:.25}30%{opacity:1}}

/* Quick replies */
.wm-chat-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding:.6rem 1rem;background:var(--teal-50);flex:none}
.wm-chip{
  background:#fff;border:1.5px solid var(--teal-100);color:var(--teal-800);
  font-family:var(--font-head);font-weight:600;font-size:.87rem;
  padding:.5rem .85rem;border-radius:999px;cursor:pointer;text-decoration:none;
  transition:background .15s,border-color .15s;
}
.wm-chip:hover{background:var(--teal-100);border-color:var(--teal-500)}
.wm-chip-call{background:var(--coral-50);border-color:var(--coral-100);color:var(--coral-700)}
.wm-chip-call:hover{background:var(--coral-100);border-color:var(--coral-500)}

/* Composer */
.wm-chat-form{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid var(--border);background:#fff;flex:none}
.wm-chat-form input{
  flex:1;font:inherit;font-size:1rem;padding:.7rem .9rem;min-height:46px;
  border:1.5px solid var(--border);border-radius:999px;background:var(--off-white);color:var(--ink);
}
.wm-chat-form input:focus{outline:none;border-color:var(--teal-600);background:#fff;box-shadow:0 0 0 3px var(--teal-100)}
.wm-chat-form button{
  flex:none;width:46px;height:46px;border-radius:50%;border:none;cursor:pointer;
  background:var(--coral-700);color:#fff;display:grid;place-items:center;transition:background .15s;
}
.wm-chat-form button:hover{background:var(--coral-600)}
.wm-chat-form button svg{width:20px;height:20px}
.wm-chat-foot{
  font-size:.74rem;color:var(--ink-soft);text-align:center;
  padding:0 1rem .7rem;background:#fff;flex:none;max-width:none;
}

/* Mobile: clear the sticky call bar, go full-height */
@media(max-width:767px){
  .wm-chat-launcher{bottom:calc(78px + .9rem);right:1rem;padding:.8rem;border-radius:50%}
  .wm-chat-launcher .wm-chat-launcher-txt{display:none}
  .wm-chat-panel{
    right:0;left:0;bottom:0;width:100%;
    height:100dvh;max-height:100dvh;border-radius:0;border:none;
  }
  body.wm-chat-open .mobile-call{display:none}
  /* Panel is full-screen and has its own close button in the header — the floating
     launcher would otherwise sit on top of the send button. */
  body.wm-chat-open .wm-chat-launcher{display:none}
}
