/* ==========================================================================
   LOS HERMANOS - AI CONCIERGE & BOOKING ASSISTANT WIDGET (A02)
   Design System: Mexican Bistro Luxury & Authentic UI-Kit Harmony
   Fully Responsive: Spacious on Desktop, Fullscreen on Mobile
   Day Mode & Night Mode Adaptive
   ========================================================================== */

:root {
  /* Day Mode Theme (Palette ufficiale index.html & UI Kit) */
  --ai-brand-green: #003820;
  --ai-brand-green-dark: #002616;
  --ai-brand-green-light: #004d2c;
  --ai-brand-beige: #F0E5D1;
  --ai-brand-cream: #FAF5EE;
  --ai-brand-amber: #EBB867;
  --ai-brand-amber-glow: rgba(235, 184, 103, 0.4);
  --ai-brand-terracotta: #8C5333;
  --ai-green-bright: #10B981;

  /* Finestra & Sfondo */
  --ai-window-bg: #FAF5EE;
  --ai-window-border: rgba(0, 56, 32, 0.16);
  --ai-window-shadow: 0 24px 60px rgba(0, 56, 32, 0.22), 0 0 40px rgba(235, 184, 103, 0.18);

  /* Header */
  --ai-header-bg: linear-gradient(135deg, #003820 0%, #002616 100%);
  --ai-header-text: #FAF5EE;
  --ai-header-border: rgba(235, 184, 103, 0.35);

  /* Corpo & Messaggi */
  --ai-messages-bg: #F5EFE4;
  --ai-text-main: #003820;
  --ai-text-muted: rgba(0, 56, 32, 0.65);

  --ai-bot-msg-bg: #FFFFFF;
  --ai-bot-msg-border: rgba(0, 56, 32, 0.12);
  --ai-bot-msg-text: #003820;
  --ai-bot-msg-shadow: 0 4px 18px rgba(0, 56, 32, 0.06);

  --ai-user-msg-bg: linear-gradient(135deg, #003820 0%, #004d2c 100%);
  --ai-user-msg-border: rgba(235, 184, 103, 0.35);
  --ai-user-msg-text: #FFF9EE;
  --ai-user-msg-shadow: 0 4px 18px rgba(0, 56, 32, 0.18);

  /* Azioni Rapide */
  --ai-quick-bar-bg: #EDE3D0;
  --ai-quick-bg: #FFFFFF;
  --ai-quick-border: rgba(0, 56, 32, 0.18);
  --ai-quick-text: #003820;
  --ai-quick-hover-bg: #EBB867;
  --ai-quick-hover-text: #003820;

  /* Chip Orari */
  --ai-chip-bg: #FFFFFF;
  --ai-chip-border: #EBB867;
  --ai-chip-text: #003820;
  --ai-chip-hover-bg: #EBB867;
  --ai-chip-hover-text: #003820;
  --ai-chip-active-bg: #003820;
  --ai-chip-active-text: #EBB867;

  /* Voucher */
  --ai-voucher-bg: #FFFFFF;
  --ai-voucher-border: #EBB867;
  --ai-voucher-header-bg: linear-gradient(135deg, #003820 0%, #002B19 100%);

  /* Area Input */
  --ai-input-area-bg: #EFE6D6;
  --ai-input-area-border: rgba(0, 56, 32, 0.14);
  --ai-input-field-bg: #FFFFFF;
  --ai-input-field-border: rgba(0, 56, 32, 0.22);
  --ai-input-field-text: #003820;
  --ai-input-field-placeholder: rgba(0, 56, 32, 0.45);
}

/* --- Night Mode Theme Override (Sincronizzato con body.night-mode di index.html) --- */
body.night-mode {
  --ai-window-bg: #071910;
  --ai-window-border: rgba(235, 184, 103, 0.28);
  --ai-window-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(235, 184, 103, 0.15);

  --ai-header-bg: linear-gradient(135deg, #04140C 0%, #020A06 100%);
  --ai-header-text: #F0E5D1;
  --ai-header-border: rgba(235, 184, 103, 0.3);

  --ai-messages-bg: #05140A;
  --ai-text-main: #F4EBD9;
  --ai-text-muted: rgba(240, 229, 209, 0.7);

  --ai-bot-msg-bg: #0C2417;
  --ai-bot-msg-border: rgba(235, 184, 103, 0.22);
  --ai-bot-msg-text: #F4EBD9;
  --ai-bot-msg-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);

  --ai-user-msg-bg: linear-gradient(135deg, #00442B 0%, #02301E 100%);
  --ai-user-msg-border: rgba(235, 184, 103, 0.45);
  --ai-user-msg-text: #FFF9EE;
  --ai-user-msg-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

  --ai-quick-bar-bg: rgba(4, 14, 8, 0.7);
  --ai-quick-bg: rgba(240, 229, 209, 0.08);
  --ai-quick-border: rgba(235, 184, 103, 0.25);
  --ai-quick-text: #F0E5D1;
  --ai-quick-hover-bg: #EBB867;
  --ai-quick-hover-text: #003820;

  --ai-chip-bg: #0C2417;
  --ai-chip-border: #EBB867;
  --ai-chip-text: #EBB867;
  --ai-chip-hover-bg: #EBB867;
  --ai-chip-hover-text: #003820;
  --ai-chip-active-bg: #EBB867;
  --ai-chip-active-text: #003820;

  --ai-voucher-bg: #0A1E13;
  --ai-voucher-border: #EBB867;
  --ai-voucher-header-bg: linear-gradient(135deg, #002B19 0%, #001A0E 100%);

  --ai-input-area-bg: #041209;
  --ai-input-area-border: rgba(235, 184, 103, 0.18);
  --ai-input-field-bg: rgba(240, 229, 209, 0.08);
  --ai-input-field-border: rgba(235, 184, 103, 0.28);
  --ai-input-field-text: #F4EBD9;
  --ai-input-field-placeholder: rgba(244, 235, 217, 0.4);
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB)
   ========================================================================== */
.lh-chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-brand-green) 0%, var(--ai-brand-green-dark) 100%);
  border: 2px solid var(--ai-brand-amber);
  color: var(--ai-brand-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 12px 32px rgba(0, 56, 32, 0.35), 0 0 24px var(--ai-brand-amber-glow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.lh-chat-fab:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 56, 32, 0.45), 0 0 32px var(--ai-brand-amber-glow);
}

.lh-chat-fab:active {
  transform: scale(0.95);
}

.lh-chat-fab.lh-fab-active {
  background: var(--ai-brand-amber);
  border-color: var(--ai-brand-green);
  color: var(--ai-brand-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lh-fab-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lh-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ai-brand-terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--ai-brand-amber);
}

.lh-fab-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--ai-brand-amber);
  opacity: 0.65;
  animation: lhFabPulse 3s infinite ease-out;
  pointer-events: none;
}

@keyframes lhFabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.38); opacity: 0; }
  100% { transform: scale(1.38); opacity: 0; }
}

