:root {
    --header-top-promo-height: 40px;
    --header-top-discount-offset: 0px;
    --header-top-offset: 52px;
    --header-top-offset-with-delivery-conditions: 76px;
}
.header {
    position: sticky;
}

.header-top-promo:not(.v0) {
    position: sticky;
    top: var(--header-top-discount-offset);
    left: 0;
    right: 0;
    z-index: 10;
}
.header-top-promo:not(.v0) ~ .header {
    top: var(--header-top-offset);
}
.header-top-promo.v0 ~ .header {
    top: 0;
}
.header-top-promo.header-top-promo-redesign .container {
    justify-content: center;
}
.header-top-promo.animated.header-top-promo-redesign .container {
    justify-content: end;
}
.header-top-promo.header-top-promo-redesign {
    background-color: var(--brand-black-color);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-shrink: 0;
    overflow: hidden;
}
.header-top-promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--header-top-promo-height);
    font-family: var(--body-font-family);
    font-size: 14px;
    font-weight: var(--font-weight-semilight);
    line-height: 24px;
    gap: 40px;
    flex-direction: row;
}
.header-top-promo-inner-1, .header-top-promo-inner-2 {
    gap: 40px;
    flex-direction: row;
    align-items: center;
}
.header-top-promo.animated .header-top-promo-inner {
    display: flex;
    align-items: center;
    height: var(--header-top-promo-height);
    font-family: var(--body-font-family);
    font-size: 14px;
    font-weight: var(--font-weight-semilight);
    line-height: 24px;
    gap: 40px;
    justify-content: end;
}
.header-top-promo .btn {
    line-height: 18px;
    right: 0;
    top: 5px;
}
.header-top-promo .dot {
    width: 8px;
    height: 8px;
    background-color: var(--bg-additional-color);
    display: block;
    border-radius: 4px;
}
.header-top-promo .close-btn {
    position: absolute;
    right: 0;
}
.header-top-promo .top-bar-sale-category,
.header-top-promo .top-bar-slogan,
.header-top-promo .top-bar-description,
.header-top-promo .header-top-promo-delivery-conditions{
    text-transform: uppercase;
}
.header-top-promo-inner > *:not(:last-child):not(.close-btn) {
    display: block;
    margin-top: 5px;
}
.header-top-promo .countdown-container {
    gap: 16px;
}
.header-top-promo .countdown-container .digit {
    min-width: 49px;
}
.header-top-promo .countdown-container .digit strong {
    font-size: 16px;
    line-height: 26px;
}
.header-top-promo .countdown-container .digit span {
    font-size: 8px;
    line-height: 12px;
}
.header-top-promo .header-top-promo-promocode {
    gap: 24px;
    min-height: 28px;
    padding: 0 16px;
    color: var(--color-3);
    background-color: #FFFFFF0D;
    border: 1px dashed #95959580;
    border-radius: 2px;
    backdrop-filter: blur(2px);
}
.header-top-promo .header-top-promo-promocode-code {
    font-size: 16px;
    line-height: 28px;
}
.header-top-promo .header-top-promo-promocode-copy {
    font-size: 14px;
    line-height: 28px;
    cursor: pointer;
}
.header-top-promo .header-top-promo-promocode-copy.active .default,
.header-top-promo .header-top-promo-promocode-copy:not(.active) .active {
    display: none;
}

.header-top-promo.show-delivery-conditions > .container {
    justify-content: space-between;
    padding: 0 37px;
}

.header-top-promo.show-delivery-conditions .dot {
    display: none;
}

@media (min-width: 769px) {
    .header-top-promo-inner > *:not(:last-child):not(.close-btn) {
        margin-top: 0;
    }
    .header-top-promo-inner {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .header-top-promo.show-delivery-conditions {
        padding: 8px 0;
    }

    .header-top-promo.show-delivery-conditions .header-top-promo-inner {
        height: auto;
        padding: 0;
    }

    .header-top-promo.show-delivery-conditions > .container {
        justify-content: center;
        padding: 0;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-top-promo-height: 38px;
        --header-top-offset: 38px;
        --header-top-offset-with-delivery-conditions: 96px;
    }

    .header-top-promo.show-delivery-conditions:not(.v0)~.header {
        top: var(--header-top-offset-with-delivery-conditions);
    }

    .header-top-promo.show-delivery-conditions {
        padding: 8px 0;
    }

    .header-top-promo.show-delivery-conditions .header-top-promo-inner {
        height: auto;
        padding: 0;
    }

    .header-top-promo.show-delivery-conditions > .container {
        justify-content: center;
        padding: 0;
        flex-direction: column;
    }

    .header-top-promo-inner {
        gap: 0;
        flex-direction: column;
        padding: 8px 0;
        font-size: 12px;
        line-height: 20px;
    }
    .header-top-promo-inner-1, .header-top-promo-inner-2 {
        gap: 12px;
    }
    .header-top-promo-inner > *:not(:last-child):not(.close-btn) {
        margin-top: 0;
    }
    .header-top-promo .btn {
        display: inline-block;
        margin: 4px 0 3px
    }
    .header-top-promo.animated .header-top-promo-inner {
        -webkit-animation-duration: var(--ticker-speed-mobile);
        animation-duration: var(--ticker-speed-mobile);
        height: 64px;
        gap: 8px;
        justify-content: center;
    }
    .header-top-promo .countdown-container .digit strong {
        font-size: 18px;
        line-height: 28px;
    }
    .header-top-promo .dot {
        display: none;
    }
    .header-top-promo .header-top-promo-promocode {
        margin-top: 4px;
    }

    @media (max-width: 375px) {
        .header-top-promo-inner {
            width: 100%;
        }
        .header-top-promo-inner > *:not(:last-child):not(.close-btn) {
            display: flex;
        }
        .header-top-promo .top-bar-sale-category,
        .header-top-promo .top-bar-slogan,
        .header-top-promo .top-bar-description {
            font-size: 12px;
            line-height: 16px;
        }
    }

    @-webkit-keyframes ticker {
        0% {
            -webkit-transform: translate3d(40rem, 0, 0);
            transform: translate3d(40rem, 0, 0);
            visibility: visible;
        }

        100% {
            -webkit-transform: translate3d(-40rem, 0, 0);
            transform: translate3d(-40rem, 0, 0);
        }
    }

    @keyframes ticker {
        0% {
            -webkit-transform: translate3d(40rem, 0, 0);
            transform: translate3d(40rem, 0, 0);
            visibility: visible;
        }

        100% {
            -webkit-transform: translate3d(-40rem, 0, 0);
            transform: translate3d(-40rem, 0, 0);
        }
    }
}
