.cestier_rq_quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #333;
}

.cestier_rq_quantity-wrapper.is-hidden {
    visibility: hidden !important;
    height: auto !important;
    min-height: 2.5em !important;
    margin-bottom: 1rem !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cestier_rq_quantity-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    min-width: 90px;
}

.cestier_rq_quantity-field .qty {
    max-width: 80px;
    text-align: center;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #d4d4d4;
}

.cestier_rq_quantity-wrapper+.yith-ywraq-add-button .add-request-quote-button {
    margin-top: 0.3rem;
}

/* Le champ quantité est maintenant géré par JavaScript et CSS conditionnel */

/* ============================================
   QUANTITY FIELD POSITIONING ON SINGLE PRODUCT
   ============================================ */

/* ============================================
   QUANTITY FIELD POSITIONING ON SINGLE PRODUCT
   ============================================ */

/* Créer un conteneur flex pour aligner quantité + boutons */
body.single-product .woocommerce div.product form.cart::after,
body.single-product .woocommerce div.product div.summary form.cart::after {
    content: '' !important;
    display: table !important;
    clear: both !important;
}

/* Groupe quantité + boutons - Si le wrapper existe */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_wrapper,
body.single-product .woocommerce div.product div.summary form.cart .single_add_to_cart_wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* Si pas de wrapper, créer un groupe inline-flex pour quantité + boutons */
/* Champ quantité avec label - règles très spécifiques */
body.single-product .woocommerce div.product form.cart:not(.variations_form) .quantity,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) .quantity,
body.single-product form.cart:not(.variations_form) .quantity,
body.single-product .wp-block-add-to-cart-form form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    vertical-align: middle !important;
    margin-bottom: 0 !important;
    margin-right: 12px !important;
    margin-top: 0 !important;
    float: none !important;
    gap: 0 !important;
    position: relative !important;
    flex-wrap: nowrap !important;
    height: auto !important;
}

/* S'assurer que les boutons +/- de WooCommerce sont alignés */
body.single-product .woocommerce div.product form.cart .quantity .qty,
body.single-product .woocommerce div.product div.summary form.cart .quantity .qty {
    margin: 0 !important;
    vertical-align: middle !important;
}


/* Style et positionnement du champ quantité natif WooCommerce */
body.single-product .woocommerce div.product form.cart input.qty,
body.single-product .woocommerce div.product form.cart input.input-text.qty,
body.single-product .woocommerce div.product form.cart .quantity input.qty,
body.single-product .woocommerce div.product div.summary form.cart input.qty,
body.single-product .woocommerce div.product div.summary form.cart input.input-text.qty,
body.single-product .woocommerce div.product div.summary form.cart .quantity input.qty {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    padding: 12px 8px !important;
    text-align: center !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    flex-shrink: 0 !important;
}

