/* Interface final do cabeçalho e atendimento flutuante. */
.site-header .header-top .header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.site-header .header-top #open-location,
.site-header .header-top #open-upload,
.site-header .header-top a.header-action-card.catalog-download {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 0 !important;
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #ffd024 !important;
  color: #102a50 !important;
  box-shadow: 0 4px 14px rgba(5, 35, 70, .2) !important;
  font-family: inherit !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  animation: announcementCta 2.2s ease-in-out infinite !important;
  transform: none !important;
  filter: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.site-header .header-top #open-location::before,
.site-header .header-top #open-upload::before,
.site-header .header-top a.header-action-card.catalog-download::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 1 !important;
  top: -60% !important;
  right: auto !important;
  bottom: -60% !important;
  left: -45% !important;
  width: 28% !important;
  height: auto !important;
  transform: rotate(20deg) !important;
  background: rgba(255, 255, 255, .62) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  animation: announcementShine 3s ease-in-out infinite !important;
}

.site-header .header-top #open-location::after,
.site-header .header-top #open-upload::after,
.site-header .header-top a.header-action-card.catalog-download::after {
  content: none !important;
  display: none !important;
}

.site-header .header-top #open-location .header-action-icon,
.site-header .header-top #open-upload .header-action-icon,
.site-header .header-top a.header-action-card.catalog-download .header-action-icon {
  display: none !important;
}

.site-header .header-top #open-location .header-action-icon svg,
.site-header .header-top #open-upload .header-action-icon svg,
.site-header .header-top a.header-action-card.catalog-download .header-action-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.site-header .header-top #open-location .header-action-copy,
.site-header .header-top #open-upload .header-action-copy,
.site-header .header-top a.header-action-card.catalog-download .header-action-copy {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  clip: auto !important;
  white-space: nowrap !important;
}

.site-header .header-top #open-location .header-action-copy b,
.site-header .header-top #open-upload .header-action-copy b,
.site-header .header-top a.header-action-card.catalog-download .header-action-copy b {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #102a50 !important;
  font-family: inherit !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.site-header .header-top #open-location:hover,
.site-header .header-top #open-upload:hover,
.site-header .header-top a.header-action-card.catalog-download:hover {
  transform: translateY(-1px) !important;
  background: #ffd024 !important;
  box-shadow: 0 5px 19px rgba(255, 208, 36, .42) !important;
  filter: brightness(1.05) !important;
}

.site-header .header-top #open-location:focus-visible,
.site-header .header-top #open-upload:focus-visible,
.site-header .header-top a.header-action-card.catalog-download:focus-visible {
  outline: 3px solid rgba(7, 86, 164, .28) !important;
  outline-offset: 3px !important;
}

/* Janela de atendimento inspirada na referência enviada. */
.whatsapp-widget {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  pointer-events: none;
}

.whatsapp-help-card {
  position: relative;
  width: 310px;
  overflow: visible;
  border: 1px solid rgba(20, 87, 70, .12);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 43, 70, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
}

.whatsapp-help-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-help-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: #fff;
  transform: rotate(45deg);
  border-right: 1px solid rgba(20, 87, 70, .12);
  border-bottom: 1px solid rgba(20, 87, 70, .12);
}

.whatsapp-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 14px 12px 18px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(115deg, #11ad63, #29cf83);
  color: #fff;
}

.whatsapp-help-head strong {
  font-size: 18px;
  line-height: 1.2;
}

.whatsapp-help-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.whatsapp-help-close:hover { background: rgba(255, 255, 255, .28); transform: scale(1.04); }
.whatsapp-help-close:focus-visible { outline: 3px solid rgba(255, 255, 255, .55); outline-offset: 2px; }

.whatsapp-help-body { padding: 17px 17px 16px; }

.whatsapp-help-contact {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.whatsapp-help-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 8px;
  border-radius: 50%;
  background: #eef6fd;
  border: 1px solid #d7e8f6;
}

