/*
 Theme Name:   location-jonzac
 Theme URI:    https://residenceczarny.fr
 Description:  location-jonzac theme
 Author:       Nicolas Métivier & Thomas Bleneau
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light
 Text Domain:  location-jonzac
*/


/********************************
        WOOCOMMERCE CART
********************************/

:root {
    --woocommerceCartPrimaryColor: #1A2551;
    --woocommerceCartFontColor: #222222;
    --woocommerceCartBackgroundColor: #FFFFFF;
    --woocommerceCartBorderColor: rgba(26, 37, 81, 0.1);
}

.woocommerce-cart .woocommerce .cart-empty-container {
    padding: 30px;
    background: var(--woocommerceCartBackgroundColor);
    border-radius: 5px;
}

.woocommerce-cart .woocommerce .cart-empty.woocommerce-info {
    border: none;
    background: none;
}

.woocommerce-cart .woocommerce .cart-empty.woocommerce-info::before {
    color: var(--woocommerceCartPrimaryColor);
}

.woocommerce-cart .woocommerce .woocommerce-message,
.woocommerce-cart .woocommerce .woocommerce-error,
.woocommerce-cart .woocommerce .woocommerce-info:not(.cart-empty):not(.woocommerce-notice--info) {
    top: 150px;
    right: 0;
    font-size: 15px;
    background: var(--woocommerceCartPrimaryColor);
    border: none;
    position: fixed;
    max-width: calc(100% - 30px);
    width: 400px;
    display: flex;
    transform: translateX(150%);
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    font-weight: 400;
    color: var(--woocommerceNoticeBackgroundColor);
    box-shadow: 0 4px 18px var(--woocommerceNoticeBorderColor);
    padding: 20px 20px 20px 80px;
    min-height: 90px;
    animation: slide 5s;
}

.woocommerce-cart .woocommerce .woocommerce-message a,
.woocommerce-cart .woocommerce .woocommerce-error a,
.woocommerce-cart .woocommerce .woocommerce-info:not(.cart-empty):not(.woocommerce-notice--info) a {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.woocommerce-cart .woocommerce .woocommerce-message::before,
.woocommerce-cart .woocommerce .woocommerce-error::before,
.woocommerce-cart .woocommerce .woocommerce-info:not(.cart-empty):not(.woocommerce-notice--info)::before {
    top: 50%;
    transform: translateY(-50%);
    color: var(--woocommerceCartBackgroundColor);
    width: 45px;
    height: 45px;
    font-size: 22px;
    padding: 5px 10px;
    left: 20px;
}
@-webkit-keyframes slide{
    0% {
        transform: translateX(150%);
        display: none;

    }
    20%
    {
        transform: translateX(0%);
        display: block;
    }
    80%
    {
        transform: translateX(0%);
    }
    100%
    {
        transform: translateX(150%);
        display: none!important;
    }
}

@media only screen and (max-width: 991px) {

    .woocommerce-cart .woocommerce .woocommerce-message,
    .woocommerce-cart .woocommerce .woocommerce-error,
    .woocommerce-cart .woocommerce .woocommerce-info:not(.cart-empty):not(.woocommerce-notice--info) {
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        max-height: 72px;
        min-height: 72px;
        width: 100%;
        margin: 0;
        z-index: 99;
        transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
        animation: mob-slide 6s ease-in-out;
    }

    .woocommerce-cart .woocommerce .woocommerce-message::before,
    .woocommerce-cart .woocommerce .woocommerce-error::before,
    .woocommerce-cart .woocommerce .woocommerce-info:not(.cart-empty):not(.woocommerce-notice--info)::before {
        left: 10px;
    }

    @-webkit-keyframes mob-slide {
        0% {
            transform: translateY(-100%);
            display: none;
    
        }
        20%
        {
            transform: translateY(100%);
            display: block;
        }
        80%
        {
            transform: translateY(100%);
        }
        100%
        {
            transform: translateY(-100%);
            display: none!important;
        }
    }
}

.woocommerce-cart .woocommerce h2 {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 60px;
    margin-top: 0;
    width: 100%;
    text-transform: uppercase;
    color: var(--woocommerceCartPrimaryColor);
}

.woocommerce-cart .woocommerce h2::after {
    position: absolute;
    content: '';
    display: block;
    margin-top: 15px;
    width: 100px;
    opacity: 1;
    height: 1px;
    background-color: var(--woocommerceCartPrimaryColor);
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.woocommerce-cart .woocommerce table.shop_table {
    border-radius: 0;
    background: var(--woocommerceCartBackgroundColor);
    margin: 0;
}

.woocommerce-cart .woocommerce .cart-collaterals {
    margin-top: 60px;
}

.woocommerce-cart .woocommerce .cart_form,
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    padding: 30px;
    background: var(--woocommerceCartBackgroundColor);
    border-radius: 5px;
}

.woocommerce-cart .woocommerce table.shop_table tbody:first-child tr th {
    background: var(--woocommerceCartBorderColor);
    color: var(--woocommerceCartFontColor);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: normal;
}

.woocommerce-cart .woocommerce table.shop_table thead {
    background-color: var(--woocommerceCartBorderColor);
    color: var(--woocommerceCartBackgroundColor);
}

.woocommerce-cart .woocommerce table.shop_table thead th {
    word-break: break-word;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--woocommerceCartFontColor);
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td {
    padding: 40px 15px;
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    width: 60%;
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon input {
    font-size: 15px;
    color: var(--woocommerceCartFontColor);
    width: 50%;
    margin: 0;
    height: 40px;
    border: 1px solid var(--woocommerceCartBorderColor);
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon button {
    width: 50%;
    margin-top: 30px;
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody a {
    color: var(--woocommerceCartFontColor);
}

.woocommerce-cart .woocommerce table.shop_table.cart a.remove {
    font-weight: normal;
    color: var(--woocommerceCartBackgroundColor) !important;
    background: var(--woocommerceCartFontColor);
    line-height: 0.9;
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody td.product-name dl.variation {
    margin-bottom: 0;
}

.woocommerce-cart .woocommerce table.shop_table.cart tbody td.product-name dl.variation dt {
    color: var(--woocommerceCartFontColor);
    font-size: 15px;
    text-align: center;
    font-weight: bold;
}

.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .woocommerce .wc-proceed-to-checkout > * {
    height: auto !important;
    min-height: 50px;
    overflow: visible !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

@media only screen and (max-width: 768px) {

    .woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon,
    .woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon button,
    .woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon input {
        width: 100%;
        float: none;
    }

    .woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td .coupon button {
        padding: 0;
    }

    .woocommerce-cart .woocommerce table.shop_table.cart tbody tr button {
        margin-top: 30px;
    }

    .woocommerce-cart .woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {
        content: attr(data-title) " : ";
        font-weight: normal;
        float: left;
    }

    .woocommerce-cart .woocommerce table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
        background-color: var(--woocommerceCartBackgroundColor);
    }
}


.woocommerce-cart .woocommerce .wcpa_cart_val .wcpa_cart_price {
    font-size: 0px;
}

.woocommerce-cart .woocommerce .wcpa_cart_val .wcpa_cart_price .wcpa_price {
    font-size: 15px;
}

.woocommerce-cart .woocommerce .wcpa_cart_val > span:first-child {
    display: none;
    opacity: 0;
    visibility: hidden;
}
