:root {
  --eg-color-orange: #eb8731;
  --eg-font: "Montserrat", sans-serif;
  --eg-countdown-orange: #ed7422;
  --eg-countdown-line: #f3b183;
  --eg-countdown-bg: #fff;
}

.elementor-widget-eg-countdown,
.elementor-widget-eg-countdown > .elementor-widget-container {
  width: 100%;
}

.eg-countdown,
.eg-countdown__units {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.eg-countdown {
  display: flex;
  box-sizing: border-box;
  container-type: inline-size;
  font-family: var(--eg-font);
}

.eg-countdown__units {
  display: flex;
  align-items: flex-start;
}

.eg-countdown--finished .eg-countdown__units {
  display: none;
}

.eg-countdown__unit {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.eg-countdown__value {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  background: var(--eg-countdown-bg);
  border-top: 1px solid var(--eg-countdown-line);
  border-bottom: 1px solid var(--eg-countdown-line);
  color: var(--eg-countdown-orange);
  font-size: 1.45rem;
  font-size: clamp(1.25rem, 13cqw, 3.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.eg-countdown__unit:first-child .eg-countdown__value {
  border-left: 1px solid var(--eg-countdown-line);
  border-radius: 10px 0 0 10px;
  border-radius: 6.25cqw 0 0 6.25cqw;
}

.eg-countdown__unit:last-child .eg-countdown__value {
  border-right: 1px solid var(--eg-countdown-line);
  border-radius: 0 10px 10px 0;
  border-radius: 0 6.25cqw 6.25cqw 0;
}

.eg-countdown__unit + .eg-countdown__unit::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  top: 3.2cqw;
  left: 0;
  width: 1px;
  height: calc(2.55rem - 0.8rem);
  height: 18.6cqw;
  background: repeating-linear-gradient(
    to bottom,
    var(--eg-countdown-line) 0 3px,
    transparent 3px 6px
  );
}

.eg-countdown__label {
  max-width: 100%;
  margin-top: 0.4rem;
  margin-top: 2.4cqw;
  color: var(--eg-countdown-orange);
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-size: clamp(0.72rem, 4.4cqw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.eg-countdown__done {
  display: none;
  margin: 0;
  color: var(--eg-countdown-orange);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.eg-countdown--finished .eg-countdown__done {
  display: block;
}

.eg-countdown-empty {
  margin: 0;
  color: var(--eg-countdown-orange);
  font-family: var(--eg-font);
  font-size: 0.95rem;
  font-weight: 700;
}
