table.variations {
	position: relative;
	padding-bottom: 25px;
}

table.variations .reset_variations {
	position: absolute;
	bottom: 0;
	right: 0;
}

table.variations tbody {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: ;
	grid-column-gap: 32px;
	grid-row-gap: 12px;
}

table.variations tr {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

table.variations tr .label {
	margin-bottom: 7px;
}

table.variations .value,
table.variations .value select {
	width: 100%;
}

table.variations .value select {
	height: 30px;
	padding: 0 16px;
	font-family: "Quicksand";
	font-size: 14px;
	font-weight: 400;
	line-height: 17.5px;
	text-align: left;
	color: #000;
	background: url("../img/faq-arrow-reverse.svg") no-repeat center right 13px #dedede;
	background-size: 10px 5px;
	border-radius: 4px;
	border: none;
	appearance: none; /* Pour les navigateurs modernes */
	-webkit-appearance: none; /* Pour Safari et Chrome */
	-moz-appearance: none; /* Pour Firefox */
	outline: none;
	cursor: pointer;
}

table.variations .value select option {
	color: #000;
}

.variations-title {
	font-family: "Quicksand";
	font-size: 18px;
	font-weight: 600;
	line-height: 22.5px;
	margin: 24px 0;
}

.reset_variations {
	color: #000;
	margin-top: 12px;
	display: block;
	font-size: 14px;
}

.woocommerce-variation-price {
	font-family: "Quicksand";
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	margin-bottom: 24px;
}

.woocommerce-variation-availability {
	display: flex;
	font-family: "Quicksand";
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
}

.woocommerce-variation-availability .stock {
	font-weight: 600;
	padding-left: 2px;
}

.single_variation_wrap {
	display: flex;
	margin-bottom: 56px;
	flex-wrap: wrap;
	gap: 20px 32px;
}

.single_variation_wrap > * {
	flex-basis: calc(50% - 16px);
	flex-grow: 1;
}

.single_variation_wrap .clear {
	display: none;
}

.single_variation_wrap .single_variation {
	order: 1;
	display: block !important;
}

.wiboo-addproduct .quantity {
	order: 3;
	background-color: #fff;
	border: none;
	height: 35px;
	margin: auto 0 0 auto;
	margin-left: calc(100% - 80px);
	position: relative;
}

.wiboo-addproduct .elementor-add-to-cart.elementor-product-simple .cart {
	display: flex;
	flex-direction: column;
}

.wiboo-addproduct .elementor-add-to-cart.elementor-product-simple .cart .quantity {
	order: 0;
	margin-bottom: 16px;
}

.wiboo-addproduct .elementor-add-to-cart.elementor-product-simple .cart .single_add_to_cart_button {
	margin: 0 !important;
}

.product-type-variable .nbrref {
	margin-top: -160px;
}

.product-type-simple .nbrref {
	margin-top: -55px;
}

.single_variation_wrap #conteneur-accessoires {
	order: 2;
	flex-basis: 100%;
}

.single_variation_wrap #conteneur-accessoires:empty {
	display: none;
}

.wiboo-addproduct .quantity:before {
	display: block;
	content: "Quantité :";
	font-family: "Quicksand";
	font-size: 18px;
	font-weight: 600;
	line-height: 22.5px;
	text-align: left;
	position: absolute;
	top: 7px;
	left: 0;
	width: 90px;
	transform: translateX(calc(-100% - 24px));
}

.wiboo-addproduct .quantity input {
	text-align: center;
	border: none;
	font-family: "Quicksand";
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
}

.wiboo-addproduct .quantity span {
	padding: 0 10px;
}

.woocommerce-variation-add-to-cart {
	order: 4;
}

.yith-ywraq-add-to-quote {
	order: 5;
}

.single_add_to_cart_button {
	width: 100%;
	padding: 16px 0 !important;
}

#conteneur-accessoires .category-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
}

#conteneur-accessoires .product-item {
	position: relative;
	background-color: #dedede;
}

#conteneur-accessoires .product-item.show-more {
	display: none;
}

#conteneur-accessoires .category-products.view-more .product-item.show-more {
	display: block;
}

.show-more-button {
	display: block !important;
	margin: 0 auto !important;
	padding: 13px 44px !important;
	width: fit-content !important;
	background-color: #000 !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	color: #fff !important;
	grid-column: 1 / -1 !important;
	cursor: pointer;
}