/* Masquer le champ quantité quand le produit est déjà dans le devis */
/* Utiliser une classe ajoutée par JavaScript */
/* Masquer le champ quantité quand le produit est déjà dans le devis */
body.single-product .woocommerce div.product form.cart.product-already-in-quote .quantity,
body.single-product .woocommerce div.product div.summary form.cart.product-already-in-quote .quantity,
body.single-product form.cart.product-already-in-quote .quantity {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Masquer directement le champ quantité si le message "déjà dans le devis" est visible */
body.single-product .woocommerce div.product form.cart:has(.cestier_rq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity,
body.single-product .woocommerce div.product form.cart:has(.yith_ywraq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity,
body.single-product .woocommerce div.product div.summary form.cart:has(.cestier_rq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity,
body.single-product .woocommerce div.product div.summary form.cart:has(.yith_ywraq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Masquer le champ quantité quand le sibling suivant a le message visible (le div yith-ywraq-add-to-quote est après le form) */
body.single-product form.cart:has(+ .yith-ywraq-add-to-quote .cestier_rq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity,
body.single-product form.cart:has(+ .yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message[style*="display:block"]:not([style*="display:none"])) .quantity,
body.single-product form.cart:has(+ .yith-ywraq-add-to-quote .cestier_rq_add_item_response_message.show) .quantity,
body.single-product form.cart:has(+ .yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message.show) .quantity {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Masquer aussi si le message "déjà dans le devis" est visible (fallback CSS) */
body.single-product .woocommerce div.product form.cart .cestier_rq_add_item_response_message.show {
    display: block !important;
}

/* Masquer la quantité si elle est suivie du message "déjà dans le devis" visible */
body.single-product .woocommerce div.product form.cart .quantity+.yith-ywraq-add-to-quote .cestier_rq_add_item_response_message.show {
    pointer-events: none;
}

body.single-product .woocommerce div.product form.cart input.qty:focus,
body.single-product .woocommerce div.product form.cart input.input-text.qty:focus,
body.single-product .woocommerce div.product div.summary form.cart input.qty:focus,
body.single-product .woocommerce div.product div.summary form.cart input.input-text.qty:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

/* Grouper quantité + boutons - Approche plus simple */
body.single-product .woocommerce div.product form.cart:not(.variations_form) .quantity,
body.single-product .woocommerce div.product form.cart:not(.variations_form) button.single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart:not(.variations_form) .yith-ywraq-add-to-quote,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) .quantity,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) button.single_add_to_cart_button,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) .yith-ywraq-add-to-quote {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
}

/* Alignement des boutons avec le champ quantité */
body.single-product .woocommerce div.product form.cart:not(.variations_form) button.single_add_to_cart_button,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) button.single_add_to_cart_button {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    flex-shrink: 0 !important;
}

body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.single-product .woocommerce div.product div.summary form.cart button.single_add_to_cart_button {
    order: 2 !important;
    margin: 0 !important;
    margin-right: 12px !important;
}

/* Positionnement du bouton Add to Quote - Surcharge les styles dynamiques */
body.single-product .woocommerce.single-product .product .yith-ywraq-add-to-quote,
body.single-product .woocommerce div.product form.cart:not(.variations_form) .yith-ywraq-add-to-quote,
body.single-product .woocommerce div.product div.summary form.cart:not(.variations_form) .yith-ywraq-add-to-quote {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

body.single-product .woocommerce.single-product .product .yith-ywraq-add-to-quote .add-request-quote-button.button,
body.single-product .woocommerce div.product form.cart .add-request-quote-button.button,
body.single-product .woocommerce div.product div.summary form.cart .add-request-quote-button.button {
    margin: 0 !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    min-width: auto !important;
    max-width: none !important;
    vertical-align: middle !important;
}

/* Alignement vertical avec le bouton Add to Cart */
body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .add-request-quote-button.button,
body.single-product .woocommerce div.product div.summary form.cart button.single_add_to_cart_button,
body.single-product .woocommerce div.product div.summary form.cart .add-request-quote-button.button {
    height: auto !important;
    line-height: 1.5 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* Pour les produits variables */
body.single-product .woocommerce div.product form.variations_form .yith-ywraq-add-to-quote {
    margin-top: 16px !important;
    display: block !important;
    order: unset !important;
}

body.single-product .woocommerce div.product form.variations_form .add-request-quote-button.button {
    width: 100% !important;
    max-width: 300px !important;
}

/* Responsive pour la page produit */
@media screen and (max-width: 768px) {

    body.single-product .woocommerce div.product form.cart .single_add_to_cart_wrapper,
    body.single-product .woocommerce div.product div.summary form.cart .single_add_to_cart_wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.single-product .woocommerce div.product form.cart .quantity,
    body.single-product .woocommerce div.product div.summary form.cart .quantity {
        width: 100% !important;
        max-width: 150px !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
    body.single-product .woocommerce div.product form.cart .add-request-quote-button.button,
    body.single-product .woocommerce div.product div.summary form.cart button.single_add_to_cart_button,
    body.single-product .woocommerce div.product div.summary form.cart .add-request-quote-button.button {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce div.product form.cart .yith-ywraq-add-to-quote,
    body.single-product .woocommerce div.product div.summary form.cart .yith-ywraq-add-to-quote {
        width: 100% !important;
        display: block !important;
    }
}

@font-face {
    font-family: 'ywraq-quote-icon';
    src: url('../icons/ywraq-quote-icon.eot?ygyboi');
    src: url('../icons/ywraq-quote-icon.eot?ygyboi#iefix') format('embedded-opentype'),
        url('../icons/ywraq-quote-icon.ttf?ygyboi') format('truetype'),
        url('../icons/ywraq-quote-icon.woff?ygyboi') format('woff'),
        url('../icons/ywraq-quote-icon.svg?ygyboi#ywraq-quote-icon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="ywraq-quote-icon-"],
[class*=" ywraq-quote-icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'ywraq-quote-icon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ywraq-quote-icon-more_horizontal:before {
    content: "\e904";
    color: #000;
}

.ywraq-quote-icon-icon_quote:before {
    content: "\e904";
    color: #777;
}

.ajax-loading,
.product-remove a.yith-ywraq-item-remove.remove {
    display: inline-block;
}

.product-remove {
    width: 1%;
}

.product-remove .ajax-loading {
    vertical-align: text-bottom;
}

#yith-ywraq-form table.cart .product-thumbnail {
    display: table-cell;
}

#yith-ywraq-form .product-name ul li {
    font-size: .9rem;
}

#yith-ywraq-form .product-subtotal,
#yith-ywraq-form .product-quantity,
#yith-ywraq-form .product-price {
    text-align: right;
    padding: 30px 15px;
}

.woocommerce #yith-ywraq-form table.shop_table.cart div.product-thumbnail img {
    max-width: 60px;
}

.add-request-quote-button.disabled {
    opacity: .5 !important;
    cursor: not-allowed;
}

#ywraq_cart_quote.button,
#ywraq_checkout_quote_button.button {
    background: var(--ywraq_checkout_button_bg_color);
    color: var(--ywraq_checkout_button_color);
    border: 1px solid var(--ywraq_checkout_button_color);
    width: 100%;
}

#ywraq-request-a-quote-on-cart p.form-row.form-row-wide.raq-send-request-row {
    text-align: right;
}

#ywraq-request-a-quote-on-cart p.form-row.form-row-wide.raq-send-request-row input {
    margin-right: 0px;
    text-transform: uppercase;
}

.yith-ywraq-mail-form-wrapper input::placeholder,
.yith-ywraq-mail-form-wrapper textarea::placeholder {
    color: #ccc !important;
    font-size: 1em !important;
}

#ywraq_cart_quote.button:hover,
#ywraq_checkout_quote_button.button:hover {
    background: var(--ywraq_checkout_button_bg_color_hover);
    color: var(--ywraq_checkout_button_color_hover);
    border: 1px solid var(--ywraq_checkout_button_color);
}

.raq-totals-row {
    border: 0 !important;
}

.hide-modal {
    display: none;
}

.woocommerce .related ul li.product img,
.woocommerce .related ul.products li.product img.ajax-loading {
    width: auto;
}

.g-recaptcha {
    margin-bottom: 20px;
}

.ywraq-form-table-wrapper.vertical .nf-form-content {
    margin: 0 !important;
}

.ywraq-form-table-wrapper.wide .nf-form-cont {
    margin-left: 50px;
}

/* ============================================
   MODERN CATALOG BUTTON STYLES
   ============================================ */

/* ============================================
   MODERN CATALOG BUTTON STYLES - REDESIGNED
   ============================================ */

/* Bouton Add to Quote dans le catalogue - Style moderne et élégant */
.woocommerce ul.products li.product a.add-request-quote-button.button,
.wp-block-post.product a.add-request-quote-button.button,
a.add-request-quote-button.button {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    word-break: break-word;
    padding: 10px 18px;
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.wp-block-post.product a.button,
.wp-block-post.product .add-request-quote-button.button,
.wp-block-post.product .add-request-quote-button-addons.button,
.woocommerce .add-request-quote-button.button,
.woocommerce .add-request-quote-button-addons.button {
    background: linear-gradient(135deg, var(--ywraq_layout_button_bg_color, #dc3545) 0%, var(--ywraq_layout_button_bg_color_hover, #c82333) 100%) !important;
    color: var(--ywraq_layout_button_color, #fff) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25) !important;
    transition: all 0.3s ease !important;
}

/* Effet de brillance au survol */
.woocommerce .add-request-quote-button.button::before,
.woocommerce .add-request-quote-button-addons.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.woocommerce .add-request-quote-button.button:hover::before,
.woocommerce .add-request-quote-button-addons.button:hover::before {
    left: 100%;
}

.woocommerce .add-request-quote-button.button:hover,
.woocommerce .add-request-quote-button-addons.button:hover {
    background: linear-gradient(135deg, var(--ywraq_layout_button_bg_color_hover, #c82333) 0%, var(--ywraq_layout_button_bg_color, #a71e2a) 100%) !important;
    color: var(--ywraq_layout_button_color_hover, #fff) !important;
    border: none !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4) !important;
}

.woocommerce .add-request-quote-button.button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3) !important;
}

/* État focus pour l'accessibilité */
.woocommerce .add-request-quote-button.button:focus {
    outline: 2px solid rgba(220, 53, 69, 0.5);
    outline-offset: 2px;
}

/* Icône dans le bouton - Style moderne */
.add-request-quote-button.button i.ywraq-quote-icon-icon_quote {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.woocommerce .add-request-quote-button.button:hover i.ywraq-quote-icon-icon_quote {
    transform: scale(1.1);
    opacity: 1;
}

/* Wrapper du bouton dans les cartes produits */
.yith-ywraq-add-to-quote {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Champ quantité dans le catalogue */
.woocommerce ul.products li.product .cestier_rq_quantity-wrapper {
    margin-bottom: 8px;
    margin-top: 0;
    width: 100%;
    min-height: 2.5em;
    box-sizing: border-box;
}

/* Conserver l'espacement quand le champ quantité est caché */
.woocommerce ul.products li.product .cestier_rq_quantity-wrapper.is-hidden {
    visibility: hidden !important;
    height: auto !important;
    min-height: 2.5em !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: block !important;
}

.woocommerce ul.products li.product .cestier_rq_quantity-field .qty {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.woocommerce ul.products li.product .cestier_rq_quantity-field .qty:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Messages de réponse modernes - Redesign complet */
.yith_ywraq_add_item_product_message,
.yith_ywraq_add_item_response_message,
.yith_ywraq_add_item_browse_message {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 6px;
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 3px solid;
    position: relative;
    overflow: hidden;
    clear: both;
}

/* Affichage par défaut pour les messages de produit et de réponse */
.yith_ywraq_add_item_product_message,
.yith_ywraq_add_item_response_message {
    display: block;
}

.yith_ywraq_add_item_product_message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.yith_ywraq_add_item_response_message {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left-color: #ffc107;
}

/* Message "Produit déjà dans le devis" - Style plus discret et moderne dans le catalogue - RÈGLES TRÈS SPÉCIFIQUES */
.woocommerce ul.products li.product .yith_ywraq_add_item_response_message,
.woocommerce ul.products li.product .cestier_rq_add_item_response,
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_response"],
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_response"],
.wp-block-post.product .yith_ywraq_add_item_response_message,
.wp-block-post.product .cestier_rq_add_item_response {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-left-color: #6c757d !important;
    border-radius: 4px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    line-height: 1.5 !important;
}

/* Icône dans le catalogue - RÈGLES TRÈS SPÉCIFIQUES */
.woocommerce ul.products li.product .yith_ywraq_add_item_response_message::before,
.woocommerce ul.products li.product .cestier_rq_add_item_response::before,
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_response"]::before,
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_response"]::before,
.wp-block-post.product .yith_ywraq_add_item_response_message::before,
.wp-block-post.product .cestier_rq_add_item_response::before {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.8rem !important;
    margin-right: 6px !important;
}

.yith_ywraq_add_item_browse_message,
.cestier_rq_add_item_browse-list {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    color: #1b5e20 !important;
    border-left-color: #00C853 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 8px 12px !important;
}

/* Forcer le masquage si la classe hide est présente */
.yith_ywraq_add_item_browse_message.hide {
    display: none !important;
}

/* Afficher seulement si la classe show est présente */
.yith_ywraq_add_item_browse_message.show {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Icône avant le message */
.yith_ywraq_add_item_response_message::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-right: 3px;
}

/* Réduire l'icône dans le catalogue */
.woocommerce ul.products li.product .yith_ywraq_add_item_response_message::before,
.wp-block-post.product .yith_ywraq_add_item_response_message::before {
    width: 10px !important;
    height: 10px !important;
    font-size: 0.5rem !important;
    margin-right: 2px !important;
}

/* Supprimer l'icône ::before pour le message browse, on utilise le bouton à la place */
.yith_ywraq_add_item_browse_message::before {
    display: none !important;
}

.yith_ywraq_add_item_browse_message a,
.cestier_rq_add_item_browse-list a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #00C853 0%, #00A844 100%) !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 200, 83, 0.3) !important;
    font-size: 0.875rem !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.yith_ywraq_add_item_browse_message a::before {
    display: none !important;
}

.yith_ywraq_add_item_browse_message a:hover,
.cestier_rq_add_item_browse-list a:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00A844 0%, #008638 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.4) !important;
}

.yith_ywraq_add_item_browse_message a:hover::before {
    display: none !important;
}

/* Dans le catalogue, le message "Voir ma demande" doit être compact */
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message,
.wp-block-post.product .yith_ywraq_add_item_browse_message {
    padding: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Forcer le masquage si la classe hide est présente */
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message.hide,
.wp-block-post.product .yith_ywraq_add_item_browse_message.hide,
.yith_ywraq_add_item_browse_message.hide {
    display: none !important;
}

/* Afficher seulement si la classe show est présente */
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message.show,
.wp-block-post.product .yith_ywraq_add_item_browse_message.show {
    display: block !important;
    padding: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Bouton "Voir ma demande de devis" - RÈGLES TRÈS SPÉCIFIQUES */
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message a,
.woocommerce ul.products li.product .cestier_rq_add_item_browse-list a,
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_browse-list"] a,
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_browse_message"] a,
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .yith_ywraq_add_item_browse_message a,
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .cestier_rq_add_item_browse-list a,
.wp-block-post.product .yith_ywraq_add_item_browse_message a,
.wp-block-post.product .cestier_rq_add_item_browse-list a {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    background: linear-gradient(135deg, #00C853 0%, #00A844 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 200, 83, 0.3) !important;
    border-radius: 4px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    min-height: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-decoration: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-weight: 500 !important;
}

/* CORRECTION : Empêcher le bouton d'être coupé */
.woocommerce ul.products li.product {
    overflow: visible !important;
}

.woocommerce ul.products li.product .yith-ywraq-add-to-quote {
    overflow: visible !important;
    padding-bottom: 2px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Masquer le message "Produit déjà dans le devis" dans le flux normal (il est sur l'image) */
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message.show,
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .cestier_rq_add_item_response.show {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Aligner les boutons sur la même ligne */
.woocommerce ul.products li.product .yith-ywraq-add-button,
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message,
.woocommerce ul.products li.product a.yith_ywraq_add_item_browse_message {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 50% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.woocommerce ul.products li.product .yith-ywraq-add-button {
    margin-top: 0 !important;
}

.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message,
.woocommerce ul.products li.product a.yith_ywraq_add_item_browse_message {
    margin-top: 0 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message {
    overflow: visible !important;
    margin-bottom: 0 !important;
}

/* Intégration avec les cartes produits WooCommerce */

/* Animation de chargement */
.add-request-quote-button.button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.add-request-quote-button.button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Style pour les blocs Gutenberg */
.wp-block-post.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    height: 500px;
    /* Hauteur fixe pour uniformiser toutes les cartes */
}

.wp-block-post.product .wp-block-post__featured-image,
.wp-block-post.product .wp-block-post-featured-image {
    max-height: 250px;
    overflow: hidden;
}

.wp-block-post.product .wp-block-post__featured-image img,
.wp-block-post.product .wp-block-post-featured-image img {
    max-height: 200px;
    height: 200px;
    object-fit: contain;
    width: 100%;
}

.wp-block-post.product .wp-block-post__title,
.wp-block-post.product h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-word;
}

.wp-block-post.product .yith-ywraq-add-to-quote {
    margin-top: auto;
    padding-top: 16px;
}

.wp-block-post.product .add-request-quote-button.button {
    width: 100%;
    justify-content: center;
}

/* Responsive pour le catalogue */
@media screen and (max-width: 768px) {

    .woocommerce ul.products li.product a.add-request-quote-button.button,
    .wp-block-post.product a.add-request-quote-button.button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   MODERN SINGLE PRODUCT PAGE STYLES
   ============================================ */

/* Bouton sur la page produit individuelle */
.single-product .yith-ywraq-add-to-quote {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-product .add-request-quote-button.button {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.single-product div.summary form.cart .yith-ywraq-add-to-quote {
    margin-top: 20px;
}

/* Intégration avec le bouton Add to Cart - styles améliorés */
.single-product .woocommerce form.cart:not(.variations_form) .yith-ywraq-add-to-quote {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.single-product .woocommerce form.cart:not(.variations_form) .add-request-quote-button.button {
    min-width: 200px;
    max-width: none;
}

/* Messages sur la page produit */
.single-product .yith_ywraq_add_item_product_message,
.single-product .yith_ywraq_add_item_response_message,
.single-product .yith_ywraq_add_item_browse_message {
    margin-top: 12px;
    width: 100%;
    max-width: 500px;
}

/* Produits liés et up-sells */
.woocommerce .related .yith-ywraq-add-to-quote,
.woocommerce .up-sells .yith-ywraq-add-to-quote {
    margin-top: 12px;
}

.woocommerce .related .add-request-quote-button.button,
.woocommerce .up-sells .add-request-quote-button.button {
    width: 100%;
    justify-content: center;
}

.woocommerce .related .add-request-quote-button.button,
.woocommerce .up-sells .add-request-quote-button.button {
    width: 100%;
    justify-content: center;
}

/* Quick view (popup) */
.yith-wcqv-main .yith-ywraq-add-to-quote {
    margin-top: 16px;
}

.yith-wcqv-main .add-request-quote-button.button {
    width: 100%;
    justify-content: center;
}

/*widget*/
ul.yith-ywraq-list li {
    position: relative;
    padding-left: 2em;
    position: relative;
    padding-top: 0;
    padding-bottom: 0px;
    display: flex !important;
}

ul.yith-ywraq-list li a {
    display: block;
    font-weight: 700;
}

ul.yith-ywraq-list a.yith-ywraq-item-remove.remove {
    position: absolute;
    top: 0;
    left: 0;
}

ul.yith-ywraq-list img {
    display: inline-block;
    float: right;
    margin-left: 4px;
    width: 32px;
    height: auto;
    box-shadow: none;
}

ul.yith-ywraq-list .yith-ywraq-list-info .quantity {
    display: block;
}

.woocommerce.ywraq-wrapper .cart a.button.wc-backward {
    float: left;
}

.woocommerce.ywraq-wrapper .cart input.button.btn.btn-default {
    float: right;
}

.payment_method_yith-request-a-quote {
    display: none;
}

/*---------------
[MINI QUOTE LIST]
-----------------*/

.widget_ywraq_mini_list_quote {
    position: relative;
    padding: 0;
    display: inline-block;
    margin: 25px 0;
    vertical-align: top;
    z-index: 9999;
}


.widget_ywraq_mini_list_quote .raq-info {
    display: block;
    margin: 2px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.widget_ywraq_mini_list_quote .raq-info:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
    transform: translateY(-2px);
}

.widget_ywraq_mini_list_quote .raq-info.empty-raq {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.widget_ywraq_mini_list_quote .raq-info.empty-raq:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.35);
}

.widget_ywraq_mini_list_quote .raq-info a.raq_label {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}


.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
    position: absolute;
    left: 0;
    left: auto;
    margin-right: -1px;
    bottom: -12px;
    width: 300px;
    padding-top: 15px;
    z-index: 99999 !important;
    pointer-events: none;
}

.widget_ywraq_mini_list_quote.show-dropdown .yith-ywraq-list-wrapper {
    pointer-events: auto;
}

/* Créer un pont invisible entre le widget et le dropdown pour éviter les fermetures */
.widget_ywraq_mini_list_quote.show-dropdown .yith-ywraq-list-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    pointer-events: auto;
    z-index: 10001;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content {
    position: absolute;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    right: 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    top: calc(100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    font-size: 0.9rem;
    border: 1px solid #e5e7eb;
    z-index: 99999 !important;
    pointer-events: none;
}

/* Le JavaScript gère maintenant complètement l'affichage */
.widget_ywraq_mini_list_quote.show-dropdown .yith-ywraq-list-content {
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.widget_ywraq_list_quote ul.yith-ywraq-list li .quantity,
.widget_ywraq_mini_list_quote ul.yith-ywraq-list li .quantity {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6c757d;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content:before {
    content: "";
    display: block;
    width: 50px;
    height: 15px;
    top: -15px;
    position: absolute;
    right: 0
}


.widget_ywraq_mini_list_quote .yith-ywraq-list {
    margin-bottom: 15px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content.scrollbar-outer {
    overflow-y: scroll;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul li {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0 12px 30px;
    clear: both;
    display: flex !important;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul li:hover {
    background-color: #f9fafb;
    border-radius: 6px;
    padding-left: 30px;
    padding-right: 8px;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul li:last-child {
    border-bottom: none;
}

.yith-ywraq-list-item-product-info {
    font-size: 0.9em;
}

.widget_ywraq_mini_list_quote img.ywraq-custom-icon {
    max-width: 50px;
}

body.theme-yith-proteo section.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
    position: absolute;
    min-width: 280px;
    box-shadow: 3px 0 15px rgb(0 0 0 / 15%);
    right: 0;
    padding: 15px;
    background: var(--proteo-header_bg_color, #ffffff);
    border-radius: 5px;
    top: calc(100%);
    opacity: 0;
    visibility: hidden;
    transition: all ease .3s;
    font-size: 16px;
    margin: 0;
    bottom: auto;
    width: auto;
    pointer-events: none;
}

body.theme-yith-proteo section.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-wrapper {
    top: calc(100% + 15px);
    opacity: 1;
    visibility: visible;
    z-index: 99999 !important;
    pointer-events: auto;
}

body.theme-yith-proteo .widget_ywraq_mini_list_quote .yith-ywraq-list-content {
    position: static;
    box-shadow: none;
    background: none;
    margin: 0;
    padding: 0;
    transition: none;
    border-radius: 0;
    min-width: auto;
    z-index: auto;
}

body.theme-yith-proteo .widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper:before {
    content: "";
    display: block;
    width: 100%;
    height: 15px;
    top: -15px;
    position: absolute;
    right: 0;
}

body.theme-yith-proteo .widget_ywraq_mini_list_quote .yith-ywraq-list-content:before {
    display: none;
}

body.theme-yith-proteo .widget_ywraq_mini_list_quote ul.yith-ywraq-list li.no-product {
    padding: 15px 0;
}

.theme-yith-proteo #ywraq_cart_quote,
.theme-yith-proteo #ywraq_checkout_quote {
    width: 100%;
    text-transform: uppercase;
    font-size: 1.25rem;
    padding: 1.25rem;
    vertical-align: middle;
}

@media only screen and (min-width: 1024px) {
    body.theme-yith-wonder .widget_ywraq_mini_list_quote:hover .yith-ywraq-list-wrapper {
        min-height: 250px;
        top: 40px;
    }

    body.theme-yith-wonder .widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
        left: -200px;
    }

    body.theme-yith-wonder .widget_ywraq_mini_list_quote:hover .yith-ywraq-list-content {
        top: 30px;
    }

    body.theme-yith-wonder .widget.woocommerce.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-wrapper .yith-ywraq-list-content * {
        pointer-events: all !important;
    }
}

@media (min-width: 769px) {

    /* Seulement quand la classe show-dropdown est présente - JavaScript gère tout */
    .widget_ywraq_mini_list_quote.show-dropdown .yith-ywraq-list-content {
        position: fixed !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 999999 !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* Désactiver complètement le hover CSS - forcer à rester caché sauf avec show-dropdown */
    .widget_ywraq_mini_list_quote:not(.show-dropdown) .yith-ywraq-list-content {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Même au hover, ne rien faire si pas de classe show-dropdown */
    .widget_ywraq_mini_list_quote:not(.show-dropdown):hover .yith-ywraq-list-content {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list {
    position: relative;
    max-height: 30vh;
    overflow-y: scroll;
}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .3);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}


.widget_ywraq_mini_list_quote .raq-items-number {
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
    display: inline-block;
}

.widget_ywraq_mini_list_quote .raq-tip-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget_ywraq_mini_list_quote .ywraq-quote-icon-icon_quote {
    font-size: 1.2rem;
}

.widget_ywraq_mini_list_quote .handler-label {
    font-weight: 500;
}

.ywraq-select2 {
    z-index: 111111111 !important;
}

#ywraq_checkout_quote {
    margin-bottom: 20px;
    text-align: center;
}

a#ywraq_checkout_quote {
    padding: 20px 0;
    display: block;
}

.mobile-price {
    display: none;
}

.raq-totals {
    text-align: right;
    padding: 15px 15px !important;

}

#yith-ywraq-form table {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ============================================
   MODERN QUOTE TABLE STYLES
   ============================================ */

/* Table container avec ombre et bordures arrondies */
#yith-ywraq-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 30px;
}

/* Table moderne */
#yith-ywraq-form table.shop_table.cart {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: transparent;
}

/* En-tête du tableau moderne */
#yith-ywraq-form table.shop_table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
}

#yith-ywraq-form table.shop_table thead th {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border: none;
    border-bottom: 2px solid #dee2e6;
}

#yith-ywraq-form table.shop_table thead th:first-child {
    border-radius: 8px 0 0 0;
}

#yith-ywraq-form table.shop_table thead th:last-child {
    border-radius: 0 8px 0 0;
}

/* Lignes du tableau avec effet hover */
#yith-ywraq-form table.shop_table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

#yith-ywraq-form table.shop_table tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#yith-ywraq-form table.shop_table tbody tr:last-child {
    border-bottom: none;
}

/* Cellules du tableau */
#yith-ywraq-form table.shop_table tbody td {
    padding: 20px;
    vertical-align: middle;
    border: none;
}

/* Image produit avec ombre */
#yith-ywraq-form table.shop_table .product-thumbnail img {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 80px;
}

#yith-ywraq-form table.shop_table .product-thumbnail:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nom du produit */
#yith-ywraq-form table.shop_table .product-name {
    font-weight: 500;
    color: #212529;
    font-size: 1rem;
}

#yith-ywraq-form table.shop_table .product-name a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

#yith-ywraq-form table.shop_table .product-name a:hover {
    color: #007bff;
}

#yith-ywraq-form table.shop_table .product-name ul {
    margin-top: 8px;
    padding-left: 20px;
}

#yith-ywraq-form table.shop_table .product-name ul li {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 4px;
}

/* Prix avec style moderne */
#yith-ywraq-form table.shop_table .product-price,
#yith-ywraq-form table.shop_table .product-subtotal {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
}

/* Bouton de suppression moderne */
#yith-ywraq-form table.shop_table .product-remove a.yith-ywraq-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

#yith-ywraq-form table.shop_table .product-remove a.yith-ywraq-item-remove:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: rotate(90deg);
}

/* Champ quantité moderne */
#yith-ywraq-form table.shop_table .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

#yith-ywraq-form table.shop_table .product-quantity input.qty {
    border: none;
    padding: 8px 12px;
    text-align: center;
    font-weight: 500;
    background: transparent;
    width: 60px;
}

#yith-ywraq-form table.shop_table .product-quantity .quantity input[type="button"] {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}

#yith-ywraq-form table.shop_table .product-quantity .quantity input[type="button"]:hover {
    background: #e9ecef;
}

/* Totaux avec style moderne */
#yith-ywraq-form table.shop_table .raq-totals-row {
    background: #f8f9fa;
}

#yith-ywraq-form table.shop_table .raq-totals-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    padding: 16px 20px;
    text-align: right;
}

#yith-ywraq-form table.shop_table .raq-totals {
    font-weight: 700;
    font-size: 1.25rem;
    color: #007bff;
    padding: 16px 20px;
}

