/**
 * YB Product Specifications - stylesheet
 *
 * Structural layout and neutral fallbacks. Colors, typography, spacing,
 * columns and item layout are driven by the widget's Elementor controls.
 */

.ybsb-specs {
	box-sizing: border-box;
	width: 100%;
	padding: 24px;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 12px;
	transition-property: background-color, border-color, box-shadow, color;
	transition-duration: 0.2s;
	transition-timing-function: ease;
}

.ybsb-specs *,
.ybsb-specs *::before,
.ybsb-specs *::after {
	box-sizing: border-box;
}

.ybsb-specs-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	line-height: 1.2;
	transition-property: color;
	transition-duration: 0.2s;
}

.ybsb-specs-heading-accent {
	flex: 0 0 auto;
	width: 8px;
	height: 26px;
	background-color: currentColor;
	transform: skewX(-20deg);
}

.ybsb-specs-heading-text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ybsb-specs-groups {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ybsb-specs-group {
	min-width: 0;
}

.ybsb-specs-group-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.ybsb-specs-group-accent {
	flex: 0 0 auto;
	width: 4px;
	height: 22px;
	background-color: currentColor;
}

.ybsb-specs-group-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
}

.ybsb-specs-group-icon svg,
.ybsb-specs-item-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ybsb-specs-group-title {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	overflow-wrap: anywhere;
	transition-property: color;
	transition-duration: 0.2s;
}

.ybsb-specs-group-line {
	flex: 1 1 auto;
	min-width: 16px;
	height: 1px;
	background-color: rgba(128, 128, 128, 0.3);
}

.ybsb-specs-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ybsb-specs-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid rgba(128, 128, 128, 0.22);
	border-radius: 8px;
	list-style: none;
	transition-property: background-color, border-color, color;
	transition-duration: 0.2s;
	transition-timing-function: ease;
}

.ybsb-specs-item-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	transition-property: color, fill;
	transition-duration: 0.2s;
}

.ybsb-specs-item-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	--ybsb-specs-value-align: left;
}

.ybsb-specs-label {
	display: block;
	min-width: 0;
	transition-property: color;
	transition-duration: 0.2s;
}

.ybsb-specs-value {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	text-align: var(--ybsb-specs-value-align, left);
	overflow-wrap: anywhere;
	transition-property: color;
	transition-duration: 0.2s;
}

.ybsb-specs-part {
	display: inline;
}

.ybsb-specs--values-stacked .ybsb-specs-part {
	display: block;
}

.ybsb-specs-sep {
	white-space: pre-wrap;
}

.ybsb-specs .ybsb-specs-link {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: none;
}

.ybsb-specs .ybsb-specs-link:hover,
.ybsb-specs .ybsb-specs-link:focus {
	color: inherit;
	text-decoration: underline;
}

.ybsb-specs-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

.ybsb-specs-item--stretch .ybsb-specs-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.ybsb-specs-item--stretch .ybsb-specs-link:focus-visible {
	outline: none;
}

.ybsb-specs-item--stretch:has(.ybsb-specs-link:focus-visible) {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ybsb-specs-chevron {
	display: block;
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	transition-property: border-color;
	transition-duration: 0.2s;
}

[dir="rtl"] .ybsb-specs-chevron {
	transform: rotate(-135deg);
}

.ybsb-specs-notice {
	margin: 0;
	padding: 12px 16px;
	border: 1px dashed rgba(128, 128, 128, 0.5);
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.ybsb-specs,
	.ybsb-specs * {
		transition-duration: 0s !important;
	}
}