/* ========================================
   ПЛАВАЮЩИЙ ЧАТ-БОТ
   ======================================== */
.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #2edba5;
  /* Бирюзовый акцент */
  color: #053c3c;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(46, 219, 165, 0.4);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chat-toggle-btn:hover {
  transform: scale(1.05);
  background-color: #4be8b8;
}

.chat-window {
  width: 350px;
  height: 500px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  animation: chatFadeIn 0.3s ease-out;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: #053c3c;
  color: #ffffff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header strong {
  display: block;
  font-size: 15px;
}

.chat-header span {
  font-size: 11px;
  color: #2edba5;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.message {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.bot {
  background: #ffffff;
  color: #0f172a;
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: #2edba5;
  color: #053c3c;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  padding: 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.chat-input-area input:focus {
  border-color: #2edba5;
}

.chat-input-area button {
  margin-left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #053c3c;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background: #2edba5;
  color: #053c3c;
}

@media (max-width: 480px) {

  .chat-toggle-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .chat-widget {
    bottom: 75px;
    right: 17px;
    /* width: 16px; */
    /* height: 16px; */
  }

  .chat-window {
    width: 330px;
    height: 350px;
  }


}