/*

	Theme Name: B2PROTEC

	Theme URI: https://b2protec.fr

	Description: Produits de protection b2b

	Version: 1.0

	Author: Gram

	Author URI: https://studio-gram.com

	Tags: Theme, Wordpress, Blank, HTML5, CSS3, JS, Sass, Gulp, WebPack



	License: MIT

	License URI: http://opensource.org/licenses/mit-license.php

*/



li.menu-translate {

	width: auto !important;

	padding: 0 !important;

	display: inline-flex !important;

  	align-items: center;

}



li.menu-translate li {

		background-color: transparent !important;

}



.menu-translate img {

  width: 24px !important;

}

.gtranslate_wrapper {

	display: inline-flex;

	align-items: center;

	gap: 10px;

}



@media (min-width: 1400px) {

	.searchform__parent {

		max-width: clamp(300px, 22.5vw, 400px);

	}

}

@media (min-width: 1261px) and (max-width: 1399px) {
	.searchform__parent {

		max-width: clamp(150px, 15.5vw, 240px);

	}
}



@media (min-width: 992px) and (max-width: 1260px) {

	.searchform__parent {

		max-width: clamp(150px, 14vw, 250px)

	}

	#header .logo {

        width: 200px;

    }

}



@media (min-width: 992px) and (max-width: 1060px) {

	#main-menu {

		padding-right: 20px;

	}

}



@media (max-width: 992px) {

	#main-menu > div > ul > li.menu-translate a {

		padding: 0;

	}

	li.menu-translate {

		position: absolute;

		top: 16px;

		left: calc(160px + 20px);

	}

	.menu-translate img {

		width: 36px !important;

	}

}



.grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

	grid-auto-rows: max-content;

    gap: 0px;

}

.post__item {

	max-width: 100% !important;

}

.list-news img {

	max-height: 56.16vh;

	object-fit: contain;

}

.post__title {

	margin-top: 1.5rem;

	margin-bottom: 0rem;

}

.post__date {

	font-size: .9rem;

	min-width: 100%;

  	margin-bottom: 1.5rem;

}



body .elementor-button {

	border-radius: 0;

}



.sub__title h2 {

	font-size: 1rem !important;

}



body #main-menu {

	margin-left: auto;

    margin-right: 0;

}

@media (min-width: 1200px) {

	body #main-menu > div > ul > li {

	  padding: 0 1rem;

	}

}



@media (min-width: 992px) {

	body #main-menu > div > ul > li a {

	  font-size: 1.1rem;

	}

}



@media (min-width: 1200px) {

	#main-menu {

	  padding-right: 70px;

	}

}



@media (max-width: 1200px) and (min-width: 992px) {

	#main-menu > div > ul > li {

		padding: 0 0.75rem;

		font-size: 1rem;

	}

	body #main-menu > div > ul > li a {

		font-size: 1rem;

	}

}



#wpfront-scroll-top-container img {

	max-width: 40px;

	max-height: 40px;

}



@media (max-width: 992px) {

	body .footer__num {

		padding-bottom: 0 !important;

		padding-top: 0 !important;

		margin-bottom: 0 !important;

		margin-top: 0 !important;

	}

}



/* Styliser le conteneur du formulaire */

form.filter__list {

    position: relative;

    display: inline-block;

    margin-bottom: 20px;

	width: 100%;

}



/* Styliser le bouton de réinitialisation comme une croix */

.reset-filter {

    position: absolute;

    top: 50%;

    right: 15px;

    transform: translateY(-50%);

    background: transparent;

    border: none;

    font-size: 25px;

    cursor: pointer;

    color: #333;

    padding: 0;

    margin: 0;

    line-height: 1;

}



.reset-filter:hover {

    color: #ff0000;

}



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

	#filtre-marque.border-top-lightblue {

		border-top: none !important;

	}

	form.product-brand-filter {

		margin-bottom: 0;

	}

	body.post-type-archive-product .woocommerce.products {

		width: calc(100% + 30px);

	}

	.reset-filter {

		right: auto;

		left: 20px;

	}

}



aside .filter__title {

	position:relative

}