/* Tooltip on hover */
.lh-chat-fab::before {
  content: "Prenota con Hermanos AI";
  position: absolute;
  right: 78px;
  background: var(--ai-brand-green);
  color: var(--ai-brand-amber);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--ai-brand-amber);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lh-chat-fab:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   CHAT WINDOW — DESKTOP PC (Più grande, confortevole e autorevole)
   ========================================================================== */
.lh-chat-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 480px;
  height: 720px;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 130px);
  background: var(--ai-window-bg);
  border: 1.5px solid var(--ai-window-border);
  border-radius: 24px;
  box-shadow: var(--ai-window-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

@media (min-height: 920px) {
  .lh-chat-window {
    height: 760px;
  }
}

.lh-chat-window.lh-chat-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- Header --- */
.lh-chat-header {
  padding: 16px 20px;
  background: var(--ai-header-bg);
  border-bottom: 1px solid var(--ai-header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.lh-chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lh-chat-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #002213;
  border: 1.5px solid var(--ai-brand-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.lh-chat-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.lh-chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--ai-green-bright);
  border: 2px solid #002213;
  border-radius: 50%;
}

.lh-chat-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ai-header-text);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lh-ai-pill {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(235, 184, 103, 0.2);
  border: 1px solid var(--ai-brand-amber);
  color: var(--ai-brand-amber);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lh-chat-subtitle {
  font-size: 12px;
  color: rgba(240, 229, 209, 0.75);
  display: block;
  margin-top: 2px;
}

.lh-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lh-chat-header-btn {
  background: rgba(240, 229, 209, 0.12);
  border: 1px solid rgba(235, 184, 103, 0.3);
  color: var(--ai-header-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.lh-chat-header-btn:hover {
  background: var(--ai-brand-amber);
  color: var(--ai-brand-green);
  border-color: var(--ai-brand-amber);
  transform: scale(1.08);
}

/* --- Quick Actions Bar --- */
.lh-chat-quickactions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ai-quick-bar-bg);
  border-bottom: 1px solid var(--ai-window-border);
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  scrollbar-width: none;
}

.lh-chat-quickactions::-webkit-scrollbar {
  display: none;
}

.lh-quick-btn {
  background: var(--ai-quick-bg);
  border: 1px solid var(--ai-quick-border);
  color: var(--ai-quick-text);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lh-quick-btn i {
  color: var(--ai-brand-amber);
}

.lh-quick-btn:hover {
  background: var(--ai-quick-hover-bg);
  color: var(--ai-quick-hover-text);
  border-color: var(--ai-brand-amber);
  transform: translateY(-1px);
}

/* --- Messages Container --- */
.lh-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--ai-messages-bg);
  scroll-behavior: smooth;
}

.lh-chat-messages::-webkit-scrollbar {
  width: 6px;
}

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

.lh-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 56, 32, 0.15);
  border-radius: 4px;
}

