/* ==========================================================================
   Характеристики — внутрішній дизайн у колонці Elementor (без max-width)
   Підтримка: наш шаблон (.tehnix-attr-*) + table.shop_attributes / WC віджет
   ========================================================================== */

/* ---------- Скидання обгортки віджета (WoodMart / Elementor) ---------- */
body.single-product .wd-single-attrs .elementor-widget-container,
body.single-product .elementor-widget-wd_single_product_additional_info_table .elementor-widget-container,
body.single-product .elementor-widget-woocommerce-product-additional-information .elementor-widget-container {
	background: transparent !important;
	background-color: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	border: none !important;
}

body.single-product .wd-single-attrs > .wd-el-title,
body.single-product .wd-single-attrs .elementor-widget-container > .wd-el-title,
body.single-product .elementor-widget-wd_single_product_additional_info_table .wd-el-title {
	display: none !important;
}

/* Контент на 100% батьківського Flex-контейнера — без жорсткої ширини */
body.single-product .tehnix-attr-grid,
body.single-product .wd-single-attrs,
body.single-product .elementor-widget-wd_single_product_additional_info_table,
body.single-product .elementor-widget-woocommerce-product-additional-information,
body.single-product .woocommerce-product-attributes,
body.single-product table.shop_attributes {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

/* ==========================================================================
   Наш шаблон: модульні картки + пунктирний лідер
   ========================================================================== */

/* Roboto для всього блоку характеристик (кирилиця з Google Fonts) */
body.single-product .tehnix-attr-grid,
body.single-product .tehnix-attr-grid *,
body.single-product .wd-single-attrs,
body.single-product .elementor-widget-wd_single_product_additional_info_table,
body.single-product .elementor-widget-woocommerce-product-additional-information,
body.single-product .woocommerce-product-attributes,
body.single-product table.shop_attributes,
body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.tehnix-attr-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tehnix-attr-card {
	display: block;
	width: 100%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 30px;
	margin-bottom: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	min-width: 0;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tehnix-attr-card__head {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 1px solid #f1f5f9;
}

.tehnix-attr-card__icon {
	flex-shrink: 0;
	display: block;
	width: 22px;
	height: 22px;
	margin-right: 10px;
	stroke: #334155;
}

.tehnix-attr-card__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Roboto", sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #111827 !important;
	letter-spacing: -0.01em;
}

.tehnix-attr-card__subtitle {
	margin: 16px 0 8px !important;
	padding: 0 !important;
	font-family: "Roboto", sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #0f172a !important;
	letter-spacing: -0.01em;
}

.tehnix-attr-card__subtitle:first-of-type {
	margin-top: 0 !important;
}

.tehnix-attr-card__list {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 0;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tehnix-attr-row {
	display: grid !important;
	grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	align-items: start;
	column-gap: 160px;
	justify-content: stretch;
	padding: 8px 0;
	margin: 0;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	border: none !important;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tehnix-attr-row__label {
	grid-column: 1;
	grid-row: 1;
	z-index: 1;
	width: max-content;
	max-width: 100%;
	padding-right: 10px;
	background: #ffffff;
	color: #334155;
	font-family: "Roboto", sans-serif !important;
	font-size: 14px !important;
	font-weight: 300 !important;
	line-height: 1.4;
	text-align: left;
}

.tehnix-attr-row__leader {
	grid-column: 1 / -1;
	grid-row: 1;
	z-index: 0;
	align-self: start;
	display: block;
	width: auto;
	min-width: 12px;
	height: 0;
	margin-top: 13px;
	margin-bottom: 0;
	border-bottom: 1px dotted #cbd5e1;
	pointer-events: none;
}

.tehnix-attr-row__value {
	grid-column: 2;
	grid-row: 1;
	z-index: 1;
	min-width: 0;
	max-width: 100%;
	padding-left: 10px;
	background: #ffffff;
	color: #1a1a1a !important;
	font-family: "Roboto", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	text-align: left;
}

.tehnix-attr-row__value.is-muted,
.tehnix-attr-row__value.is-muted a {
	color: #94a3b8 !important;
	font-weight: 400 !important;
}

.tehnix-attr-row.is-stack-row {
	align-items: start;
}

.tehnix-attr-row__value.is-stack {
	display: block;
	text-align: left;
	white-space: normal;
	max-width: none;
}

.tehnix-attr-row__value.is-stack br {
	display: block;
	content: "";
	margin: 0;
}

/* Активні (клікабельні) значення — суцільна тонка лінія */
.tehnix-attr-row__value a {
	color: #1a1a1a !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 1px;
	border-bottom: none !important;
	padding-bottom: 0;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tehnix-attr-row__value a:hover {
	color: #2563eb !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

.tehnix-attr-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.tehnix-attr-badge--yes {
	background: #ecfdf5;
	color: #059669;
}

.tehnix-attr-badge--no {
	background: transparent;
	color: #94a3b8;
	font-weight: 400;
	font-size: 15px;
	padding: 0;
}

/* ==========================================================================
   Фоллбек: стандартна таблиця WooCommerce (shop_attributes)
   у віджеті Elementor / WoodMart «Додаткова інформація»
   ========================================================================== */

body.single-product .elementor-widget-woocommerce-product-additional-information table.shop_attributes,
body.single-product .elementor-widget-wd_single_product_additional_info_table table.shop_attributes,
body.single-product .wd-single-attrs table.shop_attributes,
body.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes,
body.single-product table.woocommerce-product-attributes.shop_attributes {
	display: block;
	width: 100% !important;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px;
	padding: 24px 30px;
	margin: 0 0 20px !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.single-product table.shop_attributes tbody,
body.single-product table.woocommerce-product-attributes tbody {
	display: block;
	width: 100%;
}

body.single-product table.shop_attributes tr,
body.single-product table.woocommerce-product-attributes tr,
body.single-product .woocommerce-product-attributes-item {
	display: grid !important;
	grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	align-items: start;
	column-gap: 160px;
	justify-content: stretch;
	position: relative;
	width: 100% !important;
	padding: 8px 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	box-sizing: border-box;
}

body.single-product table.shop_attributes tr::after,
body.single-product table.woocommerce-product-attributes tr::after,
body.single-product .woocommerce-product-attributes-item::after {
	content: "";
	grid-column: 1 / -1;
	grid-row: 1;
	z-index: 0;
	align-self: start;
	height: 0;
	margin-top: 13px;
	border-bottom: 1px dotted #cbd5e1;
	pointer-events: none;
}

body.single-product table.shop_attributes th,
body.single-product table.woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes-item__label {
	display: block !important;
	grid-column: 1;
	grid-row: 1;
	z-index: 1;
	width: max-content;
	max-width: 100%;
	min-width: 0;
	padding: 0 10px 0 0 !important;
	margin: 0 !important;
	border: none !important;
	background: #ffffff !important;
	font-size: 14px !important;
	font-weight: 300 !important;
	line-height: 1.4 !important;
	color: #334155 !important;
	text-align: left !important;
}

body.single-product table.shop_attributes th::after,
body.single-product table.woocommerce-product-attributes th::after,
body.single-product .woocommerce-product-attributes-item__label::after {
	content: none;
	display: none;
}

body.single-product table.shop_attributes td,
body.single-product table.woocommerce-product-attributes td,
body.single-product .woocommerce-product-attributes-item__value {
	grid-column: 2;
	grid-row: 1;
	z-index: 1;
	min-width: 0;
	max-width: none;
	padding: 0 0 0 10px !important;
	margin: 0 !important;
	border: none !important;
	background: #ffffff !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: #1a1a1a !important;
	text-align: left !important;
	width: auto !important;
}

body.single-product table.shop_attributes td p,
body.single-product table.woocommerce-product-attributes td p,
body.single-product .woocommerce-product-attributes-item__value p {
	margin: 0 !important;
	padding: 0 !important;
	color: #1a1a1a !important;
}

body.single-product table.shop_attributes td a,
body.single-product table.shop_attributes td p a,
body.single-product table.woocommerce-product-attributes td a,
body.single-product table.woocommerce-product-attributes td p a,
body.single-product .woocommerce-product-attributes-item__value a {
	color: #1a1a1a !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 1px;
	border-bottom: none !important;
	padding-bottom: 0;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.single-product table.shop_attributes td a:hover,
body.single-product table.shop_attributes td p a:hover,
body.single-product table.woocommerce-product-attributes td a:hover,
body.single-product table.woocommerce-product-attributes td p a:hover,
body.single-product .woocommerce-product-attributes-item__value a:hover {
	color: #2563eb !important;
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Фоллбек: список ul/li всередині віджета (якщо тема рендерить список) */
body.single-product .elementor-widget-woocommerce-product-additional-information ul:not(.tehnix-attr-card__list),
body.single-product .elementor-widget-wd_single_product_additional_info_table ul:not(.tehnix-attr-card__list),
body.single-product .wd-single-attrs ul:not(.tehnix-attr-card__list) {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 30px !important;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

body.single-product .elementor-widget-woocommerce-product-additional-information ul:not(.tehnix-attr-card__list) > li,
body.single-product .elementor-widget-wd_single_product_additional_info_table ul:not(.tehnix-attr-card__list) > li,
body.single-product .wd-single-attrs ul:not(.tehnix-attr-card__list) > li {
	display: flex !important;
	align-items: baseline;
	justify-content: space-between;
	padding: 8px 0;
	margin: 0;
	border: none !important;
	list-style: none !important;
	font-size: 16px;
	color: #334155;
	font-weight: 300;
	text-align: left;
}

@media (max-width: 767px) {
	.tehnix-attr-card,
	body.single-product table.shop_attributes,
	body.single-product table.woocommerce-product-attributes.shop_attributes {
		padding: 18px 18px;
		border-radius: 12px;
	}

	.tehnix-attr-card__title {
		font-size: 17px !important;
	}

	.tehnix-attr-row {
		padding: 8px 0;
	}

	.tehnix-attr-row__label,
	body.single-product table.shop_attributes th,
	body.single-product .woocommerce-product-attributes-item__label {
		font-size: 13px !important;
	}

	.tehnix-attr-row__value,
	body.single-product table.shop_attributes td,
	body.single-product .woocommerce-product-attributes-item__value {
		font-size: 14px !important;
	}

	.tehnix-attr-row__leader,
	body.single-product table.shop_attributes th::after,
	body.single-product .woocommerce-product-attributes-item__label::after {
		min-width: 10px;
		margin-left: 8px;
		margin-right: 8px;
	}
}

/* Дисклеймер під характеристиками */
.tehnix-attributes-disclaimer {
	margin-top: 14px;
	padding-left: 18px;
	padding-right: 18px;
}

.tehnix-attributes-disclaimer p {
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
	margin: 0 0 4px 0;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
}

.tehnix-attributes-disclaimer p:last-child {
	margin-bottom: 0;
}
