.ipis-promo-timer {
    --ipis-promo-accent: #2D95DC;
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 12px 0 3px;
    padding: 14px 15px;
    overflow: hidden;
    border: 1px solid rgba(45, 149, 220, 0.24);
    border-left: 3px solid var(--ipis-promo-accent);
    border-radius: 11px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    box-shadow: 0 7px 20px rgba(23, 60, 89, 0.06);
    color: #173c59;
    font-family: inherit;
}

.ipis-promo-timer[hidden] {
    display: none !important;
}

.ipis-promo-timer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--ipis-promo-accent);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ipis-promo-timer__badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #df4a4a;
    box-shadow: 0 0 0 0 rgba(223, 74, 74, 0.42);
    animation: ipis-promo-pulse 1.8s infinite;
}

.ipis-promo-timer__title {
    margin: 0 0 10px;
    color: #173c59;
    font-size: clamp(15px, 1.7vw, 17px);
    font-weight: 700;
    line-height: 1.3;
}

.ipis-promo-timer__units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 6px;
}

.ipis-promo-timer__unit {
    min-width: 0;
    padding: 7px 4px 6px;
    border: 1px solid rgba(45, 149, 220, 0.17);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.75);
    text-align: center;
    box-shadow: none;
}

.ipis-promo-timer__unit strong {
    display: block;
    color: #173c59;
    font-size: clamp(20px, 2.8vw, 24px);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

.ipis-promo-timer__unit span {
    display: block;
    margin-top: 3px;
    color: #628096;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.ipis-promo-timer__unit--seconds strong {
    color: var(--ipis-promo-accent);
}

.ipis-promo-timer__separator {
    display: none;
}

.ipis-promo-timer__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 9px;
    color: #628096;
    font-size: 10px;
    line-height: 1.45;
}

.ipis-promo-timer__note {
    font-weight: 650;
}

.ipis-promo-timer__deadline {
    white-space: normal;
}

.ipis-promo-timer__expired-message {
    display: none;
    padding: 4px 0;
    color: #173c59;
    font-size: 15px;
    font-weight: 750;
}

.ipis-promo-timer.is-urgent {
    border-color: rgba(223, 74, 74, 0.26);
    border-left-color: #df4a4a;
}

.ipis-promo-timer.is-urgent .ipis-promo-timer__unit--seconds strong {
    color: #c63737;
}

.ipis-promo-timer.is-expired .ipis-promo-timer__title,
.ipis-promo-timer.is-expired .ipis-promo-timer__units,
.ipis-promo-timer.is-expired .ipis-promo-timer__meta {
    display: none;
}

.ipis-promo-timer.is-expired .ipis-promo-timer__expired-message {
    display: block;
}

@keyframes ipis-promo-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(223, 74, 74, 0.4);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(223, 74, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(223, 74, 74, 0);
    }
}

@media (max-width: 480px) {
    .ipis-promo-timer {
        margin-top: 10px;
        padding: 12px 10px;
        border-radius: 10px;
    }

    .ipis-promo-timer__title {
        margin-bottom: 9px;
        font-size: 15px;
    }

    .ipis-promo-timer__units {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .ipis-promo-timer__unit {
        padding: 6px 2px 5px;
        border-radius: 7px;
    }

    .ipis-promo-timer__unit strong {
        font-size: 19px;
    }

    .ipis-promo-timer__unit span {
        font-size: 7px;
    }

    .ipis-promo-timer__meta {
        display: block;
        margin-top: 8px;
        font-size: 9px;
    }

    .ipis-promo-timer__deadline {
        display: block;
        margin-top: 4px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ipis-promo-timer__badge > span {
        animation: none;
    }
}