/* Boutons d'action modernes */
#yith-ywraq-form .update-list-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

#yith-ywraq-form .update-list-wrapper .button,
#yith-ywraq-form .update-list-wrapper input[type="submit"] {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
}

#yith-ywraq-form .update-list-wrapper input[type="submit"] {
    background: #007bff;
    color: #fff;
}

#yith-ywraq-form .update-list-wrapper input[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#yith-ywraq-form .update-list-wrapper .button.ywraq_clean_list {
    background: #6c757d;
    color: #fff;
}

#yith-ywraq-form .update-list-wrapper .button.ywraq_clean_list:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#yith-ywraq-form .update-list-wrapper button#ywraq-list-to-pdf {
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
}

#yith-ywraq-form .update-list-wrapper button#ywraq-list-to-pdf:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bouton retour au shop */
.return_to_shop_url.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.return_to_shop_url.button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive amélioré */
@media screen and (max-width: 768px) {
    #yith-ywraq-form {
        padding: 16px;
        border-radius: 8px;
    }

    #yith-ywraq-form table.shop_table tbody td {
        padding: 16px 12px;
    }

    #yith-ywraq-form .update-list-wrapper {
        flex-direction: column;
    }

    #yith-ywraq-form .update-list-wrapper .button,
    #yith-ywraq-form .update-list-wrapper input[type="submit"] {
        width: 100%;
    }
}

