/* buttons  */

.btncny {
    position: relative;
    text-decoration: none !important;
    font-family: roboto, sans-serif;
    overflow: hidden;
    padding: 10px 5px;
    border: none;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: none;
}

.btncny:disabled {
    cursor: auto;
    opacity: 0.5;
}

.btncny.btncny--primary {
    background-color: #51b7e6;
    border: 1px solid #51b7e6;
    background-image: -webkit-linear-gradient(top, #51b7e6, #4dafdd);
}

.btncny.btncny--secondary {
    background-color: white;
    border: 1px solid gray;
}

.btncny.btncny--secondary:hover:enabled {
    background-color: #efefef;
}

.btncny:hover:enabled {
    opacity: 0.9;
}

.btncny__text {
    color: #ffffff;
    transition: all 0.2s;
}

.btncny.btncny--secondary .btncny__text {
    color: #222;
}

.btncny--loading .btncny__text {
    visibility: hidden;
    opacity: 0;
}

.btncny--loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

.btncny.btncny--secondary.btncny--loading::after {
    border-top-color: #222;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* cart count */

.cartcount strong {
    margin-left: 5px;
    font-size: 1.1em;
}

.cartcount.hide {
    display: none;
}

.cartcount__text {
    font-size: 1em;
    color: white;
    background: #ff981d;
    text-align: center !important;
    border-radius: 30%;
    padding: 3px 6px 3px 6px;
    margin: 0;
    font-weight: bold;
}

.icon-basket {
    font-size: 1.5em;
    color: #ff981d;
}

.countdown {
    color: #ff981d;
    font-weight: bold;
    margin: 0;
}

.countdown.expired {
    color: #ff0000;
}

#carttopcount_mobile i {
    color: white;
}

#carttopcount_mobile {
    position: fixed;
    margin: 0 !important;
    z-index: 5000;
    right: 60px;
    top: 9px;
    height: 40px;
    padding-top: 5px;
    display: none;
}

@media (max-width: 768px) {
    #buy-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        z-index: 120;
        padding: 10px 20px 20px 10px;
    }

    .buy-link {
        text-align: center;
        margin: 5px 0;
        border-radius: 5px;
    }

    .buy-link a {
        padding: 15px;
    }

    /* Cachez les autres éléments dans le widget pour n'afficher que le bouton Réserver */
    .price-from,
    .buy-infos {
        display: none;
    }

    .modal-content {
        width: 100% !important;
        padding: 5px !important;
    }

    .modal-content p {
        font-size: 13px !important;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    text-align: center;
}

.modal-content img {
    display: inline !important;
    max-height: 70vh;
}

.modal-content p {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 3px;
    text-align: left;
}

.modal-content p.modal-desc {
    font-weight: bold;
    border: 2px solid #f9c73e;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#currency-selector {
    margin: 15px 0;
}

#currency {
    background-color: #ffff;
    color: black;
    border: 1px solid gray;
    padding: 3px;
    border-radius: 3px;
    width: 220px;
    font-weight: bold;
}
form.addtocart {
    padding: 10px;
}
#btn-viewcart {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Roboto", sans-serif;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 1px #ccc;
    border-radius: 3px;
    background-color: #51b7e6;
    background-image: -webkit-linear-gradient(top, #51b7e6, #4dafdd);
    background-image: -moz-linear-gradient(top, #51b7e6, #4dafdd);
    background-image: linear-gradient(top, #51b7e6, #4dafdd);
}
