/* ==== New Cart -- Begin */
#blockcart-modal {
    display: block;
    color: #414141;
    padding-left: 0px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
    -webkit-overflow-scrolling: touch;
}
#blockcart-modal > div {
    width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#blockcart-modal > div section {
    position: relative;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    text-align: center;
    padding: 50px 30px;
}
#blockcart-modal > div section img {
    width: 200px;
    margin-bottom: 20px;
}
#blockcart-modal > div section .options { 
    margin-top: 20px;
}
#blockcart-modal > div section .options:after {
    content: '';
    clear: both;
    display: table;
}
#blockcart-modal > div section .options p {
    margin: 10px 0px;
}
#blockcart-modal > div section .options .btn {
    font-size: 14px;
    padding: 10px 0px;
    margin-bottom: 10px;
}
#blockcart-modal > div section .options button.btn {
    display: block;
    width: 100%;
}
#blockcart-modal > div section .options a.btn {
    display: block;
    width: 100%;
    background-color: #009933!important;
    border-color: #009933!important;
}
#blockcart-modal > div section .options a.btn:hover {
    background-color: #007D2A!important;
    border-color: #009933!important;
}

@media (max-width: 767px) {
    #blockcart-modal > div {
        max-width: 90%;
        top: 35%;
    }
}
@media (min-width: 601px) {
    #blockcart-modal > div section .options button.btn {
        float: left;
        width: 49%;
        margin-bottom: 0px;
    }
    #blockcart-modal > div section .options a.btn {
        float: right;
        width: 49%;
    }
}
/* New Cart -- END */

#blockcart-modal .cart-content .btn.btn-primary,
.cart-summary .checkout .btn,
.checkout-step .continue,
.blockcart .checkout .btn-primary {
    background-color: #009933!important;
    border-color: #009933!important;
}
#blockcart-modal .cart-content .btn.btn-primary:hover,
.cart-summary .checkout .btn:hover,
.checkout-step .continue:hover,
.blockcart .checkout .btn-primary:hover {
    background-color: #007D2A!important;
    border-color: #009933!important;
}

.bootstrap-touchspin, .product-variants > .product-variants-item select {
  min-width: 69px;
}


/* BUY BUTTON AND PRODUCTS ATTRIBUTES */
.product-quantity {
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 0px;
}
.product-quantity .add {
    float: left;
    margin-bottom: 0.5rem;
    margin-left: 10px;
}
.product-quantity .qty {
    float: left;
    width: 80px;
    margin-bottom: 0.5rem;
    margin-right: 0px!important;
}   
.product-actions .add-to-cart {
    line-height: 25px!important;
}
.product-quantity #quantity_wanted {
    max-width: 55px!important;
    width: 55px!important;
}
.product-quantity .add .add-to-cart, .product-actions .add-to-cart {
    padding: 10px 30px 10px;
    color: #fff;
    background-color: #4cbb6c!important;
    border-color: #4cbb6c!important;
    min-width: 200px;
    font-size: 0.9rem;
    -webkit-transition: all 0.5s ease 0s!important;
    -moz-transition: all 0.5s ease 0s!important;
    -o-transition: all 0.5s ease 0s!important;
    transition: all 0.5s ease 0s!important;
}
.product-quantity .add .add-to-cart:before {
    content: '';
    font-size: 0.9rem;
}
.product-quantity .add .add-to-cart:hover, .product-actions .add-to-cart:hover {
    background-color: #168C3A!important;
    border-color: #168C3A!important;
}
.products .product_list li .btn.add-to-cart {
    display: inline-block;
}
.product-variants:after {
    content: "";
    clear: both;
    display: table;
}
.product-variants > .product-variants-item {
    margin: 10px 0;
    margin-right: 0px;
}
.product-actions .control-label {
    width: 100%;
    margin-bottom: 5px;
    display: block;
    width: 100%;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
}
.product-variants > .product-variants-item select {
    text-transform: uppercase;
}
.product-discounts {
    margin-bottom: 20px;
}
.product-prices .current-price {
    color: #4cbb6c;
    font-weight: bold;
    font-size: 28px;
}
#product-availability .product-last-items, .product-availability .product-last-items {
    background-color: transparent;
    color: #000;
    text-decoration: underline;
}

@media (max-width: 991px) {
    #blockcart-modal .product-image {
        width: 50%;
    }

    #blockcart-modal .modal-title {
        font-size: 1rem;
        text-transform: none;
    }
    .product-quantity .add {
        margin-left: 0px;
    }
    .product-quantity .add .add-to-cart {
        min-width: auto;
    }
}

@media (max-width: 767px) {
    .product-quantity {
        display: block;
        width: 100%;
    }
    .product-quantity .add {
        width: 75%;
    }
    .product-quantity .qty {
        width: 25%;
    }
    .product-quantity .add .add-to-cart {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .product-variants > .product-variants-item {
        width: 46%;
        float: left;
        margin-right: 10px;
    }
    .product-variants > .product-variants-item:nth-child(odd) {
        content: '';
        clear: both;
        display: table;
    }
    .product-variants > .product-variants-item select {
        width: 100%;
    }
}


/* PRODUCT COMMENTS */
.btn-comment {
    height: 36px;
    border-radius: 2px;
    background-color: #eee;
    color: #666;
    font-size: 14px;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.2);
    padding: 8px;
}
.btn-comment:hover {
    color: #fff;
}

/* FIX ADDRESS SELECTION IN CHECKOUT STEPS */
@media (max-width: 600px) {
    body#checkout section.checkout-step .address {
        font-size: 14px;
        margin-left: 0px;
    }
    body#checkout section.checkout-step .radio-block {
        padding: 15px 20px 0px 20px;
    }
}

/* LOADER */
.loading {
    position: relative;
    z-index: 99;
}
.loading:before {
    content: '';
    background: rgba(255, 255, 255, .5);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;
}
.loading:after {
    content: '';
    background: url('loading.gif') no-repeat;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%);
    z-index: 9999;    
    width: 40px;
    height: 40px;
}
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* REGISTERING PROCESS */
#customer-form .form-group label { line-height: 16px; }
#customer-form .form-group label em {
    font-size: 12px;
    line-height: 16px;
    margin-top: 6px;
    display: block;
    color: #999;
}

/* CART MODAL CONFIRMATION, CODE IN PS_SHOPPINGCART.JS */
.js-product-miniature .img_block .added {
    display: block;
    position: absolute;
    top: 50%;
    background: #fff;
    width: 100%;
    font-weight: bold;
    color: #000;
}
.js-product-miniature .img_block .added img {
    width: 24px;
    display:inline-block;
}