/* Replyvane Chat Support. Everything is scoped under .replyvane so theme styles don't leak in or out. */

.replyvane {
  --replyvane-accent: #1f5c63;
  --replyvane-ink: #172a2c;
  --replyvane-muted: #566a6c;
  --replyvane-surface: #ffffff;
  --replyvane-mist: #eef4f3;
  --replyvane-line: #d9e4e3;
  --replyvane-gap: 20px;
  --replyvane-on-accent: #ffffff;
  --replyvane-accent-text: var(--replyvane-accent);
  --replyvane-q-bg: #ffffff;
  --replyvane-q-text: var(--replyvane-ink);
  --replyvane-q-hover: var(--replyvane-mist);
  --replyvane-a-text: var(--replyvane-ink);
  --replyvane-font: inherit;
  position: fixed;
  bottom: calc(var(--replyvane-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  font-family: var(--replyvane-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--replyvane-ink);
}
.replyvane button, .replyvane input, .replyvane textarea { font-family: var(--replyvane-font); }
.replyvane--right { right: var(--replyvane-gap); }
.replyvane--left { left: var(--replyvane-gap); }
.replyvane *, .replyvane *::before, .replyvane *::after { box-sizing: border-box; }

/* Reset theme and page-builder button and link styles */
.replyvane button,
.replyvane .replyvane-chip,
.replyvane .replyvane-link {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  min-height: 0;
  margin: 0;
  cursor: pointer;
}
.replyvane svg { display: block; width: 100%; height: 100%; }
.replyvane :focus-visible { outline: 2px solid var(--replyvane-accent); outline-offset: 2px; }
.replyvane-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- launcher ---------- */
.replyvane .replyvane-launch {
  width: 60px;
  height: 60px;
  padding: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  box-shadow: 0 10px 28px -8px rgba(15, 45, 50, 0.55);
  transition: transform 0.15s ease;
}
.replyvane .replyvane-launch:hover { transform: scale(1.05); }
.replyvane .replyvane-launch:focus-visible { outline-color: var(--replyvane-ink); outline-offset: 3px; }
.replyvane.is-open .replyvane-launch { transform: scale(0.92); }

/* ---------- panel ---------- */
.replyvane-panel {
  position: absolute;
  bottom: 76px;
  width: 380px;
  max-width: calc(100vw - 2 * var(--replyvane-gap));
  height: min(620px, calc(100vh - 120px));
  height: min(620px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--replyvane-surface);
  border: 1px solid var(--replyvane-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(15, 45, 50, 0.4);
  overflow: hidden;
  transform-origin: bottom right;
  animation: replyvane-open 0.18s ease-out;
}
.replyvane--right .replyvane-panel { right: 0; }
.replyvane--left .replyvane-panel { left: 0; transform-origin: bottom left; }
.replyvane-panel[hidden] { display: none; }
@keyframes replyvane-open {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.replyvane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 14px 18px;
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
}
.replyvane-titles { flex: 1; min-width: 0; }
.replyvane .replyvane-titles h2 {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: var(--replyvane-on-accent);
}
.replyvane .replyvane-titles p { margin: 2px 0 0; font-size: 12.5px; color: var(--replyvane-on-accent); opacity: 0.85; }
.replyvane .replyvane-restart {
  flex: none;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--replyvane-on-accent);
  font-size: 12.5px;
  line-height: 1.3;
}
.replyvane .replyvane-restart[hidden] { display: none; }
.replyvane .replyvane-close {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--replyvane-on-accent);
}
.replyvane .replyvane-close:focus-visible,
.replyvane .replyvane-restart:focus-visible { outline-color: var(--replyvane-on-accent); }

/* ---------- conversation ---------- */
.replyvane-log {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replyvane-msg { display: flex; flex-direction: column; max-width: 90%; }
.replyvane-msg--bot { align-self: flex-start; }
.replyvane-msg--user { align-self: flex-end; }
.replyvane-bubble {
  padding: 10px 13px;
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.replyvane-msg--bot .replyvane-bubble { background: var(--replyvane-mist); color: var(--replyvane-a-text); border-bottom-left-radius: 5px; }
.replyvane-msg--user .replyvane-bubble {
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  border-bottom-right-radius: 5px;
}
.replyvane .replyvane-bubble p { margin: 0 0 8px; font-size: inherit; line-height: inherit; color: inherit; }
.replyvane .replyvane-bubble p:last-child { margin-bottom: 0; }
.replyvane .replyvane-bubble ul,
.replyvane .replyvane-bubble ol { margin: 2px 0 8px; padding-left: 20px; }
.replyvane .replyvane-bubble ul:last-child,
.replyvane .replyvane-bubble ol:last-child { margin-bottom: 0; }
.replyvane .replyvane-bubble li { margin: 2px 0; }
.replyvane .replyvane-bubble a:not(.replyvane-link) {
  color: var(--replyvane-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons under an answer, e.g. "Book this scan" */
.replyvane-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.replyvane .replyvane-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

/* Question lists and topic chips */
.replyvane-block { display: flex; flex-direction: column; gap: 6px; }
.replyvane .replyvane-label {
  margin: 4px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--replyvane-muted);
}
.replyvane-questions { display: flex; flex-direction: column; gap: 6px; }
.replyvane .replyvane-q {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 34px 9px 13px;
  border: 1px solid var(--replyvane-line);
  border-radius: 12px;
  background: var(--replyvane-q-bg);
  color: var(--replyvane-q-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
/* A small arrow slides in on hover to show the question can be opened. */
.replyvane .replyvane-q::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-4px, -50%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.replyvane .replyvane-q:hover::after,
.replyvane .replyvane-q:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.replyvane-chips,
.replyvane-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.replyvane-actions { margin-top: 2px; }
.replyvane .replyvane-chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--replyvane-accent);
  border-radius: 999px;
  background: var(--replyvane-surface);
  color: var(--replyvane-accent-text);
  font-size: 13.5px;
  line-height: 1.3;
  text-decoration: none;
}
.replyvane .replyvane-chip--quiet { border-color: var(--replyvane-line); color: var(--replyvane-muted); }

/* ---------- search ---------- */
.replyvane-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--replyvane-line);
  border-radius: 22px;
  background: var(--replyvane-surface);
}
.replyvane-form:focus-within { border-color: var(--replyvane-accent-text); }
.replyvane .replyvane-form input {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--replyvane-ink);
}
.replyvane .replyvane-form input::placeholder { color: var(--replyvane-muted); opacity: 1; }
/* Themes often style input:focus with their own borders, outlines and shadows.
   The text box sits inside a rounded field, so only the field shows focus. */
.replyvane .replyvane-form input,
.replyvane .replyvane-form input:hover,
.replyvane .replyvane-form input:focus,
.replyvane .replyvane-form input:focus-visible,
.replyvane .replyvane-form input:active,
.replyvane .replyvane-compose textarea,
.replyvane .replyvane-compose textarea:hover,
.replyvane .replyvane-compose textarea:focus,
.replyvane .replyvane-compose textarea:focus-visible,
.replyvane .replyvane-compose textarea:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.replyvane .replyvane-form:focus-within,
.replyvane .replyvane-compose:focus-within { border-color: var(--replyvane-accent-text); box-shadow: 0 0 0 1px var(--replyvane-accent-text); }
.replyvane .replyvane-send {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
}

/* ---------- answers from the website ---------- */
.replyvane .replyvane-source {
  margin: 8px 0 0 !important;
  padding-top: 6px;
  border-top: 1px solid var(--replyvane-line);
  font-size: 12.5px;
  color: var(--replyvane-muted);
}
.replyvane-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.replyvane-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--replyvane-muted); opacity: 0.35;
  animation: replyvane-dot 1.1s infinite ease-in-out;
}
.replyvane-dots i:nth-child(2) { animation-delay: 0.15s; }
.replyvane-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes replyvane-dot { 0%, 80%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .replyvane-dots i { animation: none; opacity: 0.7; } }

