#checkout{}
#checkout .checkout{
    width:120rem;
    margin:0 auto;
}
#checkout .checkout .step{
    margin:2rem 0;
}
#checkout .checkout .step.step-1{}
#checkout .checkout .step.step-2{}
#checkout .checkout .step.step-3{}
#checkout .checkout .step.step-4{}
#checkout .checkout .step.step-5{}

#checkout .checkout .npstep{
    text-align:center;
}
#checkout .checkout .npstep > .next-step{}
#checkout .checkout .npstep > .next-step.loading{
    background:#d5d5d5;
    color:#626262;
}
#checkout .checkout .npstep > .next-step.loading:before{
    font-family:"Font Awesome 5 Pro";
    content: "\f3f4";
    animation: fa-spin 1s infinite linear;
    display:inline-block;
    margin-right:1rem;
}
#message-container{display:none;}

/* STEP 1 - BASKET */
#checkout .checkout .basket{}
#checkout .checkout .basket > .head{
    display:grid;
    grid-template-columns:1fr 20rem 10rem 20rem;
    grid-gap:2rem;
    font-weight:bold;
    text-align: center;
}
#checkout .checkout .basket > .head > .col{padding:1rem;}
#checkout .checkout .basket > .head > .col.name{text-align:left;}

#checkout .checkout .basket > .products{}
#checkout .checkout .basket > .products > .product{
    display:grid;
    grid-template-columns:1fr 20rem 10rem 20rem;
    grid-gap:2rem;
    border-top:0.1rem solid;
    text-align:center;
}
#checkout .checkout .basket > .products > .product.inactive{opacity:0.3;}
#checkout .checkout .basket > .products > .product > .col{padding:1rem;}
#checkout .checkout .basket > .products > .product > .col.name{text-align:left;}
#checkout .checkout .basket > .products > .product > .col.name > .info{
    font-size:1.2rem;
    padding-left:1rem;
}
#checkout .checkout .basket > .products > .product > .col.selling-price{}
#checkout .checkout .basket > .products > .product > .col.count{padding:1rem 0;}
#checkout .checkout .basket > .products > .product > .col.count input{
    width:calc(100% - 6rem);
    text-align:center;
}
#checkout .checkout .basket > .products > .product > .col.count .minus:before{
    font-family: "Font Awesome 5 Pro";
    content:"\f146";
}
#checkout .checkout .basket > .products > .product > .col.count .plus:before{
    font-family: "Font Awesome 5 Pro";
    content:"\f0fe";
}
#checkout .checkout .basket > .products > .product > .col.amount{}
#checkout .checkout .basket > .total{
    display:grid;
    grid-template-columns:1fr 30rem 20rem;
}
#checkout .checkout .basket > .total > .caption{
    font-weight:bold;
    text-align:center;
    line-height:1.5;
    border-right:0.1rem solid #393185;
    padding:1rem;
}
#checkout .checkout .basket > .total > .value{
    text-align:center;
    font-size:2rem;
    padding:1rem;
}

/* STEP 2 - BUYER IDENTIFICATION */
#checkout .checkout .buyer-idt{}
#checkout .checkout .buyer-idt > .grid{
    grid-template-columns:0.4fr 0.6fr;
}
#checkout .checkout .buyer-idt > .grid > .auth{
    border-right:0.1rem solid #393185;
}
#checkout .checkout .buyer-idt > .grid > .reg{}
#checkout .checkout .buyer-idt > .grid > .reg .no-reg-link{color:#850000;text-decoration:underline;}
#checkout .checkout .buyer-idt > .grid > .reg .no-reg-link:hover{text-decoration: none;}
#checkout .checkout .buyer-idt > .grid .row{
    margin-bottom:1rem;
}
#checkout .checkout .buyer-idt > .grid .row > label{
    font-size:1.4rem;
    display:block;
}
#checkout .checkout .buyer-idt > .grid .row > input[type="text"],
#checkout .checkout .buyer-idt > .grid .row > input[type="email"],
#checkout .checkout .buyer-idt > .grid .row > input[type="password"]{
    padding:1rem;
    font-size:2rem;
    width:100%;
}
#checkout .checkout .buyer-idt > .grid > .auth .row > input[type="text"],
#checkout .checkout .buyer-idt > .grid > .auth .row > input[type="email"],
#checkout .checkout .buyer-idt > .grid > .auth .row > input[type="password"]{
    width:calc(100% - 2rem);
}
#checkout .checkout .buyer-idt > .grid > .reg .row > input[type="password"]{
    width:60%;
}
#checkout .checkout .buyer-idt > .grid .group{}
#checkout .checkout .buyer-idt > .grid .group.group-name{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
}
#checkout .checkout .buyer-idt > .grid .group > .row{}