/* ============================================
   MODERN WRAPPER & SURROUNDING ELEMENTS
   ============================================ */

/* Wrapper principal */
.woocommerce.ywraq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Messages et notices */
/* Masquer le div message s'il est vide */
/* Masquer le div message s'il est vide ou ne contient que des espaces */
#yith-ywraq-message:empty {
    display: none !important;
}

/* Masquer aussi si le div interne est vide */
#yith-ywraq-message .ywraq-question-message:empty {
    display: none !important;
}

/* Masquer le conteneur parent si le message interne est vide */
#yith-ywraq-message:has(.ywraq-question-message:empty) {
    display: none !important;
}

/* Masquer si le conteneur ne contient que des espaces ou des divs vides */
#yith-ywraq-message:not(:has(p)):not(:has(form)):not(:has(*:not(div))) {
    display: none !important;
}

/* Masquer si ywraq-question-message ne contient rien de visible */
#yith-ywraq-message .ywraq-question-message:not(:has(p)):not(:has(form)):not(:has(textarea)) {
    display: none !important;
}

#yith-ywraq-message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    color: #004085;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

#yith-ywraq-message.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

#yith-ywraq-message.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

#yith-ywraq-message.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

/* Notices WooCommerce */
.woocommerce.ywraq-wrapper .woocommerce-message,
.woocommerce.ywraq-wrapper .woocommerce-info,
.woocommerce.ywraq-wrapper .woocommerce-error {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.6;
}

.woocommerce.ywraq-wrapper .woocommerce-message {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.woocommerce.ywraq-wrapper .woocommerce-info {
    background: #e7f3ff;
    border-left-color: #007bff;
    color: #004085;
}

.woocommerce.ywraq-wrapper .woocommerce-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Bouton retour au shop avant le tableau */
.yith-ywraq-before-table {
    margin-bottom: 24px;
}

.yith-ywraq-before-table .button.wc-backward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yith-ywraq-before-table .button.wc-backward:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #212529;
}

.yith-ywraq-before-table .button.wc-backward::before {
    content: "←";
    font-size: 1.2rem;
    line-height: 1;
}

/* Wrapper formulaire et tableau */
.ywraq-form-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ywraq-form-table-wrapper.wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media screen and (min-width: 1024px) {
    .ywraq-form-table-wrapper.wide {
        grid-template-columns: 1.2fr 1fr;
        gap: 40px;
    }
}

/* Formulaire de contact moderne */
.yith-ywraq-mail-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.yith-ywraq-mail-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.yith-ywraq-mail-form-wrapper .form-row {
    margin-bottom: 24px;
    padding: 0;
}

