/* Help Icon */
.dya-help-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #0073aa;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  transition: all 0.3s ease;
}

.dya-help-icon:hover {
  transform: scale(1.1);
  background-color: #005177;
}

/* Chat Popup */
.dya-chat-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 300px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 9999;
}

/* Адаптивні стилі для мобільних пристроїв */
@media (max-width: 768px) {
  .dya-help-icon {
    bottom: var(--dya-mobile-bottom-offset, 20px);
  }

  .dya-chat-popup {
    left: 50% !important; /* Завжди центруємо на мобільних */
    right: auto !important;
    transform: translateX(-50%);
    bottom: var(--dya-mobile-bottom-offset, 60px);
    width: 90%;
    max-width: 400px;
  }

  .dya-emoji-hint {
    font-size: 20px;
  }

  .dya-chat-popup-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .dya-chat-popup-button {
    margin: 0;
    height: auto !important;
    min-height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

.dya-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.dya-chat-popup-content p:first-child {
  padding-right: 25px; /* Відступ справа, щоб текст не накладався на кнопку закриття */
  margin-top: 10px; /* Збільшуємо відступ зверху */
}

.dya-chat-popup-content p {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
}

.dya-chat-popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.dya-chat-popup-button {
  flex: 1;
  margin: 0 5px;
  padding: 12px 15px !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 600;
  transition: background-color 0.3s;
  line-height: 1.5 !important;
  min-height: 44px !important;
  height: auto !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-wrap: break-word !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.dya-button-yes,
.dya-button-human {
  background-color: #4caf50;
  color: white;
}

.dya-button-no,
.dya-button-ai {
  background-color: #2196f3;
  color: white;
}

.dya-button-yes:hover,
.dya-button-human:hover {
  background-color: #388e3c;
}

.dya-button-no:hover,
.dya-button-ai:hover {
  background-color: #1976d2;
}

.dya-chat-input-wrapper {
  margin-bottom: 10px;
}

.dya-chat-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
}
