/* ============================================================
   AFSS — Responsive Overrides & Viewport Optimizations
   ============================================================ */

/* Mobile global safety */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box;
}

*, *::before, *::after {
  max-width: 100%;
}

/* Chatbot Launcher Bubble on Mobile & Desktop */
.chatbot-container,
#afss-chatbot-root {
  position: fixed !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  z-index: 990 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.chatbot-launcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.5rem 0.95rem 0.5rem 0.6rem !important;
  background: #ffffff !important;
  border: 1px solid #d8dde6 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 22px rgba(11, 29, 54, 0.18) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.chatbot-launcher:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(11, 29, 54, 0.24) !important;
}

.chatbot-launcher__icon {
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #0b1d36 0%, #1c4d9c 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.chatbot-launcher__icon svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #ffffff !important;
}

.chatbot-launcher__text {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #0b1d36 !important;
  white-space: nowrap !important;
  letter-spacing: 0.01em !important;
}

@media (max-width: 480px) {
  .chatbot-launcher {
    padding: 0.45rem 0.85rem 0.45rem 0.55rem !important;
  }
  .chatbot-launcher__text {
    font-size: 0.78rem !important;
  }
}

/* Chat window */
@media (max-width: 767px) {
  .chatbot-window {
    position: fixed !important;
    bottom: 1.25rem !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    height: min(500px, 78vh) !important;
    border-radius: 12px !important;
    z-index: 1000 !important;
  }
}

/* Sticky floating mobile quote button — REMOVED COMPLETELY */
.mobile-sticky,
.mobile-sticky-cta,
.afss-mobile-bottom-bar {
  display: none !important;
}

/* Container padding */
@media (max-width: 640px) {
  .container-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .container-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
