.countdown-display {
  font-size: 16px;
  font-weight: 600;
  color: #ff0000;
  direction: ltr;
}

.countdown-size {
  max-width: 95px !important;
}

.countdown-text h5 {
  font-size: 16px;
  font-weight: 600;
  color: #d32f2f;
  margin-bottom: 10px;
}

.countdown-display span {
  padding: 0 5px;
}

.archive-sales-countdown-container-basic {
  display: flex !important;
  flex-wrap: nowrap !important;      /* no wrapping of children */
  justify-content: center;
  align-items: center;
}

.archive-sales-countdown-container-basic .countdown-display {
  white-space: nowrap !important;    /* prevent internal wrap */
}

/* Make sure individual number spans don’t inadvertently wrap */
.archive-sales-countdown-container-basic .countdown-display span {
  display: inline-block;
  width: auto !important;
  padding: 0 4px;
}

/* 1. Make the basic cart container stack on mobile */
@media (max-width: 480px) {
  .archive-sales-countdown-container-basic {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* 2. Ensure the “no‑end‑date” message can break and center */
  .archive-sales-countdown-container-basic .no-end-date-message {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
    font-size: 12px !important;    /* smaller on phone */
    line-height: 1.2 !important;
  }
}

.expired-message {
  font-size: 14px;
  font-weight: 700;
  color: #d32f2f;
}

.no-end-date-message {
  font-size: 14px;
  font-weight: 500;
  color: #ff0000;
  margin-bottom: 10px;
}

.red-color {
  color: #ff0000;
}

/* Archive Page Countdown (for non-cart views) */
.archive-sales-countdown-container {
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid #ff4d4d;
  z-index: 20;
  position: inherit;
}

.archive-sales-countdown-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-left: 20px;
}

/* Placeholder for non-sale products */
.archive-sales-countdown-placeholder {
  visibility: hidden;
  height: 50px; /* Same height as the countdown timer container */
}

/* For no-sale products, remove bottom border but maintain space */
.archive-sales-countdown-container.no-sale {
  border-bottom: 3px solid transparent;
}

/* Responsive design: Stack countdown and text vertically on small screens */
@media (max-width: 768px) {
  .archive-sales-countdown-container {
    flex-direction: column;
  }

  .countdown-display {
    font-size: 12px;
    font-weight: 500;
  }

  .countdown-text {
    font-size: 14px;
    font-weight: 500;
  }

  h5 {
    margin-bottom: 0 !important;
  }

  .archive-sales-countdown-text {
    font-size: 12px;
    font-weight: 500;
    margin-left: 7px;
  }
}