body.night-mode .lh-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(235, 184, 103, 0.2);
}

/* --- Single Message Item --- */
.lh-msg-item {
  display: flex;
  gap: 12px;
  max-width: 88%;
  animation: lhMsgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lhMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lh-msg-bot {
  align-self: flex-start;
}

.lh-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.lh-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ai-brand-green);
  border: 1px solid var(--ai-brand-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lh-msg-avatar img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.lh-msg-bubble {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}

.lh-msg-bot .lh-msg-bubble {
  background: var(--ai-bot-msg-bg);
  border: 1px solid var(--ai-bot-msg-border);
  color: var(--ai-bot-msg-text);
  border-top-left-radius: 4px;
  box-shadow: var(--ai-bot-msg-shadow);
}

.lh-msg-user .lh-msg-bubble {
  background: var(--ai-user-msg-bg);
  border: 1px solid var(--ai-user-msg-border);
  color: var(--ai-user-msg-text);
  border-top-right-radius: 4px;
  box-shadow: var(--ai-user-msg-shadow);
}

.lh-msg-meta {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.7;
  text-align: right;
}

/* --- Slot Selector Chips --- */
.lh-slots-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(0, 56, 32, 0.04);
  border: 1px solid rgba(235, 184, 103, 0.35);
  border-radius: 14px;
}

body.night-mode .lh-slots-card {
  background: rgba(235, 184, 103, 0.05);
}