.yith-ywraq-mail-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.yith-ywraq-mail-form-wrapper input[type="text"],
.yith-ywraq-mail-form-wrapper input[type="email"],
.yith-ywraq-mail-form-wrapper input[type="tel"],
.yith-ywraq-mail-form-wrapper input[type="number"],
.yith-ywraq-mail-form-wrapper textarea,
.yith-ywraq-mail-form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #212529;
}

.yith-ywraq-mail-form-wrapper input:focus,
.yith-ywraq-mail-form-wrapper textarea:focus,
.yith-ywraq-mail-form-wrapper select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.yith-ywraq-mail-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.yith-ywraq-mail-form-wrapper .raq-send-request-row {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.yith-ywraq-mail-form-wrapper .raq-send-request-row input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.yith-ywraq-mail-form-wrapper .raq-send-request-row input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.yith-ywraq-mail-form-wrapper .raq-send-request-row input[type="submit"]:active {
    transform: translateY(0);
}

/* Titre du formulaire alternatif */
.ywraq-form-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

#ywraq-other-form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 30px;
}

/* État vide du panier */
.ywraq-wrapper.ywraq-empty .ywraq-before-form {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ywraq-wrapper.ywraq-empty .ywraq-before-form::before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: url('../icons/empty-quote.svg') no-repeat center center;
    background-size: contain;
    opacity: 0.5;
}

.ywraq-wrapper.ywraq-empty .ywraq-before-form p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive pour les éléments autour */
@media screen and (max-width: 768px) {
    .woocommerce.ywraq-wrapper {
        padding: 0 16px 30px;
    }

    .yith-ywraq-mail-form-wrapper {
        padding: 24px 20px;
    }

    .ywraq-form-table-wrapper.wide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #ywraq-other-form {
        padding: 24px 20px;
    }

    .ywraq-wrapper.ywraq-empty .ywraq-before-form {
        padding: 40px 24px;
    }
}

#yith-ywraq-form .update-list-wrapper {
    text-align: right;
    margin-bottom: 30px;
}

#yith-ywraq-form .update-list-wrapper .after-table-right {
    display: flex;
}

#yith-ywraq-form .update-list-wrapper .after-table-right .button {
    margin-bottom: 0;
}

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

    /* regole CSS */
    .ywraq_responsive thead {
        display: none;
    }

    .mobile-price {
        display: block;
    }

    .ywraq_responsive .product-quantity {
        text-align: right;
    }

    .ywraq_responsive .product-subtotal,
    .ywraq_responsive .product-price {
        display: none;
    }

    table.shop_table.ywraq_responsive tbody tr td {
        border: 0;
    }

    #yith-ywraq-form .actions a {
        text-align: center;
    }

    .ywraq_responsive .raq-totals {
        text-align: right;
        padding: 15px 15px !important;
    }

    .ywraq_responsive .product-name {
        font-weight: 600;
        font-size: 0.8rem;
    }

    .ywraq_responsive .product-name span {
        font-weight: normal;
        color: #a7a7a7;
        font-size: 0.9rem;
    }

    table.shop_table.ywraq_responsive .product-remove {
        max-width: 20px;
        padding: 10px;
    }

    table.shop_table.ywraq_responsive tbody tr td.actions {
        padding: 0;
    }
}

/* composite in widget styles */
.yith-ywraq-list-widget-wrapper .yith-ywraq-list-wrapper ul li.yith-ywraq-list-item .ywcp_component_child_item {
    margin-left: 10px;
    margin-top: 5px;
    position: relative;
}

.yith-ywraq-list-widget-wrapper .yith-ywraq-list-wrapper ul li.yith-ywraq-list-item .ywcp_component_child_item strong,
.yith-ywraq-list-widget-wrapper .yith-ywraq-list-wrapper ul li.yith-ywraq-list-item .ywcp_component_child_item a {
    display: block;
    max-width: 180px;
}

.yith-ywraq-list-widget-wrapper .yith-ywraq-list-wrapper ul li.yith-ywraq-list-item .ywcp_component_child_item span.product-quantity {
    position: absolute;
    top: 10px;
    right: 2px;
}


.ywraq-mobile-opened.widget_ywraq_mini_list_quote {
    position: inherit;
}

.ywraq-mobile-opened ul.yith-ywraq-list {
    height: auto;
    max-height: 60vh;
    padding: 30px;
}

.yith-ywraq-list-wrapper .close {
    display: none;
}

.ywraq-mobile-opened .yith-ywraq-list-wrapper .close {
    width: 30px;
    height: 30px;
    font-size: 20px;
    color: #707070;
    position: absolute;
    top: -50px;
    right: 50px;
    z-index: 10001;
    display: block;
}

.ywraq-mobile-opened.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-wrapper {
    width: 100%;
}

.ywraq-mobile-opened.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 180px;
    z-index: 10000;
    opacity: 1;
    z-index: 10000;
}

.ywraq-mobile-opened .items-count {
    padding-left: 35px;
}

.ywraq-form-table-wrapper th.product-name {
    text-align: left;
}

.yith_ywraq_add_item_browse_message a:after {
    display: none;
}

/**
* Page
 */
.ywraq-empty .ywraq-form-table-wrapper.wide {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 1fr;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}


.ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
    flex-basis: 48%;
    margin-left: 5%;
}

.ywraq-form-table-wrapper.wide form#yith-ywraq-form {
    flex-basis: 48%;
}

.ywraq-form-table-wrapper.wide .nf-form-cont {
    flex: 1;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
    padding: 25px;
}

.theme-yith-proteo .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
    background: #f5f5f5;
}

#yith-ywraq-form .update-list-wrapper {
    display: flex;
    align-items: center;
}

#yith-ywraq-form .update-list-wrapper input[type="submit"] {
    margin-right: 0;
    margin-top: 20px;
}

button#ywraq-list-to-pdf {
    display: flex;
    align-items: center;
    background: #EDEDED;
    border-color: #D1D1D1;
}

button#ywraq-list-to-pdf svg {
    margin-left: -10px;
}

button#ywraq-list-to-pdf:hover {
    filter: brightness(95%);
}


@media screen and (min-width: 1024px) {

    .ywraq-with-form .ywraq-form-table-wrapper.wide {
        display: grid;
        overflow: hidden;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        grid-column-gap: 5px;
        grid-row-gap: 5px;
    }

}

@media screen and (max-width: 1024px) {
    .yith-ywraq-mail-form-wrapper {
        margin-top: 30px;
    }
}


/**
* PROTEO
**/
.ywraq-quote-icon-icon_quote:before {
    font-size: 28px;
    color: rgb(64, 64, 64);
}

.theme-yith-proteo #yith-ywraq-default-form .woocommerce-error.woocommerce-message {
    box-shadow: none;
    margin-top: 30px;
}

ul.products li.product img.ywraq-loader {
    margin-top: -10px;
}

.theme-yith-proteo span.yith-proteo-myaccount-icons.ywraq-quote-icon-icon_quote:before {
    font-size: 40px;
}

.theme-yith-proteo .widget_ywraq_mini_list_quote ul.yith-ywraq-list li a {
    margin-bottom: 10px;
}

