/*input[data-depend-id="promotion_topbar_site_header_element"] {*/
/*    direction: ltr;*/
/*}*/

.promotion-topbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99; /*9999*/;
    transition: 0.5s;
}

.csf-field-callback .promotion-topbar-wrapper {
    width: 75%;
    left: 20px;
    right: auto;
    top: 15px;
}

.promotion-topbar-wrapper .promotion-topbar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 60px;
    color: #fff;
    padding: 5px;
    overflow: hidden;
    text-decoration: none;
    background-image: linear-gradient(135deg, #e5846e -30%, #c11351 130%);
}

.promotion-topbar-wrapper .promotion-topbar-container:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-decoration: none;
    opacity: 0.25;
    z-index: 0;
}

.promotion-topbar-wrapper .promotion-topbar-container:after {
    background-size: contain;
    background-position: center;
    background-repeat: repeat-x;
    background: var(--topbar-background-image);
}

.promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-body {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 15px;
    z-index: 1;
}

.promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 14px;
    padding: 0 2px;
    text-decoration: none;
}

.promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-content .promotion-topbar-content-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    max-width: 50px;
    max-height: 50px;
    padding: 8px;
    background: #00000030;
    animation: pulse 4s infinite;
}

.promotion-topbar-wrapper .promotion-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.promotion-topbar-btn {
    display: flex;
    align-items: center;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    text-decoration: none;
    font-weight: bold;
    color: #D7736FFF;
    background-color: #fff;
    border: none;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 200ms linear;
    animation: zoom 4s infinite;
}

.promotion-topbar-btn:hover,
.promotion-topbar-btn:focus-visible {
    box-shadow: none;
    animation: none;
    outline: 1px solid #fff;
    outline-offset: 2px;
}

.promotion-topbar-discount-code {
    max-height: 45px;
    width: max-content;
    border: 2px dashed #fefefe;
    border-radius: 5px;
    padding: 7px;
    display: flex;
    /*align-items: center;*/
    line-height: 35px;
    gap: 10px;
    font-weight: bold;
}

.promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-discount-code .promotion-topbar-btn {
    animation: none;
}

.promotion-topbar-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

[dir="rtl"] .promotion-topbar-countdown {
    flex-direction: row-reverse !important;
}

.promotion-topbar-countdown .promotion-topbar-countdown-expired {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    font-style: italic;
    background: #00000030;
    padding: 5px 10px;
    border-radius: 5px;
    animation: pulse 4s infinite;
}

.promotion-topbar-countdown .promotion-topbar-countdown-item {
    width: 50px;
    height: 50px;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    color: #fff;
    background: #00000030;
    /*animation: pulse-low 3s infinite;*/
}

.promotion-topbar-countdown .promotion-topbar-countdown-item > span {
    font-size: 11px;
}

.promotion-topbar-countdown .skeleton {
    min-width: 15px;
    min-height: 15px;
}

.promotion-topbar-wrapper .promotion-topbar-dismiss-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 30px;
    color: #3d3d3d;
    cursor: pointer;
    font-size: 20px;
    padding: 3px 5px;
    background: #fff;
    border-radius: 5px 0 0 0;
    border: 0;
    z-index: 2;
}

.csf-field-callback .promotion-topbar-wrapper .promotion-topbar-dismiss-btn {
    display: none;
}

[dir="rtl"] .promotion-topbar-wrapper .promotion-topbar-dismiss-btn {
    left: 0;
    right: unset;
    z-index: 999;
    border-radius: 0 5px 0 0;
}

@media screen and (max-width: 762px) {
    .promotion-topbar-wrapper .promotion-topbar-container:after {
        background-size: cover !important;
    }
}

@media screen and (max-width: 1200px) {
    .promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-body {
        justify-content: center;
        gap: 10px;
    }

    .promotion-topbar-wrapper .promotion-topbar-container .promotion-topbar-content {
        justify-content: flex-start;
        gap: 5px;
    }

    .promotion-topbar-wrapper .promotion-topbar-dismiss-btn {
        top: 0;
        bottom: unset !important;
        border-radius: 0 0 5px 0 !important;
    }
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 1px 1px #ffffff30
    }

    10% {
        box-shadow: 0 0 1px 5px #ffffff30
    }

    30% {
        box-shadow: 0 0 1px 1px #ffffff30
    }

    100% {
        box-shadow: 0 0 100px 2000px transparent
    }
}

@keyframes pulse-low {
    0% {
        box-shadow: 0 0 1px 1px #ffffff30
    }

    10% {
        box-shadow: 0 0 1px 5px #ffffff30
    }

    30% {
        box-shadow: 0 0 1px 1px #ffffff30
    }

    100% {
        box-shadow: 0 0 1px 1px transparent
    }
}

@keyframes zoom {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

/* ---------- Preview ---------- */
.promotion-topbar-wrapper#preview {
    position: relative !important;
}