/* Mantém o Maps junto ao atendimento por IA no cabeçalho da loja. */
.header-quick-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 2px solid #4285f4;
  background: #e8f0fe;
  border-radius: 8px;
  color: #174ea6;
  font-size: 13px;
  font-weight: 700;
}

.header-map-label {
  max-width: 94px;
  line-height: 1.15;
  white-space: normal;
}

.header-map svg {
  display: block;
}

.header-map:hover {
  background: #d2e3fc;
}

.header-map:focus-visible {
  outline: 2px solid #174ea6;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .header-quick-links {
    gap: 7px;
  }

  .header-map {
    gap: 4px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1.15;
  }
}

@media (max-width: 430px) {
  .header {
    column-gap: 8px;
  }

  .header .brand img {
    width: clamp(72px, 24vw, 102px);
  }

  .header .ai {
    gap: 4px;
  }

  .header .ai svg {
    width: 21px;
    height: 21px;
  }

  .header-map-label {
    max-width: 68px;
  }
}

/* Nas páginas internas, a IA e o Maps ocupam a mesma linha. */
.nav[data-nav-compact] .header-quick-links {
  gap: 8px;
  margin-left: auto;
}

.nav[data-nav-compact] .header-quick-links .cta.cta-ai {
  min-width: 0 !important;
  width: auto;
  margin: 0;
}

.nav[data-nav-compact] .header-quick-links .cta-ai-arrow {
  margin-left: 0 !important;
}

.nav[data-nav-compact] .header-map {
  white-space: nowrap;
}

.nav[data-nav-compact] .header-map:hover {
  background: #d2e3fc;
}

@media (min-width: 981px) and (max-width: 1200px) {
  .nav[data-nav-compact] .navlinks {
    gap: 10px;
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .nav[data-nav-compact] .header-quick-links .cta-ai-arrow {
    display: none;
  }
}

@media (max-width: 400px) {
  .nav[data-nav-compact] .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 31px;
  }

  .nav[data-nav-compact] .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav[data-nav-compact] .header-quick-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin: 0;
  }
}