/* ---------- live chat ---------- */
.replyvane [hidden] { display: none !important; }

.replyvane .replyvane-launch { position: relative; }
.replyvane-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.replyvane-live { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.replyvane-live-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--replyvane-line);
}
.replyvane .replyvane-back,
.replyvane .replyvane-end {
  padding: 5px 10px;
  border: 1px solid var(--replyvane-line);
  border-radius: 999px;
  background: var(--replyvane-surface);
  color: var(--replyvane-muted);
  font-size: 13px;
  line-height: 1.3;
}
.replyvane .replyvane-back::before { content: "\2039\00a0"; }
.replyvane button.replyvane-back:hover, .replyvane button.replyvane-back:focus,
.replyvane button.replyvane-end:hover, .replyvane button.replyvane-end:focus {
  border-color: var(--replyvane-muted);
  background: var(--replyvane-mist);
  color: var(--replyvane-ink);
}
.replyvane-live-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.replyvane-bubble--live { white-space: pre-wrap; }
.replyvane-msg--agent .replyvane-bubble { background: var(--replyvane-mist); }
.replyvane .replyvane-meta { margin: 3px 4px 0; font-size: 11.5px; color: var(--replyvane-muted); }
.replyvane-msg--user .replyvane-meta { text-align: right; }

.replyvane .replyvane-live-note {
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--replyvane-mist);
  color: var(--replyvane-ink);
  font-size: 13.5px;
}
.replyvane .replyvane-live-note.is-system { align-self: center; padding: 0; background: none; color: var(--replyvane-muted); font-size: 12.5px; text-align: center; }
.replyvane .replyvane-live-note.is-waiting { border-left: 3px solid var(--replyvane-accent); }
.replyvane .replyvane-live-note.is-success { border-left: 3px solid #2e7d4f; }
.replyvane .replyvane-live-note.is-error { background: #fdecea; color: #8a1f11; }

/* start form */
.replyvane-start { display: flex; flex-direction: column; gap: 10px; }
.replyvane .replyvane-start h3 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--replyvane-ink); text-transform: none; letter-spacing: normal; }
.replyvane .replyvane-start p { margin: 0; font-size: 13.5px; color: var(--replyvane-muted); }
.replyvane-field { display: flex; flex-direction: column; gap: 4px; }
.replyvane .replyvane-field span { font-size: 13px; font-weight: 600; color: var(--replyvane-ink); }
.replyvane .replyvane-field input,
.replyvane .replyvane-field textarea {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--replyvane-line);
  border-radius: 10px;
  background: var(--replyvane-surface);
  box-shadow: none;
  color: var(--replyvane-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}
