#whatsapp-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 1100;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: #555;
}
#whatsapp-widget, #whatsapp-widget * { box-sizing: border-box; }
#whatsapp-widget .wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer;
}
#whatsapp-widget .wa-button:hover { background: #1da851; }
#whatsapp-widget button:focus-visible, #whatsapp-widget a:focus-visible { outline: 3px solid #087bcd; outline-offset: 3px; }
#whatsapp-widget .wa-popup {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 190px - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 190px - env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 12px;
  background: #e7eee9;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
#whatsapp-widget .wa-popup[hidden] { display: none !important; }
#whatsapp-widget .wa-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #0a5f54;
  color: white;
}
#whatsapp-widget .wa-popup-header img { width: 100px; height: 40px; max-width: 100px; object-fit: contain; background: white; border-radius: 4px; padding: 4px; }
#whatsapp-widget .wa-popup-header h2 { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 600; color: white; }
#whatsapp-widget #wa-popup-close { flex: 0 0 28px; width: 28px; height: 32px; padding: 0; border: 0; background: transparent; color: white; font-size: 26px; line-height: 1; cursor: pointer; }
#whatsapp-widget .wa-popup-content { padding: 16px; }
#whatsapp-widget .wa-popup-body { padding: 15px; margin-bottom: 16px; border-radius: 8px; background: white; }
#whatsapp-widget .wa-popup-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
#whatsapp-widget .wa-popup-body p:last-child { margin-bottom: 0; }
#whatsapp-widget .wa-popup-body ol { margin: 10px 0 15px; padding-left: 20px; }
#whatsapp-widget .wa-popup-body li { margin: 0 0 5px; font-size: 14px; line-height: 1.5; }
#whatsapp-widget .wa-start-chat { display: block; padding: 11px 20px; border-radius: 25px; background: #25d366; color: #123c22; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
#whatsapp-widget .wa-start-chat:hover { background: #1da851; }
@media (max-width: 768px), (max-height: 600px) {
  #whatsapp-widget { right: max(16px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
  #whatsapp-widget .wa-popup { max-height: calc(100vh - 110px - env(safe-area-inset-bottom)); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom)); }
}
