/* 
    * CSS specific to modules
*/

/* 
 * myprestaloyalty - Fidélité 
 */

#loyalty_cart {
    background: transparent;
    margin: 16px;
    padding: 16px 24px;
    border-radius: 32px;
    border: 2px solid var(--color-primary);
}


/* 
 *  Brand Order Days
*/

.cart-product-restriction-message {
    position: relative;
    width: 100%;
    top: unset;
    right: unset;
    padding: 8px 0;
    margin: 0;
    max-width: unset;
    transform: none;
}

.cart-product-restriction-message p {
    color: var(--color-error);
    font-weight: 600;
}

.product-line-grid-right .cart-line-product-actions:has(.cart-product-restriction-message) .remove-from-cart {
    display: flex;
    margin: 0;
}

.product-line-grid-right .cart-line-product-actions:has(.cart-product-restriction-message) .remove-from-cart svg path {
    fill: var(--color-error);
    stroke: var(--color-error);
}

.product-line-grid:has(.cart-product-restriction-message) .row:has(> .price),
.product-line-grid:has(.cart-product-restriction-message) .product-line-grid-left,
.product-line-grid:has(.cart-product-restriction-message) .product-line-grid-body {
    opacity: 0.3;
}


/* Restriction banner */
.brandorderdays-banner {
    background-color: var(--color-accent);
    color: var(--color-black);
    padding: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 0;
}

.brandorderdays-banner * {
    background-color: transparent !important;
    border-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px;
    line-height: 18px;
}

@media (max-width: 767px) {
    .brandorderdays-banner * {
        font-size: 14px;
        line-height: 16px;
    }
}








/* 
 * Carrier Postcode Restriction
*/

.carrierpostcoderestriction-notice {
    background: var(--color-white);
    margin-bottom: 16px;
}

.carrierpostcoderestriction-notice h4,
.carrierpostcoderestriction-notice p {
    color: var(--color-black);
}

.carrierpostcoderestriction-notice a {
    color: var(--color-secondary);
}

.carrierpostcoderestriction-notice a:hover {
    color: var(--color-primary);
}

.product-miniature .brand-restriction-flag {
    background: var(--color-accent);
    color: var(--color-black);
    text-transform: none;
    padding: 4px 8px;
    border-radius: 12px;

    /* Hidden for now */
    display: none;
}

/* Product restriction message */
.product-restriction-message {
    margin: 0;
    border-radius: 32px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-black);
}

.product-restriction-message i {
    display: none;
}



/* 
 * Weekly Order Schedule Notice
*/
.weeklyorderschedule-notice {
    background-color: var(--color-white);
    border-radius: 32px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--color-black);
}

.weeklyorderschedule-notice .texts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weeklyorderschedule-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 575px) {
    .weeklyorderschedule-links {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* 
* Sogecommerce
*/

#checkout #wrapper #content .row:has(#sogecommerce_content)>div {
    width: 100%;
}

#sogecommerce_content {
    border-radius: 32px;
}

#sogecommerce_content h1.step-title {
    text-align: center;
    display: block;
}

#sogecommerce_submit_payment {
    border-radius: 32px;
    background: var(--color-primary);
    color: var(--color-white);
}

#sogecommerce_submit_payment:hover {
    background-color: var(--color-secondary);
}


/* 
 * Modules Prestashop 
*/

/* 
 * Cash On Delivery
*/
#ps_cashondelivery-displayOrderConfirmation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#ps_cashondelivery-displayOrderConfirmation p:first-child {
    display: none;
}

/* 
 * Wish list
*/

.wishlist-list-item:hover .wishlist-list-item-title {
    color: var(--color-primary) !important;
}

/* Hide wishlist product details & actions */
.wishlist-product-combinations,
.wishlist-product-addtocart {
    display: none !important;
}



/*
 * Block Cart
 */

/* Base styles */
#header .header-nav .blockcart {
    background: var(--color-white);
    color: var(--color-black);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    gap: 10px;
    height: 100%;
    margin: 0;
}

