/* -------------------------------- 

File#: _1_countdown
Title: CountDown
Descr: Widget to display a timer
Usage: codyhouse.co/license

-------------------------------- */
.countdown {
  display: flex;
  align-items: baseline;
}

.countdown__timer {
  display: inline-block;
}

.countdown__item {
  display: inline-block;
}
.countdown__item:nth-of-type(2)::after, .countdown__item:nth-of-type(3)::after {
  content: ":";
}

.countdown__value {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.countdown--has-labels .countdown__item {
  margin-right: var(--space-xs);
}
.countdown--has-labels .countdown__item:last-child {
  margin-right: 0;
}
.countdown--has-labels .countdown__item::after {
  content: "";
}
.countdown--has-labels .countdown__label {
  font-size: 0.45em;
}

.countdown--grid .countdown__timer {
  --timer-gap: var(--space-xxxs);
  display: flex;
  margin-left: calc(-1 * var(--timer-gap));
}
.countdown--grid .countdown__item {
  width: 1.6em;
  text-align: center;
  padding: var(--space-xxxxs) 0;
  margin-left: var(--timer-gap);
}
.countdown--grid .countdown__item::after {
  content: "";
}
.countdown--grid .countdown__label {
  display: block;
  text-transform: uppercase;
  font-size: 0.2em;
  letter-spacing: 0.1em;
  color: var(--color-contrast-medium);
}

.countdown__fallback {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
}