/* Pronto Assistant (js/chat.js) */
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

.chat-launcher{
  position:fixed; right:22px; bottom:22px; z-index:90;
  display:inline-flex; align-items:center; gap:9px; height:50px; padding:0 20px 0 16px;
  border:0; border-radius:999px; background:var(--ink); color:#fff; cursor:pointer;
  font-family:var(--display); font-weight:600; font-size:.95rem;
  box-shadow:0 12px 30px -10px rgba(27,30,35,.5); transition:transform .18s ease, background .18s ease;
}
.chat-launcher:hover{background:#2B3038; transform:translateY(-2px)}
.chat-launcher:focus-visible{outline:3px solid var(--red); outline-offset:3px}
.chat-launcher svg{width:20px; height:20px; color:#F08A90}
.chat-launcher[aria-expanded="true"]{display:none}

.chat-panel{
  position:fixed; right:22px; bottom:22px; z-index:95;
  width:min(380px, calc(100vw - 24px)); height:min(560px, calc(100vh - 44px));
  display:flex; flex-direction:column; overflow:hidden;
  background:#fff; border:1px solid var(--line); border-radius:16px;
  box-shadow:0 30px 70px -24px rgba(27,30,35,.45);
}
.chat-panel[hidden]{display:none}
.chat-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; background:var(--ink); color:#fff}
.chat-head strong{display:block; font-family:var(--display); font-size:1rem}
.chat-head span{display:block; font-size:.8rem; color:rgba(255,255,255,.7)}
.chat-close{width:34px; height:34px; border-radius:8px; border:1px solid rgba(255,255,255,.3); background:transparent; color:#fff; font-size:1.3rem; line-height:1; cursor:pointer}
.chat-close:hover{border-color:#fff}

.chat-log{flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--soft)}
.chat-msg{max-width:88%}
.chat-msg p{margin:0; padding:10px 13px; border-radius:12px; font-size:.93rem; line-height:1.55}
.chat-bot{align-self:flex-start}
.chat-bot p{background:#fff; border:1px solid var(--line); color:var(--ink-2); border-bottom-left-radius:4px}
.chat-bot a{color:var(--red); font-weight:600}
.chat-user{align-self:flex-end}
.chat-user p{background:var(--red); color:#fff; border-bottom-right-radius:4px}
.chat-actions{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.chat-action{
  display:inline-flex; align-items:center; height:32px; padding:0 12px; border-radius:999px;
  border:1px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; cursor:pointer;
  font-family:var(--display); font-weight:600; font-size:.8rem;
}
.chat-action:hover{border-color:var(--red); color:var(--red)}

.chat-chips{display:flex; gap:6px; overflow-x:auto; padding:10px 12px 0; background:#fff; border-top:1px solid var(--line-2)}
.chat-chips button{
  flex:none; height:30px; padding:0 11px; border-radius:999px; border:1px solid var(--line);
  background:var(--soft); color:var(--ink-2); font-family:var(--sans); font-size:.8rem; cursor:pointer;
}
.chat-chips button:hover{border-color:var(--red); color:var(--red)}

.chat-panel .chat-form{display:flex; gap:8px; padding:10px 12px 12px; background:#fff}
.chat-form input{
  flex:1; min-width:0; height:42px; padding:0 13px; border:1px solid var(--line); border-radius:10px;
  font-family:var(--sans); font-size:.93rem; color:var(--ink);
}
.chat-form input:focus{outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(196,30,42,.11)}
.chat-form button{width:42px; height:42px; border:0; border-radius:10px; background:var(--red); color:#fff; display:grid; place-items:center; cursor:pointer}
.chat-form button:hover{background:var(--red-dark)}
.chat-form button svg{width:18px; height:18px}

/* Keep the booking toast clear of the chat launcher */
.toast{bottom:88px}

@media (max-width:720px){
  .chat-launcher{bottom:84px; right:12px; height:46px; padding:0 16px 0 13px}
  .chat-panel{left:12px; right:12px; bottom:84px; width:auto; height:min(520px, calc(100vh - 110px))}
  .toast{bottom:144px}
}