aside .filter__title::after,

aside .filter__title::before {

	display:block;

	content:"";

	transform:rotateZ(0);

	position: absolute;

    top: .65em;

    right: .5em;

    width: 30px;

    height: 30px;

    transition: .2s;

}

aside .filter__title::before {

	background: #004fc7;

}

aside .filter__title::after {

	background:url(/wp-content/themes/b2protec/img/svg/plus.svg) center/15px no-repeat

}

aside .filter__title.open::after {

	transform:rotateZ(45deg)

}

aside .filter__title+nav {

	transition: all .2s;

	max-height: 1000px;

}

aside nav.filter__list>ul>li {

	padding-top: 1rem;

    padding-bottom: 0;

    line-height: 1;

}

aside nav.filter__list {

	padding-bottom: 1rem;

}

.filter__list a.selected {

	color:#004fc7

}



aside .filter__title:not(.open) + nav.filter__list,

aside #filtre:not(.open) + nav {

	display:none!important;

	max-height: 0;

}



@media (min-width: 992px) {

	aside .filter__title:not(.open) + nav.filter__list,

	aside #filtre:not(.open) + nav {

		display:none!important

	}

}



/* Menu mobile */

/* Cacher les sous-menus par défaut sur mobile */

@media (max-width: 992px) {

    body #main-menu .menu__dropdown-m:not(.show),

	body #main-menu .menu__dropdown:not(.show) {

        display: none;

    }



	#main-menu li.menu-item-has-children > a {

		display: flex;

		min-width: 100%;

		flex-direction: row;

		align-items: center;

		justify-content: space-between;

	}

    /* Ajouter une icône de flèche vers le bas pour les éléments de menu qui ont des sous-menus */

    .menu-item-has-children > a::after {

        content: '';

        float: right;

        margin-left: 5px;

		background: url("./img/icons/arrow-down.svg") no-repeat center;

		background-size: contain;

		width: 12px;

		height: 12px;

		transition: transform .3s;

    }

	.menu-item-has-children.open > a::after {

		transform: rotate(180deg);

	}

}



aside nav > ul ul li :not(a)::before {

	content: none !important;

}



aside input[type="checkbox"] {

	--form-background: #fff;

	--form-control-color: #004fc7;

	/* Add if not using autoprefixer */

	-webkit-appearance: none;

	/* Remove most all native input styles */

	appearance: none;

	/* For iOS < 15 */

	background-color: var(--form-background);

	/* Not removed via appearance */

	margin: 0;

	font: inherit;

	color: currentColor;

	width: 1.15em;

	height: 1.15em;

	border: 0.15em solid currentColor;

	border-radius: 0;

	transform: translateY(-0.075em);

    padding: 0 !important;

	display: grid;

	place-content: center;

}

  

aside input[type="checkbox"]::before {

	content: "" !important;

	width: 0.65em;

	height: 0.65em;

	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);

	transform: scale(0);

	transform-origin: bottom left;

	transition: 120ms transform ease-in-out;

	box-shadow: inset 1em 1em var(--form-control-color);

	/* Windows High Contrast Mode */

	background-color: CanvasText;

	margin: 0 !important;

}

  

aside input[type="checkbox"]:checked::before {

	transform: scale(1);

}



.filter__list label:has(input[type="checkbox"]) {

	display: flex;

	align-items: center;

	gap: .6rem;

}



aside nav.filter__list > ul ul li a::before {

	content: none;

}

aside nav.filter__list > ul ul li a,

aside nav.filter__list > ul li:not(.menu-item-has-children) a {

	display: flex;

	align-items: center;

	gap: .6rem;

	margin-bottom: .5rem;

}

aside nav.filter__list > ul ul li a label,

aside nav.filter__list > ul li:not(.menu-item-has-children) a label {

	margin-bottom: 0;

}



.woocommerce div.product form.cart .variations select {

	max-height: 21px;

}



body.page-template-template-panier .woocommerce .woocommerce-notices-wrapper {

	transform: translateY(77px);

}

.b2-checkout-login-container {
	min-width: 100%;
	padding: 0 1.5rem;
}

