/* Reveo — corner support chat (support-widget.js). Light, like the site; the
   logo green for the one action, 1px borders, no heavy shadows. Sits under
   the mobile drawer (200) and the lead card (210) so neither is covered. */
.rvs {
  --rvs-green: #00B57C;
  --rvs-green-ink: #00885D;
  --rvs-ink: #0B1F19;
  --rvs-muted: #62736C;
  --rvs-line: rgba(11, 31, 25, .10);
  --rvs-mint: #F3F8F6;
  --rvs-surface: #fff;
  font: 400 15px/1.45 var(--font-b, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--rvs-ink);
}
.rvs *, .rvs *::before, .rvs *::after { box-sizing: border-box; }
.rvs-hide { display: none !important; }

.rvs-launch {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 180;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--rvs-green);
  box-shadow: 0 10px 26px -12px rgba(0, 136, 93, .75);
  transition: transform .15s ease, background-color .15s ease;
}
.rvs-launch:hover { background: var(--rvs-green-ink); transform: translateY(-1px); }
.rvs-launch:focus-visible, .rvs-ic:focus-visible, .rvs-send:focus-visible, .rvs-chip:focus-visible {
  outline: 2px solid var(--rvs-green); outline-offset: 3px;
}
.rvs-dot {
  position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%;
  background: #E5484D; border: 2px solid #fff;
}

.rvs-panel {
  position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 190;
  width: 380px; height: min(620px, calc(100vh - 124px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--rvs-surface); border: 1px solid var(--rvs-line); border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(11, 31, 25, .35);
}
.rvs-panel[hidden] { display: none; }

.rvs-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px;
  border-bottom: 1px solid var(--rvs-line); background: var(--rvs-mint);
}
.rvs-mark {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--rvs-line);
}
.rvs-titles { flex: 1; min-width: 0; }
.rvs-title { margin: 0; font: 700 16px/1.25 var(--font-d, inherit); color: var(--rvs-ink); }
.rvs-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--rvs-muted); display: flex; align-items: center; gap: 6px; }
.rvs-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rvs-green); flex: none; }
.rvs-ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent;
  color: var(--rvs-muted); display: grid; place-items: center; cursor: pointer;
}
.rvs-ic:hover { background: rgba(11, 31, 25, .06); color: var(--rvs-ink); }

.rvs-list {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  overscroll-behavior: contain;
}
.rvs-msg {
  max-width: 85%; padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 14.5px; line-height: 1.45;
}
.rvs-ai { align-self: flex-start; background: var(--rvs-mint); border: 1px solid var(--rvs-line); border-bottom-left-radius: 6px; }
.rvs-me { align-self: flex-end; background: var(--rvs-green); color: #fff; border-bottom-right-radius: 6px; }
.rvs-typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.rvs-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--rvs-muted); opacity: .45; animation: rvs-blink 1.2s infinite ease-in-out; }
.rvs-typing span:nth-child(2) { animation-delay: .15s; }
.rvs-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rvs-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .rvs-typing span { animation: none; } .rvs-launch { transition: none; } }
.rvs-note {
  align-self: center; margin: 4px 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--rvs-green-ink); background: #E7F7F0; border-radius: 999px; padding: 5px 11px;
}
.rvs-err { align-self: center; margin: 4px 0; font-size: 12.5px; color: #B42318; }

.rvs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.rvs-chips[hidden] { display: none; }
.rvs-chip {
  border: 1px solid var(--rvs-line); background: #fff; color: var(--rvs-ink); border-radius: 999px;
  padding: 7px 12px; font: 500 13px/1.2 inherit; cursor: pointer;
}
.rvs-chip:hover { border-color: var(--rvs-green); color: var(--rvs-green-ink); }

.rvs-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--rvs-line); }
.rvs-input {
  flex: 1; min-height: 44px; max-height: 120px; resize: none; border: 1px solid var(--rvs-line); border-radius: 14px;
  padding: 11px 13px; font: inherit; font-size: 15px; color: var(--rvs-ink); background: var(--rvs-mint);
}
.rvs-input:focus { outline: none; border-color: var(--rvs-green); background: #fff; }
.rvs-input:disabled { opacity: .6; }
.rvs-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--rvs-green);
}
.rvs-send:disabled { opacity: .45; cursor: default; }

/* Phones: a full-screen sheet; the launcher steps aside while it is open. */
@media (max-width: 520px) {
  .rvs-launch { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .rvs-panel {
    inset: 0; width: auto; height: auto; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .rvs-open .rvs-launch { display: none; }
  .rvs-input { font-size: 16px; } /* iOS zooms into anything smaller */
}
/* Never over an open mobile menu (React header or static drawer). */
body:has(.mobile-nav) .rvs-launch,
body:has(.site-mnav.is-open) .rvs-launch { display: none; }
@media print { .rvs { display: none; } }
