/* Chatbot fallback WhatsApp — popup questions rapides */

.chatbot-fallback {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
}

.chatbot-fallback__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.875rem);
  width: min(calc(100vw - 2.5rem), 22rem);
  padding: 1rem;
  border-radius: 0.875rem;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-text) 18%, transparent);
}

.chatbot-fallback__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.chatbot-fallback__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.chatbot-fallback__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-fallback__skip,
.chatbot-fallback__close {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.chatbot-fallback__skip {
  padding: 0.35rem 0.625rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chatbot-fallback__close {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  font-size: 1.25rem;
  line-height: 1;
}

.chatbot-fallback__question {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

.chatbot-fallback__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chatbot-fallback__choice {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.chatbot-fallback__choice:hover,
.chatbot-fallback__choice:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.chatbot-fallback__choice--accent {
  border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}

.chatbot-fallback__choice--muted {
  border-color: color-mix(in srgb, var(--color-text) 15%, transparent);
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.chatbot-fallback__trigger {
  position: static;
}

@media (max-width: 575px) {
  .chatbot-fallback {
    right: 1rem;
    bottom: 1rem;
  }

  .chatbot-fallback__panel {
    width: min(calc(100vw - 2rem), 20rem);
  }
}
