/* Block: pdp-promo-bar */
.pdp-promo-bar {
  width: 100%;
  background-color: #000000;
  display: flex;
  /* Always reserve space */
  position: relative;
  height: 60px;
  opacity: 0;
  /* Start invisible */
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
}

/* Modifier: loading state */
.pdp-promo-bar--loading {
  opacity: 0;
  pointer-events: none;
  /* Prevent interaction while loading */
}

/* Modifier: active state */
.pdp-promo-bar--active {
  opacity: 1;
  /* Fade in when content is ready */
}

/* Modifier: hidden state */
.pdp-promo-bar--hidden {
  display: none;
  /* Only hide if no campaign exists */
  min-height: 0;
}

/* Element: background */
.pdp-promo-bar__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Element: content wrapper */
.pdp-promo-bar__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 4px 80px;
  height: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Element: logo container */
.pdp-promo-bar__logo {
  width: 52px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Element: logo image */
.pdp-promo-bar__logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Element: primary text */
.pdp-promo-bar__text {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  color: #ffffff;
  flex-shrink: 0;
}

/* Element: call-to-action link */
.pdp-promo-bar__cta {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: #ffffff;
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Element modifier: CTA hover state */
.pdp-promo-bar__cta:hover {
  opacity: 0.8;
}

/* Element: sponsored label */
.pdp-promo-bar__sponsored {
  position: absolute;
  top: 8px;
  right: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Responsive styles */
@media (max-width: 768px) {
  .pdp-promo-bar__content {
    padding: 8px 16px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .pdp-promo-bar__text {
    font-size: 14px;
  }

  .pdp-promo-bar__cta {
    font-size: 14px;
  }

  .pdp-promo-bar__sponsored {
    top: 4px;
    right: 8px;
    font-size: 10px;
  }
}