/**
 * Promo Topbar — portado de FlashSaleBanner.tsx de Lovable
 * bg: foreground = #1E2D26 (verde oscuro), no teal
 */

.bcc-promo-topbar {
  position: relative;
  width: 100%;
  background-color: #1E2D26; /* bg-foreground exacto de Lovable */
  color: #fff;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.bcc-promo-topbar__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.bcc-promo-topbar__message {
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Countdown blocs */
.bcc-promo-topbar__countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bcc-cd-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bcc-cd-cell {
  background-color: #DA053A; /* destructive = conseil */
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  width: 3rem; height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 6px 1px rgba(218,5,58,0.3);
  font-family: var(--bcc-font-sans);
}

.bcc-cd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.bcc-cd-sep {
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 1rem; /* offset para alinear con el número */
}

.bcc-promo-topbar__close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  min-height: auto;
  min-width: auto;
}
.bcc-promo-topbar__close:hover { opacity: 1; }

@media (max-width: 640px) {
  .bcc-promo-topbar__inner { gap: 0.75rem; }
  .bcc-cd-cell { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
  .bcc-promo-topbar__message { font-size: 0.75rem; }
}