/* STEP 3 - EMAIL CONFIRM */
#checkout .checkout .step-3{}
#checkout .checkout .step-3 .confirm-code label{font-size:1.4rem;font-weight:bold;}
#checkout .checkout .step-3 .confirm-code input{
    padding:1rem;
    font-size:2rem;
    width:100%;
}
#checkout .checkout .step-3 .npstep{margin-top:2rem;}

/* STEP 4 - PAYMENT AND DELIVERY */
#checkout .checkout .step-4{}
#checkout .checkout .step-4 > .buyer{margin-bottom:3rem;}
#checkout .checkout .step-4 > .buyer a{color:#393185;font-weight:bold;}
#checkout .checkout .step-4 > .buyer a:hover{text-decoration:underline;}
#checkout .checkout .step-4 > .paydel{margin:3rem 0;}
#checkout .checkout .step-4 > .paydel label{
    display:block;
    padding:0.3rem 0 2rem 0;
    font-weight:bold;
}
#checkout .checkout .step-4 > .paydel .delivery{}
#checkout .checkout .step-4 > .paydel .delivery > .delivery-method,
#checkout .checkout .step-4 > .paydel .payment > .payment-method,
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .address{
    padding:1rem 0 1rem 2rem;
    font-weight:normal;
    margin-bottom:1rem;
    border:0.1rem solid #ddd;
    transition:0.2s;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .address{
    display:grid;
    grid-template-columns:3rem 1fr;
}
#checkout .checkout .step-4 > .paydel .delivery > .delivery-method:hover,
#checkout .checkout .step-4 > .paydel .payment > .payment-method:hover,
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .address:hover{
    border-color:#a8a8a8;
}
#checkout .checkout .step-4 > .paydel .delivery > .delivery-method.checked,
#checkout .checkout .step-4 > .paydel .payment > .payment-method.checked,
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .address.checked{
    border-color:#393185;
}
#checkout .checkout .step-4 > .paydel .delivery > .delivery-method.disabled,
#checkout .checkout .step-4 > .paydel .payment > .payment-method.disabled,
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .address.disabled{
    opacity:0.5;
    border-color:#ddd;
}
#checkout .checkout .step-4 > .paydel .delivery > .delivery-method .note,
#checkout .checkout .step-4 > .paydel .payment > .payment-method .note{
    padding-left:2.5rem;
    font-size:1.4rem;
    font-style:italic;
    color:#393185;
}
#checkout .checkout .step-4 > .paydel .payment > .payment-method .note ul{
    margin:0;
}

#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > #addNewAddress{
    display:block;
    margin:2rem 1rem;
    font-size:1.4rem;
    text-transform:uppercase;
    color:#850000;
    transition:0.2s;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > #addNewAddress:hover{
    opacity:0.7;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > #addNewAddress:before{
    font-family:"Font Awesome 5 Pro";
    content:"\f055";
    padding-right:1rem;
}

