/*
 * Shopping cart powered by Jpresta (jpresta . com)
 *
 *    @author    Jpresta
 *    @copyright Jpresta
 *    @license   You are just allowed to modify this copy for your own use. You must not redistribute it. License
 *               is permitted for one Prestashop instance only but you can install it on your test instances.
 */

/* Icons / text */
.jpresta_shoppingcart, .jpresta_customersignin {
    display: inline-block;
    margin: 0.5rem;
}
.jpresta_shoppingcartsignin_wrapper {
    transition: 0.3s;
    transition-timing-function: cubic-bezier(0.2,0.7,0.2,0.7);
}
.jpresta_shoppingcartsignin {
    text-align: left;
}
.jpresta_shoppingcartsignin .align-items-center {
    align-items: center!important;
    display: flex;
}
.jpresta_shoppingcartsignin small {
    display: block;
}
.jpresta_shoppingcartsignin span.badge {
    padding: 2px 4px;
    font-size: 0.8rem;
    border-radius: 7px;
    line-height: 0.8rem;
}
.jpresta_shoppingcartsignin a:focus {
    text-decoration: none;
}
.jpresta_shoppingcartsignin a.twolines {
    font-weight: bold;
}

/* Dropdown menu : common*/
.jpresta_shoppingcartsignin .dropdown-menu {
    max-width: 400px;
    min-width: 300px;
    font-size: 0.9rem;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .5);
    z-index: 1001;
}
.jpresta_shoppingcartsignin .dropdown-item {
    padding-left: 10px;
    padding-right: 10px;
    color: initial !important;
    border: none !important;
}
.jpresta_shoppingcartsignin .dropdown-item a,
.jpresta_shoppingcartsignin .dropdown-item a:hover,
.jpresta_shoppingcartsignin .dropdown-item a:visited,
.jpresta_shoppingcartsignin .dropdown-item a:focus,
.jpresta_shoppingcartsignin .dropdown-item a:active,
.jpresta_shoppingcartsignin .dropdown-item:hover {
    color: initial !important;
}
.jpresta_shoppingcartsignin a.dropdown-item:hover {
    background-color: #eee;
}
.jpresta_shoppingcartsignin .dropdown-item-title {
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    color: gray;
    font-size: 1.1rem;
    cursor: default;
}
.jpresta_shoppingcartsignin .dropdown-item-title:hover,
.jpresta_shoppingcartsignin .dropdown-item-title:active {
    background-color: transparent;
}
.jpresta_shoppingcartsignin .dropdown-item.dropdown-item-signout {
    color: red !important;
}
.jpresta_shoppingcartsignin .dropdown-item-total {
    font-weight: bold;
    text-transform: uppercase;
}
.jpresta_shoppingcartsignin .dropdown-item-actions {
    text-align: center;
}
.jpresta_shoppingcartsignin .dropdown-item-actions i {
    line-height: 1rem !important;
    font-size: 1rem !important;
}
.jpresta_shoppingcartsignin .dropdown-item-actions form {
    margin: 10px 0;
}
.jpresta_shoppingcartsignin .value {
    float: right;
}
.jpresta_shoppingcartsignin dl {
    font-size: 0.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.7;
    margin-bottom: 0;
}
.jpresta_shoppingcartsignin dt {
    display: inline;
}
.jpresta_shoppingcartsignin dd {
    display: inline;
}
/* Dropdown menu : mobile */
@media (max-width: 767px) {
    .jpresta_shoppingcartsignin .dropdown-menu {
        position: fixed;
        width: 100%;
        top: 60px;
        left: 0;
    }
}

/* Dropdown menu : customer sign in */
.jpresta_customersignin.isnotlogged .dropdown-menu {
    width: 400px;
}
.jpresta_customersignin .form-actions {
    text-align: center;
}
.jpresta_customersignin #login-form .form-footer {
    margin: 10px 0;
}
.jpresta_customersignin #login-form .forgot-password {
}
.jpresta_customersignin #login-form .form-comment {
    display: none;
}
.jpresta_customersignin #login-form .form-comment {
    display: none;
}
.jpresta_customersignin #login-form .col-md-6 {
    width: 75%;
}

