.qrida-countdown {
  background-color: #fff; /* White background for the card */
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  margin: 2rem auto;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.qrida-countdown h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.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: 1rem;
}

.qrida-countdown .countdown-row span.countdown-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  height: 6.5rem;
  padding: 0.5rem;
  margin-right: 0;
  border-radius: 0.75rem;
  font-weight: normal;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

.qrida-countdown .countdown-row .countdown-amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.qrida-countdown .countdown-row .countdown-period {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

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

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

.qrida-countdown-dark h2 {
  color: var(--qridaOrange);
}
.qrida-countdown-dark .countdown-row span.countdown-section {
  background-color: var(--qridaOrange);
}
.qrida-countdown-dark .countdown-date-end {
  color: #333;
}
.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: #333;
}
.qrida-countdown-light .countdown-date-end strong {
  color: var(--greyDarker);
}

.qrida-countdown .countdown-message {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e66c0d;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .qrida-countdown {
    padding: 1.5rem;
    gap: 1rem;
  }

  .qrida-countdown .countdown-row {
    gap: 0.5rem;
  }

  .qrida-countdown .countdown-row span.countdown-section {
    min-width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.5rem;
  }

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

  .qrida-countdown .countdown-row .countdown-period {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .qrida-countdown {
    padding: 1rem;
  }

  .qrida-countdown .countdown-row {
    gap: 0.25rem;
    flex-wrap: wrap; /* Allow wrapping on very small screens if needed */
  }

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

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

  .qrida-countdown .countdown-row .countdown-period {
    font-size: 0.7rem;
  }

  .qrida-countdown .countdown-date-end {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
  }
}
