/**
 * Kampány kinézet a FlipDown (PButcher) órához — színek, lekerekítés, elrendezés.
 * Az animáció és a rotor-arányok az eredeti flipdown-base.css-ből jönnek.
 */

.form__countdown-flipdown {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0 0.25rem;
}

#responseFlipdown.flipdown {
  width: auto;
  max-width: 100%;
  height: auto;
  transform: scale(0.92);
  transform-origin: center top;
}

#responseFlipdown.flipdown.flipdown__theme-campaign {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Óra : perc : mp — napok rejtve */
#responseFlipdown .rotor-group:first-child {
  display: none !important;
}

#responseFlipdown .rotor-group-heading:before {
  color: rgba(244, 239, 232, 0.72) !important;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

#responseFlipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):before,
#responseFlipdown .rotor-group:nth-child(n + 2):nth-child(-n + 3):after {
  background-color: rgba(192, 138, 85, 0.85) !important;
}

.flipdown.flipdown__theme-campaign .rotor,
.flipdown.flipdown__theme-campaign .rotor-top,
.flipdown.flipdown__theme-campaign .rotor-leaf-front {
  color: #f0dcc4 !important;
  background: linear-gradient(180deg, #3f362d 0%, #2a241f 55%, #1f1b18 100%) !important;
}

.flipdown.flipdown__theme-campaign .rotor-bottom,
.flipdown.flipdown__theme-campaign .rotor-leaf-rear {
  color: #f0dcc4 !important;
  background: linear-gradient(180deg, #352e27 0%, #252019 55%, #1a1613 100%) !important;
}

.flipdown.flipdown__theme-campaign .rotor {
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flipdown.flipdown__theme-campaign .rotor-top,
.flipdown.flipdown__theme-campaign .rotor-leaf-front {
  border-radius: 9px 9px 0 0;
}

.flipdown.flipdown__theme-campaign .rotor-bottom,
.flipdown.flipdown__theme-campaign .rotor-leaf-rear,
.flipdown.flipdown__theme-campaign .rotor:after {
  border-radius: 0 0 9px 9px;
}

.flipdown.flipdown__theme-campaign .rotor:after {
  border-top: solid 1px rgba(0, 0, 0, 0.45) !important;
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 520px) {
  .form__countdown {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .form__countdown-flipdown {
    padding: 0.05rem 0 0.15rem;
  }

  #responseFlipdown.flipdown {
    /* Kitölti a kártyát, de nem lóg ki keskeny kijelzőn (nap blokk rejtve → ~3 csoport). */
    --fd-scale: min(1, max(0.86, calc((100vw - 5.75rem) / 300)));
    transform: scale(var(--fd-scale));
    transform-origin: center top;
  }

  #responseFlipdown .rotor-group-heading:before {
    font-size: 0.72rem;
  }
}
