/*
    Top button basket
*/
.basket-btn{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: .2s .6s;
}
#basket.on .basket-btn{
    visibility: visible;
    opacity: 1;
}
.basket-btn__min-content{
    width: 230px;
    background: #1b1b1b;
    color: #fff;
    padding: 10px 20px;
    /*box-shadow: 0 6px 12px 0 rgba(0,0,0,.2);*/
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    transition: .2s;
}
.basket-btn__img{
    display: none;
}
.basket-btn__min-quantity{
    width: 30px;
    font-size: 10px;
    background: #b80000;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 100%;
    transform: translate(50%, 50%);
}
.basket-btn__min-quantity span{
    background: #b80000;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.basket-btn__min-quantity::after{
    content: '';
    padding-bottom: 100%;
    display: block;
}
@media (max-width: 1280px) {
    .basket-btn{
        top: 80px;
        right: 5px;
    }
    .basket-btn__min-content{
        width: 46px;
        height: 46px;
        border-radius: 100%;
        box-shadow: 0 6px 12px 0 rgba(0,0,0,.2);
    }
    .basket-btn__text{
        display: none;
    }
    .basket-btn__img{
        display: block;
        width: 36px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        transition: .2s;
    }
    .basket-btn:hover .basket-btn__img{
        transform: translate(-50%, -50%) scale(.9);
    }
}
@media (max-width: 1000px) {
    .basket-btn{
        display: none;
    }
}
/*
    Content basket
*/
.basket-content{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999;
    visibility: hidden;
}
.basket.active .basket-content{
    visibility: visible;
}
.basket--header{
    padding-bottom: 30px;
}
.basket-content h2{
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}
.basket--header p{
    font-size: 14px;
    padding-bottom: 5px;
}
.basket-content__close{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0);
    cursor: url(../img/x.svg), no-drop;
    -webkit-transition: .8s ease-out;
    transition: .8s ease-out;
}
.basket.active .basket-content__close{
    background: rgba(255,255,255,.5);
}
.basket-content__list{
    width: 900px;
    max-height: 90%;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -150%) scale(0);
    transform: translate(-50%, -150%) scale(0);
    background: #fff;
    box-shadow: 0 0 0 0 rgba(0,0,0,.5);
    border-radius: 10px;
    overflow-y: auto;
    -webkit-transition: .8s ease-out;
    transition: .8s ease-out;
}
.basket.active .basket-content__list{
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 30px 60px 0 rgba(0,0,0,.3);
}
.basket-content h1{
    font-size: 30px;
    padding-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
}
.basket-content h1 .basket-content__h1-b{
    font-weight: 900;
    position: relative;
}
.basket-content h1 .basket-content__h1-b::before{
    content: "";
    width: 3px;
    height: 100%;
    background: #eb6a02;
    display: block;
    position: absolute;
    top: 0;
    right: -10px;
}
.basket-content h1 .basket-content__pkt{
    font-size: 17px;
    display: inline-block;
    margin-left: 16px;
    color: #eb6a02;
    text-transform: none;
}
.basket-content__table{
    width: 100%;
}
.basket-content__table tr,
.basket-content__border-top{
    border-top: 1px solid #efefef;
}
.basket-content__table tr:first-child,
.basket-content__table tr.basket-content__sum{
    border-top: none;
}
.basket-content__table td{
    vertical-align: middle;
    padding: 10px;
}
.basket-content__ico{
    width: 15px;
}
.basket-content__photo{
    text-align: center;
}
.basket-content__photo img{
    max-width: 170px;
    max-height: 100px;
}
.basket-content__name{
    font-weight: 900;
    font-size: 16px;
}
.basket-content__name span{
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 5px;
}
.basket-content__price,
.basket-content__sum-text{
    color: #eb6a02;
    font-size: 18px;
    font-weight: bold;
}
.basket-content__price-span{
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #9a9a9a;
}

