body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.comesi-secondary-quote-button.button,
.comesi-secondary-quote-button {
    display: block;
    width: 100%;
    margin: 10px 0 0 !important;
    text-align: center;
    background: var(--comesi-quote, #c8202f) !important;
    border-color: var(--comesi-quote, #c8202f) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button.button,
.comesi-request-quote-button {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border-color: #000000 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    border-radius: var(--comesi-radius, 5px) !important;
    text-transform: uppercase !important;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button.button,
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.comesi-secondary-quote-button.button,
.comesi-request-quote-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px !important;
    height: auto !important;
    line-height: 20px !important;
    padding: 14px 20px !important;
    border-width: 0 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

/* Typographie strictement identique pour les trois lignes de totaux. */
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal th,
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td,
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal th *,
body.woocommerce-cart .cart_totals table.shop_table tr.cart-subtotal td *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal th *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart-subtotal td * {
    color: #20252a !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.tax-total th,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-total td,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-total th *,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-total td *,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-rate th,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-rate td,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-rate th *,
body.woocommerce-cart .cart_totals table.shop_table tr.tax-rate td *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-total th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-total td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-total th *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-total td *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-rate th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-rate td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-rate th *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.tax-rate td * {
    color: #687078 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .cart_totals table.shop_table tr.order-total th *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th * {
    color: #20252a !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total td,
body.woocommerce-cart .cart_totals table.shop_table tr.order-total td *,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td * {
    color: #20252a !important;
    font-family: inherit !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
}

body.woocommerce-cart .cart_totals table.shop_table .tax_label,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table .tax_label {
    font-style: normal !important;
    margin-left: 2px;
}

body.woocommerce-cart .cart_totals table.shop_table tr:not(.order-total) .tax_label,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr:not(.order-total) .tax_label {
    color: #687078 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

body.woocommerce-cart .cart_totals table.shop_table tr.order-total .tax_label,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total .tax_label {
    color: #20252a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Explicit wallet containers only; never hide generic children or ancestors. */
body.woocommerce-cart #wcpay-express-checkout-element,
body.woocommerce-cart #wcpay-express-checkout-button-separator,
body.woocommerce-cart #wc-stripe-express-checkout-element,
body.woocommerce-cart #wc-stripe-express-checkout-button-separator,
body.woocommerce-cart .wc-stripe-express-checkout-container,
body.woocommerce-cart .wc-stripe-express-checkout-wrapper,
body.woocommerce-cart #wc-stripe-payment-request-wrapper,
body.woocommerce-cart #wc-stripe-payment-request-button-separator,
body.woocommerce-cart .wcpay-payment-request-wrapper,
body.woocommerce-cart .wcpay-express-checkout-wrapper,
body.woocommerce-cart .wc-stripe-payment-request-wrapper,
body.woocommerce-cart .wc-block-components-express-payment,
body.woocommerce-cart .wc-block-components-express-payment__event-buttons,
body.woocommerce-cart .wc-block-components-express-payment__content,
body.woocommerce-cart #express-payment-method-woocommerce_payments_apple_pay,
body.woocommerce-cart #express-payment-method-woocommerce_payments_google_pay,
body.woocommerce-cart #express-payment-method-stripe_link,
body.woocommerce-cart .wc-stripe-link,
body.woocommerce-cart .stripe-link-authentication-element,
body.woocommerce-cart #pay_with_amazon,
body.woocommerce-cart .amazon-payments-advanced-button-container,
body.woocommerce-cart .wc-amazon-payments-advanced-order-review-button,
body.woocommerce-cart .paypal-buttons {
    display: none !important;
}

.comesi-quote-form-wrap {
    max-width: 920px;
    margin: 25px auto 60px;
}

.comesi-quote-form fieldset {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid #dfe3e7;
}

.comesi-quote-form legend {
    padding: 0 8px;
    color: #094074;
    font-size: 18px;
    font-weight: 700;
}

.comesi-quote-form .form-row {
    margin: 0 0 15px;
}

.comesi-quote-form .input-text {
    width: 100%;
}

.comesi-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.comesi-generate-quote {
    width: 100%;
    min-height: 48px;
    background: #ffd401 !important;
    border-color: #ffd401 !important;
    color: #20252a !important;
    font-weight: 700 !important;
}

.comesi-privacy {
    color: #687078;
    font-size: 12px;
}

@media (max-width: 640px) {
    .comesi-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .comesi-quote-form fieldset { padding: 15px; }
}