.replyvane .replyvane-field textarea { resize: vertical; min-height: 72px; }
.replyvane .replyvane-field input:focus,
.replyvane .replyvane-field textarea:focus { border-color: var(--replyvane-accent-text); outline: 2px solid var(--replyvane-accent); outline-offset: 0; }
.replyvane .replyvane-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.replyvane .replyvane-error { padding: 6px 10px; border-radius: 8px; background: #fdecea; color: #8a1f11; }
.replyvane .replyvane-consent { font-size: 12px !important; }
.replyvane .replyvane-primary {
  align-self: flex-start;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  font-size: 14px;
  font-weight: 600;
}
.replyvane button.replyvane-primary:hover,
.replyvane button.replyvane-primary:focus,
.replyvane button.replyvane-primary:active { background: var(--replyvane-accent); color: var(--replyvane-on-accent); filter: brightness(1.12); }
.replyvane .replyvane-primary:disabled { opacity: 0.6; cursor: default; }

/* message box */
.replyvane-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--replyvane-line);
  border-radius: 22px;
  background: var(--replyvane-surface);
}
.replyvane-compose:focus-within { border-color: var(--replyvane-accent-text); }
.replyvane .replyvane-compose textarea {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--replyvane-ink);
}

/* live chat button and banner */
.replyvane .replyvane-chip--live { border-color: var(--replyvane-accent-text); background: var(--replyvane-accent); color: var(--replyvane-on-accent); font-weight: 600; }
.replyvane .replyvane-chip--live:hover,
.replyvane .replyvane-chip--live:focus,
.replyvane .replyvane-chip--live:active { background: var(--replyvane-accent); color: var(--replyvane-on-accent); filter: brightness(1.12); }
.replyvane-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--replyvane-accent);
  border-radius: 12px;
  background: var(--replyvane-mist);
  font-size: 13.5px;
}