.theme-yith-proteo .ywraq-view-quote-wrapper table.shop_table tbody tr td.product-name a {
    color: var(--proteo-general_link_color, #448a85);
}

.theme-yith-proteo .quotes-total a.button.accept {
    border: 1px solid var(--proteo-general_link_color, #009E8D);
    color: var(--proteo-general_link_color, #009E8D);
}

.theme-yith-proteo table.shop_table a.yith-ywraq-item-remove.remove {
    text-decoration: none;
    color: #c7c7c7;
    display: inline-block;
    vertical-align: middle;
    font-size: 30px;
    opacity: 1;
}

.theme-yith-proteo table.shop_table a.yith-ywraq-item-remove.remove:hover {
    color: #32373c;
}

.theme-yith-proteo .entry-title-icon {
    background: url(../icons/raq-thankyou.svg) no-repeat;
    width: 50px;
    display: block;
    height: 50px;
    margin: 0 auto;
}

.theme-yith-proteo button#ywraq-list-to-pdf {
    color: var(--proteo-general_link_color, #448a85)
}

.ywraq-wrapper.ywraq-empty .ywraq-before-form,
.ywraq-wrapper.ywraq-with-form.ywraq-empty .ywraq-before-form {
    padding: 30px;
    border: 2px dashed #aaa;
    height: 100%;
    align-items: center;
    text-align: center;
    display: block;
}

.ywraq-form-table-wrapper.vertical .ywraq-before-form {
    margin-bottom: 40px;
}

.ywraq-wrapper.ywraq-with-form .ywraq-before-form {
    display: none;
}

.ywraq-before-form:before {
    content: '';
    text-align: center;
    width: 100%;
    background: url(../icons/empty-quote.svg) no-repeat center center;
    width: 130px;
    height: 130px;
    display: block;
    margin: 0 auto;
    margin-top: 40px;
}

.ywraq-wrapper .ywraq-before-form.ywraq-no-border {
    border: 0;
    text-align: left;
}

.ywraq-wrapper .ywraq-before-form.ywraq-no-border:before {
    display: none;
}

.yith-ywraq-mail-form-wrapper .form-row {
    padding: 0px 15px;
    margin-bottom: 1.5em;
}

.yith-ywraq-mail-form-wrapper .form-row.form-row-wide {
    padding-top: 15px;
}

@media (max-width: 768px) {


    .ywraq-form-table-wrapper.wide {
        display: block;
    }

    .ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
        margin-left: 0;
    }

    .form-row.form-row-first,
    .form-row.form-row-last {
        width: 100%;
    }

    .form-row {
        margin-bottom: 20px
    }

    .ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper .raq-send-request-row {
        text-align: center;
    }

    .woocommerce-cart .hentry,
    .woocommerce-checkout .hentry {
        border-bottom: 0;
        padding-bottom: 0;
    }


    .page-template-template-fullwidth-php table.cart .product-thumbnail {
        display: table-cell;
    }

    .page-template-template-fullwidth-php table.cart thead {
        font-size: 1em;
        text-indent: 0;
    }

    .widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
        top: 60px;
    }


    /** PROTEO MINI WIDGET **/
    .theme-yith-proteo .header-sidebar .widget_ywraq_mini_list_quote {
        text-align: right;
        display: block;
        padding: 0;
        margin: -17px auto 0 auto;
    }

    .theme-yith-proteo .header-sidebar .widget_ywraq_mini_list_quote {
        margin: -10px -10px 0 auto;
    }

    body.theme-yith-proteo section.widget_ywraq_mini_list_quote.ywraq-mobile-quote .yith-ywraq-list-wrapper {
        display: none;
    }

    body.theme-yith-proteo section.widget_ywraq_mini_list_quote.ywraq-mobile-opened .yith-ywraq-list-wrapper {
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 10000;
        display: block;
    }

    body.theme-yith-proteo .ywraq-mobile-opened.widget_ywraq_mini_list_quote:hover .yith-ywraq-list-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-top: 50px;
        opacity: 1;
        z-index: 10000;
    }

    body.theme-yith-proteo .widget_ywraq_mini_list_quote .items-count {
        margin-left: 30px;
    }

    body.theme-yith-proteo .ywraq-mobile-opened ul.yith-ywraq-list {
        padding-top: 0;
    }

    .theme-yith-proteo .widget_ywraq_mini_list_quote.ywraq-mobile-opened .yith-ywraq-list-wrapper .button,
    .theme-yith-proteo .widget_ywraq_mini_list_quote.ywraq-mobile-opened .yith-ywraq-list-content .button {
        width: 100%;
        border-radius: 0;
        padding: 20px;
        font-size: 1em;
        font-weight: 400;
        margin-top: 50px;
    }

    body.theme-yith-proteo.ywraq-mobile-block-body {
        overflow: hidden;
        position: fixed;
        height: 100vh;
    }

    body.theme-yith-proteo.admin-bar.ywraq-mobile-block-body #wpadminbar {
        display: none;
    }

    .theme-yith-proteo .ywraq-mobile-opened .yith-ywraq-list-wrapper .close {
        top: 10px;
        right: 20px;
    }

    .theme-yith-proteo .header-sidebar .widget_ywraq_mini_list_quote span.ywraq-quote-icon-icon_quote:before {
        font-size: 20px;
    }

    .theme-yith-proteo .widget_ywraq_mini_list_quote .yith-ywraq-list-content:after {
        position: absolute;
        right: 45px;
        top: -13px;
        width: 0;
        height: 0;
        content: '';
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 15px solid #fff;
        z-index: 2000;
    }

    .theme-yith-proteo .widget_ywraq_mini_list_quote p.items-count {
        font-size: 16px;
    }
}

@media (max-width: 600px) {

    .theme-yith-proteo .widget_ywraq_mini_list_quote.ywraq-mobile-opened .yith-ywraq-list-wrapper .button,
    .theme-yith-proteo .widget_ywraq_mini_list_quote.ywraq-mobile-opened .yith-ywraq-list-content .button {
        position: fixed;
        bottom: 0;
    }
}

@media (max-width: 426px) {
    .theme-yith-proteo .widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper {
        width: 100%;
    }
}

/* mobile widget fix cannot click on button View lisst */
.widget.woocommerce.widget_ywraq_mini_list_quote.ywraq-mobile-quote.ywraq-mobile-opened .yith-ywraq-list-wrapper .yith-ywraq-list-content {
    pointer-events: all !important;
    opacity: 1;
    visibility: visible;
}


/*! jQuery UI - v1.12.1 - 2020-12-18
* http://jqueryui.com
* Includes: draggable.css, core.css, resizable.css, button.css, controlgroup.css, checkboxradio.css, dialog.css, theme.css
* To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif
* Copyright jQuery Foundation and other contributors; Licensed MIT */

.ui-draggable-handle {
    -ms-touch-action: none;
    touch-action: none;
}

/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
    display: none;
}

.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.ui-helper-reset {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    text-decoration: none;
    font-size: 100%;
    list-style: none;
}

.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
    content: "";
    display: table;
    border-collapse: collapse;
}

.ui-helper-clearfix:after {
    clear: both;
}

.ui-helper-zfix {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    opacity: 0;
    filter: Alpha(Opacity=0);
    /* support: IE8 */
}

.ui-front {
    z-index: 100;
}

.ywraq-reject-confirm button.ui-button.ui-corner-all.ui-widget.ui-button-icon-only.ui-dialog-titlebar-close {
    background: none;
    border: 0;
}

.ywraq-reject-confirm span#ui-id-1 {
    font-size: 20px;
}

#ywraq-reject-confirm button.button {
    width: 100%;
    text-transform: uppercase;
    font-size: 13px;
    margin-top: 10px;
    padding: 15px;
    border-radius: 15px;
}


/* Icons
----------------------------------*/
.ui-icon {
    display: inline-block;
    vertical-align: middle;
    margin-top: -.25em;
    position: relative;
    text-indent: -99999px;
    overflow: hidden;
    background-repeat: no-repeat;
}

.ui-widget-icon-block {
    left: 50%;
    margin-left: -8px;
    display: block;
}


/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ui-resizable {
    position: relative;
}

.ui-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
    -ms-touch-action: none;
    touch-action: none;
}

.ui-resizable-disabled .ui-resizable-handle,
.ui-resizable-autohide .ui-resizable-handle {
    display: none;
}

.ui-resizable-n {
    cursor: n-resize;
    height: 7px;
    width: 100%;
    top: -5px;
    left: 0;
}

.ui-resizable-s {
    cursor: s-resize;
    height: 7px;
    width: 100%;
    bottom: -5px;
    left: 0;
}

.ui-resizable-e {
    cursor: e-resize;
    width: 7px;
    right: -5px;
    top: 0;
    height: 100%;
}

.ui-resizable-w {
    cursor: w-resize;
    width: 7px;
    left: -5px;
    top: 0;
    height: 100%;
}

.ui-resizable-se {
    cursor: se-resize;
    width: 12px;
    height: 12px;
    right: 1px;
    bottom: 1px;
}

.ui-resizable-sw {
    cursor: sw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    bottom: -5px;
}

.ui-resizable-nw {
    cursor: nw-resize;
    width: 9px;
    height: 9px;
    left: -5px;
    top: -5px;
}

.ui-resizable-ne {
    cursor: ne-resize;
    width: 9px;
    height: 9px;
    right: -5px;
    top: -5px;
}


/* to make room for the icon, a width needs to be set here */
.ui-button-icon-only {
    width: 2em;
    box-sizing: border-box;
    text-indent: -9999px;
    white-space: nowrap;
}

/* no icon support for input elements */
input.ui-button.ui-button-icon-only {
    text-indent: 0;
}

/* button icon element(s) */
.ui-button-icon-only .ui-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -39px;
    margin-left: 5px;
}

.ui-button.ui-icon-notext .ui-icon {
    padding: 0;
    width: 2.1em;
    height: 2.1em;
    text-indent: -9999px;
    white-space: nowrap;

}

input.ui-button.ui-icon-notext .ui-icon {
    width: auto;
    height: auto;
    text-indent: 0;
    white-space: normal;
    padding: .4em 1em;
}

/* workarounds */
/* Support: Firefox 5 - 40 */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.ui-controlgroup {
    vertical-align: middle;
    display: inline-block;
}

.ui-controlgroup>.ui-controlgroup-item {
    float: left;
    margin-left: 0;
    margin-right: 0;
}

.ui-controlgroup>.ui-controlgroup-item:focus,
.ui-controlgroup>.ui-controlgroup-item.ui-visual-focus {
    z-index: 9999;
}

.ui-controlgroup-vertical>.ui-controlgroup-item {
    display: block;
    float: none;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}

.ui-controlgroup-vertical .ui-controlgroup-item {
    box-sizing: border-box;
}

.ui-controlgroup .ui-controlgroup-label {
    padding: .4em 1em;
}

.ui-controlgroup .ui-controlgroup-label span {
    font-size: 80%;
}

.ui-controlgroup-horizontal .ui-controlgroup-label+.ui-controlgroup-item {
    border-left: none;
}

.ui-controlgroup-vertical .ui-controlgroup-label+.ui-controlgroup-item {
    border-top: none;
}

.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {
    border-right: none;
}

.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {
    border-bottom: none;
}

