/* Live Draw Countdown block — floating bar overlapping the block above */

.ep-countdown-block {
  /* Flat full-width band (soft violet) between the hero and the content.
     Breaks out to the viewport edges regardless of the block's alignment,
     the same centred-container technique used for the hero. */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 2.5rem;
  background: #f5f2fc;
  border-top: 1px solid #4c1d9540;
  border-bottom: 1px solid #4c1d9540;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.ep-countdown {
  /* Content aligned to the site container width. */
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ep-countdown__label {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--ep-fs-xl);
  color: #242038;
  white-space: nowrap;
}

.ep-countdown__timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: center;
}

.ep-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  min-width: 3.75rem;
}

.ep-countdown__num {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: var(--ep-fs-3xl);
  color: #4c1d95;
  font-variant-numeric: tabular-nums;
}

.ep-countdown__unit small {
  margin-top: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--ep-fs-3xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.ep-countdown__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 30px;
  background: #4c1d9540;
}

.ep-countdown__expired {
  display: none;
  flex: 1 1 auto;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #16bac5;
  font-size: var(--ep-fs-lg);
}

.ep-countdown.is-expired .ep-countdown__timer {
  display: none;
}
.ep-countdown.is-expired .ep-countdown__expired {
  display: block;
}

.ep-countdown__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .ep-countdown {
    flex-direction: column;
    gap: 1rem;
  }
  .ep-countdown__label {
    white-space: normal;
    text-align: center;
  }
  .ep-countdown__timer {
    gap: 0.75rem;
  }
  .ep-countdown__num {
    font-size: var(--ep-fs-2xl);
  }
  .ep-countdown__btn {
    width: 100%;
    text-align: center;
  }
}
