/* CareLearn website live chat (chat.js) */
.clc { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; font-family: var(--body); }
.clc-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: #0551DC; color: #fff; font-weight: 600; font-size: .95rem; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(5,81,220,.28), 0 1px 3px rgba(0,0,0,.12); position: relative; }
.clc-btn:hover { background: #0446C0; }
.clc-btn svg { width: 20px; height: 20px; flex: none; }
.clc-dot { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; border: 2px solid #fff; font-size: .72rem; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; }
.clc.has-unread .clc-btn { animation: clc-pulse 1.6s ease-in-out 3; }
@keyframes clc-pulse { 0%, 100% { box-shadow: 0 6px 20px rgba(5,81,220,.28), 0 1px 3px rgba(0,0,0,.12); } 50% { box-shadow: 0 0 0 8px rgba(229,72,77,.25), 0 6px 20px rgba(5,81,220,.28); } }
@media (prefers-reduced-motion: reduce) { .clc.has-unread .clc-btn { animation: none; } }
.clc.is-open .clc-btn { display: none; }
.clc-panel { position: absolute; right: 0; bottom: 0; width: 370px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 100px)); background: #fff; color: #1D1D1F; border: 1px solid #E4E8EF; border-radius: 18px; box-shadow: 0 18px 50px rgba(16,24,40,.18); display: flex; flex-direction: column; overflow: hidden; }
.clc-panel[hidden] { display: none; }
.clc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; background: #0551DC; color: #fff; }
.clc-head b { display: block; font-family: var(--display); font-size: 1rem; }
.clc-head span { display: block; font-size: .82rem; opacity: .9; }
.clc-x { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.clc-x svg { width: 18px; height: 18px; }
.clc-body { flex: 1; overflow-y: auto; padding: 14px 14px 6px; background: #F7F9FC; }
.clc-intro { background: #fff; border: 1px solid #E4E8EF; border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.5; margin-bottom: 10px; color: #45454A; }
.clc-intro.small { font-size: .84rem; }
.clc-day { text-align: center; font-size: .74rem; color: #86868B; margin: 8px 0; }
.clc-msg { display: flex; flex-direction: column; margin: 6px 0; }
.clc-msg.me { align-items: flex-end; }
.clc-msg.them { align-items: flex-start; }
.clc-bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.clc-msg.me .clc-bub { background: #0551DC; color: #fff; border-bottom-right-radius: 4px; }
.clc-msg.them .clc-bub { background: #fff; border: 1px solid #E4E8EF; border-bottom-left-radius: 4px; }
.clc-t { font-size: .72rem; color: #86868B; margin-top: 3px; }
.clc-foot { border-top: 1px solid #E4E8EF; padding: 10px 12px 12px; background: #fff; }
.clc-form { display: grid; gap: 8px; }
.clc-form label { display: grid; gap: 3px; font-size: .8rem; font-weight: 600; color: #45454A; }
.clc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clc-form input, .clc-form textarea { width: 100%; font-family: inherit; border: 1px solid #D2D9E3; border-radius: 10px; padding: 8px 10px; font-size: 16px; font-weight: 400; color: #1D1D1F; background: #fff; resize: none; }
.clc-form input:focus, .clc-form textarea:focus { outline: 2px solid #0551DC; outline-offset: 0; border-color: transparent; }
.clc-compose { grid-template-columns: 1fr auto; align-items: end; }
.clc-compose textarea { max-height: 120px; }
.clc-compose .clc-err, .clc-compose .clc-note { grid-column: 1 / -1; }
.clc-send { border: 0; background: #0551DC; color: #fff; font-weight: 600; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: .92rem; }
.clc-send:disabled { opacity: .6; cursor: default; }
.clc-err { color: #B42318; font-size: .82rem; }
.clc-note { font-size: .74rem; color: #86868B; }
.clc-note a, .clc-link { color: #0551DC; }
.clc-link { border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }
.clc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .clc-lbl { display: none; }
  .clc-btn { padding: 14px; }
  .clc.is-open { left: 0; right: 0; bottom: 0; top: 0; }
  .clc-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; border: 0; }
  .clc-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .clc-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .clc-row { grid-template-columns: 1fr; }
}
@media print { .clc { display: none !important; } }
.h-contact .h-plan .btn + .btn { margin-top: 8px; }
.clc-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #B9C2CF; margin-right: 6px; vertical-align: 1px; }
.clc-live.on { background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.clc-hrs { margin-top: 6px !important; font-size: .78rem; color: #86868B; }
.clc-intro p + p { margin-top: 6px; }
.clc.is-online .clc-btn::after { content: ""; position: absolute; left: 12px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; border: 2px solid #0551DC; }
.clc-ended { text-align: center; font-size: .82rem; color: #6E6E73; background: #EEF1F6; border-radius: 10px; padding: 8px 10px; margin: 10px 0 4px; }