.show-more-button span {
	pointer-events: none;
}

.show-more-button .show-less-text {
	display: none;
}

.category-products.view-more .show-more-button .show-less-text {
	display: block;
}

.category-products.view-more .show-more-button .show-more-text {
	display: none;
}

#conteneur-accessoires .product-item img {
	width: 100%;
	aspect-ratio: 170 / 105;
	object-fit: contain;
	background-color: #fff;
}

#conteneur-accessoires .product-item p {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 16px;
	font-family: "Quicksand";
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
}

.accessory-controls label {
	font-family: "Quicksand";
	padding: 0 16px 16px;
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.accessory-controls input {
	width: 24px;
	height: 24px;
	border: 1px solid #000;
	border-radius: 0;
	appearance: unset;
	background-color: #fff;
}

.accessory-controls input:checked {
	background-image: url('data:image/svg+xml,<svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.34999 12.598L0.649994 6.898L2.07499 5.473L6.34999 9.748L15.525 0.572998L16.95 1.998L6.34999 12.598Z" fill="black"/></svg>');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 17px 13px;
}

.accessory-controls:has(.accessory-checkbox:not(:checked)) + .quantity-control {
	display: none !important;
}

#conteneur-accessoires .quantity-control {
	font-family: "Quicksand", sans-serif;
	margin-top: 0;
	padding: 0 16px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#conteneur-accessoires .quantity-control label {
	font-size: 14px;
	margin-bottom: 0;
}

#conteneur-accessoires .quantity-control .quantity-buttons {
	margin-top: 0;
	width: 78px;
	display: flex;
	align-items: center;
	background-color: #fff;
	box-shadow: 0px 0px 5px 2px #0000000a;
}

#conteneur-accessoires .quantity-control .quantity-buttons button.quantity-btn {
	color: #000 !important;
	background: transparent !important;
	padding: 0;
	font-size: 16px !important;
	font-weight: 400 !important;
	border: none;
	margin: 0;
}

#conteneur-accessoires .quantity-control .quantity-buttons button.quantity-btn.plus {
	padding-right: 16px;
}

#conteneur-accessoires .quantity-control .quantity-buttons button.quantity-btn.minus {
	padding-left: 16px;
}

#conteneur-accessoires .quantity-control .quantity-buttons input {
	-moz-appearance: textfield !important;
	border: none !important;
	text-align: center;
}

#conteneur-accessoires .quantity-control .quantity-buttons input::-webkit-outer-spin-button,
#conteneur-accessoires .quantity-control .quantity-buttons input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

#conteneur-accessoires h3 {
	font-size: 20px;
	font-family: "Quicksand";
	font-weight: 600;
	line-height: 25px;
	margin: 24px 0;
}

.elementor-location-single:not(.accessoires-active) .elementor-element.no-accessoires {
	display: contents !important;
}

.elementor-element.no-accessoires .mahii-tabs {
	order: 9;
	width: 100%;
}

@media screen and (min-width: 600px) {
	#conteneur-accessoires .category-products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.elementor-location-single
		.elementor-element.no-accessoires
		.elementor-widget-ucaddon_uc_image_default_theme {
		width: calc(50% - 32px);
	}
	#conteneur-accessoires .category-products {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media screen and (min-width: 1100px) {
	#conteneur-accessoires .category-products {
		grid-template-columns: repeat(5, 1fr);
	}
}

.woocommerce-tabs {
	display: flex;
	flex-direction: column;
}

.woocommerce-tabs > ul {
	display: contents;
}

.woocommerce-tabs > ul li {
	list-style-type: none;
	padding: 20px 24px !important;
	margin-top: 24px !important;
	border-radius: 6px !important;
	position: relative;
}

.woocommerce-tabs > ul li a {
	padding: 0 !important;
}

.woocommerce-tabs > ul li a:after {
	display: block;
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
}

.woocommerce-tabs > ul li.active {
	border-radius: 6px 6px 0 0 !important;
}

.woocommerce-tabs > ul li:first-of-type {
	order: 1;
}

.woocommerce-tabs .woocommerce-Tabs-panel:first-of-type {
	order: 2;
}

.woocommerce-tabs > ul li:nth-of-type(2) {
	order: 3;
}

.woocommerce-tabs .woocommerce-Tabs-panel:nth-of-type(2) {
	order: 4;
}

.woocommerce-tabs > ul li:nth-of-type(3) {
	order: 5;
}

