/* Announcement bar — rotating offer / shipping messages.
   Redesign: 44px dark bar, centered message, chevron + dot navigation.
   See design_handoff_homepage/README.md §1. */

.announcement-bar {
  background-color: var(--ab-bg, #262521);
  color: var(--ab-text, #f2efe8);
}

.announcement-bar__rotator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 56px;
}

.announcement-bar__viewport {
  display: grid;
  grid-template: 1fr / 1fr;
  flex: 0 1 auto;
  min-width: 0;
}

.announcement-bar__slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.02, 0.01, 0, 0.95), visibility 0s linear 0.5s;
}

.announcement-bar__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.02, 0.01, 0, 0.95);
}

.announcement-bar__text,
.announcement-bar__text * {
  color: inherit;
}

.announcement-bar__text a,
.announcement-bar__cta {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar__sep {
  opacity: 0.4;
}

.announcement-bar__cta {
  white-space: nowrap;
}

/* Chevron navigation */
.announcement-bar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 6px 8px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.announcement-bar__nav:hover {
  opacity: 1;
}

/* Dot indicators */
.announcement-bar__dots {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}

.announcement-bar__dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.announcement-bar__dot:hover,
.announcement-bar__dot.is-active {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .announcement-bar__rotator {
    gap: 8px;
    padding: 0 32px;
  }

  .announcement-bar__slide {
    font-size: 12px;
  }

  .announcement-bar__dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__slide {
    transition: none;
  }
}
