/**
 * BH - Additional Product Information
 * Selector-scoped styles for WooCommerce's Additional Information content.
 */

.bh-product-additional-information {
	--bh-api-accent: var(--e-global-color-primary, #003f4b);
	--bh-api-border: #d9e2e5;
	--bh-api-line-width: 1px;
	--bh-api-column-border: var(--bh-api-border);
	--bh-api-column-line-width: 1px;
	--bh-api-row: #ffffff;
	--bh-api-row-alt: #f0f4f5;
	--bh-api-text: var(--e-global-color-text, #173c45);
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 22px 0 0;
	border: 1px solid var(--bh-api-border);
	border-radius: 18px;
	overflow: hidden;
	background: var(--bh-api-row);
	color: var(--bh-api-text);
	font-family: inherit;
	box-shadow: 0 8px 24px rgba(0, 44, 54, 0.045);
}

.bh-product-additional-information *,
.bh-product-additional-information *::before,
.bh-product-additional-information *::after {
	box-sizing: border-box;
}

.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes {
	display: table !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	background: transparent !important;
	table-layout: fixed !important;
	font-family: inherit;
}

/*
 * Some WooCommerce themes turn table rows and cells into mobile blocks. Keep
 * this component as a true two-column table at every breakpoint so the header,
 * labels, and values cannot stack independently.
 */
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > thead,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > thead {
	display: table-header-group !important;
}

.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tbody,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tbody {
	display: table-row-group !important;
}

.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > thead > tr,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tbody > tr,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tr,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > thead > tr,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tbody > tr,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tr {
	display: table-row !important;
	width: auto !important;
	margin: 0 !important;
}

.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > thead > tr > th,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tbody > tr > th,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tbody > tr > td,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tr > th,
.bh-product-additional-information[data-bh-product-information] table.woocommerce-product-attributes > tr > td,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > thead > tr > th,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tbody > tr > th,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tbody > tr > td,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tr > th,
.bh-product-additional-information[data-bh-product-information] table.shop_attributes > tr > td {
	display: table-cell !important;
	float: none !important;
	min-width: 0 !important;
	max-width: none !important;
}

.bh-product-additional-information .bh-api-table-head th {
	padding: 14px 18px !important;
	border: 0 !important;
	background: var(--bh-api-accent) !important;
	color: #ffffff !important;
	font-family: inherit;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: start !important;
	text-transform: none;
	vertical-align: middle;
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none;
}

.bh-product-additional-information .bh-api-table-head th:first-child {
	width: 32%;
	border-inline-end: var(--bh-api-column-line-width) solid var(--bh-api-column-border) !important;
}

.bh-product-additional-information .bh-api-table-head th:last-child {
	width: 68%;
}

.bh-product-additional-information table.shop_attributes tbody tr > th,
.bh-product-additional-information table.shop_attributes tbody tr > td,
.bh-product-additional-information table.shop_attributes > tr > th,
.bh-product-additional-information table.shop_attributes > tr > td,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr > th,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr > td,
.bh-product-additional-information table.woocommerce-product-attributes > tr > th,
.bh-product-additional-information table.woocommerce-product-attributes > tr > td {
	padding: 15px 18px !important;
	border: 0 !important;
	border-top: var(--bh-api-line-width) solid var(--bh-api-border) !important;
	background: var(--bh-api-row) !important;
	color: var(--bh-api-text) !important;
	font-family: inherit;
	font-size: inherit;
	font-style: normal;
	line-height: 1.55;
	text-align: start !important;
	vertical-align: top;
	word-break: normal !important;
	overflow-wrap: break-word;
}

.bh-product-additional-information table.shop_attributes tbody tr > th:first-child,
.bh-product-additional-information table.shop_attributes > tr > th:first-child,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr > th:first-child,
.bh-product-additional-information table.woocommerce-product-attributes > tr > th:first-child {
	border-inline-end: var(--bh-api-column-line-width) solid var(--bh-api-column-border) !important;
}

.bh-product-additional-information table.shop_attributes tbody tr > th::before,
.bh-product-additional-information table.shop_attributes tbody tr > td::before,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr > th::before,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr > td::before {
	display: none !important;
	content: none !important;
}

.bh-product-additional-information table.shop_attributes tbody tr:nth-child(even) > th,
.bh-product-additional-information table.shop_attributes tbody tr:nth-child(even) > td,
.bh-product-additional-information table.shop_attributes > tr:nth-of-type(even) > th,
.bh-product-additional-information table.shop_attributes > tr:nth-of-type(even) > td,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr:nth-child(even) > th,
.bh-product-additional-information table.woocommerce-product-attributes tbody tr:nth-child(even) > td,
.bh-product-additional-information table.woocommerce-product-attributes > tr:nth-of-type(even) > th,
.bh-product-additional-information table.woocommerce-product-attributes > tr:nth-of-type(even) > td {
	background: var(--bh-api-row-alt) !important;
}

.bh-product-additional-information .woocommerce-product-attributes-item__label {
	width: 32%;
	font-weight: 700;
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none;
}

.bh-product-additional-information .woocommerce-product-attributes-item__value {
	width: 68%;
	font-weight: 400;
}

.bh-product-additional-information .woocommerce-product-attributes-item__value p {
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
}

.bh-product-additional-information .woocommerce-product-attributes-item__value p + p {
	margin-top: 0.45em !important;
}

.bh-product-additional-information a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.bh-product-additional-information .bh-api-empty-message {
	margin: 0;
	padding: 18px;
	font: inherit;
}

.bh-product-additional-information.bh-elementor-additional-information {
	margin: 0;
}

.bh-product-additional-information.bh-api-header-hidden table.shop_attributes tbody tr:first-child > th,
.bh-product-additional-information.bh-api-header-hidden table.shop_attributes tbody tr:first-child > td,
.bh-product-additional-information.bh-api-header-hidden table.shop_attributes > tr:first-of-type > th,
.bh-product-additional-information.bh-api-header-hidden table.shop_attributes > tr:first-of-type > td {
	border-top: 0 !important;
}

.bh-api-elementor-placeholder {
	width: 100%;
	padding: 18px;
	border: 1px dashed #aab7bc;
	border-radius: 10px;
	background: #f5f8f9;
	color: #40545b;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

@media (max-width: 767px) {
	.bh-product-additional-information {
		margin-top: 16px;
		border-radius: 15px;
	}

	.bh-product-additional-information .bh-api-table-head th,
	.bh-product-additional-information table.shop_attributes tbody tr > th,
	.bh-product-additional-information table.shop_attributes tbody tr > td,
	.bh-product-additional-information table.shop_attributes > tr > th,
	.bh-product-additional-information table.shop_attributes > tr > td,
	.bh-product-additional-information table.woocommerce-product-attributes tbody tr > th,
	.bh-product-additional-information table.woocommerce-product-attributes tbody tr > td,
	.bh-product-additional-information table.woocommerce-product-attributes > tr > th,
	.bh-product-additional-information table.woocommerce-product-attributes > tr > td {
		padding: 13px 12px !important;
		font-size: 14px;
	}

	.bh-product-additional-information .bh-api-table-head th:first-child,
	.bh-product-additional-information .woocommerce-product-attributes-item__label {
		width: 42%;
	}

	.bh-product-additional-information .bh-api-table-head th:last-child,
	.bh-product-additional-information .woocommerce-product-attributes-item__value {
		width: 58%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bh-product-additional-information * {
		scroll-behavior: auto !important;
	}
}