/* ---------- chat button icon ---------- */
.replyvane .replyvane-launch { overflow: visible; }
.replyvane .replyvane-launch > svg { width: 30px; height: 30px; margin: auto; }
.replyvane .replyvane-launch-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.replyvane .replyvane-launch-img.is-fill { position: absolute; inset: 0; border-radius: 50%; object-fit: cover; }

/* ---------- notifications ---------- */
.replyvane-teaser {
  position: absolute;
  bottom: 74px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: min(280px, calc(100vw - 2 * var(--replyvane-gap)));
  padding: 10px 8px 10px 14px;
  border: 1px solid var(--replyvane-line);
  border-radius: 14px;
  background: var(--replyvane-surface);
  box-shadow: 0 12px 30px -10px rgba(15, 45, 50, 0.35);
  animation: replyvane-open 0.2s ease-out;
}
.replyvane--right .replyvane-teaser { right: 0; border-bottom-right-radius: 4px; }
.replyvane--left .replyvane-teaser { left: 0; border-bottom-left-radius: 4px; }
.replyvane.is-open .replyvane-teaser { display: none; }
.replyvane .replyvane-teaser-text {
  padding: 0;
  border: 0;
  background: none;
  color: var(--replyvane-ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.replyvane .replyvane-teaser-x {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--replyvane-muted);
  font-size: 18px;
  line-height: 20px;
}
.replyvane button.replyvane-teaser-text:hover, .replyvane button.replyvane-teaser-text:focus { background: none; color: var(--replyvane-accent-text); }
.replyvane button.replyvane-teaser-x:hover, .replyvane button.replyvane-teaser-x:focus { background: var(--replyvane-mist); color: var(--replyvane-ink); }
.replyvane.has-news .replyvane-launch::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid var(--replyvane-accent);
  animation: replyvane-pulse 1.4s ease-out 3;
  pointer-events: none;
}
@keyframes replyvane-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- team member photos (live chat) ---------- */
.replyvane-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--replyvane-mist);
  color: var(--replyvane-accent-text);
}
.replyvane-avatar img { width: 100%; height: 100%; object-fit: cover; }
.replyvane-avatar.is-icon svg { width: 60%; height: 60%; }
.replyvane-agent-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.replyvane-agent-row .replyvane-msg { max-width: calc(100% - 38px); }
.replyvane-agent-row .replyvane-avatar { margin-bottom: 20px; }
.replyvane-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--replyvane-line);
}
.replyvane-team .replyvane-avatar { position: relative; width: 36px; height: 36px; overflow: visible; }
.replyvane-team .replyvane-avatar img { border-radius: 50%; }
.replyvane-team .replyvane-avatar.is-online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--replyvane-surface);
  border-radius: 50%;
  background: #2e9e5b;
}
.replyvane-team-text { display: flex; flex-direction: column; line-height: 1.25; }
.replyvane .replyvane-team-text strong { font-size: 14px; color: var(--replyvane-ink); }
.replyvane .replyvane-team-text span { font-size: 12.5px; color: var(--replyvane-muted); }

