.chatbot-toggle,
.chatbot-window,
.chatbot-window * {
  font-family: var(--font, "Inter", sans-serif);
}

.chatbot-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #FD369D, #FF8FD1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(253, 54, 157, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.07);
  box-shadow: 0 20px 44px rgba(253, 54, 157, 0.45);
}

.chatbot-toggle:active {
  transform: scale(0.96);
}

.chatbot-toggle i {
  line-height: 1;
}

.chatbot-notification {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #60A3A6;
  border: 2px solid #fff;
}

.chatbot-window {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 2000;
  width: min(400px, calc(100vw - 32px));
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #1A203A;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  min-height: 74px;
  padding: 14px 18px;
  background: #302A4D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chatbot-avatar,
.bot-mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #FD369D, #FF8FD1);
  color: #fff;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.chatbot-avatar i,
.bot-mini-avatar i {
  line-height: 1;
}

.chatbot-online-dot {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #60A3A6;
  border: 2px solid #302A4D;
}

.chatbot-title-block {
  flex: 1;
  min-width: 0;
}

.chatbot-title-block strong {
  display: block;
  color: #FFFFFC;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.chatbot-title-block span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #BDC2C9;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60A3A6;
  flex-shrink: 0;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.chatbot-header-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #BDC2C9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chatbot-header-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chatbot-header-actions button span {
  display: block;
  transform: translateY(-1px);
}

.chatbot-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 7px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(253, 54, 157, 0.58);
  border-radius: 999px;
}

.chatbot-row {
  display: flex;
  gap: 10px;
}

.bot-row {
  align-items: flex-start;
}

.user-row {
  justify-content: flex-end;
}

.bot-mini-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
  flex-shrink: 0;
}

.chatbot-message {
  max-width: 285px;
  padding: 13px 15px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.chatbot-message.bot {
  background: #080D2B;
  color: #FFFFFC;
  border-top-left-radius: 6px;
}

.chatbot-message.user {
  background: linear-gradient(135deg, #FD369D, #FF8FD1);
  color: #fff;
  border-top-right-radius: 6px;
}

.chatbot-time {
  margin-top: 6px;
  color: #8F96AC;
  font-size: 11px;
}

.quick-actions {
  margin-top: 10px;
}

.quick-actions p {
  margin: 0 0 11px;
  color: #AEB5C8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-actions-grid button {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #080D2B;
  color: #DDE2F3;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-actions-grid button:hover {
  border-color: rgba(253, 54, 157, 0.55);
  background: rgba(253, 54, 157, 0.12);
  transform: translateY(-1px);
}

.chatbot-form {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 10px;
}

.chatbot-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 2px solid rgba(253, 54, 157, 0.75);
  border-radius: 14px;
  background: #25294A;
  color: #FFFFFC;
  padding: 0 13px;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(253, 54, 157, 0.12);
}

.chatbot-form input::placeholder {
  color: #8F96AC;
}

.chatbot-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #FD369D, #B86BD9);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.chatbot-form button:hover {
  transform: scale(1.05);
}

.chatbot-form button i {
  line-height: 1;
}

.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 15px;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BDC2C9;
  animation: typingBounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .chatbot-toggle {
    right: 16px;
    bottom: 16px;
  }

  .chatbot-window {
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
    height: min(590px, calc(100vh - 100px));
    border-radius: 20px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}
.quick-actions-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-actions-grid button i {
  width: 18px;
  color: #FD369D;
  font-size: 14px;
  flex-shrink: 0;
}

.quick-actions-grid button span {
  line-height: 1.25;
}
.chatbot-toggle i,
.chatbot-window i,
.chatbot-header-actions i,
.quick-actions-grid i,
.chatbot-form button i,
.bot-mini-avatar i,
.chatbot-avatar i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}