.fv-chat {
  --fv-chat-navy: #0B2145;
  --fv-chat-navy-mid: #153060;
  --fv-chat-teal: #1EC8B0;
  --fv-chat-teal-pale: #E0F7F4;
  --fv-chat-coral: #E8624A;
  --fv-chat-surface: #FFFFFF;
  --fv-chat-border: #D4E4EF;
  --fv-chat-text: #0B2145;
  --fv-chat-muted: #6B8AA8;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  font-family: 'DM Mono', monospace;
  color: var(--fv-chat-text);
}

.fv-chat * {
  box-sizing: border-box;
}

.fv-chat__launcher {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(30, 200, 176, 0.45);
  border-radius: 50%;
  background: var(--fv-chat-surface);
  box-shadow: 0 14px 36px rgba(11, 33, 69, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fv-chat__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(11, 33, 69, 0.22);
}

.fv-chat__launcher svg,
.fv-chat__avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fv-chat__panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 120px));
  background: var(--fv-chat-surface);
  border: 1px solid var(--fv-chat-border);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(11, 33, 69, 0.22);
  overflow: hidden;
  display: none;
}

.fv-chat[data-open="true"] .fv-chat__panel {
  display: flex;
  flex-direction: column;
}

.fv-chat[data-open="true"] .fv-chat__launcher {
  display: none;
}

.fv-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--fv-chat-navy);
  color: white;
}

.fv-chat__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  flex: 0 0 auto;
}

.fv-chat__title {
  flex: 1;
  min-width: 0;
}

.fv-chat__name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.fv-chat__status {
  color: #A9C0D5;
  font-size: 10px;
  letter-spacing: 0.9px;
  margin-top: 3px;
  text-transform: uppercase;
}

.fv-chat__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.fv-chat__body {
  padding: 16px;
  overflow-y: auto;
  background: linear-gradient(180deg, #F8FBFE 0%, #FFFFFF 100%);
}

.fv-chat__message {
  border: 1px solid var(--fv-chat-border);
  border-radius: 8px;
  padding: 12px 13px;
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.65;
  color: #314B68;
  background: white;
  margin-bottom: 12px;
}

.fv-chat__message--mozzi {
  border-left: 3px solid var(--fv-chat-teal);
}

.fv-chat__message--user {
  margin-left: 44px;
  background: var(--fv-chat-teal-pale);
  border-color: rgba(30, 200, 176, 0.35);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--fv-chat-navy);
}

.fv-chat__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 14px;
}

.fv-chat__chip {
  border: 1px solid var(--fv-chat-border);
  border-radius: 4px;
  background: white;
  color: var(--fv-chat-navy);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 9px 10px;
  text-align: left;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.fv-chat__chip:hover {
  border-color: var(--fv-chat-teal);
  color: #0A7A68;
  background: #F7FEFC;
}

.fv-chat__composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--fv-chat-border);
  background: white;
}

.fv-chat__input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--fv-chat-border);
  border-radius: 4px;
  padding: 10px 11px;
  color: var(--fv-chat-navy);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  outline: none;
}

.fv-chat__input:focus {
  border-color: var(--fv-chat-teal);
}

.fv-chat__send {
  border: 0;
  border-radius: 4px;
  background: var(--fv-chat-navy);
  color: white;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 0 14px;
}

.fv-chat__send:hover {
  background: var(--fv-chat-navy-mid);
}

.fv-chat__note {
  padding: 0 16px 14px;
  background: white;
  color: var(--fv-chat-muted);
  font-size: 10px;
  line-height: 1.45;
}

.fv-chat__note a {
  color: var(--fv-chat-coral);
  text-decoration: none;
}

@media (max-width: 640px) {
  .fv-chat {
    right: 16px;
    bottom: 16px;
  }

  .fv-chat__panel {
    right: -8px;
    bottom: 84px;
  }

  .fv-chat__chips {
    grid-template-columns: 1fr;
  }
}