.whatsapp-help-avatar img { display: block; width: 100%; height: auto; }
.whatsapp-help-copy { display: block; min-width: 0; }
.whatsapp-help-copy strong,
.whatsapp-help-copy small,
.whatsapp-help-copy b { display: block; }
.whatsapp-help-copy strong { color: #16324c; font-size: 14px; line-height: 1.3; }
.whatsapp-help-copy small { margin-top: 3px; color: #68778a; font-size: 12px; line-height: 1.35; }
.whatsapp-help-copy b { margin-top: 5px; color: #159b55; font-size: 13px; }

.whatsapp-help-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 15px;
  border-radius: 11px;
  background: #159b55;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(21, 155, 85, .2);
  transition: transform .18s ease, background-color .18s ease;
}

.whatsapp-help-cta:hover { background: #108747; transform: translateY(-1px); }
.whatsapp-help-cta svg { width: 18px; height: 18px; fill: currentColor; }

.whatsapp-widget .floating-wa {
  position: static !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: auto !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 3px solid #fff !important;
  border-radius: 999px !important;
  background: #18a957 !important;
  color: #fff !important;
  box-shadow: 0 11px 28px rgba(12, 100, 58, .3) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  pointer-events: auto;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.whatsapp-widget .floating-wa:hover {
  transform: translateY(-2px) !important;
  background: #128d49 !important;
  box-shadow: 0 14px 32px rgba(12, 100, 58, .36) !important;
}

.whatsapp-widget .floating-wa svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.whatsapp-widget .floating-wa-label { display: block !important; font-size: 13px !important; }

@media (max-width: 1180px) and (min-width: 821px) {
  .site-header .header-top { gap: 14px !important; }
  .site-header .header-top .brand-logo,
  .site-header .header-top .brand-logo img { width: 170px !important; height: 53px !important; }
  .site-header .header-top #open-location,
  .site-header .header-top #open-upload,
  .site-header .header-top a.header-action-card.catalog-download {
    width: 166px !important;
    min-width: 166px !important;
    max-width: 166px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 6px 10px !important;
  }
  .site-header .header-top #open-location .header-action-copy b,
  .site-header .header-top #open-upload .header-action-copy b,
  .site-header .header-top a.header-action-card.catalog-download .header-action-copy b { font-size: 9px !important; }
}

@media (max-width: 820px) {
  .site-header .header-top #open-location,
  .site-header .header-top #open-upload { display: none !important; }
  .site-header .header-top a.header-action-card.catalog-download {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 6px 9px !important;
  }
  .site-header .header-top a.header-action-card.catalog-download::before { display: block !important; }
  .site-header .header-top a.header-action-card.catalog-download .header-action-copy {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
  }
  .site-header .mobile-navigation-actions { grid-template-columns: minmax(0, 1fr) !important; gap: 9px !important; }
  .site-header .mobile-navigation-actions button,
  .site-header .mobile-navigation-actions a {
    box-sizing: border-box !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffd024 !important;
    color: #102a50 !important;
    box-shadow: 0 4px 14px rgba(5, 35, 70, .2) !important;
    font-family: inherit !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }
  .site-header .mobile-navigation-actions button strong,
  .site-header .mobile-navigation-actions a strong {
    font: inherit !important;
    color: inherit !important;
  }
  .whatsapp-widget { right: 14px; bottom: 14px; }
  .whatsapp-help-card { width: min(300px, calc(100vw - 28px)); }
  .whatsapp-widget .floating-wa {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
  }
  .whatsapp-widget .floating-wa-label { display: none !important; }
}

@media (max-width: 360px) {
  .whatsapp-help-card { width: calc(100vw - 20px); }
  .whatsapp-help-body { padding: 14px; }
  .whatsapp-help-contact { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
  .whatsapp-help-avatar { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-top #open-location,
  .site-header .header-top #open-upload,
  .site-header .header-top a.header-action-card.catalog-download,
  .whatsapp-help-card,
  .whatsapp-help-close,
  .whatsapp-help-cta,
  .whatsapp-widget .floating-wa { transition: none !important; }
  .site-header .header-top #open-location,
  .site-header .header-top #open-upload,
  .site-header .header-top a.header-action-card.catalog-download,
  .site-header .header-top #open-location::before,
  .site-header .header-top #open-upload::before,
  .site-header .header-top a.header-action-card.catalog-download::before { animation: none !important; }
  .site-header .header-top #open-location:hover,
  .site-header .header-top #open-upload:hover,
  .site-header .header-top a.header-action-card.catalog-download:hover,
  .whatsapp-widget .floating-wa:hover { transform: none !important; }
}
