/* =====================================================================
   MediVista Chat Assistant — widget styles (teal theme)
   ===================================================================== */
.mvchat{ --c:#0d9488; --c-dark:#0f766e; --c-900:#134e4a; --c-50:#f0fdfa; --c-100:#ccfbf1;
  --line:#e2ebe9; --ink:#0f2e2b; --muted:#6b7d86; font-family:'Inter',system-ui,Arial,sans-serif; }

/* Launcher button */
.mvchat__launcher{
  position:fixed; right:20px; bottom:20px; z-index:1000;
  width:62px; height:62px; border-radius:50%; border:0; cursor:pointer;
  background:linear-gradient(150deg,var(--c),var(--c-dark)); color:#fff;
  box-shadow:0 14px 30px rgba(13,98,90,.42); display:grid; place-items:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.mvchat__launcher:hover{ transform:translateY(-2px) scale(1.04) }
.mvchat__launcher svg{ width:28px; height:28px }
.mvchat__launcher-ic{ position:absolute; display:grid; place-items:center; transition:opacity .2s ease, transform .25s ease }
.mvchat__launcher-ic--close{ opacity:0; transform:rotate(-90deg) scale(.6) }
.mvchat.is-open .mvchat__launcher-ic--open{ opacity:0; transform:rotate(90deg) scale(.6) }
.mvchat.is-open .mvchat__launcher-ic--close{ opacity:1; transform:none }
.mvchat__launcher::after{ content:""; position:absolute; inset:0; border-radius:50%;
  box-shadow:0 0 0 0 rgba(13,148,136,.5); animation:mvPulse 2.4s infinite }
.mvchat.is-open .mvchat__launcher::after{ animation:none }
@keyframes mvPulse{ 70%{ box-shadow:0 0 0 16px rgba(13,148,136,0) } 100%{ box-shadow:0 0 0 0 rgba(13,148,136,0) } }

/* Teaser bubble */
.mvchat__teaser{
  position:fixed; right:92px; bottom:30px; z-index:999; max-width:250px;
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 34px 12px 14px;
  box-shadow:0 14px 34px rgba(13,98,90,.18); cursor:pointer; line-height:1.4;
  animation:mvTeaserIn .4s ease both;
}
.mvchat__teaser strong{ display:block; color:var(--ink); font-size:.92rem; font-family:'Poppins',sans-serif }
.mvchat__teaser span{ font-size:.82rem; color:var(--muted) }
.mvchat__teaser::after{ content:""; position:absolute; right:-7px; bottom:18px; width:14px; height:14px;
  background:#fff; border-right:1px solid var(--line); border-bottom:1px solid var(--line); transform:rotate(-45deg) }
.mvchat__teaser-x{ position:absolute; top:6px; right:8px; border:0; background:none; color:var(--muted);
  font-size:18px; line-height:1; cursor:pointer; padding:2px }
.mvchat.is-open .mvchat__teaser, .mvchat__teaser.is-hidden{ display:none }
@keyframes mvTeaserIn{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }

/* Panel */
.mvchat__panel{
  position:fixed; right:20px; bottom:94px; z-index:1000;
  width:380px; max-width:calc(100vw - 32px); height:580px; max-height:calc(100vh - 120px);
  background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden;
  display:flex; flex-direction:column; box-shadow:0 30px 60px rgba(13,46,43,.30);
  transform-origin:bottom right; animation:mvPanelIn .26s cubic-bezier(.4,0,.2,1) both;
}
@keyframes mvPanelIn{ from{ opacity:0; transform:translateY(18px) scale(.96) } to{ opacity:1; transform:none } }

.mvchat__head{ display:flex; align-items:center; gap:12px; padding:14px 16px;
  background:linear-gradient(150deg,var(--c-900),var(--c-dark)); color:#fff }
.mvchat__avatar{ width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.16);
  display:grid; place-items:center; flex:none }
.mvchat__avatar svg{ width:24px; height:24px }
.mvchat__head-txt{ flex:1; line-height:1.2 }
.mvchat__head-txt strong{ font-family:'Poppins',sans-serif; font-size:1.02rem }
.mvchat__head-txt small{ display:flex; align-items:center; gap:6px; font-size:.76rem; color:#a7f3d0 }
.mvchat__dot{ width:8px; height:8px; border-radius:50%; background:#34d399; box-shadow:0 0 0 0 rgba(52,211,153,.6); animation:mvBlink 2s infinite }
@keyframes mvBlink{ 70%{ box-shadow:0 0 0 6px rgba(52,211,153,0) } }
.mvchat__close{ border:0; background:rgba(255,255,255,.12); color:#fff; width:34px; height:34px; border-radius:9px; cursor:pointer; display:grid; place-items:center }
.mvchat__close:hover{ background:rgba(255,255,255,.22) }
.mvchat__close svg{ width:20px; height:20px }

/* Log */
.mvchat__log{ flex:1; overflow-y:auto; padding:18px 16px; display:flex; flex-direction:column; gap:10px;
  background:var(--c-50); scroll-behavior:smooth }
.mvmsg{ max-width:84%; padding:10px 14px; font-size:.93rem; line-height:1.5; border-radius:16px; word-wrap:break-word }
.mvmsg--bot{ align-self:flex-start; background:#fff; color:var(--ink); border:1px solid var(--line); border-bottom-left-radius:5px }
.mvmsg--user{ align-self:flex-end; background:var(--c); color:#fff; border-bottom-right-radius:5px }
.mvmsg--bot a{ color:var(--c-dark); font-weight:600; text-decoration:underline }
.mvmsg--user a{ color:#fff; text-decoration:underline }
.mvmsg b, .mvmsg strong{ font-weight:600 }
.mvmsg--typing{ display:inline-flex; gap:4px; align-items:center; padding:14px }
.mvmsg--typing span{ width:7px; height:7px; border-radius:50%; background:var(--muted); opacity:.5; animation:mvType 1.2s infinite }
.mvmsg--typing span:nth-child(2){ animation-delay:.2s } .mvmsg--typing span:nth-child(3){ animation-delay:.4s }
@keyframes mvType{ 0%,60%,100%{ transform:translateY(0); opacity:.4 } 30%{ transform:translateY(-4px); opacity:1 } }

/* Inline controls (booking date) */
.mvfield{ align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; display:flex; gap:8px; max-width:90% }
.mvfield input{ flex:1; padding:8px 10px; border:1.5px solid var(--line); border-radius:9px; font:inherit }
.mvfield button{ border:0; background:var(--c); color:#fff; border-radius:9px; padding:0 14px; font-weight:600; cursor:pointer }

/* Quick replies */
.mvchat__quick{ display:flex; flex-wrap:wrap; gap:7px; padding:0 14px; max-height:128px; overflow-y:auto }
.mvchat__quick:not(:empty){ padding:10px 14px }
.mvchip{ border:1.5px solid var(--c-100); background:#fff; color:var(--c-dark); font-family:'Poppins',sans-serif;
  font-weight:600; font-size:.82rem; padding:.5em .9em; border-radius:999px; cursor:pointer; transition:.15s;
  display:inline-flex; align-items:center; gap:.4em; text-decoration:none; line-height:1 }
.mvchip:hover{ background:var(--c-50); border-color:var(--c) }
.mvchip--primary{ background:var(--c); color:#fff; border-color:var(--c) }
.mvchip--primary:hover{ background:var(--c-dark); color:#fff }

/* Input */
.mvchat__input{ display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--line); background:#fff }
.mvchat__input input{ flex:1; padding:.7em 1em; border:1.5px solid var(--line); border-radius:999px; font:inherit; color:var(--ink) }
.mvchat__input input:focus{ outline:none; border-color:var(--c); box-shadow:0 0 0 3px var(--c-100) }
.mvchat__send{ width:44px; height:44px; flex:none; border:0; border-radius:50%; background:var(--c); color:#fff; cursor:pointer; display:grid; place-items:center; transition:.15s }
.mvchat__send:hover{ background:var(--c-dark) }
.mvchat__send svg{ width:20px; height:20px }
.mvchat__foot{ text-align:center; font-size:.72rem; color:var(--muted); padding:0 14px 10px; background:#fff }
.mvchat__foot a{ color:var(--c-dark) }

.mvchat__panel[hidden]{ display:none }

/* Lift the WhatsApp/call floats above the chat launcher */
.float-actions{ bottom:96px !important }

/* Mobile: full screen */
@media (max-width:560px){
  .mvchat__panel{ right:0; left:0; bottom:0; top:0; width:100%; max-width:100%; height:100%; max-height:100%; border-radius:0 }
  .mvchat__teaser{ right:90px; max-width:200px }
  .float-actions{ bottom:90px !important }
}
@media (prefers-reduced-motion:reduce){
  .mvchat__launcher::after, .mvchat__dot{ animation:none }
  .mvchat__panel{ animation:none }
}
