.vo-chat {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 80;
  font-family: var(--portal-font, inherit);
}
.vo-chat__toggle {
  min-width: 56px;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5a8);
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(10, 38, 70, 0.22);
  cursor: pointer;
}
.vo-chat__panel {
  width: min(360px, calc(100vw - 28px));
  margin-bottom: 12px;
  background: #fff;
  color: #0c1b31;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(10, 38, 70, 0.16);
  overflow: hidden;
}
.vo-chat__head {
  position: relative;
  padding: 14px 42px 12px 16px;
  background: #071a2f;
  color: #fff;
}
.vo-chat__head strong { display: block; font-size: 1rem; }
.vo-chat__head span { display: block; margin-top: 4px; color: #c9d7e8; font-size: 0.82rem; line-height: 1.5; }
.vo-chat__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.vo-chat__log {
  max-height: 280px;
  min-height: 140px;
  overflow: auto;
  padding: 12px;
  background: #f2f6fa;
}
.vo-chat__msg {
  max-width: 90%;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dce5ef;
}
.vo-chat__msg small { display: block; color: #5e6d82; font-size: 0.72rem; }
.vo-chat__msg p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.vo-chat__msg--visitor { margin-inline-start: auto; background: #e8f0ff; }
.vo-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dce5ef;
}
.vo-chat__input {
  width: 100%;
  resize: none;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.vo-chat__send {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.vo-chat__hint {
  margin: 0;
  padding: 0 12px 10px;
  color: #5e6d82;
  font-size: 0.78rem;
}
.vo-chat.is-offline .vo-chat__toggle { opacity: 0.7; }
.vo-chat__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 12px 12px;
  font-size: 0.78rem;
}
.vo-chat__links a { color: #2563eb; text-decoration: none; font-weight: 600; }
@media (max-width: 640px) {
  .vo-chat { inset-inline-end: 12px; bottom: 12px; }
}
