.brand-logo-header {
  width: min(10rem, 24vw);
  max-width: 100%;
  height: auto;
  max-height: 3.4rem;
  object-fit: contain;
}

.brand-logo-footer {
  width: 2.75rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-logo-header[hidden],
.brand-logo-footer[hidden] {
  display: none;
}

.brand-logo-fallback[hidden] {
  display: none;
}

.wordmark-with-logo,
.automobile-wordmark-with-logo {
  display: inline-flex;
  align-items: center;
}

.whatsapp-float-button {
  position: fixed;
  z-index: 35;
  right: calc(clamp(1rem, 2vw, 1.5rem) + env(safe-area-inset-right));
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 1rem 2rem rgb(19 26 30 / 22%);
  color: #ffffff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.2rem rgb(19 26 30 / 28%);
}

.whatsapp-float-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #111110, 0 1rem 2rem rgb(19 26 30 / 22%);
}

.whatsapp-float-button::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  width: max-content;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 0.45rem;
  background: #111110;
  color: #ffffff;
  content: attr(data-tooltip);
  font: 500 0.75rem/1.3 var(--font-body, sans-serif);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.25rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.whatsapp-float-button:hover::after,
.whatsapp-float-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float-button svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}

.site-footer,
.automobile-footer {
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

@media (max-width: 48rem) {
  .whatsapp-float-button {
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(5rem + env(safe-area-inset-bottom));
    width: 3.5rem;
    height: 3.5rem;
  }

  .brand-logo-header {
    width: min(8.5rem, 32vw);
  }
}

@media (hover: none) {
  .whatsapp-float-button::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-button,
  .whatsapp-float-button::after {
    transition: none;
  }
}