/* Dropdown menu : shopping cart */
.jpresta_shoppingcart .dropdown-menu {
    width: 400px;
}
.jpresta_shoppingcart .cart_products {
    overflow-y: auto;
}
.jpresta_shoppingcart .cart_product {
    margin-bottom: 0.5rem;
}
.jpresta_shoppingcart .cart_product_desc {
    overflow: hidden;
    text-overflow: ellipsis;
}
.jpresta_shoppingcart .cart_product:hover {
    background-color: #eee;
}
.jpresta_shoppingcart .cart_product_name a:hover {
    color: inherit;
}
.jpresta_shoppingcart a.cart_product_img {
    float: left;
    margin-right: 0.5rem;
}
.jpresta_shoppingcart .cart_product_price {
    float: right;
    margin: 0.2rem 0;
}
.jpresta_customersignin dl {
    margin-left: 2rem;
}
#jpresta_shoppingcart_modal .bg-success {
    background-color: rgba(166,239,184,1);
}
#jpresta_shoppingcart_modal .bg-danger {
    background-color: red;
}
#jpresta_shoppingcart_modal .modal-title {
    width: 100%;
}

.jprestaloading {
    position: absolute;
    margin-left: -2rem;
    display: inline-block;
    width: 4rem;
    height: 1rem;
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGRpc3BsYXk9ImJsb2NrIiBzdHlsZT0iYmFja2dyb3VuZDp0cmFuc3BhcmVudDttYXJnaW46YXV0byIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiIHZpZXdCb3g9IjAgMCA4MCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMCAxMCkiPjxjaXJjbGUgdHJhbnNmb3JtPSJzY2FsZSguMzM1NykiIHI9IjYiIGZpbGw9IiM0NDQiPjxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgYmVnaW49Ii0wLjM3NXMiIGNhbGNNb2RlPSJzcGxpbmUiIGR1cj0iMXMiIGtleVNwbGluZXM9IjAuMyAwIDAuNyAxOzAuMyAwIDAuNyAxIiBrZXlUaW1lcz0iMDswLjU7MSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIHR5cGU9InNjYWxlIiB2YWx1ZXM9IjA7MTswIi8+PC9jaXJjbGU+PC9nPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMwIDEwKSI+PGNpcmNsZSB0cmFuc2Zvcm09InNjYWxlKC4wNTQ4MDcpIiByPSI2IiBmaWxsPSIjY2NjIj48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0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 340px;
    transform: translate3d(115%, 0, 0);
    position: fixed;
    z-index: 6000;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    transition-timing-function: cubic-bezier(0.2,0.7,0.2,0.7);
    padding-top: 10px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .5);
}
.jpresta_sidecart.showSideCart {
    transform: translate3d(0, 0, 0);
}
.jpresta_sidecart .dropdown-item {
    white-space: initial;
}
button.closesidecart {
    position: absolute;
    right: 0;
    font-size: 2rem;
    line-height: 1rem;
    margin: 5px;
}

.jpresta_shoppingcartsignin .cartMenuLinkMobile {
    /* To be able to place the item-count correctly */
    position: relative;
}
.jpresta_shoppingcartsignin .item-count {
    background-color: white;
    color: black;
    border: 2px solid #333;
    border-radius: 1.5rem;
    padding: 0 0.4rem;
    font-size: 1rem;
    left: 1.3rem;
    top: -.8rem;
    position: absolute;
}

.jpresta_shoppingcartsignin .show-on-mobile .jpresta-icons-cart, .jpresta_shoppingcartsignin .show-on-mobile .jpresta-icons-user {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.8rem !important;
}
.jpresta_shoppingcartsignin .show-on-mobile .jpresta-icons-cart:before, .jpresta_shoppingcartsignin .show-on-mobile .jpresta-icons-user:before {
    margin-left: 0;
    margin-right: 0;
}

.jpresta_customersignin.show-on-mobile, .jpresta_shoppingcart.show-on-mobile {
    display: inline-block;
    text-align: center;
}

.jpresta_shoppingcart input[type=number] {
    padding: 3px;
    width: 4rem;
    text-align: right;
}

.jpresta_shoppingcartsignin .cart_product_desc .cart_remove_product {
    position: absolute;
    right: 0;
    background-color: rgb(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 2px 0 0 0;
    line-height: 1rem;
}

/* mobile / desktop */
@media (max-width: 767px) {
    .jpresta_shoppingcartsignin .hide-on-mobile {
        display: none;
    }
    .jpresta_shoppingcartsignin {
        margin: 0 0.3rem 0 0;
    }
    .jpresta_shoppingcart {
        margin: 0 0.5rem 0 0;
    }
    .jpresta_customersignin {
        margin: 0 0.5rem 0 0;
    }
}
@media (min-width: 768px) {
    .jpresta_shoppingcartsignin .show-on-mobile {
        display: none;
    }
}

.jprestaModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.jprestaModalContent {
    background-color: white;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.jprestaHidden {
    display: none;
}
