/* ==========================================================================
   DIN S.A.S. - GLOBAL FLOATING CHAT BUBBLE WIDGET STYLES
   ========================================================================== */

/* Floating Button Trigger */
.floating-chat-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--din-blue-primary, #0033A0), var(--din-orange-accent, #F37021));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.35);
  cursor: pointer;
  z-index: 99999;
  border: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.floating-chat-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.45);
}

.floating-chat-trigger svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Badge Indicator on Trigger */
.chat-trigger-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

/* Floating Chat Box Window */
.floating-chat-window {
  position: fixed;
  bottom: 105px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 31, 102, 0.25);
  border: 1px solid var(--din-border-light, #E2E8F0);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.floating-chat-header {
  background: linear-gradient(135deg, #0033A0 0%, #001F66 100%);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-avatar {
  width: 36px;
  height: 36px;
  background-color: #F37021;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.floating-chat-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.floating-chat-close:hover {
  opacity: 1;
}

/* Quick Prompts Bar */
.chat-quick-prompts {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background-color: #F4F6F9;
  border-bottom: 1px solid #E2E8F0;
  overflow-x: auto;
  white-space: nowrap;
}

.prompt-chip {
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0033A0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background-color: #F37021;
  border-color: #F37021;
  color: #FFFFFF;
}

.prompt-chip-human {
  border-color: #F37021;
  color: #D85A0C;
}

/* Chat Message Body */
.floating-chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.f-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.f-msg-bot {
  align-self: flex-start;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #2B2B2B;
  border-bottom-left-radius: 2px;
}

.f-msg-user {
  align-self: flex-end;
  background-color: #0033A0;
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

/* Chat Input Footer */
.floating-chat-footer {
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 0.5rem;
}

.floating-chat-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
}

.floating-chat-input:focus {
  border-color: #0033A0;
}

.floating-send-btn {
  background-color: #F37021;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.floating-send-btn:hover {
  background-color: #D85A0C;
}
