/*
Theme Name: Petio Child
Theme URI: http://www.wpbingosite.com/petio
Author: wpbingo
Description: This is a child theme for Petio
Version: 1.0
Author URI: http://wpbingosite.com
Template: petio
Text Domain: petio-child
*/
/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/* Affûtage : quatre avantages de largeur égale, espacements compris. */
.elementor-20983 .elementor-element.elementor-element-4f0680b {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.elementor-20983 .elementor-element-4f0680b > .elementor-element {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.elementor-20983 .elementor-element-4f0680b .elementor-widget-text-editor p {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .elementor-20983 .elementor-element.elementor-element-4f0680b {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .elementor-20983 .elementor-element.elementor-element-4f0680b {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* En-tête commun : le menu utilise tout l'espace entre le logo et les actions. */
@media (min-width: 992px) {
    #bwp-header.header-v8 .header-desktop .header-left,
    #bwp-header.header-v8 .header-desktop .header-right {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }

    #bwp-header.header-v8 .header-desktop .header-wrapper > .container > .row > .text-center {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    #bwp-header.header-v8 .header-desktop .header-menu,
    #bwp-header.header-v8 .header-desktop .bwp-navigation {
        display: block;
        width: 100%;
    }

    #bwp-header.header-v8 .header-desktop #main-navigation .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
    }

    #bwp-header.header-v8 .header-desktop #main-navigation .menu > li.level-0 {
        padding-right: 6px;
        padding-left: 6px;
    }
}

/* Filtre boutique : catégories en accordéon, pilotées par le thème enfant. */
.bwp-filter-ajax .filter_category_product .cdc-category-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bwp-filter-ajax .filter_category_product .cdc-category-row > .item-category {
    flex: 1 1 auto;
    min-width: 0;
}

.bwp-filter-ajax .filter_category_product .cdc-category-toggle {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #777;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
}

.bwp-filter-ajax .filter_category_product .cdc-category-toggle::before {
    content: "+";
}

.bwp-filter-ajax .filter_category_product .cdc-category-toggle[aria-expanded="true"]::before {
    content: "\2212";
}

.bwp-filter-ajax .filter_category_product .cdc-category-children {
    display: none;
    padding-left: 18px;
}

.bwp-filter-ajax .filter_category_product .cdc-category-children.is-open {
    display: block;
}

.bwp-filter-ajax .filter_category_product > .cdc-category-branch > .cdc-category-row > .item-category {
    margin-top: 14px;
    font-weight: 700;
}

/* Aucun compteur au niveau 1, ni sur les catégories parentes des autres niveaux. */
.bwp-filter-ajax .filter_category_product > .cdc-category-branch > .cdc-category-row > .item-category > .count,
.bwp-filter-ajax .filter_category_product .cdc-category-branch.cdc-has-children > .cdc-category-row > .item-category > .count {
    display: none;
}

.bwp-filter-ajax .filter_category_product .cdc-category-children .item-category {
    font-size: 0.95em;
}


/* Mon compte : messages (ex. inscription pro "validation manuelle") — sans majuscules forcées, fond vert bien visible [cdc-notice-compte] */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
	text-transform: none;
	background: #2e7d32;
	color: #fff;
	border-top-color: #1b5e20;
	font-weight: 600;
	padding-top: 20px;
	padding-bottom: 20px;
}
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info a,
body.woocommerce-account .woocommerce-message a {
	color: #fff;
}
