/* ==========================================================================
   Visible on AI: the site assistant ("Talk to our AI").
   Markup: resources/views/assistant/widget.blade.php. Behaviour: assets/js/assistant.js.
   Same language as the v3 design (assets/css/v3.css): the greens, near-black, Urbanist for
   headings and Inter for text, pills for buttons, 20px panels, 12px small parts, ruled rows
   in place of boxed cards.

   The site's own stylesheet sets margin, colour and font size on every element ("*"), so
   everything in here starts from "inherit" and sets what it needs itself.
   States on .voai: is-ready (the script runs), is-open, has-started (talk or type was chosen),
   is-listening, is-thinking, is-speaking, no-level (no microphone meter), is-text-only.
   ========================================================================== */

.voai {
  --voai-g: #00a759;
  --voai-g2: #009066;
  --voai-black: #0b0b0b;
  --voai-line: rgba(255, 255, 255, 0.12);
  --voai-line-soft: rgba(255, 255, 255, 0.08);
  --voai-dim: rgba(255, 255, 255, 0.6);
  --voai-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --voai-display: "Urbanist", "Inter", system-ui, sans-serif;
  --voai-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --voai-level: 0;
  color: #fff;
  font: 400 16px/1.5 var(--voai-text);
  letter-spacing: 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
/* Nothing shows until the script is running: a button that does nothing is worse than none. */
.voai:not(.is-ready) { display: none; }
.voai *, .voai *::before, .voai *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}
.voai [hidden] { display: none !important; }
/* :where() keeps these as weak as one class, so every part below can set its own border and background. */
.voai :where(button) { border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.voai :where(a) { text-decoration: none; }
.voai :where(svg) { display: block; flex: none; }
.voai :where(input) { border: 0; outline: 0; background: none; box-shadow: none; }
.voai :focus-visible { outline: 2px solid var(--voai-g); outline-offset: 3px; }
/* The site's stylesheet removes the outline of every link with "!important". */
.voai a:focus-visible { outline: 2px solid var(--voai-g) !important; outline-offset: 3px; }
.voai .voai-type__field:focus-visible { outline: 0; }
.voai-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The orb: still at rest, it moves only while listening or speaking ---------- */

.voai-orb {
  position: relative;
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #9dffd0 0%, #1fd67f 34%, var(--voai-g2) 68%, #00573a 100%);
  box-shadow: 0 0 0 4px rgba(0, 167, 89, 0.16), 0 0 16px rgba(0, 167, 89, 0.6);
}
.voai-orb--head { width: 26px; height: 26px; box-shadow: 0 0 0 5px rgba(0, 167, 89, 0.14), 0 0 22px rgba(0, 167, 89, 0.55); }
.voai-orb--large { width: 56px; height: 56px; box-shadow: 0 0 0 10px rgba(0, 167, 89, 0.1), 0 0 0 22px rgba(0, 167, 89, 0.05), 0 0 60px rgba(0, 167, 89, 0.6); }
.voai.is-listening .voai-orb { transform: scale(calc(1 + var(--voai-level) * 0.4)); transition: transform 0.1s linear; }
.voai.is-listening.no-level .voai-orb { animation: voai-breathe 1.6s ease-in-out infinite; }
.voai.is-speaking .voai-orb { animation: voai-speak 1.15s ease-in-out infinite; }
.voai.is-thinking .voai-orb { opacity: 0.55; }
@keyframes voai-breathe { 50% { transform: scale(1.22); } }
@keyframes voai-speak { 0%, 100% { transform: scale(1); } 22% { transform: scale(1.24); } 46% { transform: scale(0.94); } 70% { transform: scale(1.14); } }

/* ---------- Launcher ---------- */

.voai-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--voai-black);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s var(--voai-ease), box-shadow 0.3s ease, opacity 0.25s ease;
}
.voai-launcher__label { font: 600 15px/1 var(--voai-display); white-space: nowrap; }
.voai-launcher:active { transform: scale(0.97); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .voai-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 167, 89, 0.5), 0 0 34px rgba(0, 167, 89, 0.28); }
}
/* The site hides its floating contact buttons under the menu and the audit window; so do we. */
html.seo-modal-open .voai-launcher, html.seo-nav-open .voai-launcher { display: none; }

/* ---------- Panel ---------- */

