/* -------------
    SOMMAIRE
------------- */

/*
    @AUTHOR : Nicolas BOUDOT

    PRODUCTS
    Styles du panier WooCommerce
*/

/*
  00 - GÉNÉRAL
  01 - WIDGET PANIER
  02 - MON PANIER
  03 - VALIDATION DE LA COMMANDE
*/



/* -----------------
  00 - GÉNÉRAL
----------------- */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    margin-bottom: 30px;
}



/* ---------------------
  01 - WIDGET PANIER
--------------------- */

/* Général */
.wc-block-mini-cart__drawer {
    font-size: 1.6rem;
}

/* Bouton de fermeture */
.wc-block-components-drawer__close {
    cursor: pointer;
}

/* @changelog 2024-04-26 [EVOL] (Nicolas) Bouton "Commencer les achats". Surcharge le plugin WooCommerce. Style comme .btn */
.wp-block-button__link.wc-block-components-button:not(.is-link) {
    transition: background-color .4s, color .4s, border-color .4s;
}

/* Économisez XX€ */
.wc-block-components-product-badge {
    margin-top: 5px;
}

/* @changelog 2024-04-26 [FIX] (Nicolas) Voir mon panier. Surcharge le plugin WooCommerce. Style comme .btn */
.wc-block-components-button:not(.is-link).outlined:not(:focus) {
    box-shadow: none;
}



/* -----------------
  02 - MON PANIER
----------------- */

/* Mettre à jour le panier */
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:disabled,
:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:disabled[disabled] {
    padding: 6px 24px;
}

.woocommerce-cart .wc-proceed-to-checkout {
    display: flex;
    justify-content: flex-end;
}

/* Valider la commande */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    margin-bottom: 0;
}



/* ---------------------------------
  03 - VALIDATION DE LA COMMANDE
--------------------------------- */

/* Commander */
@media (max-width: 991px) {
    .woocommerce #payment #place_order,
    .woocommerce-page #payment #place_order {
        margin-top: 15px;
    }
}
