/* Header Marquee – ticker below header, gradient edges, Advertisement label */

.ih-header-marquee-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  background: #281f15;
  color: #eee;
  font-family: inherit;
  z-index: 90;
  overflow: hidden;
}

.ih-header-marquee-inner {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
}

.ih-header-marquee-label {
  flex-shrink: 0;
  padding: 0 14px 0 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ih-header-marquee-track {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.ih-header-marquee-slide {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0 16px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
}

.ih-header-marquee-slide.ih-marquee-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ih-header-marquee-slide.ih-marquee-exit {
  opacity: 0;
  transform: translateX(-100%);
}

.ih-header-marquee-slide .ih-marquee-text {
  font-size: 0.95rem;
  line-height: 1.3;
}

.ih-header-marquee-slide .ih-marquee-emoji,
.ih-header-marquee-slide .ih-marquee-img {
  font-size: 1.2rem;
  line-height: 1;
}

.ih-header-marquee-slide .ih-marquee-img img {
  max-height: 28px;
  width: auto;
  vertical-align: middle;
}

.ih-header-marquee-slide .ih-marquee-cta {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  background-color: var(--wp--preset--color--accent-2);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}

.ih-header-marquee-slide .ih-marquee-cta:hover {
  background: #1d4ed8;
  color: #fff;
}

/* Fade gradients on left and right of track */
.ih-header-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.ih-header-marquee-fade-left {
  left: 0;
  width: 48px;
  background: linear-gradient(to right, #281f15 0%, transparent 100%);
}

.ih-header-marquee-fade-right {
  right: 0;
  width: 48px;
  background: linear-gradient(to left, #281f15 0%, transparent 100%);
}

@media (max-width: 768px) {
  .ih-header-marquee-inner {
    min-height: 44px;
    padding: 6px 0;
  }

  .ih-header-marquee-label {
    padding: 0 10px 0 12px;
    font-size: 0.65rem;
  }

  .ih-header-marquee-slide {
    padding: 0 12px;
    gap: 8px 10px;
  }

  .ih-header-marquee-slide .ih-marquee-text {
    font-size: 0.85rem;
  }

  .ih-header-marquee-slide .ih-marquee-cta {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .ih-header-marquee-fade-left,
  .ih-header-marquee-fade-right {
    width: 32px;
  }
}