.woocommerce-tabs .woocommerce-Tabs-panel:nth-of-type(3) {
	order: 6;
}
.woocommerce-tabs > ul li:nth-of-type(4) {
	order: 7;
}

.woocommerce-tabs .woocommerce-Tabs-panel:nth-of-type(4) {
	order: 8;
}

.woocommerce-tabs > ul li:nth-of-type(5) {
	order: 9;
}

.woocommerce-tabs .woocommerce-Tabs-panel:nth-of-type(5) {
	order: 10;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
	background-color: #fff !important;
	border-radius: 0 0 6px 6px !important;
	border: none !important;
}

.woocommerce-tabs .woocommerce-Tabs-panel h2 {
	display: none !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: auto;
	grid-auto-rows: auto;
	grid-column-gap: 12px;
	grid-row-gap: 12px;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper > div:first-of-type {
	height: 375px;
	width: 100%;
	object-fit: cover;
	margin-bottom: 12px;
	grid-column: span 4;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper div {
	height: 105px;
}

.woocommerce-product-gallery .woocommerce-product-gallery__wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tabs.wc-tabs li {
	position: relative;
}

.tabs.wc-tabs li:before {
	display: block !important;
	content: "" !important;
	position: absolute !important;
	width: 14px !important;
	height: 7px !important;
	top: 30px !important;
	right: 24px !important;
	background: url("../img/faq-arrow.svg") !important;
	background-size: contain !important;
	transform: rotate(180deg) !important;
	background-repeat: no-repeat !important;
}

.tabs.wc-tabs li.active:before {
	transform: rotate(0deg) !important;
}

.mahii-tabs .wc-tab > div .woocommerce-Tabs-panel {
	display: block !important;
}

.woocommerce-variation.single_variation .woocommerce-variation-description {
	display: none;
}

.mahii-tabs .dierre-tab {
	background-color: #fff;
	padding: 20px 24px 16px;
	border-radius: 6px;
	height: auto;
}

.woocommerce-Tabs-panel {
	height: 0;
	overflow: hidden;
	padding: 0;
	transition: all ease-in 0.3s;
}

.woocommerce-Tabs-panel.active {
	height: 90%;
	padding-top: 16px;
	padding-bottom: 16px;
	transition: all ease-in 0.3s;
}

.dierre-tab {
	position: relative;
}

.dierre-tab > a {
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	text-align: left;
	color: #000;
	text-decoration: none;
}

.dierre-tab a {
	color: #000;
}

.woocommerce-Tabs-panel {
	font-family: "Roboto";
	font-size: 14px;
	font-weight: 300;
	line-height: 18px;
	text-align: left;
}

.dierre-tab > a:after {
	display: block;
	position: absolute;
	content: "";
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.dierre-tab .woocommerce-Tabs-panel.active {
	position: relative;
	z-index: 2;
}

.dierre-tab:after {
	display: block;
	position: absolute;
	content: "";
	width: 100%;
	width: 14px;
	height: 7px;
	background: url("../img/faq-arrow.svg");
	top: 22px;
	right: 24px;
	transform: rotate(180deg);
}

.dierre-tab.active:after {
	transform: rotate(0deg);
	transition: all ease-in 0.3s;
}

.dierre-tab-parent {
	margin-bottom: 24px;
	flex-grow: 1;
}

.mahii-tabs .wc-tabs:after {
	display: block;
	content: "";
	width: calc(50% - 12px);
}

.woocommerce-Tabs-panel p:not(last-child) {
	margin-bottom: 14px;
}

.woocommerce-Tabs-panel table p {
	margin: 0;
}

@media screen and (min-width: 992px) {
	.mahii-tabs .wc-tabs {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		gap: 24px;
		flex-wrap: wrap;
	}

	.dierre-tab-parent {
		margin-bottom: 0px;
	}

	.elementor-location-single .mahii-tabs .wc-tabs > div {
		width: calc(50% - 12px);
	}
}

.reset_variations {
	text-align: right;
}

/* .tabs.wc-tabs .dierre-tab-parent:nth-child(2) {
    display: none !important;
} */

.single_variation_wrap .dierre-price {
	display: none;
	font-size: 24px;
	font-weight: 600;
	font-family: "QuickSand";
	line-height: 24px;
}

.single_variation_wrap .woocommerce-variation[style*="none"] + .dierre-price {
	display: block;
}

body.single-product:not(.logged-in) .dierre-price,
body:not(.logged-in) .woocommerce-variation-add-to-cart,
body:not(.logged-in) #form .quantity,
body:not(.logged-in) #conteneur-accessoires,
body:not(.logged-in) .single_variation_wrap {
	display: none !important;
}

body > .product.outofstock .roxas-tabs .wc-tabs .dierre-tab-parent:first-child {
	display: none !important;
}

.single-product .product_tag-sur-commande .elementor-add-to-cart .single_add_to_cart_button,
.single-product .product_tag-sur-commande .roxas-tabs .dierre-tab-parent:first-child {
	display: none !important;
}

/* Product sur stock */

.tabs-stock .dierre-tab-parent:has(#tab-title-description) {
	display: none !important;
}

#form > .e-con-inner {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
}

.elementor-widget-woocommerce-product-add-to-cart,
.elementor-widget-woocommerce-product-add-to-cart > .elementor-widget-container,
.elementor-widget-woocommerce-product-add-to-cart
	> .elementor-widget-container
	> .elementor-add-to-cart,
.elementor-widget-woocommerce-product-add-to-cart
	> .elementor-widget-container
	> .elementor-add-to-cart
	> form,
.elementor-widget-woocommerce-product-add-to-cart
	> .elementor-widget-container
	> .elementor-add-to-cart
	> form
	.single_variation_wrap,
#form .woocommerce-variation.single_variation {
	display: contents !important;
}

#form .variations-title {
	order: -20;
	min-width: 100%;
}

