/** Shopify CDN: Minification failed

Line 94:13 Expected identifier but found whitespace
Line 94:15 Unexpected "{"
Line 94:24 Expected ":"

**/
.countdown-image-text {
  padding: 30px 0;
  background: #fff;
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.countdown-row.reverse {
  flex-direction: row-reverse;
}

.countdown-image {
  flex: 1 1 45%;
}

.countdown-image img {
  border-radius: 4px;
  width: 100%;
  height: auto;
}

.countdown-content {
  flex: 1 1 50%;
  color: #612325;
}

.countdown-heading {
  font-family: var(--font-heading2);
  font-size: 32px;
  line-height: 1.1;
  color: #612325;
  margin-bottom: 0.5rem;
  margin-top: 0px;
}

.countdown-subheading {
  font-size: 18px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.countdown-btn {
  background: #d483b4;
  color: #612325;
  padding: 6px 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-body-family-wide);
  font-size: 12px;
  letter-spacing: 0.96px;
  display: inline-block;
  transition: 0.3s;
  margin-bottom: 30px;
}

.countdown-btn:hover {
  background: #ebeabd;
  color: #612325;
}

/* Timer Layout */
.countdown-image-text .timer {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.countdown-image-text .timer-segment {
  text-align: center;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Digit container */
.countdown-image-text .digit-container {
  height: 60px;
  width: 60px;
  background: {{ section.settings.bg_color }};
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* keep your existing CSS; just add these */
.countdown-image-text .digit-inner {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  line-height: 1;
}

/* the sliding wrapper */
.countdown-image-text .digit-track {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;         /* stack current + next vertically */
  transition: transform 0.35s ease;
  will-change: transform;
}

/* a single digit row (centers text perfectly) */
.countdown-image-text .digit-row {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;            /* vertical center */
  justify-content: center;        /* horizontal center */
}

/* your number styling stays the same */
.countdown-image-text .digit-row span {
  font-size: 24px;
  font-weight: 100;
  color: #612325;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}


.digit-in {
  transform: translateY(100%);
  opacity: 0;
}

.digit-next.digit-in {
  transform: translateY(0);
  opacity: 1;
}

.digit-out {
  transform: translateY(-100%);
  opacity: 0;
}

/* Label */
.countdown-image-text .timer small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #612325;
}

/* Responsive */
@media screen and (max-width: 749px) {
  .countdown-image-text .countdown-row {
    flex-direction: column;
    text-align: center;
  }

  .countdown-image-text .timer {
    justify-content: center;
  }
  .countdown-image-text { 
    padding: 20px 0;
  }
}


/* Countdown digits — mimic proven banner logic */
.countdown-image-text .digit-container {
  height: 60px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  background: #e9e6f3;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-image-text .digit-inner {
  position: relative;
  width: 100%;
  height: 40px;                /* fixed inner height for slide baseline */
}

.countdown-image-text .digit-inner span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;           /* centers text vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 100;
  color: #612325;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.4s ease-in-out;
  transform: translateY(0%);
}

/* smaller tweak for mobile */
@media (max-width: 768px) {
  .countdown-image-text .digit-inner {
    top: 50%;
    transform: translateY(-30px);
  }
  .countdown-image-text .digit-inner span {
    top: 0;
  }
}
