.qrida-countdown {
  background-color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  margin: 1.5rem auto;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qrida-countdown h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.qrida-countdown .is-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  padding: 0;
  box-shadow: none;
  background-color: transparent;
}

.qrida-countdown .countdown-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.qrida-countdown .countdown-row span.countdown-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  height: 4.25rem;
  padding: 0.35rem;
  border-radius: 0.5rem;
  color: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.qrida-countdown .countdown-row .countdown-amount {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.qrida-countdown .countdown-row .countdown-period {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.qrida-countdown .countdown-date-end {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--textColor);
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}

.qrida-countdown .countdown-date-end strong {
  font-weight: 700;
}

.qrida-countdown .countdown-date-end span {
  font-weight: 500;
}

/* Theme variants */
.qrida-countdown-dark h2 {
  color: var(--qridaOrange);
}
.qrida-countdown-dark .countdown-row span.countdown-section {
  background: var(--qridaOrange);
}
.qrida-countdown-dark .countdown-date-end {
  color: var(--greyDarker);
}
.qrida-countdown-dark .countdown-date-end strong {
  color: var(--qridaOrange);
}

.qrida-countdown-light h2 {
  color: var(--greyDarker);
}
.qrida-countdown-light .countdown-row span.countdown-section {
  background-color: var(--greyDarker);
}
.qrida-countdown-light .countdown-date-end {
  color: var(--greyDarker);
}
.qrida-countdown-light .countdown-date-end strong {
  color: var(--greyDarker);
}

.qrida-countdown .countdown-message {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orangeEarthy);
}

/* Hero banner variant — stacked above badges in program-hero-meta */
.qrida-countdown-hero {
  background-color: transparent;
  box-shadow: none;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 0.5rem;
  gap: 0.35rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.qrida-countdown-hero .countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.qrida-countdown-hero .countdown-row {
  gap: 0.25rem;
  align-items: baseline;
}

.qrida-countdown-hero .countdown-row span.countdown-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-width: auto;
  height: auto;
  padding: 0;
  flex-direction: row;
  gap: 0.2rem;
  color: var(--white);
}

.qrida-countdown-hero .countdown-row .countdown-amount {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.qrida-countdown-hero .countdown-row .countdown-period {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  opacity: 0.75;
  margin-right: 0.35rem;
}

.qrida-countdown-hero .countdown-message {
  color: var(--white);
  font-size: 0.8rem;
}

/* When hero has no background image (text-dark variant) */
.text-dark .qrida-countdown-hero {
  background-color: var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.text-dark .qrida-countdown-hero .countdown-row .countdown-amount {
  color: var(--qridaOrange);
}

.text-dark .qrida-countdown-hero .countdown-row .countdown-period {
  color: var(--greyDarker);
}

.text-dark .qrida-countdown-hero .countdown-label {
  color: var(--greyDarker);
}

.text-dark .qrida-countdown-hero .countdown-message {
  color: var(--orangeEarthy);
}

/* Tablet */
@media (max-width: 768px) {
  .qrida-countdown {
    padding: 1rem 1.25rem;
    gap: 0.5rem;
  }

  .qrida-countdown .countdown-row span.countdown-section {
    min-width: 3.75rem;
    height: 3.75rem;
  }

  .qrida-countdown .countdown-row .countdown-amount {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .qrida-countdown {
    padding: 0.75rem 1rem;
    max-width: 100%;
  }

  .qrida-countdown .countdown-row {
    gap: 0.25rem;
    flex-wrap: wrap;
  }

  .qrida-countdown .countdown-row span.countdown-section {
    min-width: 3.5rem;
    height: 3.5rem;
  }

  .qrida-countdown .countdown-row .countdown-amount {
    font-size: 1.3rem;
  }

  .qrida-countdown .countdown-date-end {
    font-size: 0.8rem;
  }
}