/* ---------- avatars beside messages ---------- */
.replyvane-row { display: flex; align-items: flex-end; gap: 8px; }
.replyvane-row--bot { align-self: flex-start; max-width: 94%; }
.replyvane-row--user { align-self: flex-end; flex-direction: row-reverse; max-width: 94%; }
.replyvane-row .replyvane-msg { max-width: calc(100% - 38px); }
.replyvane-row--user .replyvane-avatar { margin-bottom: 2px; }
.replyvane-row--user .replyvane-msg:has(.replyvane-meta) + .replyvane-avatar,
.replyvane-row--user:has(.replyvane-meta) .replyvane-avatar { margin-bottom: 20px; }
.replyvane .replyvane-avatar.is-bot { background: var(--replyvane-accent); color: var(--replyvane-on-accent); }
.replyvane .replyvane-avatar.is-bot svg { width: 58%; height: 58%; }
.replyvane .replyvane-avatar.is-bot img { width: 100%; height: 100%; object-fit: cover; }
.replyvane .replyvane-avatar.is-user { background: var(--replyvane-mist); color: var(--replyvane-accent-text); }
.replyvane-agent-row .replyvane-typing .replyvane-bubble { padding: 8px 14px; }

/* ---------- AI label ---------- */
.replyvane .replyvane-ai-label {
  margin: 8px 0 0 !important;
  font-size: 11.5px;
  color: var(--replyvane-muted);
}
.replyvane .replyvane-ai-label::before { content: "\2726\00a0"; color: var(--replyvane-accent-text); }

/* ---------- phones: full screen ---------- */
@media (max-width: 480px) {
  .replyvane { --replyvane-gap: 14px; }
  .replyvane-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .replyvane-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .replyvane.is-open .replyvane-launch { display: none; }
  .replyvane .replyvane-form input,
  .replyvane .replyvane-compose textarea,
  .replyvane .replyvane-field input,
  .replyvane .replyvane-field textarea { font-size: 16px; } /* stops iOS zooming in */
}

/* ---------- button states ----------
   Themes and page builders often set their own colours on button:hover and
   button:focus (for example white text). These rules pin every state of the
   chat's buttons so the text always stays readable. */
.replyvane button.replyvane-q:hover,
.replyvane button.replyvane-q:focus,
.replyvane button.replyvane-q:active {
  border-color: var(--replyvane-accent-text);
  background: var(--replyvane-mist);
  color: var(--replyvane-accent-text);
  text-decoration: none;
}
.replyvane button.replyvane-q:active { background: var(--replyvane-line); }

.replyvane .replyvane-chip:hover,
.replyvane .replyvane-chip:focus,
.replyvane .replyvane-chip:active {
  border-color: var(--replyvane-accent-text);
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  text-decoration: none;
}
.replyvane .replyvane-chip--quiet:hover,
.replyvane .replyvane-chip--quiet:focus,
.replyvane .replyvane-chip--quiet:active {
  border-color: var(--replyvane-muted);
  background: var(--replyvane-mist);
  color: var(--replyvane-ink);
}

.replyvane a.replyvane-link:hover,
.replyvane a.replyvane-link:focus,
.replyvane a.replyvane-link:active {
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  filter: brightness(1.12);
  text-decoration: none;
}

.replyvane button.replyvane-launch:hover,
.replyvane button.replyvane-launch:focus,
.replyvane button.replyvane-launch:active,
.replyvane button.replyvane-send:hover,
.replyvane button.replyvane-send:focus,
.replyvane button.replyvane-send:active {
  background: var(--replyvane-accent);
  color: var(--replyvane-on-accent);
  border: 0;
}
.replyvane button.replyvane-send:hover { filter: brightness(1.12); }

.replyvane button.replyvane-close:hover,
.replyvane button.replyvane-close:focus,
.replyvane button.replyvane-restart:hover,
.replyvane button.replyvane-restart:focus {
  background: rgba(255, 255, 255, 0.14);
  color: var(--replyvane-on-accent);
}

/* Preview mode (administrators only): dashed outline as a reminder. */
.replyvane.is-preview .replyvane-panel { border: 2px dashed var(--replyvane-accent); }
.replyvane.is-preview .replyvane-titles p { color: var(--replyvane-on-accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .replyvane.has-news .replyvane-launch::after, .replyvane-teaser { animation: none; }
  .replyvane-panel { animation: none; }
  .replyvane .replyvane-launch { transition: none; }
  .replyvane .replyvane-q, .replyvane .replyvane-q::after { transition: none; }
}

@media print { .replyvane { display: none; } }
