.mb-smart-countdown__unit {
    box-sizing: border-box;
    min-width: 5.5rem;
}

.mb-smart-countdown[data-edit="true"],
.mb-smart-countdown[data-edit="1"] {
    box-sizing: border-box;
    width: 100%;
}

.mb-smart-countdown[data-style="minimal"] .mb-smart-countdown__unit {
    background: transparent;
    min-width: auto;
    padding: 0;
}

.mb-smart-countdown__value {
    font-variant-numeric: tabular-nums;
}

.mb-smart-countdown[data-shadow="shadow-sm"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow-sm"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.mb-smart-countdown[data-shadow="shadow"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator,
.mb-smart-countdown[data-shadow="shadow-md"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow-md"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator {
    text-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.22);
}

.mb-smart-countdown[data-shadow="shadow-lg"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow-lg"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator,
.mb-smart-countdown[data-shadow="shadow-xl"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow-xl"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator,
.mb-smart-countdown[data-shadow="shadow-2xl"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__value,
.mb-smart-countdown[data-shadow="shadow-2xl"]:not([data-style="cards"]):not([data-style="flip-clock"]) .mb-smart-countdown__separator {
    text-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.mb-smart-countdown[data-style="separated"] .mb-smart-countdown__unit {
    background: transparent;
    min-width: 5rem;
    padding: 0.25rem 0.75rem;
}

.mb-smart-countdown__separator {
    display: none;
}

.mb-smart-countdown[data-style="separated"] .mb-smart-countdown__separator {
    align-self: flex-start;
    display: block;
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 300;
    line-height: 1;
    opacity: 0.35;
    padding-top: 0.2rem;
}

.mb-smart-countdown[data-style="separated"] .mb-smart-countdown__value {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.055em;
}

.mb-smart-countdown[data-style="separated"] .mb-smart-countdown__label {
    letter-spacing: 0.18em;
}

.mb-smart-countdown[data-style="progress-rings"] .mb-smart-countdown__unit {
    align-items: center;
    aspect-ratio: 1;
    background: transparent;
    display: grid;
    min-width: 0;
    padding: 1rem;
    place-items: center;
    position: relative;
    width: clamp(7rem, 18vw, 9rem);
}

.mb-smart-countdown__ring {
    grid-area: 1 / 1;
    height: 100%;
    overflow: visible;
    position: relative;
    transform: rotate(-90deg);
    width: 100%;
}

.mb-smart-countdown__ring-track,
.mb-smart-countdown__ring-progress {
    fill: none;
    stroke: currentColor;
    stroke-dasharray: 100;
    stroke-linecap: round;
    stroke-width: 5;
}

.mb-smart-countdown__ring-track {
    opacity: 0.42;
}

.mb-smart-countdown__ring-progress {
    stroke-dashoffset: var(--mb-ring-offset, 25);
    transition: stroke-dashoffset 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="days"] {
    --mb-ring-offset: 32;
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="years"] {
    --mb-ring-offset: 50;
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="months"] {
    --mb-ring-offset: 42;
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="hours"] {
    --mb-ring-offset: 67;
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="minutes"] {
    --mb-ring-offset: 30;
}

.mb-smart-countdown[data-style="progress-rings"] [data-unit="seconds"] {
    --mb-ring-offset: 73;
}

.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow-sm"] .mb-smart-countdown__ring {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16));
}

.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow"] .mb-smart-countdown__ring,
.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow-md"] .mb-smart-countdown__ring {
    filter: drop-shadow(0 0.25rem 0.55rem rgba(0, 0, 0, 0.2));
}

.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow-lg"] .mb-smart-countdown__ring,
.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow-xl"] .mb-smart-countdown__ring,
.mb-smart-countdown[data-style="progress-rings"][data-shadow="shadow-2xl"] .mb-smart-countdown__ring {
    filter: drop-shadow(0 0.6rem 1rem rgba(0, 0, 0, 0.26));
}

.mb-smart-countdown[data-style="progress-rings"] .mb-smart-countdown__value,
.mb-smart-countdown[data-style="progress-rings"] .mb-smart-countdown__label {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
}

.mb-smart-countdown[data-style="progress-rings"] .mb-smart-countdown__value {
    align-self: center;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.04em;
    margin-top: -0.85rem;
}

.mb-smart-countdown[data-style="progress-rings"] .mb-smart-countdown__label {
    align-self: center;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    margin-top: 3.05rem;
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        var(--tw-ring-offset-shadow, 0 0 #0000),
        var(--tw-ring-shadow, 0 0 #0000),
        var(--tw-shadow, 0 0 #0000);
    isolation: isolate;
    min-width: clamp(5.5rem, 15vw, 8rem);
    overflow: hidden;
    perspective: 500px;
    position: relative;
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit::before,
.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit::after {
    content: "";
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 2;
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit::before {
    border-top: 1px solid rgba(0, 0, 0, 0.28);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 9%, transparent 91%, rgba(0, 0, 0, 0.3)),
        linear-gradient(rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
    bottom: 0;
    top: 50%;
    z-index: -1;
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__value {
    font-size: clamp(2.75rem, 8vw, 5rem);
    letter-spacing: -0.06em;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
    transform-origin: center;
}

.mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__label {
    letter-spacing: 0.16em;
    position: relative;
    z-index: 3;
}

.mb-smart-countdown[data-style="large-hero"] .mb-smart-countdown__units {
    align-items: flex-end;
}

.mb-smart-countdown[data-style="large-hero"] .mb-smart-countdown__unit {
    background: transparent;
    min-width: auto;
    padding: 0;
}

.mb-smart-countdown[data-style="large-hero"] .mb-smart-countdown__value {
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.78;
}

.mb-smart-countdown[data-style="large-hero"] .mb-smart-countdown__label {
    font-size: clamp(0.625rem, 1vw, 0.8rem);
    letter-spacing: 0.24em;
    margin-top: 1.25rem;
}

.mb-smart-countdown__expired {
    display: none;
}

.mb-smart-countdown[data-invalid="true"] .mb-smart-countdown__active,
.mb-smart-countdown[data-invalid="1"] .mb-smart-countdown__active {
    display: none;
}

.mb-smart-countdown[data-expired="true"][data-expiry-action="replace"] .mb-smart-countdown__active {
    display: none;
}

.mb-smart-countdown[data-expired="true"][data-expiry-action="replace"] .mb-smart-countdown__expired {
    display: block;
}

.mb-smart-countdown[data-expired="true"][data-expiry-action="hide"] .mb-smart-countdown__active,
.mb-smart-countdown[data-expired="true"][data-expiry-action="hide"] .mb-smart-countdown__expired {
    display: none;
}

.mb-smart-countdown[data-edit="true"] .mb-smart-countdown__expired,
.mb-smart-countdown[data-edit="1"] .mb-smart-countdown__expired {
    display: block;
}

.mb-smart-countdown[data-edit="true"] .mb-smart-countdown__ring-progress,
.mb-smart-countdown[data-edit="1"] .mb-smart-countdown__ring-progress {
    transition: none;
}

.mb-smart-countdown[data-animate="true"] .mb-smart-countdown__value.is-changing,
.mb-smart-countdown[data-animate="1"] .mb-smart-countdown__value.is-changing {
    animation: mb-smart-countdown-change 180ms ease-out;
}

.mb-smart-countdown[data-style="flip-clock"][data-animate="true"] .mb-smart-countdown__value.is-changing,
.mb-smart-countdown[data-style="flip-clock"][data-animate="1"] .mb-smart-countdown__value.is-changing {
    animation: mb-smart-countdown-flip 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .mb-smart-countdown[data-animate="true"] .mb-smart-countdown__value.is-changing,
    .mb-smart-countdown[data-animate="1"] .mb-smart-countdown__value.is-changing,
    .mb-smart-countdown__ring-progress {
        animation: none;
        transition: none;
    }
}

@media (max-width: 639px) {
    .mb-smart-countdown[data-style="separated"] .mb-smart-countdown__unit {
        min-width: 3.5rem;
        padding-inline: 0.35rem;
    }

    .mb-smart-countdown[data-style="separated"] .mb-smart-countdown__separator {
        padding-top: 0.25rem;
    }

    .mb-smart-countdown[data-style="flip-clock"] .mb-smart-countdown__unit {
        min-width: 4.5rem;
    }
}

@keyframes mb-smart-countdown-change {
    0% {
        opacity: 0.45;
        transform: translateY(-0.18em);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mb-smart-countdown-flip {
    0% {
        filter: brightness(1.15);
        opacity: 0.55;
        transform: rotateX(-78deg);
    }

    55% {
        transform: rotateX(8deg);
    }

    100% {
        filter: brightness(1);
        opacity: 1;
        transform: rotateX(0);
    }
}