/* Spinner specific style fixes */
.ui-controlgroup-vertical .ui-spinner-input {

    /* Support: IE8 only, Android < 4.4 only */
    width: 75%;
    width: calc(100% - 2.4em);
}

.ui-controlgroup-vertical .ui-spinner .ui-spinner-up {
    border-top-style: solid;
}

.ui-checkboxradio-label .ui-icon-background {
    box-shadow: inset 1px 1px 1px #ccc;
    border-radius: .12em;
    border: none;
}

.ui-checkboxradio-radio-label .ui-icon-background {
    width: 16px;
    height: 16px;
    border-radius: 1em;
    overflow: visible;
    border: none;
}

.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
    background-image: none;
    width: 8px;
    height: 8px;
    border-width: 4px;
    border-style: solid;
}

.ui-checkboxradio-disabled {
    pointer-events: none;
}

.ui-dialog {
    position: absolute;
    top: 0;
    left: 0;
    padding: .2em;
    outline: 0;
}

.ui-dialog .ui-dialog-titlebar {
    padding: .4em 1em;
    position: relative;
}

.ui-dialog .ui-dialog-title {
    float: left;
    margin: .1em 0;
    white-space: nowrap;
    width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-dialog .ui-dialog-titlebar-close {
    position: absolute;
    right: .3em;
    top: 50%;
    width: 20px;
    margin: -10px 0 0 0;
    padding: 1px;
    height: 20px;
}

.ui-dialog .ui-dialog-content {
    position: relative;
    border: 0;
    padding: .5em 1em;
    background: none;
    overflow: auto;
}

.ui-dialog .ui-dialog-buttonpane {
    text-align: left;
    border-width: 1px 0 0 0;
    background-image: none;
    margin-top: .5em;
    padding: .3em 1em .5em .4em;
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: right;
}

.ui-dialog .ui-dialog-buttonpane button {
    margin: .5em .4em .5em 0;
    cursor: pointer;
}

.ui-dialog .ui-resizable-n {
    height: 2px;
    top: 0;
}

.ui-dialog .ui-resizable-e {
    width: 2px;
    right: 0;
}

.ui-dialog .ui-resizable-s {
    height: 2px;
    bottom: 0;
}

.ui-dialog .ui-resizable-w {
    width: 2px;
    left: 0;
}

.ui-dialog .ui-resizable-se,
.ui-dialog .ui-resizable-sw,
.ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw {
    width: 7px;
    height: 7px;
}

.ui-dialog .ui-resizable-se {
    right: 0;
    bottom: 0;
}

.ui-dialog .ui-resizable-sw {
    left: 0;
    bottom: 0;
}

.ui-dialog .ui-resizable-ne {
    right: 0;
    top: 0;
}

.ui-dialog .ui-resizable-nw {
    left: 0;
    top: 0;
}

.ui-draggable .ui-dialog-titlebar {
    cursor: move;
}


.ywraq-quote-on-cart .ui-corner-all {
    background: none;
    border: none;
}

.ywraq-quote-on-cart .ui-icon {
    display: inline-block;
    vertical-align: middle;
    margin-top: -.25em;
    position: relative;
    text-indent: -99999px;
    overflow: hidden;
    background-repeat: no-repeat;
}

.ywraq-quote-on-cart .ui-button-icon-only {
    width: 2em;
    box-sizing: border-box;
    text-indent: -9999px;
    white-space: nowrap;
}

.ywraq-quote-on-cart .ui-button-icon-only .ui-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -39px;
    margin-left: 5px;
}

.ywraq-quote-on-cart.ui-widget.ui-widget-content {
    border: 1px solid #c5c5c5;
    padding: 25px;
    border-radius: 10px;
}

.ywraq-quote-on-cart.ui-widget-content {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
}

.ywraq-quote-on-cart .ui-widget-header {
    border: 1px solid #fff;
    background: #fff;
    color: #333333;
    font-weight: bold;
}

.ywraq-quote-on-cart .ui-icon {
    width: 30px;
    height: 30px;
}

.ywraq-quote-on-cart .ui-icon,
.ywraq-quote-on-cart .ui-widget-content .ui-icon.ui-icon-closethick {
    background-image: url("../icons/ic_close.svg") !important;
    background-repeat: no-repeat !important;
}

.ywraq-quote-on-cart .ui-resizable-handle.ui-resizable-se.ui-icon.ui-icon-gripsmall-diagonal-se {
    display: none !important;
}

/* Misc visuals
----------------------------------*/
.ywraq-quote-on-cart-wrapper.error {
    color: red;
    font-size: 13px;
}

/* Overlays */
.ywraq-quote-on-cart .ui-widget-overlay {
    background: #aaaaaa;
    opacity: .3;
    filter: Alpha(Opacity=30);
    /* support: IE8 */
}

.ywraq-quote-on-cart .ui-widget-shadow {
    -webkit-box-shadow: 0px 0px 5px #666666;
    box-shadow: 0px 0px 5px #666666;
}

/* Corner radius */
.ywraq-quote-on-cart .ui-corner-all,
.ywraq-quote-on-cart .ui-corner-top,
.ywraq-quote-on-cart .ui-corner-left,
.ywraq-quote-on-cart .ui-corner-tl {
    border-radius: 14px;
}

/* Overlays */
.ui-widget-overlay {
    background: #1e1e1e;
    opacity: .7;
    filter: Alpha(Opacity=70);
    /* support: IE8 */
}

.ui-widget-shadow {
    -webkit-box-shadow: 0px 0px 5px #666666;
    box-shadow: 0px 0px 5px #666666;
}


/**
WOOCOMMERCE 7.9
 **/
li.wp-block-post.type-product .yith-ywraq-add-to-quote {
    text-align: center;
    margin: 0 auto;
}

.wp-block-group.product .yith_ywraq_add_item_response_message {
    margin-top: 10px;
}

/* ============================================
   RÈGLES FINALES POUR RÉDUIRE LA TAILLE - PRIORITÉ MAXIMALE
   ============================================ */

/* Message "Produit déjà dans le devis" - RÈGLES FINALES */
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_response"],
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_response_message"],
.woocommerce ul.products li.product .cestier_rq_add_item_response,
.woocommerce ul.products li.product .yith_ywraq_add_item_response_message {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    gap: 6px !important;
}

.woocommerce ul.products li.product div[class*="cestier_rq_add_item_response"]::before,
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_response_message"]::before {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.8rem !important;
    margin-right: 6px !important;
}

/* Bouton "Voir ma demande de devis" - RÈGLES FINALES */
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_browse-list"] a,
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_browse_message"] a,
.woocommerce ul.products li.product .cestier_rq_add_item_browse-list a,
.woocommerce ul.products li.product .yith_ywraq_add_item_browse_message a {
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* Wrapper du bouton qui reste en bas grâce au flex */

.ywraq-ask-for-a-quote-on-block button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    cursor: pointer;
}

/* proteo mobile fix */
@media only screen and (max-width: 640px) {
    body.theme-yith-proteo .container.header-contents.right-toggle {
        display: flex;
    }

    body.theme-yith-proteo .container.header-contents.right-toggle {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: space-between;
    }
}

/* ============================================
   RÈGLES FINALES POUR LE CHAMP QUANTITÉ AVEC LABEL
   ============================================ */
body.single-product .quantity:not(.product-already-in-quote) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-right: 12px !important;
}

/* ============================================
   CORRECTION DÉBORDEMENT BOUTONS "AJOUTER AU DEVIS" DANS BLOCS WOOCOMMERCE
   ============================================ */
