:root { --medical: #0ea5e9; --dark: #0f172a; --light: #f8fafc; --chat-fab-bg: var(--medical); --chat-option-bg: #fff; --chat-shadow: rgba(2,6,23,0.12); }

/* Mobile menu overlay & panel */
.mobile-menu-overlay { position:fixed; inset:0; background:rgba(2,6,23,0.55); z-index:70; opacity:0; transition:opacity 240ms ease; pointer-events:none; }
.mobile-menu-overlay.open { opacity:1; pointer-events:auto; }
.mobile-menu-panel { position:fixed; right:0; top:0; bottom:0; width:320px; max-width:85%; background:#fff; z-index:80; transform:translateX(110%); transition:transform 320ms ease; padding:1.25rem; overflow-y:auto; box-shadow:-10px 0 30px rgba(2,6,23,0.12); }
.mobile-menu-panel.open { transform:translateX(0); }
.mobile-menu-panel a { display:block; padding:14px 12px; border-radius:10px; margin-bottom:8px; }
.mobile-menu-panel a:hover { background: rgba(14,165,233,0.04); }
.mobile-menu-panel a:focus { outline: 2px solid rgba(14,165,233,0.12); outline-offset: 2px; }
@media (max-width:420px) { .mobile-menu-panel { width:100%; max-width:100%; left:0; right:0; } .mobile-menu-panel a { padding:16px; font-size:1rem; } }

/* Floating chat widget */
.chat-widget { position:fixed; right:20px; bottom:20px; z-index:60; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.chat-options { display:flex; flex-direction:column; gap:10px; align-items:flex-end; opacity:0; transform:translateY(8px) scale(.98); pointer-events:none; transition:opacity 220ms ease, transform 220ms ease; }
.chat-options.open { opacity:1; transform:none; pointer-events:auto; }
.chat-option { display:flex; align-items:center; gap:10px; background:var(--chat-option-bg); padding:10px 14px; border-radius:999px; box-shadow:0 8px 30px var(--chat-shadow); text-decoration:none; color:var(--dark); min-width:160px; }
.chat-fab { width:56px; height:56px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; background:var(--chat-fab-bg); color:#fff; box-shadow:0 12px 30px rgba(2,6,23,0.16); border:0; }
.chat-fab.open { transform:rotate(45deg); }
.chat-option svg { width:20px; height:20px; flex-shrink:0; }
/* Toggle row: label + fab */
.chat-toggle-row { display:flex; align-items:center; gap:10px; }
.chat-label { background:var(--medical); color:#fff; padding:8px 12px; border-radius:999px; font-weight:600; box-shadow:0 8px 24px rgba(2,6,23,0.12); border:0; cursor:pointer; }
.chat-label:focus { outline:2px solid rgba(14,165,233,0.12); outline-offset:2px; }    .chat-fab:focus-visible { outline:3px solid rgba(14,165,233,0.16); outline-offset:4px; box-shadow:0 8px 24px rgba(2,6,23,0.12); }
    .chat-option:focus { outline:2px solid rgba(14,165,233,0.12); outline-offset:2px; }.chat-widget { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); }
.chat-widget.hidden-by-menu { opacity:0; transform: translateY(8px) scale(.98); pointer-events:none; transition:opacity 220ms ease, transform 220ms ease; }
@media (max-width:420px) {
    .chat-widget { right:12px; left:12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); align-items:stretch; }
    .chat-options { align-items:stretch; right:0; left:0; }
    .chat-option { min-width:0; width:100%; justify-content:center; }
    .chat-toggle-row { justify-content:center; }
    /* Keep the label visible on most phones; hide only on very narrow devices to avoid overflow */
    .chat-label { display:inline-flex; }
}

@media (max-width:359px) {
    .chat-label { display:none; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .chat-options, .mobile-menu-panel, .mobile-menu-overlay { transition: none !important; animation: none !important; transform: none !important; }
}