.b2-checkout-login-container:not(.is-expand) * {
	display: none;
}

.b2-checkout-login-container .woocommerce-form-login-toggle {
	display: flex;
}
.b2-checkout-login-container .woocommerce-form-login-toggle * {
	display: flex;
}
	.b2-checkout-login-container .woocommerce-form-login-toggle .showlogin {
		margin-left: 10px;
		color: #004fc7;
	}
	.b2-checkout-login-container .woocommerce-form-login-toggle .woocommerce-info {
		padding: 0;
		margin: 0;
		position: relative;
		background-color: transparent;
		color: inherit;
		border: none;
	}
	.b2-checkout-login-container .woocommerce-form-login-toggle .woocommerce-info::before {
		content: none;
	}
	.b2-checkout-login-container  input {
		border: 1px solid #bacce5 !important;
		color: #47617f !important;
	}
	.b2-checkout-login-container .woocommerce-form-login-toggle + p {
		font-size: .8rem;
	}

	.woocommerce-form-login__rememberme::before {
		content: "";
		position: relative;
		left: -3px;
		background: url("/wp-content/themes/b2protec/img/svg/checkbox.svg") left top/20px no-repeat;
		transition: all .3s;
		padding: .2rem 0 .2rem 2rem;
		margin: 0 -4px -5px 0;
		text-align: left;
		display: inline-block !important;
		min-width: 20px;
		min-height: 20px;
	}
	.woocommerce-form-login__rememberme:has(input:checked)::before {
		background: url("/wp-content/themes/b2protec/img/svg/checkbox-checked.svg") left top/20px no-repeat;
	}

.woocommerce-checkout .woocommerce.wp-block-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .woocommerce-checkout .woocommerce.wp-block-group > .woocommerce {
        width: 66.66%;
    }
    .woocommerce-checkout .woocommerce.wp-block-group > .coupon-form-parent {
        width: 33.33%;
        padding-top: 120px;
    }
     .woocommerce-checkout .coupon-form-parent .woocommerce-form-coupon-checkout-page {
        width: 100%;
     }

     .woocommerce-checkout #order_review {
        margin: -120px 0 0 auto;
     }

    .woocommerce-checkout .space.order-2 {
        display: none;
    }
    .woocommerce-checkout .checkout {
        display: contents !important;
    }
    .woocommerce-checkout .row:has(> #customer_details) {
        max-width: 66.66%;
        margin: -220px auto 0 0;
        border: none !important;
        padding: 0 2rem !important;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #customer_payment {
        padding: 1.5rem !important;
    }
}
    
.woocommerce-checkout:has(input#ship-to-different-address-checkbox:not(:checked)) .shipping_address {
    display: none;
}

.shop_table #shipping_method_0_flat_rate1,
.shop_table #shipping_method_0_free_shipping3 {
    display: none !important;
}

.shop_table:has(input[value="free_shipping:3"]:checked) li:has(>#shipping_method_0_flat_rate1) {
    display: none !important;
}

form label[for="shipping_method_0_flat_rate1"],
form label[for="shipping_method_0_free_shipping3"] {
    background: none !important;
}

button[name="update_cart"]:not(:disabled,.disabled) {
    background-color: rgb(0, 79, 199);
    color: #fff !important;
}

button[name="update_cart"]:not(:disabled,.disabled):hover {
    color: #1a2a3d !important;
    background-color: rgb(186, 204, 229) !important;
    border-radius: 0
}

body #menu-item-4431 {
    display: block !important;
}

#menu-item-4431 svg {
    transition: all .25s;
    width: 20px;
    height: 20px;
    margin-top: -5px;
}

.woocommerce-account-fields span {
	color: #004fc7;
}

.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout {
	position: absolute;
	top: 77px;
	padding: 0 90px 0 0;
}

@media only screen and (max-width: 480px) {
	body:has(.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout .woocommerce-error) .woocommerce-cart-form {
		padding-top: 210px;
	}
}

/* body.woocommerce a.button:hover, 
body.woocommerce button.button:hover {
  border-radius: 0 !important;
} */