/* Shared public-page layout repairs. Keep fixed controls inside the viewport. */
.footer-logo,
.footer-content > * {
  min-width: 0;
}
.footer-logo img {
  max-width: 100%;
  height: auto;
}
.truck1 img,
.truck2 img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.hamburger,
.hamburger .menu-btn,
.close-btn .menu-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar {
  max-width: 100%;
}
.sidebar-container {
  width: 100%;
  min-width: 0;
}
[id$="-chat-close"],
[id$="-chat-tooltip-close"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
[id$="-chat-tooltip-close"] {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
}
[id$="-chat-close"]:focus-visible,
[id$="-chat-tooltip-close"]:focus-visible,
.menu-btn:focus-visible {
  outline: 3px solid #e7a700;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  /* The launcher remains available without a teaser covering the quote form. */
  #mosa-chat-tooltip,
  #moh-chat-tooltip {
    display: none !important;
  }
  #mosa-chat-window,
  #moh-chat-window {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100% - 20px);
    max-height: calc(100dvh - 100px);
  }
}
@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .footer-section h3,
  .footer-section h4,
  .footer-links a {
    overflow-wrap: anywhere;
  }
  .navbar .logo {
    width: auto;
    min-width: 0;
    flex: 1;
  }
  .navbar .cta {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .navbar .call {
    padding: 0.65rem 0.5rem;
  }
  .banner .heading {
    padding: 1rem 0.5rem;
  }
  .banner .heading h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
  }
}

.menu-btn .svg-icon {
  width: 24px;
  height: 24px;
}
.navbar .call {
  min-height: 44px;
}

.cards-accept .img,
.cards-accept img {
  max-width: 100%;
  height: auto;
}
/* Keep the entrance animation within its own full-width section. */
.how-best {
  overflow-x: clip;
}

@media (max-width: 993px) {
  .banner .heading::before {
    width: auto;
    right: 0;
  }
}

/* Do not cover a visible form on desktop either. */
.has-visible-form #mosa-chat-tooltip,
.has-visible-form #moh-chat-tooltip {
  display: none !important;
}
