/* Entranosa help chat. Colours follow the theme tokens, with fallbacks. */
.ec-chat{ --ec-navy:var(--navy,#1B3A52); --ec-navy-deep:var(--navy-deep,#122A3B); --ec-clay:var(--clay-ui,#A8552E); --ec-stone:var(--stone-2,#EFE9DC); --ec-ink:var(--ink,#1E2A24); --ec-line:var(--line,#DDD5C4);
	position:fixed; right:24px; bottom:24px; z-index:260; font-family:var(--font-body,Inter,system-ui,sans-serif); font-size:15px; line-height:1.5; color:var(--ec-ink); }
.ec-chat *{ box-sizing:border-box; }
.ec-chat-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.ec-chat-launch{ display:block; width:64px; height:64px; padding:3px; border:2px solid #fff; border-radius:14px; background:var(--ec-navy); cursor:pointer;
	box-shadow:0 10px 26px rgba(18,42,59,.32); margin-left:auto; transition:transform .15s ease, box-shadow .15s ease; }
.ec-chat-launch:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(18,42,59,.38); }
.ec-chat-launch:focus-visible, .ec-chat button:focus-visible, .ec-chat a:focus-visible, .ec-chat-input:focus-visible{ outline:3px solid #4BBCEC; outline-offset:2px; }
.ec-chat-launch-img{ display:block; width:100%; height:100%; object-fit:cover; border-radius:9px; }
.ec-chat.is-open .ec-chat-launch{ display:none; }

.ec-chat-bubble{ position:absolute; right:74px; bottom:12px; width:230px; background:#fff; color:var(--ec-ink); border:1px solid var(--ec-line); border-radius:12px 12px 4px 12px;
	padding:11px 14px; font-size:14px; box-shadow:0 8px 22px rgba(18,42,59,.18); }

.ec-chat-panel{ width:372px; max-width:calc(100vw - 32px); height:min(560px, calc(100vh - 48px)); background:#fff; border:1px solid var(--ec-line); border-radius:14px;
	box-shadow:0 18px 50px rgba(18,42,59,.34); display:flex; flex-direction:column; overflow:hidden; }
.ec-chat-panel[hidden]{ display:none; }
.ec-chat-head{ display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--ec-navy); color:#fff; }
.ec-chat-head-img{ width:44px; height:44px; border-radius:8px; object-fit:cover; flex-shrink:0; border:2px solid rgba(255,255,255,.7); }
.ec-chat-title{ flex:1; display:flex; flex-direction:column; min-width:0; }
.ec-chat-title strong{ font-size:16px; line-height:1.2; }
.ec-chat-title span{ font-size:12.5px; color:#D6E4EC; }
.ec-chat-close{ background:rgba(255,255,255,.14); color:#fff; border:none; width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.ec-chat-close:hover{ background:rgba(255,255,255,.26); }

.ec-chat-log{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:#FBF9F4; }
.ec-msg{ max-width:88%; padding:10px 13px; border-radius:12px; }
.ec-msg p{ margin:0 0 8px; } .ec-msg p:last-child{ margin-bottom:0; }
.ec-bot{ align-self:flex-start; background:var(--ec-stone); border-bottom-left-radius:4px; }
.ec-me{ align-self:flex-end; background:var(--ec-navy); color:#fff; border-bottom-right-radius:4px; }
.ec-typing{ color:#4C5450; font-style:italic; }
.ec-links{ display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.ec-link{ display:block; background:#fff; color:var(--ec-navy); border:1px solid var(--ec-navy); border-radius:8px; padding:8px 11px; font-weight:600; font-size:14px; text-decoration:none; }
.ec-link:hover{ background:var(--ec-navy); color:#fff; }
.ec-link::after{ content:" \2192"; }

.ec-chat-chips{ display:flex; flex-wrap:wrap; gap:8px; padding:0 14px 12px; background:#FBF9F4; }
.ec-chat-chips[hidden]{ display:none; }
.ec-chip{ background:#fff; color:var(--ec-navy); border:1px solid var(--ec-line); border-radius:999px; padding:8px 13px; font-size:13.5px; cursor:pointer; min-height:40px; }
.ec-chip:hover{ border-color:var(--ec-navy); }

.ec-chat-form{ display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--ec-line); background:#fff; }
.ec-chat-input{ flex:1; min-width:0; border:1px solid #8A8F8B; border-radius:8px; padding:10px 12px; font:inherit; color:var(--ec-ink); min-height:44px; }
.ec-chat-send{ background:var(--ec-clay); color:#fff; border:none; border-radius:8px; padding:0 16px; font:inherit; font-weight:600; cursor:pointer; min-height:44px; }
.ec-chat-send:disabled{ opacity:.6; cursor:wait; }

.ec-chat-foot{ padding:8px 14px 12px; background:#fff; font-size:12.5px; color:#4C5450; }
.ec-chat-foot p{ margin:0 0 5px; }
.ec-chat-foot a{ color:var(--ec-clay); font-weight:600; }
.ec-chat-hide{ background:none; border:none; padding:6px 0; color:#4C5450; text-decoration:underline; cursor:pointer; font:inherit; font-size:12.5px; }

/* Keep the back-to-top button clear of the chat. */
body.ec-chat-on .back-to-top{ bottom:104px; }

@media (max-width:520px){
	.ec-chat{ right:12px; bottom:12px; }
	.ec-chat-panel{ width:calc(100vw - 24px); height:min(78vh, 560px); }
	.ec-chat-bubble{ width:190px; }
}
@media (prefers-reduced-motion:reduce){ .ec-chat-launch{ transition:none; } }
@media print{ .ec-chat{ display:none !important; } }