#form table.variations {
	order: -19;
	min-width: 100%;
	margin-bottom: 0px;
}

.dierre-ref {
	order: -18;
	font-family: "Quicksand", sans-serif;
	font-weight: 600;
	min-width: 100%;
}

.dierre-ref:has(div[sp-sku]:empty) {
	display: none;
}

#form .woocommerce-variation-availability {
	order: -17;
	font-family: "Quicksand", sans-serif;
}

.mahii-tabs-characteristics {
	order: -17 !important;
	min-width: 100% !important;
}

.mahii-tabs-characteristics .dierre-tab-parent {
	box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.05);
}

/* element en double dans les produits en stock */
/* .woocommerce-variation-availability:after {
  content: "En stock";
  padding-left: 4px;
  font-weight: 600;
} */
.woocommerce-variation-availability:has(.out-of-stock)::after {
	display: none !important;
}

#form .quantity {
	position: relative;
	margin-left: 108px;
	margin-right: 0;
	max-width: unset;
	flex-basis: fit-content;
	width: fit-content;
	order: -16;
	border: none;
	box-shadow: 0px 0px 5px 2px #0000000a;
	flex-grow: 0;
}

#form .quantity input {
	border: none;
	width: 40px;
	height: 35px;
	text-align: center;
}

#form .quantity:before {
	content: "Quantité :";
	position: absolute;
	top: 50%;
	left: -24px;
	transform: translate(-100%, -50%);
	font-size: 18px;
	font-weight: 600;
	font-family: "Quicksand", sans-serif;
}

#form .woocommerce-variation-price {
	margin-bottom: 0;
	order: -14;
}

.dierre-accessoires {
	min-width: 100%;
}

.dierre-accessoires ul {
	padding-left: 20px;
}

#conteneur-accessoires {
	min-width: 100%;
}

#form .woocommerce-variation-add-to-cart {
	margin-top: 50px;
	min-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

#form .woocommerce-variation-add-to-cart button {
	margin-left: 0 !important;
}

#form .woocommerce-variation-add-to-cart:has(.dierre-variation-reacap) {
	background-color: #dedede;
	padding: 24px;
}
.dierre-variation-reacap h3 {
	margin-bottom: 24px;
	text-align: center;
	text-transform: uppercase;
}
.dierre-variation-reacap h4 {
	margin-bottom: 24px;
	font-size: 18px;
}

.dierre-variation-reacap-lists {
	display: grid;
	gap: 24px;
}

.dierre-variation-reacap-lists ul {
	list-style: none;
	display: grid;
	gap: 16px;
}

.dierre-variation-reacap-lists .dierre-variation-reacap-list li {
	display: grid;
	gap: 16px 24px;
	grid-template-columns: 35px calc(100% - 59px);
	line-height: 1;
	font-family: "Quicksand", sans-serif;
}