.basket-content__text-min,
.basket-content__info{
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #1b1b1b;
}
.basket-content__info{
    margin: 5px 0 0;
    color: #93090e;
    visibility: hidden;
}
.basket-content__sum-text.active .basket-content__info{
    visibility: visible;
}
.basket-content__sum-text.active .basket-content__sum-text{
    color: #93090e;
}
.basket-content__amount{
    min-width: 140px;
}
.basket-content__amount *{
    display: inline-block;
    vertical-align: middle;
}
.basket-content__amount button{
    background: transparent;
    opacity: .5;
    transition: .2s;
}
.basket-content__amount button:hover{
    background: transparent;
    opacity: .8;
}
.basket-content__amount input{
    width: 70px;
    height: 30px;
    margin: 0 5px;
    background: transparent;
    border: 1px solid #7c7c7c;
    text-align: center;
    border-radius: 100px;
}
.basket-content__btn{
    text-align: center;
    padding: 10px 20px;
    display: inline-block;
    margin: 50px auto 20px;
    font-size: 12px;
    background: #93090e;
    box-shadow: 0 3px 0 0 #5e090c;
    color: #fff;
    border-radius: 100px;
    cursor: pointer;
    -webkit-transition: 0.2s ease-out;
    transition: 0.2s ease-out;
}
.basket-content__btn:hover{
    transform: translate(0, 3px);
    box-shadow: 0 0 0 0 #5e090c;
}
.basket-content__btn:disabled,
.basket-content__btn[disabled]{
    background: #686868;
    box-shadow: 0 3px 0 0 #1b1b1b;
    cursor: no-drop;
}
.basket-content__btn:disabled:hover,
.basket-content__btn[disabled]:hover{
    box-shadow: 0 0 0 0 #1b1b1b;
}
.basket-content__btn--close{
    width: auto;
    background: #2f2f2f;
    box-shadow: 0 3px 0 0 #000;
}
.basket-content__btn--step{
    width: auto;
    background: #029dda;
    box-shadow: 0 3px 0 0 #00648c;
}
.basket__form--information input{
    width: 100%;
    padding: 10px 20px;
    max-width: 600px;
    font-size: 16px;
    border: 1px solid #cacaca;
    display: block;
    margin: 5px auto;
    border-radius: 5px;
}
.basket-content__confirmation p{
    max-width: 600px;
    display: inline-block;
    font-size: 21px;
    line-height: 1.3;
}
@media (max-width: 920px) {
    .basket-content__list{
        width: auto;
        min-width: 90%;
        padding: 10px;
    }
}
@media (max-width: 780px) {
    .basket-content__photo{
        display: none;
    }
    .basket-content .text-right {
        text-align: center;
    }
}
@media (max-width: 500px) {
    .basket-content__name,
    .basket-content__price,
    .basket-content__sum-text {
        font-size: 12px;
    }
    .basket-content__name span{
        display: none;
    }
}
@media (max-width: 400px) {
    .basket-content__amount{
        min-width: 0;
    }
    .basket-content__amount .basket-content__ico{
        display: none;
    }
    .basket-content__amount input {
        width: 40px;
        height: 25px;
        margin: 0;
        font-size: 16px;
        border-radius: 10px;
    }
    .basket-content__btn {
        margin: 10px auto;
    }
}

/*

    Basket info

*/
.basket-info{
    width: 100%;
    height: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999999999999;
    background: rgba(0,0,0,.3);
    visibility: hidden;
    opacity: 0;
    transition: .4s;
}
.basket-info__content{
    text-align: center;
    font-size: 18px;
    padding: 60px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.4;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 42px 0 rgba(0,0,0,.3);
    border-radius: 20px;
    color: #1b1b1b;
    background: #fff;
}
.basket-info.active{
    visibility: visible;
    opacity: 1;
}
.basket-info.ok .basket-info__content{
    color: #2e6da4;
}
.basket-info.err .basket-info__content{
    color: #910309;
}


/*

    clone button

*/
.basket-clone-content{
    position: relative;
    z-index: 8888888888888888;
}
.basket-clone{
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 100%;
    background: #93090e;
    -webkit-transition: 1s;
    transition: 1s;
    position: absolute;
}
.basket-clone img{
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) rotateY(0deg);
    transform: translate(-50%, -50%) rotateY(0deg);
    -webkit-transition: 0.4s ease-out;
    transition: 0.4s ease-out;
}

/*

    Steps

*/
.basket__step{
    display: none;
}
.basket__step.active{
    display: block;
}
.basket__info{
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.5);
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
.basket__info.active{
    display: flex;
}
.basket__info .basket__info-text{
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    background: #de1f26;
    color: #fff;
    display: inline-block;
    box-shadow: 0 12px 22px 0 rgba(0,0,0,.4);
}