.voai-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 24px);
  max-height: min(640px, 82vh);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: var(--voai-black);
  box-shadow: 0 44px 110px -24px rgba(0, 0, 0, 0.75), 0 14px 34px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.975);
  transform-origin: 100% 100%;
  transition: opacity 0.3s ease, transform 0.5s var(--voai-ease), visibility 0s linear 0.5s;
}
.voai.is-open .voai-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
/* Once a conversation runs the panel keeps its full height, so it does not jump with every line. */
.voai.has-started .voai-panel { height: min(640px, 82vh); }
@supports (height: 1dvh) {
  .voai-panel { max-height: min(640px, 82dvh); }
  .voai.has-started .voai-panel { height: min(640px, 82dvh); }
}
/* A soft green light from the top right, as on the dark stage of the home page. */
.voai-panel__glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(46% 34% at 84% 12%, rgba(0, 167, 89, 0.62), transparent 70%),
    radial-gradient(34% 26% at 8% 96%, rgba(0, 144, 102, 0.22), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}
/* While the panel is open the site's own contact buttons step aside. */
html.voai-open .seo-fab { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }

.voai-head { display: flex; flex: none; align-items: center; gap: 14px; padding: 18px 14px 16px 22px; border-bottom: 1px solid var(--voai-line-soft); }
.voai-head__text { flex: 1; min-width: 0; }
.voai-head__title { font: 600 16px/1.2 var(--voai-display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voai-head__status { margin-top: 3px; color: var(--voai-dim); font: 500 13px/1.2 var(--voai-text); }
.voai.is-listening .voai-head__status, .voai.is-speaking .voai-head__status { color: #5fe3a4; }
.voai-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: rgba(255, 255, 255, 0.66); transition: background-color 0.2s ease, color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .voai-icon:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
}

/* ---------- First view: talk or type ---------- */

.voai-consent { padding: 34px 26px 26px; overflow-y: auto; }
.voai.has-started .voai-consent { display: none; }
.voai-consent__title { margin-top: 30px; font: 500 34px/1.05 var(--voai-display); letter-spacing: -0.03em; }
.voai-consent__title em { color: #2fd98a; font-family: "Newsreader", Georgia, "Times New Roman", serif; font-size: 1.06em; font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.voai-consent__lead { margin-top: 12px; max-width: 30ch; color: rgba(255, 255, 255, 0.74); font: 400 16px/1.5 var(--voai-text); }
.voai-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.voai-consent__note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--voai-line-soft); color: rgba(255, 255, 255, 0.5); font: 400 12.5px/1.5 var(--voai-text); }

.voai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  font: 600 15px/1.2 var(--voai-text);
  white-space: nowrap;
  transition: transform 0.4s var(--voai-ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}
.voai-btn--fill { border-color: transparent; background: linear-gradient(90deg, var(--voai-g) 0%, var(--voai-g2) 100%); box-shadow: 0 10px 30px rgba(0, 167, 89, 0.35); }
.voai-btn:active { transform: scale(0.97); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .voai-btn:hover { background: #fff; border-color: #fff; color: var(--voai-black); }
  .voai-btn--fill:hover { background: linear-gradient(90deg, var(--voai-g) 0%, var(--voai-g2) 100%); border-color: transparent; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 167, 89, 0.5); }
}

/* ---------- Transcript: plain lines, no bubbles ---------- */

.voai-log {
  position: relative;   /* lines measure their place from here (assets/js/assistant.js, scrollDown) */
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 22px 22px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  /* Lines slip under the header softly instead of being cut. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px);
  mask-image: linear-gradient(180deg, transparent 0, #000 18px);
}
.voai-log::-webkit-scrollbar { width: 6px; }
.voai-log::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.voai-line { flex: none; max-width: 100%; }
.voai-line.is-new { animation: voai-rise 0.5s var(--voai-ease) both; }
@keyframes voai-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.voai-line--a .voai-line__text { color: #fff; font: 400 16px/1.5 var(--voai-text); overflow-wrap: anywhere; }
.voai-line--u {
  align-self: flex-end;
  max-width: 86%;
  padding: 9px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 400 15px/1.45 var(--voai-text);
  overflow-wrap: anywhere;
}
.voai-line--u.is-interim { color: rgba(255, 255, 255, 0.5); }
.voai-line--wait { display: flex; gap: 6px; padding: 8px 0 2px; }
.voai-line--wait i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); animation: voai-wait 1.1s ease-in-out infinite; }
.voai-line--wait i:nth-child(2) { animation-delay: 0.15s; }
.voai-line--wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes voai-wait { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---------- Cards: ruled rows and chips ---------- */

.voai-card { margin-top: 14px; }
.voai-card + .voai-card { margin-top: 12px; }
.voai-line.is-past .voai-card button, .voai-line.is-past .voai-sug { pointer-events: none; }
.voai-line.is-past .voai-time, .voai-line.is-past .voai-day, .voai-line.is-past .voai-option { opacity: 0.45; }

/* Link buttons. */
.voai-links { display: flex; flex-wrap: wrap; gap: 8px; }
.voai-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  font: 600 14px/1.2 var(--voai-text);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.voai-pill svg { transition: transform 0.4s var(--voai-ease); }
.voai-pill--fill { border-color: transparent; background: linear-gradient(90deg, var(--voai-g) 0%, var(--voai-g2) 100%); }
@media (hover: hover) and (pointer: fine) {
  .voai-pill:hover { background: #fff; border-color: #fff; color: var(--voai-black); }
  .voai-pill:hover svg { transform: translate(2px, -2px); }
}

/* A plan: name and price on one ruled row, key features as ruled rows under it. */
.voai-plan { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.voai-card--plan + .voai-card--plan { margin-top: 12px; }
.voai-plan__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px 14px; }
.voai-plan__name { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1.2 var(--voai-display); letter-spacing: -0.01em; }
.voai-plan__tag { padding: 4px 9px; border-radius: 999px; background: rgba(0, 167, 89, 0.2); color: #6ee9ae; font: 600 11px/1.2 var(--voai-text); letter-spacing: 0.01em; }
.voai-plan__price { flex: none; font: 600 19px/1.2 var(--voai-display); letter-spacing: -0.01em; text-align: right; white-space: nowrap; }
.voai-plan__price s { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.45); font: 500 13px/1.2 var(--voai-text); }
.voai-plan__price small { margin-left: 5px; color: var(--voai-dim); font: 500 13px/1.2 var(--voai-text); }
.voai-plan__features { margin-top: 12px; list-style: none; }
.voai-plan__features li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--voai-line-soft); color: rgba(255, 255, 255, 0.84); font: 400 14px/1.45 var(--voai-text); }
.voai-plan__features li::before { content: ""; position: absolute; top: 14px; left: 3px; width: 11px; height: 6px; border-bottom: 2px solid var(--voai-g); border-left: 2px solid var(--voai-g); transform: rotate(-45deg); }

/* Times: day chips, then the times of the chosen day. A short list is shown as ruled rows. */
.voai-days { display: flex; gap: 8px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.voai-days::-webkit-scrollbar { display: none; }
.voai-day {
  flex: none;
  min-width: 58px;
  padding: 9px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--voai-dim);
  font: 500 12px/1.2 var(--voai-text);
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.voai-day strong { display: block; margin: 3px 0 2px; color: #fff; font: 600 19px/1 var(--voai-display); }
.voai-day.is-active { border-color: #fff; background: #fff; color: rgba(11, 11, 11, 0.62); }
.voai-day.is-active strong { color: var(--voai-black); }
.voai-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.voai-time {
  padding: 10px 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font: 600 13px/1.2 var(--voai-text);
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.voai-slots__zone { margin-top: 10px; color: rgba(255, 255, 255, 0.5); font: 400 12.5px/1.4 var(--voai-text); }
.voai-options { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.voai-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 2px;
  border-bottom: 1px solid var(--voai-line-soft);
  color: #fff;
  font: 500 15px/1.3 var(--voai-text);
  transition: padding 0.4s var(--voai-ease), color 0.2s ease;
}
.voai-option span:last-child { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.voai-option svg { color: var(--voai-g); transition: transform 0.4s var(--voai-ease); }
@media (hover: hover) and (pointer: fine) {
  .voai-day:hover { border-color: rgba(255, 255, 255, 0.5); }
  .voai-day.is-active:hover { border-color: #fff; }
  .voai-time:hover { border-color: var(--voai-g); background: rgba(0, 167, 89, 0.16); }
  .voai-option:hover { padding-left: 8px; color: #7af0b6; }
  .voai-option:hover svg { transform: translateX(3px); }
}

/* The booking read back, and the booked call: ruled rows. */
.voai-rows { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.voai-rows > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--voai-line-soft); }
.voai-rows dt { color: rgba(255, 255, 255, 0.55); font: 500 13px/1.5 var(--voai-text); }
.voai-rows dd { color: #fff; font: 500 15px/1.4 var(--voai-text); overflow-wrap: anywhere; }
.voai-rows dd small { display: block; margin-top: 2px; color: var(--voai-dim); font: 400 13px/1.4 var(--voai-text); }
.voai-booked__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 19px/1.2 var(--voai-display); letter-spacing: -0.01em; }
.voai-booked__tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--voai-g), var(--voai-g2)); color: #fff; }
.voai-booked .voai-links { margin-top: 14px; }

/* Tap replies under the last line. */
.voai-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.voai-chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font: 500 13px/1.25 var(--voai-text);
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .voai-chip:hover { border-color: var(--voai-g); background: rgba(0, 167, 89, 0.14); color: #fff; }
}

/* ---------- Footer: the microphone, then the field ---------- */

.voai-foot { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--voai-line-soft); }
.voai-note { margin-bottom: 12px; color: #f4c27a; font: 500 13px/1.4 var(--voai-text); text-align: center; }
.voai-voice { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 26px; margin-bottom: 10px; }
.voai.is-text-only .voai-voice { display: none; }
.voai-voice__hint { justify-self: end; color: rgba(255, 255, 255, 0.55); font: 500 13px/1.3 var(--voai-text); text-align: right; }
.voai-voice__side { justify-self: start; }
.voai-mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: transform 0.4s var(--voai-ease), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}
.voai-mic:active { transform: scale(0.95); transition-duration: 0.12s; }
.voai-mic__ring { position: absolute; inset: -1px; border: 2px solid rgba(47, 217, 138, 0.7); border-radius: 50%; opacity: 0; pointer-events: none; }
.voai.is-listening .voai-mic { border-color: transparent; background: linear-gradient(135deg, var(--voai-g) 0%, var(--voai-g2) 100%); box-shadow: 0 12px 34px rgba(0, 167, 89, 0.5); }
/* The ring grows with the microphone level (--voai-level, set from an AnalyserNode). */
.voai.is-listening .voai-mic__ring { opacity: calc(0.35 + var(--voai-level) * 0.65); transform: scale(calc(1.12 + var(--voai-level) * 0.45)); transition: transform 0.09s linear, opacity 0.09s linear; }
.voai.is-listening.no-level .voai-mic__ring { animation: voai-ring 1.7s ease-out infinite; }
@keyframes voai-ring { from { opacity: 0.8; transform: scale(1.02); } to { opacity: 0; transform: scale(1.6); } }
.voai.is-thinking .voai-mic { opacity: 0.45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .voai-mic:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.12); }
  .voai.is-listening .voai-mic:hover { border-color: transparent; background: linear-gradient(135deg, var(--voai-g) 0%, var(--voai-g2) 100%); }
}
.voai-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font: 600 13px/1 var(--voai-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .voai-stop:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
}

.voai-type {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 6px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.voai-type:focus-within { border-color: rgba(47, 217, 138, 0.8); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(0, 167, 89, 0.16); }
.voai-type__field { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: 400 15px/1.3 var(--voai-text); box-shadow: none; }
.voai-type__field::placeholder { color: rgba(255, 255, 255, 0.45); opacity: 1; }
.voai-type__send { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--voai-black); transition: transform 0.4s var(--voai-ease), opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.voai-type__send[disabled] { opacity: 0.3; cursor: default; }
.voai-type__send:not([disabled]):active { transform: scale(0.93); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .voai-type__send:not([disabled]):hover { background: var(--voai-g); color: #fff; }
}

/* ---------- Phones: the panel takes the width, above the keyboard; the launcher clears the contact bar ---------- */

@media (max-width: 767px) {
  .voai-launcher { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); height: 48px; padding: 0 18px 0 15px; }
  .voai.is-open .voai-launcher { opacity: 0; pointer-events: none; }
  .voai-panel { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom) + var(--voai-keyboard, 0px)); left: 12px; width: auto; max-width: none; transform-origin: 50% 100%; }
  .voai-consent { padding: 28px 22px 22px; }
  .voai-consent__title { font-size: 30px; }
  .voai-log { padding: 20px 18px 12px; }
  /* 16px keeps iOS from zooming into the field. */
  .voai-type__field { font-size: 16px; }
  .voai-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.voai-open .seo-mbar { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .voai *, .voai *::before, .voai *::after { animation: none !important; transition: none !important; }
  .voai.is-listening .voai-orb { transform: none; }
  .voai.is-listening .voai-mic__ring { opacity: 0.8; transform: scale(1.14); }
}
