/* Promo notification pill — fixed floating banner with slide-in motion */

.ra-promo-banner-wrap {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 30px);
  box-sizing: border-box;
}

.ra-promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f1f3f5;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: Inter, sans-serif;
  font-size: 0.875rem;
  cursor: pointer;

  /* Hidden default state */
  opacity: 0;
  transform: translateY(-50px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ra-promo-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ra-promo-label {
  color: #334155;
  font-weight: 500;
}

.ra-promo-highlight {
  color: #6366f1;
  font-weight: 600;
  text-decoration: underline;
}

.ra-promo-highlight:hover {
  color: #2563eb;
}

.ra-promo-close {
  background: transparent;
  border: 0;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.ra-promo-close:hover {
  color: #64748b;
}

@media (max-width: 768px) {
  .ra-promo-banner-wrap {
    top: 10px;
    max-width: 90vw;
  }

  .ra-promo-banner {
    font-size: 0.775rem;
    max-width: 100%;
    padding: 5px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}