.lh-slots-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ai-brand-amber);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lh-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lh-slot-chip {
  background: var(--ai-chip-bg);
  border: 1.5px solid var(--ai-chip-border);
  color: var(--ai-chip-text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lh-slot-chip:hover {
  background: var(--ai-chip-hover-bg);
  color: var(--ai-chip-hover-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235, 184, 103, 0.3);
}

.lh-slot-chip.lh-slot-active {
  background: var(--ai-chip-active-bg);
  color: var(--ai-chip-active-text);
  border-color: var(--ai-brand-amber);
}

/* --- Booking Confirmation Voucher --- */
.lh-voucher-card {
  margin-top: 14px;
  background: var(--ai-voucher-bg);
  border: 2px dashed var(--ai-voucher-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lh-voucher-header {
  padding: 12px 16px;
  background: var(--ai-voucher-header-bg);
  color: var(--ai-brand-amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lh-voucher-header h5 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lh-voucher-body {
  padding: 14px 16px;
  color: var(--ai-text-main);
  font-size: 13px;
}

.lh-voucher-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lh-voucher-row strong {
  color: var(--ai-brand-amber);
}

.lh-voucher-token {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(235, 184, 103, 0.15);
  border: 1px solid var(--ai-brand-amber);
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--ai-text-main);
  word-break: break-all;
}

.lh-voucher-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.lh-voucher-btn {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.lh-voucher-btn--primary {
  background: var(--ai-brand-amber);
  color: #003820;
  border: 1px solid var(--ai-brand-amber);
}

.lh-voucher-btn--primary:hover {
  filter: brightness(1.08);
}

/* --- Typing Indicator --- */
.lh-chat-typing {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ai-messages-bg);
  flex-shrink: 0;
}

.lh-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lh-typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--ai-brand-amber);
  border-radius: 50%;
  animation: lhTyping 1.4s infinite ease-in-out both;
}

.lh-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.lh-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes lhTyping {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* --- Input Area --- */
.lh-chat-input-area {
  padding: 14px 20px 16px 20px;
  background: var(--ai-input-area-bg);
  border-top: 1px solid var(--ai-input-area-border);
  flex-shrink: 0;
}

.lh-chat-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--ai-input-field-bg);
  border: 1.5px solid var(--ai-input-field-border);
  border-radius: 28px;
  padding: 4px 6px 4px 18px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lh-chat-input-wrapper:focus-within {
  border-color: var(--ai-brand-amber);
  box-shadow: 0 0 14px var(--ai-brand-amber-glow);
}

.lh-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ai-input-field-text);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  resize: none;
  outline: none;
  max-height: 90px;
  line-height: 1.45;
  padding: 6px 0;
}

.lh-chat-input::placeholder {
  color: var(--ai-input-field-placeholder);
}

.lh-chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ai-brand-amber);
  border: none;
  color: var(--ai-brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-size: 16px;
}

.lh-chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(235, 184, 103, 0.4);
}

.lh-chat-send:not(:disabled):hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--ai-brand-amber-glow);
}

.lh-chat-powered {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--ai-text-muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   MOBILE RESPONSIVE — ADATTAMENTO PERFETTO A TUTTO SCHERMO
   ========================================================================== */
@media (max-width: 680px) {
  /* Finestra Chat a TUTTO SCHERMO */
  .lh-chat-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: translateY(100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    z-index: 1000000 !important;
  }

  .lh-chat-window.lh-chat-open {
    transform: translateY(0) !important;
  }

  /* Nascondi il pulsante rotondo FAB quando la chat è aperta su smartphone */
  .lh-chat-fab.lh-fab-hidden-mobile {
    display: none !important;
  }

  .lh-chat-header {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 14px;
    border-radius: 0;
  }

  .lh-chat-header-actions .lh-chat-header-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .lh-chat-messages {
    padding: 16px 14px;
    gap: 14px;
  }

  .lh-msg-item {
    max-width: 92%;
  }

  .lh-msg-bubble {
    padding: 12px 16px;
    font-size: 14px;
  }

  .lh-chat-input-area {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .lh-chat-fab {
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
  }
}

/* Blocca lo scrolling di sfondo quando il chatbot è a tutto schermo su mobile */
body.lh-chat-locked {
  overflow: hidden !important;
  height: 100dvh !important;
  touch-action: none !important;
}
