.cve-chat {
  --cve-orange: #ff5a0a;
  --cve-navy: #07182b;
  --cve-paper: #fff;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: Arial, Helvetica, sans-serif;
}

.cve-chat *, .cve-chat *::before, .cve-chat *::after { box-sizing: border-box; }

.cve-chat__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cve-orange);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.24);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.cve-chat__bolt { font-size: 24px; line-height: 1; }

.cve-chat__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(7,24,43,.16);
  border-radius: 16px;
  background: var(--cve-paper);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.cve-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-top: 5px solid var(--cve-orange);
  background: var(--cve-navy);
  color: #fff;
}

.cve-chat__header strong, .cve-chat__header small { display: block; }
.cve-chat__header strong { font-size: 17px; }
.cve-chat__header small { margin-top: 3px; color: #d9e4ef; font-size: 12px; }
.cve-chat__header button { border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }

.cve-chat__messages {
  height: 360px;
  overflow-y: auto;
  padding: 18px;
  background: #f4f6f8;
}

.cve-chat__message {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 13px;
  color: #16202a;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.cve-chat__message--bot { border: 1px solid #d9e0e7; background: #fff; }
.cve-chat__message--visitor { margin-left: auto; background: var(--cve-navy); color: #fff; }
.cve-chat__message a { color: #b83e00; font-weight: 700; }

.cve-chat__suggestions {
  display: grid;
  gap: 8px;
  margin: 2px 0 12px;
}

.cve-chat__suggestions[hidden] { display: none; }
.cve-chat__suggestions-label { color: #53606c; font-size: 12px; font-weight: 700; }
.cve-chat__suggestions button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9d3dc;
  border-radius: 10px;
  background: #fff;
  color: var(--cve-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.cve-chat__suggestions button:hover,
.cve-chat__suggestions button:focus-visible {
  border-color: var(--cve-orange);
  outline: 3px solid rgba(255,90,10,.18);
  color: #b83e00;
}

.cve-chat__contact {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px 13px;
  border-top: 1px solid #e3e8ed;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.cve-chat__contact a { color: #b83e00; text-decoration: underline; text-underline-offset: 2px; }
.cve-chat__contact a:hover,
.cve-chat__contact a:focus-visible { color: var(--cve-navy); }

.cve-chat__voice-hint {
  margin: 0;
  padding: 9px 13px 0;
  background: #fff;
  color: #53606c;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.cve-chat__voice-hint span { color: #b83e00; }

.cve-chat__form { display: flex; gap: 8px; padding: 13px; border-top: 1px solid #e3e8ed; }
.cve-chat__form input { min-width: 0; flex: 1; height: 44px; padding: 0 12px; border: 1px solid #aeb8c2; border-radius: 8px; color: #111; font-size: 15px; }
.cve-chat__form input:focus { outline: 3px solid rgba(255,90,10,.24); border-color: var(--cve-orange); }
.cve-chat__form button { padding: 0 16px; border: 0; border-radius: 8px; background: var(--cve-orange); color: #fff; font-weight: 800; cursor: pointer; }
.cve-chat__form .cve-chat__mic { width: 44px; flex: 0 0 44px; padding: 0; background: var(--cve-navy); font-size: 18px; }
.cve-chat__form .cve-chat__mic.is-listening { background: #c62828; animation: cve-chat-pulse 1s ease-in-out infinite; }
.cve-chat__form button:disabled { opacity: .55; cursor: wait; }
.cve-chat footer { padding: 0 13px 12px; color: #5b6671; font-size: 11px; line-height: 1.35; }

@media (max-width: 480px) {
  .cve-chat { right: 14px; bottom: 14px; }
  .cve-chat__panel { position: fixed; inset: 10px 10px 78px; width: auto; display: flex; flex-direction: column; }
  .cve-chat__messages { height: auto; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cve-chat * { scroll-behavior: auto !important; }
}

@keyframes cve-chat-pulse {
  50% { transform: scale(.92); opacity: .75; }
}
