/*
 * Ochanta — widget Onglets du produit (the7-woocommerce-product-data-tabs) : description,
 * informations complémentaires et avis de WooCommerce, en onglets horizontaux, verticaux ou en
 * accordéon. La disposition de l'appareil courant (réglages dt-tabs-view-*, -tablet-*, -mobile-*)
 * est posée par le script dans data-och-view.
 * Variables : --the7-tabs-border-width, --the7-tabs-side-width (CSS calculé du widget).
 */

.the7-elementor-product-simple.elementor-tabs {
	--the7-tabs-border-width: 1px;
	--the7-tabs-side-width: 25%;
	--the7-tabs-border-color: rgba(0, 0, 0, .1);
}

.the7-elementor-product-simple .woocommerce-tabs {
	margin: 0;
	padding: 0;
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs {
	display: flex;
	flex-flow: row wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs:before,
.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs:after,
.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li:before,
.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li:after {
	display: none !important;
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li {
	position: relative;
	margin: 0;
	padding: 0;
	border: var(--the7-tabs-border-width) solid transparent;
	border-radius: 0;
	background: none;
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li a {
	display: block;
	padding: 12px 20px;
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
	transition: color .3s;
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li.active {
	border-color: var(--the7-tabs-border-color);
}

.the7-elementor-product-simple .woocommerce-tabs ul.wc-tabs li.active a {
	color: var(--the7-accent-color, inherit);
}

.the7-elementor-product-simple .woocommerce-Tabs-panel {
	box-sizing: border-box;
	margin: 0;
	padding: 25px;
	border: var(--the7-tabs-border-width) solid var(--the7-tabs-border-color);
}

.the7-elementor-product-simple .woocommerce-Tabs-panel > h2:first-child {
	margin-top: 0;
}

/* Titres de l'accordéon (masqués hors accordéon) */
.the7-elementor-product-simple .dt-tab-accordion-title {
	display: none;
	padding: 12px 20px;
	border: 0 solid var(--the7-tabs-border-color);
	cursor: pointer;
	transition: color .3s, background-color .3s;
}

/* Onglets en haut */
.the7-elementor-product-simple[data-och-view="horizontal"] .woocommerce-tabs ul.wc-tabs li.active {
	z-index: 1;
	border-bottom-color: transparent;
	margin-bottom: calc(-1 * var(--the7-tabs-border-width));
	background-color: inherit;
}

.tabs-top-align-center .the7-elementor-product-simple[data-och-view="horizontal"] ul.wc-tabs {
	justify-content: center;
}

.tabs-top-align-right .the7-elementor-product-simple[data-och-view="horizontal"] ul.wc-tabs {
	justify-content: flex-end;
}

.tabs-top-align-justify .the7-elementor-product-simple[data-och-view="horizontal"] ul.wc-tabs li {
	flex: 1 1 0;
	text-align: center;
}

/* Onglets sur le côté */
.the7-elementor-product-simple[data-och-view="vertical"] .woocommerce-tabs {
	display: flex;
	flex-flow: row nowrap;
	align-items: flex-start;
}

.elementor-position-right .the7-elementor-product-simple[data-och-view="vertical"] .woocommerce-tabs {
	flex-direction: row-reverse;
}

.the7-elementor-product-simple[data-och-view="vertical"] ul.wc-tabs {
	flex: 0 0 var(--the7-tabs-side-width);
	flex-direction: column;
	width: var(--the7-tabs-side-width);
}

.the7-elementor-product-simple[data-och-view="vertical"] .woocommerce-Tabs-panel {
	flex: 1 1 auto;
	min-width: 0;
}

.the7-elementor-product-simple[data-och-view="vertical"] ul.wc-tabs li.active {
	z-index: 1;
	margin-right: calc(-1 * var(--the7-tabs-border-width));
	border-right-color: transparent;
}

.elementor-position-right .the7-elementor-product-simple[data-och-view="vertical"] ul.wc-tabs li.active {
	margin-right: 0;
	margin-left: calc(-1 * var(--the7-tabs-border-width));
	border-right-color: var(--the7-tabs-border-color);
	border-left-color: transparent;
}

/* Accordéon */
.the7-elementor-product-simple[data-och-view="accordion"] ul.wc-tabs {
	display: none;
}

.the7-elementor-product-simple[data-och-view="accordion"] .wc-tabs-wrapper {
	border: var(--the7-tabs-border-width) solid var(--the7-tabs-border-color);
}

.the7-elementor-product-simple[data-och-view="accordion"] .dt-tab-accordion-title {
	display: block;
}

.the7-elementor-product-simple[data-och-view="accordion"] .dt-tab-accordion-title:not(:first-of-type) {
	border-top-width: var(--the7-tabs-border-width);
}

.the7-elementor-product-simple[data-och-view="accordion"] .dt-tab-accordion-title.active {
	color: var(--the7-accent-color, inherit);
}

.the7-elementor-product-simple[data-och-view="accordion"] .woocommerce-Tabs-panel {
	border-width: var(--the7-tabs-border-width) 0 0;
}

.tabs-accordion-align-center .the7-elementor-product-simple .dt-tab-accordion-title {
	text-align: center;
}

.tabs-accordion-align-right .the7-elementor-product-simple .dt-tab-accordion-title {
	text-align: right;
}

/* Informations complémentaires */
.the7-elementor-product-simple .shop_attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.the7-elementor-product-simple .shop_attributes th,
.the7-elementor-product-simple .shop_attributes td {
	padding: 10px 10px 10px 5px;
	border: 0 solid var(--the7-tabs-border-color);
	background: none;
	text-align: left;
	vertical-align: top;
}

.wc-product-info-yes .the7-elementor-product-simple .shop_attributes tr:not(:first-child) th,
.wc-product-info-yes .the7-elementor-product-simple .shop_attributes tr:not(:first-child) td {
	border-top-width: 1px;
	border-top-style: solid;
}

.the7-elementor-product-simple .shop_attributes td p {
	margin: 0;
}