ul[data-block-name="woocommerce/product-template"] li.wc-block-product .add-request-quote-button.button {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

ul[data-block-name="woocommerce/product-template"] li.wc-block-product .yith-ywraq-add-to-quote {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ============================================
   FIXER LA HAUTEUR DES TITRES DE PRODUITS POUR ALIGNER LES BOUTONS
   ============================================ */
.woocommerce ul.products li.product h2.wp-block-post-title,
.woocommerce ul.products li.product .wp-block-post-title,
.wc-block-product h2.wp-block-post-title,
.wc-block-product .wp-block-post-title,
ul[data-block-name="woocommerce/product-template"] li.wc-block-product h2,
ul[data-block-name="woocommerce/product-template"] li.wc-block-product .wp-block-post-title,
ul[data-block-name="woocommerce/product-template"] li.wc-block-product h2.has-text-align-center {
    height: 3.6em !important;
    min-height: 3.6em !important;
    max-height: 3.6em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.2 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

/* ============================================
   BADGE "PRODUIT DÉJÀ DANS LE DEVIS" SUR L'IMAGE
   ============================================ */
/* Conteneur image avec position relative pour le badge */
.woocommerce ul.products li.product .product-image,
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product .wp-block-woocommerce-product-image,
.wc-block-product .wc-block-components-product-image,
.wc-block-product [data-block-name="woocommerce/product-image"] {
    position: relative !important;
    overflow: visible !important;
}

/* Badge overlay sur l'image */
.woocommerce ul.products li.product .yith_ywraq_add_item_response_message,
.woocommerce ul.products li.product .cestier_rq_add_item_response,
.woocommerce ul.products li.product div[class*="cestier_rq_add_item_response"],
.woocommerce ul.products li.product div[class*="yith_ywraq_add_item_response"] {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    z-index: 10 !important;
    background: rgba(255, 193, 7, 0.95) !important;
    backdrop-filter: blur(4px) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 9px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Masquer le message en bas quand il est affiché sur l'image */
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message.show,
.woocommerce ul.products li.product .yith-ywraq-add-to-quote .cestier_rq_add_item_response.show {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    z-index: 10 !important;
    background: rgba(255, 193, 7, 0.95) !important;
    backdrop-filter: blur(4px) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 9px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Déplacer le badge vers le conteneur image parent */
.woocommerce ul.products li.product {
    position: relative !important;
}

/* Pour les blocs WooCommerce */
.wc-block-product .yith_ywraq_add_item_response_message.show,
.wc-block-product .cestier_rq_add_item_response.show {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    background: rgba(255, 193, 7, 0.95) !important;
    backdrop-filter: blur(4px) !important;
    color: #000 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    gap: 4px !important;
}

/* S'assurer que le conteneur image est relatif */
.wc-block-product [data-block-name="woocommerce/product-image"],
.wc-block-product .wc-block-components-product-image {
    position: relative !important;
}

/* ============================================
   STYLE MODERNE POUR LE DROPDOWN "SÉLECTIONNER UNE CATÉGORIE"
   ============================================ */
.widget_product_categories select,
.widget.woocommerce.widget_product_categories select,
.widget_product_categories .product-categories-dropdown,
.widget.woocommerce.widget_product_categories .product-categories-dropdown,
.widget_product_categories .woocommerce-product-categories-dropdown,
.widget.woocommerce.widget_product_categories .woocommerce-product-categories-dropdown {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 12px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    min-height: 48px !important;
    line-height: 1.5 !important;
}

.widget_product_categories select:hover,
.widget.woocommerce.widget_product_categories select:hover,
.widget_product_categories .product-categories-dropdown:hover,
.widget.woocommerce.widget_product_categories .product-categories-dropdown:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
}

.widget_product_categories select:focus,
.widget.woocommerce.widget_product_categories select:focus,
.widget_product_categories .product-categories-dropdown:focus,
.widget.woocommerce.widget_product_categories .product-categories-dropdown:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 2px 8px rgba(0, 123, 255, 0.2) !important;
    outline: none !important;
}

.widget_product_categories select option,
.widget.woocommerce.widget_product_categories select option {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    background-color: #ffffff !important;
}

.widget_product_categories select option:hover,
.widget.woocommerce.widget_product_categories select option:hover {
    background-color: #f8f9fa !important;
}

.widget_product_categories select option:checked,
.widget.woocommerce.widget_product_categories select option:checked {
    background-color: #007bff !important;
    color: #ffffff !important;
}

/* Liens sans soulignement */
.wc-block-product-categories-list-item>a {
    text-decoration: none !important;
}

/* Catégories principales en gras */
.wc-block-product-categories-list-item.is-main-category>a .wc-block-product-categories-list-item__name {
    font-weight: 600 !important;
}

/* Catégorie sélectionnée - même couleur que les boutons "Ajouter au devis" */
.wc-block-product-categories-list-item.is-current-category>a {
    color: #dc3545 !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.15) 100%) !important;
    border-radius: 8px !important;
}

.wc-block-product-categories-list-item.is-current-category>a .wc-block-product-categories-list-item__name {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

/* ============================================
   STYLE MODERNE POUR LE DROPDOWN DE CATÉGORIES
   ============================================ */

/* Conteneur du dropdown */
.wc-block-product-categories__dropdown {
    position: relative;
}

/* Select principal */
.wc-block-product-categories__dropdown select,
select[id*="product-categories"] {
    width: 100% !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23374151' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    height: 50px !important;
    min-height: 50px !important;
    line-height: 1.5 !important;
}

/* Hover */
.wc-block-product-categories__dropdown select:hover,
select[id*="product-categories"]:hover {
    border-color: #dc3545 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* Focus */
.wc-block-product-categories__dropdown select:focus,
select[id*="product-categories"]:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 4px 12px rgba(220, 53, 69, 0.2) !important;
    outline: none !important;
}

/* Options */
.wc-block-product-categories__dropdown select option,
select[id*="product-categories"] option {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    color: #374151 !important;
    background-color: #ffffff !important;
    border: none !important;
}

/* Option principale (sans tiret) */
.wc-block-product-categories__dropdown select option:not([value="false"]):not([value*="/"]),
select[id*="product-categories"] option:not([value="false"]):not([value*="/"]) {
    font-weight: 600 !important;
    color: #111827 !important;
    background-color: #f9fafb !important;
}

/* Option placeholder */
.wc-block-product-categories__dropdown select option[value="false"],
select[id*="product-categories"] option[value="false"] {
    color: #9ca3af !important;
    font-style: italic !important;
}

/* Option de sous-catégorie (avec tiret) */
.wc-block-product-categories__dropdown select option[value*="/"]:not([value="false"]),
select[id*="product-categories"] option[value*="/"]:not([value="false"]) {
    padding-left: 28px !important;
    color: #6b7280 !important;
}

/* Option sélectionnée */
.wc-block-product-categories__dropdown select option:checked,
select[id*="product-categories"] option:checked {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.15) 100%) !important;
    color: #dc3545 !important;
    font-weight: 600 !important;
}

/* Bouton associé au dropdown - masqué car redirection automatique */
.wc-block-product-categories__button {
    display: none !important;
}

/* ============================================
   AMÉLIORATION DU MINI WIDGET QUOTE LIST
   ============================================ */

/* Bouton "Voir la liste" dans le widget */
.widget_ywraq_mini_list_quote .yith-ywraq-list-content .button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25) !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 15px !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content .button:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* Bouton de fermeture */
.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
    border-radius: 50%;
    background: #f3f4f6;
    transition: all 0.2s ease;
    z-index: 10;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper .close:hover {
    background: #e5e7eb;
    color: #dc3545;
    transform: rotate(90deg);
}

/* Titre "items-count" dans le widget */
.widget_ywraq_mini_list_quote .yith-ywraq-list-content .items-count {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* Message "Aucun produit" */
.widget_ywraq_mini_list_quote ul.yith-ywraq-list li.no-product {
    padding: 20px 0 !important;
    text-align: center !important;
    color: #6c757d !important;
    font-style: italic !important;
    border: none !important;
}

/* Image produit dans le widget */
.widget_ywraq_mini_list_quote .yith-ywraq-list-item-info img,
.widget_ywraq_mini_list_quote .yith-ywraq-list-item img {
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s ease !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-item-info:hover img,
.widget_ywraq_mini_list_quote .yith-ywraq-list-item:hover img {
    transform: scale(1.05) !important;
}

/* Lien de suppression */
.widget_ywraq_mini_list_quote .yith-ywraq-item-remove {
    position: absolute !important;
    left: 0 !important;
    top: 12px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center !important;
    font-size: 1.3rem !important;
    color: #dc3545 !important;
    background: #fef2f2 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 300 !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-item-remove:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Nom du produit */
.widget_ywraq_mini_list_quote .yith-ywraq-list-item-product-info {
    font-size: 0.9rem !important;
    color: #111827 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-item-product-info:hover {
    color: #dc3545 !important;
}

/* Scrollbar personnalisée */
.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar {
    width: 6px !important;
}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar-track {
    background: #f3f4f6 !important;
    border-radius: 3px !important;
}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar-thumb {
    background: #dc3545 !important;
    border-radius: 3px !important;
}

.widget_ywraq_mini_list_quote ul.yith-ywraq-list::-webkit-scrollbar-thumb:hover {
    background: #c82333 !important;
}

/* ============================================
   FORCER L'AFFICHAGE DU DROPDOWN AU-DESSUS DU HEADER
   ============================================ */

/* S'assurer que le widget et son dropdown ne sont pas coupés par overflow */
.widget_ywraq_mini_list_quote,
.widget_ywraq_mini_list_quote * {
    overflow: visible !important;
}

/* Forcer le z-index très élevé pour passer au-dessus de tout */
.widget_ywraq_mini_list_quote {
    z-index: 99999 !important;
    position: relative !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-wrapper,
.widget_ywraq_mini_list_quote .yith-ywraq-list-content {
    z-index: 99999 !important;
}

/* Le JavaScript gère le positionnement fixed via la classe show-dropdown */
.widget_ywraq_mini_list_quote.show-dropdown .yith-ywraq-list-content {
    position: fixed !important;
    z-index: 999999 !important;
}

/* Forcer overflow visible sur les parents pour éviter que le dropdown soit coupé */
header:has(.widget_ywraq_mini_list_quote),
.wp-block-group:has(.widget_ywraq_mini_list_quote),
.wp-block-column:has(.widget_ywraq_mini_list_quote),
.wp-block-cover:has(.widget_ywraq_mini_list_quote),
.site-header:has(.widget_ywraq_mini_list_quote),
.main-header:has(.widget_ywraq_mini_list_quote) {
    overflow: visible !important;
}

/* Alternative si :has() n'est pas supporté - utiliser une classe */
.widget_ywraq_mini_list_quote-parent {
    overflow: visible !important;
}