.ov-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.ov-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 16px 9px 9px;
  border: 1px solid rgba(18, 104, 232, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, #0d6df0, #082b70);
  color: #fff;
  box-shadow: 0 20px 52px rgba(7, 48, 126, .26);
  cursor: pointer;
  font-weight: 900;
}

.ov-chat-toggle img,
.ov-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .82);
  background: #fff;
}

.ov-chat-panel {
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 110px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(18, 104, 232, .24);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(9, 38, 86, .24);
}

.ov-chat.is-open .ov-chat-panel {
  display: flex;
}

.ov-chat.is-open .ov-chat-toggle {
  display: none;
}

.ov-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #0b2d73, #1268e8);
  color: #fff;
}

.ov-chat-head b {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.ov-chat-head span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  opacity: .84;
}

.ov-chat-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ov-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 104, 232, .10), transparent 16rem),
    #f7fbff;
}

.ov-chat-msg {
  width: fit-content;
  max-width: 92%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 14px;
}

.ov-chat-msg.bot {
  background: #fff;
  color: #10204a;
  border: 1px solid rgba(18, 104, 232, .14);
}

.ov-chat-msg.user {
  margin-left: auto;
  background: #1268e8;
  color: #fff;
}

.ov-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}

.ov-chat-actions button {
  border: 1px solid rgba(18, 104, 232, .24);
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff;
  color: #07307e;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}

.ov-chat-actions button.primary {
  background: #1268e8;
  color: #fff;
}

.ov-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(18, 104, 232, .14);
  background: #fff;
}

.ov-chat-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(18, 104, 232, .28);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: #10204a;
}

.ov-chat-send {
  min-width: 86px;
  border: 0;
  border-radius: 8px;
  background: #ff9d24;
  color: #071326;
  cursor: pointer;
  font-weight: 900;
}

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

  .ov-chat-panel {
    width: calc(100vw - 24px);
    height: min(620px, calc(100vh - 80px));
  }

  .ov-chat-toggle span {
    display: none;
  }

  .ov-chat-toggle {
    padding: 8px;
  }
}
