/**
 * Botão Baixar — canto direito do header (estilo PL2W, azul/branco).
 */

.download-top-bar-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.download-top-bar--header {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 0;
  background: none;
  border: none;
}

.download-top-bar__combo {
  display: inline-flex;
  align-items: stretch;
  height: 2rem;
  max-width: 100%;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.28));
}

.download-top-bar__trust {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.55rem 0 0.4rem;
  background: #101014;
  border: 1px solid #3b82f6;
  border-right: none;
  border-radius: 0.35rem 0 0 0.35rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 100%, 0 100%);
}

.download-top-bar__trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgb(59 130 246 / 0.18);
  border: 1px solid rgb(96 165 250 / 0.45);
  color: #60a5fa;
  flex-shrink: 0;
}

.download-top-bar__trust-badge [data-lucide] {
  width: 0.7rem;
  height: 0.7rem;
}

.download-top-bar__trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
  min-width: 0;
  line-height: 1.05;
}

.download-top-bar__trust-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #60a5fa;
}

.download-top-bar__trust-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.download-top-bar__trust-brand-icon {
  width: 0.65rem;
  height: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

.download-top-bar__trust-brand-text {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 6.5rem;
}

.download-top-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 2rem;
  padding: 0 0.7rem;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border: 1px solid #93c5fd;
  border-radius: 0.35rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, filter 0.2s ease;
}

.download-top-bar__cta [data-lucide] {
  width: 0.85rem;
  height: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.download-top-bar__cta:hover {
  background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
  filter: brightness(1.05);
}

.download-top-bar__cta:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Com badge de confiança visível (telas maiores) */
@media (min-width: 1280px) {
  .download-top-bar__trust {
    display: inline-flex;
  }

  .download-top-bar__cta {
    margin-left: -0.5rem;
    padding: 0 0.8rem 0 1rem;
    border-left: none;
    border-radius: 0 0.35rem 0.35rem 0;
    clip-path: polygon(0.5rem 0, 100% 0, 100% 100%, 0 100%);
  }

  .download-top-bar__trust-brand-text {
    max-width: 7.5rem;
  }
}

@media (min-width: 640px) {
  .download-top-bar__cta {
    padding: 0 0.85rem;
    font-size: 0.8125rem;
  }
}

/* Checkout: esconde barra */
html:has(.checkout-flow-page) #download-top-bar {
  display: none !important;
}

/* Último item — depois de Entrar, colado no canto direito */
.site-header__actions .download-top-bar-item {
  margin-left: 0.65rem;
  margin-right: -0.25rem;
}

@media (min-width: 640px) {
  .site-header__actions .download-top-bar-item {
    margin-left: 0.85rem;
    margin-right: -0.45rem;
  }
}

@media (max-width: 639px) {
  .download-top-bar__cta span {
    display: none;
  }

  .download-top-bar__cta {
    width: 2rem;
    padding: 0;
  }
}