/* Countdown Timer Styles */
.countdown-timer-container {
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 100%; /* Max width to 100% for full responsiveness */
  margin: auto;
  box-sizing: content-box; /* Override LearnDash box-sizing */
}

.countdown-timer-text-above, 
.countdown-timer-text-below {
  font-size: 20px; /* Increased font size */
  font-weight: bold; /* Make text bold */
  margin: 10px 0;
  color: #333;
}

/* Flex container for countdown */
.countdown-timer-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Wrap children on smaller screens */
  gap: 10px; /* Space between flex items */
}

/* Flex items for days, hours, minutes, seconds */
.countdown-timer-unit {
  background-color: #e9e9e9;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.1);
  /* Flex item properties */
  flex: 1 1 80px; /* Grow to fill space, don't shrink below 80px */
  text-align: center;
}

/* Unit labels (Days, Hours, etc.) */
.countdown-timer-unit span {
  font-size: 14px;
  color: #666;
}

/* Button styles */
.countdown-timer-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.countdown-timer-button:hover {
  background-color: #0056b3;
}

/* Responsive design adjustments */
@media (max-width: 767px) {
  .countdown-timer-container {
      padding: 15px;
  }

  .countdown-timer-unit {
      flex-basis: 50%; /* Take up half the container on small screens */
      font-size: 18px; /* Smaller font size on small screens */
  }

  .countdown-timer-unit span {
      font-size: 12px;
  }

  .countdown-timer-button {
      padding: 8px 16px;
      font-size: 16px; /* Smaller button text on small screens */
  }

  .countdown-timer-text-above, 
  .countdown-timer-text-below {
      font-size: 16px; /* Larger text above/below timer on small screens */
      font-weight: bold; /* Keep text bold on small screens */
  }
}