.dierre-variation-reacap-lists .dierre-variation-reacap-list li img {
	background-color: #fff;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	grid-row: 1 / 3;
}

.dierre-contact-info {
	margin-top: 50px;
	text-align: center;
	font-family: "Quicksand", sans-serif;
	font-weight: 600;
}

@media (min-width: 768px) {
	#form .quantity {
		margin-right: auto;
	}
	#form .woocommerce-variation-availability {
		margin-right: auto;
	}
	.dierre-variation-reacap-lists {
		grid-template-columns: calc(50% - 12px) calc(50% - 12px);
	}
	.dierre-variation-reacap-lists ul {
		grid-template-columns: calc(50% - 8px) calc(50% - 8px);
	}
}

@media (max-width: 767px) {
	#form > .e-con-inner {
		flex-direction: column;
	}
	#form .woocommerce-variation-availability,
	#form .quantity {
		align-self: flex-start;
		margin-bottom: 25px;
	}
	#form .woocommerce-variation-price {
		min-width: 100%;
	}
}

.product-type-simple .dierre-accessoires h2,
.single-product .product.outofstock #form {
	display: none;
}

.elementor-add-to-cart .stock.in-stock {
	margin-bottom: 30px;
}


.variations_button button.disabled  {
	pointer-events: none !important;
	cursor: not-allowed !important;
}

.variations_button button.disabled:before {
	content: "Produit non disponible" !important;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	font-weight: 600;
	font-family: "Quicksand", sans-serif;
	color: #fff;
	background-color: #000;
	padding: 10px 20px;
}


.access-title {
	display: none;
}

.product_cat-accessoires-et-pieces-detachees-chassis-portes-a-galandage .access-title,
.product_cat-accessoires-et-pieces-detachees .access-title,
.product_cat-accessoires-et-pieces-detachees-portes-anti-effraction .access-title {	
		display: block;
}

.product_cat-accessoires-et-pieces-detachees-chassis-portes-a-galandage .door-title,
.product_cat-accessoires-et-pieces-detachees .door-title,
.product_cat-accessoires-et-pieces-detachees-portes-anti-effraction .door-title {
	display: none;
}

.product-type-simple #tab-title-docs {
	display: none !important;
}

.stock.out-of-stock {
	font-size: 24px;
	font-weight: 600;
}

.cat-link {
	color: #000;
	font-weight: 600;
	font-family: "Quicksand", sans-serif;
	text-decoration: underline;
	position: relative;
	padding-left: 15px;
	font-size: 16px;
	line-height: 1;
	display: inline-block;
}
.cat-link:before {
	content: '';
	position: absolute;
	top: calc(50% - 5px);
	width: 10px;
	height: 10px;
	left: 0;
	background-image: url('data:image/svg+xml,<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 2L3 5L6 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-size: 10px 10px;
	background-repeat: no-repeat;
	background-position: center;
}

.variations .attribute-reset-button {
	margin-left: 8px;
	padding: 8px;
	font-size: 12px;
	line-height: 1;
	border-radius: 4px;
	cursor: pointer;
  }
  
  .variations .attribute-reset-button:hover {
	opacity: 0.85;
  }


  table.variations .value, table.variations .value select {
	display: flex;
	align-items: center;
  }



/* POPUP AIDE PRODUIT */
.aide-produit-wrapper {
	display: inline-block;
	margin-left: 0.5rem;
  }
  
  .aide-produit-button {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: #000;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px !important;
  }
  
.aide-produit-modal__close {
	padding: 5px 10px !important;
}
  
  .aide-produit-button span {
	display: inline-block;
	transform: translateY(-1px);
  }
  
  .aide-produit-button:hover,
  .aide-produit-button:focus {
	opacity: 0.85;
  }
  

  .aide-produit-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
  }
  
  .aide-produit-modal.is-open {
	display: block;
  }
  
  .aide-produit-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
  }
  
  .aide-produit-modal__content {
	position: relative;
	max-width: 600px;
	margin: 10vh auto;
	background: #fff;
	border-radius: 6px;
	padding: 20px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	z-index: 1;
  }

  .aide-produit-modal__body p:not(:last-child) {
	margin-bottom: 16px;
  }
  
  .aide-produit-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
  }
  
  .aide-produit-modal__body {
	margin-top: 16px;
  }
  
  body.aide-produit-modal-open {
	overflow: hidden;
  }
  