/* Timed offer countdown — hero-friendly, compact, RTL-safe */

.offer-countdown {
  margin: 0.85rem 0 1.25rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #1b7f4e 35%, transparent);
  background: linear-gradient(145deg, #145a38 0%, #1b7f4e 58%, #218a55 100%);
  color: #fff;
  overflow: hidden;
}

.offer-countdown.is-expired {
  display: none;
}

.offer-countdown__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  padding: 0.9rem 1rem;
}

.offer-countdown__copy {
  display: grid;
  gap: 0.15rem;
  min-width: min(100%, 200px);
  flex: 1 1 12rem;
}

.offer-countdown__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.offer-countdown__label {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.offer-countdown__hint {
  font-size: 0.74rem;
  opacity: 0.72;
  line-height: 1.45;
  max-width: 28rem;
}

.offer-countdown__units {
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
  direction: ltr;
  flex: 0 0 auto;
}

.offer-countdown__unit {
  min-width: 3.1rem;
  padding: 0.4rem 0.35rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.offer-countdown__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.offer-countdown__key {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.65rem;
  opacity: 0.8;
}

.offer-countdown__sep {
  display: flex;
  align-items: center;
  font-weight: 800;
  opacity: 0.5;
  padding-bottom: 0.55rem;
}

.offer-countdown--compact .offer-countdown__hint {
  display: none;
}

.offer-countdown--compact .offer-countdown__unit {
  min-width: 2.7rem;
  padding: 0.32rem 0.28rem;
}

.offer-countdown--compact .offer-countdown__value {
  font-size: 1.05rem;
}

/* Tighten subtitle → countdown → CTA stack in service hero */
.service-detail-hero__subtitle:has(+ .offer-countdown) {
  margin-bottom: 0.75rem;
}

.service-detail-hero .offer-countdown + .service-detail-hero__actions {
  margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
  .offer-countdown {
    margin: 0.75rem 0 1.1rem;
  }

  .offer-countdown__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 0.9rem;
  }

  .offer-countdown__units {
    justify-content: space-between;
    width: 100%;
  }

  .offer-countdown__unit {
    flex: 1;
    min-width: 0;
  }

  .offer-countdown__sep {
    padding-bottom: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-countdown {
    transition: none;
  }
}
