/* Acoustic Uyut chat — test widget */
:root {
  --chat-ink: #0c3436;
  --chat-teal: #007c7a;
  --chat-teal-dark: #005e5c;
  --chat-gold: #b77923;
  --chat-paper: #fffdfa;
  --chat-cream: #f5f1e9;
  --chat-line: #ddd7cc;
  --chat-muted: #647574;
}
.au-chat {
  --au-chat-shadow: 0 18px 55px rgba(7, 35, 35, .22);
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9500;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--chat-ink);
}
.au-chat *, .au-chat *::before, .au-chat *::after { box-sizing: border-box; }
.au-chat-toggle {
  width: 58px; height: 58px; border: 1px solid #ffffff63; border-radius: 50%;
  background: linear-gradient(135deg, var(--chat-teal), var(--chat-teal-dark));
  color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--au-chat-shadow);
  transition: transform .2s, box-shadow .2s;
}
.au-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(7,35,35,.3); }
.au-chat-toggle svg { width: 26px; height: 26px; display: block; }
.au-chat-toggle:focus-visible { outline: 3px solid #b77923; outline-offset: 3px; }
.au-chat-panel {
  width: min(380px, calc(100vw - 30px)); height: min(600px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--chat-paper); border: 1px solid #ffffff; border-radius: 18px;
  box-shadow: var(--au-chat-shadow); position: absolute; right: 0; bottom: 72px;
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.au-chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.au-chat-head {
  background: linear-gradient(120deg, #0b4244, #086366); color: #fff; padding: 16px 17px 14px;
  display: flex; align-items: center; gap: 10px;
}
.au-chat-head-copy { flex: 1; min-width: 0; }
.au-chat-head h2 { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; font-weight: 780; }
.au-chat-head p { margin: 4px 0 0; font-size: 10px; color: #d3e7e4; line-height: 1.3; }
.au-chat-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #d3e7e4; margin-top: 3px; }
.au-chat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a9d7a9; }
.au-chat-status.is-offline::before { background: #d1a364; }
.au-chat-close { background: transparent; border: 0; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; padding: 2px 4px; opacity: .8; }
.au-chat-close:hover { opacity: 1; }
.au-chat-contact { padding: 10px 13px; background: #faf7f1; border-bottom: 1px solid var(--chat-line); }
.au-chat-contact summary { cursor: pointer; font-size: 10px; color: var(--chat-muted); font-weight: 700; }
.au-chat-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.au-chat-contact input { width: 100%; min-width: 0; border: 1px solid #d7d1c5; border-radius: 7px; padding: 7px 8px; font: inherit; font-size: 11px; color: var(--chat-ink); background: #fff; }
.au-chat-contact input:focus { outline: none; border-color: var(--chat-teal); box-shadow: 0 0 0 2px #007c7a1c; }
.au-chat-contact-save { margin-top: 6px; border: 0; border-radius: 6px; background: var(--chat-teal); color: #fff; padding: 6px 9px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.au-chat-messages { flex: 1; overflow: auto; padding: 14px 13px 10px; background: #fcfaf6; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; }
.au-chat-message { max-width: 86%; align-self: flex-start; }
.au-chat-message.is-own { align-self: flex-end; }
.au-chat-bubble { border-radius: 13px 13px 13px 4px; padding: 8px 10px; background: #fff; border: 1px solid #e7e0d5; box-shadow: 0 2px 5px #3a2d1810; font-size: 12px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.au-chat-message.is-own .au-chat-bubble { background: var(--chat-teal); border-color: var(--chat-teal); color: #fff; border-radius: 13px 13px 4px 13px; }
.au-chat-message.is-system { max-width: 100%; align-self: stretch; }
.au-chat-message.is-system .au-chat-bubble { background: #f0ebe1; border-color: #e2d8c8; color: #5f5b50; border-radius: 9px; font-size: 10.5px; line-height: 1.4; }
.au-chat-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 9px; color: var(--chat-muted); margin: 3px 2px 0; }
.au-chat-message.is-own .au-chat-meta { justify-content: flex-end; }
.au-chat-sender { font-weight: 700; }
.au-chat-message.is-own .au-chat-meta { color: #667b78; }
.au-chat-message.is-own .au-chat-sender { color: var(--chat-teal-dark); }
.au-chat-delivery { font-size: 9px; opacity: .85; }
.au-chat-typing { min-height: 12px; padding: 0 14px 4px; background: #fcfaf6; color: var(--chat-muted); font-size: 9px; }
.au-chat-form { display: flex; gap: 7px; padding: 10px 11px 8px; background: #fffdfa; border-top: 1px solid var(--chat-line); align-items: flex-end; }
.au-chat-form textarea { flex: 1; min-height: 38px; max-height: 90px; resize: none; border: 1px solid #d7d1c5; border-radius: 9px; padding: 9px 10px; font: inherit; font-size: 12px; line-height: 1.35; color: var(--chat-ink); background: #fff; outline: none; }
.au-chat-form textarea:focus { border-color: var(--chat-teal); box-shadow: 0 0 0 2px #007c7a1c; }
.au-chat-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 9px; background: var(--chat-teal); color: #fff; display: grid; place-items: center; cursor: pointer; }
.au-chat-send:hover { background: var(--chat-teal-dark); }
.au-chat-send:disabled { opacity: .55; cursor: wait; }
.au-chat-foot { padding: 0 12px 9px; font-size: 8.5px; line-height: 1.35; color: var(--chat-muted); background: #fffdfa; }
.au-chat-offline { display: none; padding: 7px 10px; background: #fff5e5; border-top: 1px solid #edddc5; color: #795c2c; font-size: 10px; line-height: 1.35; }
.au-chat-offline.is-visible { display: block; }
.au-chat-load { align-self: center; border: 1px solid var(--chat-line); background: #fff; border-radius: 999px; color: var(--chat-muted); padding: 5px 11px; font: inherit; font-size: 9px; cursor: pointer; }
.au-chat-empty { margin: auto; text-align: center; color: var(--chat-muted); font-size: 11px; line-height: 1.5; padding: 25px 15px; }
.au-chat-badge { width: 8px; height: 8px; border-radius: 50%; background: #d99a37; position: absolute; top: 2px; right: 2px; display: none; border: 2px solid #fff; }
.au-chat-badge.is-visible { display: block; }
@media (max-width: 600px) {
  .au-chat { right: 13px; bottom: 13px; }
  .au-chat-toggle { width: 52px; height: 52px; }
  .au-chat-toggle svg { width: 23px; height: 23px; }
  .au-chat-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; max-width: none; max-height: none; z-index: 9600; }
  .au-chat-panel.is-open { transform: none; }
  .au-chat-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .au-chat-form { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
  .au-chat-contact-grid { grid-template-columns: 1fr; }
}
