.promocode-wrap,
.buy-section__promocode-wrap{
    width: 100%;
    position: relative;
    margin-bottom: auto;
}
.promocode-price__price-block{
    display: flex;
    align-items: center;
}
.promocode-price__value{
    display: flex;
    align-items: center;
    font-size: 26px;
    line-height: 1;
    color: #c00;
    font-weight: 600;
    margin-right: 10px;
}
.promo_valuta{
    font-size: 12px;
    text-transform: none;
    align-self: flex-end;
    padding-bottom: 3px;
    padding-left: 2px;
}
.promocode-price__value:before{
    content: '';
    display: block;
    width: 30px;
    height: 20px;
    margin-right: 5px;
    background: url("../images/kupon.svg") no-repeat center;
}
.promocode-price__text{
    position: relative;
    align-self: flex-end;
    font-size: 12px;
    line-height: 1.1;
    color: var(--blue);
    text-transform: uppercase;
    font-weight: 600;
}
.promocode-price__text:hover{
    text-decoration: underline;
    color: var(--blue);
    cursor: pointer;
}
.promocode-price__text:hover .promocode-price__term{
    color: var(--blue);
}
.promocode-price__term{
    text-transform: none;
    color: black;
    font-weight: 300;
}

.promocode-popup{
    position: absolute;
    z-index: 100;
    width: 550px;
    height: 310px;
    background: #fff;
    top: -1000px;
    bottom: -1000px;
    left: -1000px;
    right: -1000px;
    margin: auto;
    box-shadow: 0 0 10px 2px #000;
    padding: 15px 20px;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.3s;
}
.promocode-popup.open{
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: 0.3s ease-in-out;
}
.promocode-popup-open{
    cursor: pointer;
}
.promocode-popup{
    line-height: 1.1;
    user-select: none;
}
.promocode-popup__heading{
    font-size: 36px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}
.promocode-popup__term{
    font-size: 24px;
    line-height: 1.1;
}
.promocode-popup__code{
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    font-weight: 900;
    color: #EE2128;
    text-align: center;
    width: 70%;
    margin: 0 auto 15px;
    border: solid 1px #ccc;
    border-radius: 5px;
    user-select: text;
    cursor: text;
}
.promocode-popup__main-text{
    font-size: 18px;
}
.promocode-popup__list-text{
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 5px;
}
@media (max-width: 991px) {
    .promocode-popup{
        left: 0;
        top: auto;
        right: auto;
        bottom: 0;
    }
}
@media (max-width: 767px) {
    .promocode-price__price-block{
        margin-top: 10px;
    }
    .promocode-popup{
        max-width: 500px;
        width: 100%;
        height: auto;
    }
    .promocode-popup__heading{
        font-size: 24px;
    }
    .popup_term{
        font-size: 18px;
    }
    .promocode-popup__code{
        width: 100%;
        font-size: 28px;
    }
    .promocode-popup__main-text,
    .promocode-popup__list-text{
        font-size: 16px;
    }
}
/*--------------------In Category------------------------*/

.promocode-in-cat .bottom_cena_red{
    position: relative;
}
@media (min-width: 768px) {
    .promocode-in-cat .promocode-price__value.mob-label{
        display: none;
    }
    .promocode-in-cat .promocode-price__value{
        position: absolute;
        right: 0;
        top: -1px;
        display: block;
        width: 30px;
        height: 20px;
        margin: 0;
    }
    .promocode-in-cat .promocode-price__value:before{
        width: 100%;
        height: 100%;
        margin: 0;
        background-size: cover;
    }
    .promocode-in-cat:hover .real-price-hide{
        opacity: 0;
        transform: translateY(-20px);
        transition: 0.3s;
    }
    .promocode-in-cat:hover .promocode-price_replace{
        opacity: 1;
        top: 9px;
        transition: 0.3s;
    }
    .promocode-in-cat:hover .promocode-cat-message{
        opacity: 1;
    }
    .promocode-in-cat:hover .promocode-cat-message{
        opacity: 1;
        animation: mes 0.4s;
    }
}
@media (min-width: 992px) {
    .promocode-in-cat .promocode-price__value{
        top: 8px;
        width: 40px;
        height: 27px;
    }
    .promocode-in-cat .price-box__old-price{
        margin-right: 50px;
    }
}
.promocode-in-cat .promocode-price__price-block{
    margin: 0;
}
.promocode-in-cat .promocode-wrap{
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 280px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.promocode-in-cat .promocode-popup{
    position: relative;
    width: 100%;
    height: auto;
    padding: 10px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.promocode-in-cat .promocode-popup__heading{
    font-size: 16px;
}
.promocode-in-cat .promocode-popup__term{
    font-size: 16px;
}
.promocode-in-cat .promocode-popup__code{
    font-size: 24px;
}
.promocode-in-cat .promocode-popup__main-text,
.promocode-in-cat .promocode-popup__list-text{
    font-size: 14px;
}
@media (max-width: 991px) {
    .promocode-in-cat .promocode-popup{
        width: 100%;
    }
}
.new-price-wrap{
    position: relative;
}
.promocode-price_replace{
    position: absolute;
    left: 0;
    top: 20px;
    opacity: 0;
    transition: 0.3s;
}
@keyframes mes {
    0%{
        opacity: 0;
        transform: translateX(20px);
    }
    40%{
        opacity: 0;
        transform: translateX(20px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}
.promocode-in-cat:hover .promocode-price__value.promocode-popup-open{
    animation: rotate 0.5s;
    transition: 0.3s;
}
@keyframes rotate {
    0%{
        transform: rotateY(0);
    }
    50%{
        transform: rotateY(90deg);
    }
    100%{
        transform: rotateY(0);
    }
}
.real-price-hide{
    display: inline-block;
    transition: 0.3s;
}
.promocode-cat-message{
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    font-size: 13px;
    line-height: 1;
    color: #0675e8;
    text-transform: uppercase;
    opacity: 0;
    transition: 0.3s;
}
.promocode-cat-message:hover{
    text-decoration: underline;
    color: #0675e8;
    cursor: pointer;
}
@media (max-width: 1199px) {
    .promocode-price__text{
        font-size: 11px;
    }
}
@media (max-width: 767px) {
    .promocode-in-cat .promocode-price__value.promocode-popup-open{
        display: none;
    }
    .promocode-cat-message{
        top: 0;
        text-transform: none;
    }
    .promocode-in-cat .promocode-popup{
        display: none;
    }
    .promocode-in-cat .name{
        position: relative;
        z-index: 2;
    }
    .promocode-in-cat .promocode-price__value.mob-label{
        display: flex;
        top: auto;
        position: absolute;
        left: 0;
        right: auto;
        bottom: 5px;
        width: 100%;
        margin: 0;
        font-size: 12px;
        font-weight: 400;
        align-items: flex-end;
    }
    .promocode-in-cat .promocode-price__value:before{
        width: 35px;
        height: 23px;
        background-size: cover;
    }
}