#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .empty{
    padding-left:1rem;
    color:#777;
    font-size:1.4rem;
    font-style:italic;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address{
    border:0.1rem solid #850000;
    background:#fff;
    padding:0 0 0.5rem 0;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address .new-address-title{
    background:#850000;
    display:inline-block;
    padding:0.5rem 1rem 0.5rem 0.5rem;
    margin-bottom:1rem;
    color:#fff;
    font-weight:normal;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address .new-address-title input{margin-right:1rem;}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address .row{
    margin-bottom:0.5rem;
    padding:0.5rem 0 0 1rem;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address label{
    padding:0;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address select{
    font-size:1.8rem;
    padding:0.5rem;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address input[type="text"],
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address textarea{
    padding:0.5rem;
    width:40rem;
    resize:vertical;
    font-size:1.8rem;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address input[name="postcode"]{
    width:15rem;
}
#checkout .checkout .step-4 > .paydel .delivery-address > .buyer-addresses > .new-address .note{
    padding-left:2rem;
    font-size:1.4rem;
    font-style:italic;
    color:#393185;
}

#checkout .checkout .step-4 .npstep{margin-top:2rem;}

/* STEP 5 - CHECK ORDER */
#checkout .checkout .check{}
#checkout .checkout .check .payment-delivery{}
#checkout .checkout .check .payment-delivery > .payment-method,
#checkout .checkout .check .payment-delivery > .delivery-method,
#checkout .checkout .check .payment-delivery > .delivery-address{
    margin-bottom:2rem;
}
#checkout .checkout .check .payment-delivery label{
    font-weight:bold;
    display:block;
}
#checkout .checkout .check .payment-delivery .method-name{
    padding:1rem 2rem; 
    color:#850000;
    font-weight:bold;
}
#checkout .checkout .check .payment-delivery .method-description{
    font-size:1.4rem;
    padding-left:2rem;
    color:#393185;
}
#checkout .checkout .check .payment-delivery .method-description ul{margin:0;}

#checkout .checkout .check .payment-delivery > .delivery-address > .recipient{
    padding:1rem 2rem;    
}
#checkout .checkout .check .payment-delivery > .delivery-address .caption{
    display:inline-block;
    vertical-align:top;
}
#checkout .checkout .check .payment-delivery > .delivery-address .value{
    color:#850000;
    font-weight:bold;
    display:inline-block;
    vertical-align:top;
}
#checkout .checkout .check .payment-delivery > .delivery-address .note{
    font-size:1.4rem;
    padding:0.5rem 0;
    color:#393185;
}
#checkout .checkout .check .payment-delivery > .delivery-address > .address{
    padding:0 2rem;
}
#checkout .checkout .check .no-reg-buyer{max-width:60rem;}
#checkout .checkout .check .no-reg-buyer > .row{margin-bottom:1rem;}
#checkout .checkout .check .no-reg-buyer > .row > label{
    display:block;
    font-weight:bold;
}
#checkout .checkout .check .no-reg-buyer > .row > input{
    width:70%;
    padding:1%;
}

#checkout .checkout .check > .order-comment{max-width:60rem;}
#checkout .checkout .check > .order-comment > label{
    display:block;
    font-weight:bold;
}
#checkout .checkout .check > .order-comment > textarea{
    min-width:100%;
    height:15rem;
    resize:none;    
}
#checkout .checkout .check > .order-comment > .note{
    font-size:1.4rem;
    padding:0.5rem 0;
    color:#393185;
}
#checkout .checkout .check > .hr{margin:2rem 0;}



/* STEP 6 - FINAL */
#checkout .checkout .step-6 a{
    color:#393185;
    font-weight:bold;
}
#checkout .checkout .step-6 a:hover{text-decoration:underline;}

@media screen and (max-width: 1250px){
    #checkout .checkout{width:100rem;}
}
@media screen and (max-width: 1050px){
    #checkout .checkout{width:80rem;}
}

@media screen and (max-width: 850px){
    #checkout .checkout{max-width:50rem;width:auto;}
    #checkout .checkout .basket > .head{display:none;}
    #checkout .checkout .basket > .products > .product{display:block;text-align:left;}
    #checkout .checkout .basket > .products > .product > .col.selling-price{display:none;}
    #checkout .checkout .basket > .products > .product > .col.count{max-width:20rem;}
    #checkout .checkout .basket > .products > .product > .col.amount{text-align:right;}
    #checkout .checkout .buyer-idt > .grid{display:block;}
    #checkout .checkout .buyer-idt > .grid > .auth{border:none;}
    #checkout .checkout .basket > .total{display:block;}
    #checkout .checkout .basket > .total > .caption{border:none;}
}

@media screen and (max-width: 550px){
    #checkout .checkout{padding:0 2rem;}
    #checkout .checkout .basket > .products > .product > .col.name{text-align:center;}
    #checkout .checkout .basket > .products > .product > .col.count{width:auto;text-align:center;max-width:none;}
    #checkout .checkout .step-5 .products > .product > .col.count:before{
        content: "Количество: ";
    }
    #checkout .checkout .basket > .products > .product > .col.amount{text-align:center;}
    #checkout .checkout .basket{margin-bottom:2rem;}
}