#header .header-nav .blockcart a:hover {
    color: var(--color-primary);
}

#header .header-nav .blockcart .shopping-cart {
    color: var(--color-black-light);
}

/* Active state */
#header .header-nav .blockcart.active {
    background: var(--color-primary);
}

#header .header-nav .blockcart.active a,
#header .header-nav .blockcart.active a:hover,
#header .header-nav .blockcart.active i {
    color: var(--color-white-light);
}

/* Layout */
#header .header-nav .blockcart .header,
#header .header-nav .blockcart a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#header .header-nav .blockcart a .cart-texts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Icons */
#header .header-nav .blockcart .icon {
    height: 24px;
    width: 24px;
}

#header .header-nav .blockcart.active .icon.panier {
    fill: var(--color-white-light);
}

#header .header-nav .blockcart.inactive .icon.panier {
    fill: var(--color-primary);
}



/* 
 * blockreassurance
*/
.blockreassurance_product {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.blockreassurance_product>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.blockreassurance_product>div.clearfix {
    display: none;
}

/* ps_shoppingcart */



/* ps_mailsubscription */

/* Newsletter section */

#footer>.container {
    width: 100%;
    padding: 0;
}

.block_newsletter.newsletterBanner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    background-color: var(--color-white-light);
    max-width: none;
    gap: 64px;
}

.newsletterBanner>div {
    display: flex;
    flex-direction: column;
    min-width: 45%;
    gap: 16px;
}

.newsletterBanner form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 450px;
}

.newsletter-consent,
.privacy-consent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: 100%;
}

.newsletter-consent input[type="checkbox"],
.privacy-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.newsletter-consent input[type="checkbox"]:checked,
.privacy-consent input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-consent input[type="checkbox"]:checked::after,
.privacy-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--color-white-light);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.newsletter-consent input[type="checkbox"]:hover,
.privacy-consent input[type="checkbox"]:hover {
    border-color: var(--color-primary);
}

.newsletter-consent label,
.privacy-consent label {
    cursor: pointer;
    line-height: 1.5;
    margin: 0;

    font-weight: 400;
}

.privacy-consent a {
    color: inherit;
    text-decoration: underline;
}

.privacy-consent a:hover {
    text-decoration: none;
}

.newsletterBanner input[type="submit"] {
    padding: 14px 20px;
    background-color: var(--color-primary);
    color: var(--color-white-light);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.newsletterBanner input[type="submit"]:hover {
    background-color: var(--color-secondary);
}

@media (max-width: 767px) {
    .block_newsletter.newsletterBanner {
        flex-direction: column;
        padding: 40px 5%;

        gap: 12px;
    }

    .newsletterBanner .newsletter-title {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .newsletterBanner form>div,
    .newsletterBanner form>div>div {
        padding: 0 !important;
        width: 100%;
    }

    .newsletterBanner input[type="submit"] {
        width: 100% !important;
    }
}


/* block Wishlist */
/* Modal "add to wishlist" */
.wishlist-add-to .modal-footer {
    text-align: center;

    display: flex;
    flex-direction: row;
    justify-content: center;
}

.wishlist-modal .wishlist-list {
    padding: 16px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wishlist-modal .wishlist-list .wishlist-list-item {
    display: flex;
    border: 1px solid var(--color-white);
    background-color: var(--color-white);
    border-radius: 24px;
    padding: .75rem;
}

.wishlist-modal .wishlist-list .wishlist-list-item:hover {
    border: 1px solid var(--color-primary);
    background-color: transparent;
}


.wishlist-modal .wishlist-add-to-new.text-primary,
.wishlist-modal .wishlist-add-to-new>i.material-icons {
    color: var(--color-secondary) !important;
}

.wishlist-modal .wishlist-add-to-new.text-primary:hover,
.wishlist-modal .wishlist-add-to-new:hover>i.material-icons {
    color: var(--color-primary) !important;
    opacity: 100%;
}