/* Public visitor chat — navy #001E44 / teal. No email field. */
.ov-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  font-family: var(--font-sans, "Public Sans", "Segoe UI", sans-serif);
}
.ov-chat-launch {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #001E44;
  color: #fff;
  font: 600 15px/1.2 var(--font-sans, "Public Sans", "Segoe UI", sans-serif);
  cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(0, 30, 68, .55);
}
.ov-chat-launch:hover,
.ov-chat-launch:focus-visible {
  background: #0e7c86;
  outline: none;
}
.ov-chat-panel {
  width: min(360px, calc(100vw - 24px));
  height: min(460px, calc(100vh - 100px));
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d6e7ec;
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(0, 30, 68, .45);
  overflow: hidden;
}
.ov-chat-panel[hidden] { display: none; }
.ov-chat.is-open .ov-chat-launch { display: none; }
.ov-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #001E44;
  color: #fff;
}
.ov-chat-head strong { font-size: 15px; font-weight: 600; }
.ov-chat-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ov-chat-head button:hover,
.ov-chat-head button:focus-visible { background: #0e7c86; outline: none; }
.ov-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f2f5f4;
}
.ov-chat-note {
  color: #41586c;
  font-size: 14px;
  margin: 0;
}
.ov-chat-msg { margin: 0 0 10px; max-width: 88%; }
.ov-chat-msg p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ov-chat-msg--visitor { margin-left: auto; }
.ov-chat-msg--visitor p { background: #001E44; color: #fff; }
.ov-chat-msg--agent p { background: #fff; color: #0a1d2f; border: 1px solid #d6e7ec; }
.ov-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #e2e9e7;
}
.ov-chat-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 96px;
  resize: vertical;
  border: 1px solid #d6e7ec;
  border-radius: 10px;
  padding: 8px 10px;
  font: 15px/1.4 var(--font-sans, "Public Sans", "Segoe UI", sans-serif);
  color: #0a1d2f;
}
.ov-chat-form textarea:focus { outline: 2px solid #0e7c86; border-color: #0e7c86; }
.ov-chat-form button[type="submit"] {
  min-width: 72px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #0e7c86;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.ov-chat-form button[type="submit"]:hover,
.ov-chat-form button[type="submit"]:focus-visible { background: #0a5a62; outline: none; }
.ov-chat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 420px) {
  .ov-chat { right: 12px; bottom: 12px; left: 12px; }
  .ov-chat-panel { width: 100%; }
}
