/* =========================================================
   CIHF Countdown
   Visual modular para o plugin cihf-countdown
   ========================================================= */

.cihf-countdown {
  width: 100%;
  text-align: center;
}

/* Oculta o título "Faltam", caso esteja ativo no shortcode */
.cihf-countdown__title {
  display: none;
}

.cihf-countdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 500px);
  margin: 0 auto;
}

/* Esconde os segundos */
.cihf-countdown__item:nth-child(4) {
  display: none;
}

.cihf-countdown__item {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 150px;
  border: 0;
  border-radius: 0;
  background: #f5f5f5;
  box-shadow: none;
  overflow: hidden;
}

.cihf-countdown__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 1rem 0.75rem;
  color: var(--cihf-black, #050505);
  font-family: var(--cihf-font-primary, "Ubuntu", Arial, sans-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: #f6f6f6;
}

.cihf-countdown__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
  color: var(--cihf-black, #050505);
  font-family: var(--cihf-font-primary, "Ubuntu", Arial, sans-serif);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 400;
  line-height: 1.1;
  background: #ebebeb;
}

.cihf-countdown__expired {
  margin: 1rem 0 0;
  color: var(--cihf-text-soft, #595959);
  font-weight: 700;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767px) {
  .cihf-countdown__grid {
    gap: 12px;
    width: min(100%, 390px);
  }

  .cihf-countdown__item {
    min-height: 96px;
  }

  .cihf-countdown__number {
    min-height: 66px;
    padding: 0.75rem 0.45rem;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .cihf-countdown__label {
    min-height: 30px;
    padding: 0.35rem 0.35rem;
    font-size: clamp(0.68rem, 3vw, 0.82rem);
  }
}

@media (max-width: 480px) {
  .cihf-countdown__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .cihf-countdown__item {
    min-height: 82px;
  }

  .cihf-countdown__number {
    min-height: 56px;
    padding: 0.6rem 0.25rem;
    font-size: clamp(1.45rem, 10vw, 2rem);
  }

  .cihf-countdown__label {
    min-height: 26px;
    padding: 0.3rem 0.2rem;
    font-size: clamp(0.62rem, 3vw, 0.75rem);
  }
}