/* dup-authen-topbar
   Barra própria, no lugar do #topbar do header quando está no ar.
   Altura fixa: a troca de chamada nunca empurra o header */

.dup-topbar-config {
  display: none !important;
}

.dup-topbar {
  --dup-topbar-fundo: #0e0e0e;
  --dup-topbar-texto: #ffffff;
  --dup-topbar-destaque: #fbaf18;
  --dup-topbar-altura: 40px;

  background: var(--dup-topbar-fundo);
  color: var(--dup-topbar-texto);
}

/* Barra no ar antes do #topbar, como irmã (tag sem a div de teste): esconde a faixa de frete.
   ~ e não +: continua valendo se algum script entrar entre os dois.
   !important porque o netzee põe display:block inline no #topbar.
   Com a div de teste em volta, a barra não é irmã do #topbar: a regra não casa e a faixa segue normal. */
.dup-topbar ~ #topbar {
  display: none !important;
}

/* O JS põe esta classe quando a barra está visível em qualquer lugar,
   inclusive com a div de teste aberta no DevTools, onde a regra acima não alcança */
#topbar.dup-topbar-oculto {
  display: none !important;
}

.dup-topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--dup-topbar-altura);
  padding: 0 40px;
}

.dup-topbar__trilho {
  position: relative;
  flex: 1;
  height: 100%;
  max-width: 820px;
  overflow: hidden;
}

.dup-topbar .dup-topbar__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.dup-topbar .dup-topbar__slide.is-ativo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dup-topbar .dup-topbar__slide,
.dup-topbar .dup-topbar__slide p,
.dup-topbar .dup-topbar__slide a,
.dup-topbar .dup-topbar__slide span {
  margin: 0;
  overflow: hidden;
  color: var(--dup-topbar-texto) !important;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dup-topbar .dup-topbar__slide strong,
.dup-topbar .dup-topbar__slide b {
  color: var(--dup-topbar-destaque);
  font-weight: 700;
}

.dup-topbar .dup-topbar__slide a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dup-topbar__seta {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dup-topbar-texto);
  opacity: 0.7;
  cursor: pointer;
}

.dup-topbar__seta::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.dup-topbar__seta--anterior {
  left: 4px;
}

.dup-topbar__seta--anterior::before {
  transform: rotate(-135deg);
}

.dup-topbar__seta--proxima {
  right: 4px;
}

.dup-topbar__seta--proxima::before {
  transform: rotate(45deg);
}

.dup-topbar__seta:hover,
.dup-topbar__seta:focus-visible {
  opacity: 1;
}

.dup-topbar__contador {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.dup-topbar__cont-label {
  opacity: 0.85;
}

.dup-topbar__cont-relogio {
  display: flex;
  gap: 2px;
}

.dup-topbar__cont-item {
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 11px;
}

/* Dígitos de largura fixa: o contador não "dança" a cada segundo */
.dup-topbar__cont-item strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dup-topbar__cont-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Com contador, as setas ficam do lado das chamadas, não do contador */
.dup-topbar.has-contador .dup-topbar__seta--proxima {
  right: auto;
  left: 28px;
}

@media (max-width: 959px) {
  .dup-topbar__inner {
    gap: 8px;
    padding: 0 32px;
  }

  .dup-topbar .dup-topbar__slide,
  .dup-topbar .dup-topbar__slide a,
  .dup-topbar .dup-topbar__slide span,
  .dup-topbar .dup-topbar__slide p {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  /* Até 2 linhas no mobile: chamada longa não cabe em uma */
  .dup-topbar .dup-topbar__slide > * {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
    white-space: normal;
  }

  /* No mobile não cabe chamada + contador: ficam as chamadas */
  .dup-topbar__contador {
    display: none;
  }

  .dup-topbar.has-contador .dup-topbar__seta--proxima {
    right: 4px;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dup-topbar .dup-topbar__slide {
    transition: none;
  }
}
