/**
 * Panier et commande WooCommerce : shortcodes classiques + blocs (Store / Checkout).
 */

body.woocommerce-cart .site-footer {
    display: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.125rem;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    background-color: var(--color-primary, #171717) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0;
    text-decoration: none !important;
    font-family: 'BVH Eddi', system-ui, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: normal;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus-visible {
    opacity: 0.92;
    color: #ffffff !important;
}

/* -------------------------------------------------------------------------
 * Blocs WooCommerce : « Valider la commande » / passer commande (sans fond
 * si le thème remet les boutons .wc-block-components-button à plat).
 * ------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout button.wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button[type="submit"],
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
body.woocommerce-cart a.wc-block-components-button.wc-block-cart__submit-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
    background-color: var(--color-primary, #171717) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0;
    text-decoration: none !important;
    font-family: 'BVH Eddi', system-ui, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
    letter-spacing: normal;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled),
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible:not(:disabled),
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button[type="submit"]:hover:not(:disabled),
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button[type="submit"]:focus-visible:not(:disabled),
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover,
body.woocommerce-cart a.wc-block-components-button.wc-block-cart__submit-button:hover {
    opacity: 0.92;
    color: #ffffff !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Commande classique (shortcode), au cas où */
body.woocommerce-checkout #place_order {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
    background-color: var(--color-primary, #171717) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0;
    font-family: 'BVH Eddi', system-ui, sans-serif;
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

body.woocommerce-checkout #place_order:hover:not(:disabled),
body.woocommerce-checkout #place_order:focus-visible:not(:disabled) {
    opacity: 0.92;
    color: #ffffff !important;
}
