/**
 * MR Stiff Product Manual Tab — native WooCommerce tabs as a vertical accordion.
 */

.mspmt-wc-tabs {
	margin: 24px 0;
	border-top: 1px solid #e5e5e5;
}

.mspmt-wc-tabs__item {
	border-bottom: 1px solid #e5e5e5;
}

.mspmt-wc-tabs__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 4px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.mspmt-wc-tabs__title {
	flex: 1 1 auto;
}

/* Plus / minus icon */

.mspmt-wc-tabs__icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-left: 16px;
}

.mspmt-wc-tabs__icon::before,
.mspmt-wc-tabs__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	background: currentColor;
	transform: translate( -50%, -50% );
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mspmt-wc-tabs__icon::after {
	transform: translate( -50%, -50% ) rotate( 90deg );
}

.mspmt-wc-tabs__item.is-open .mspmt-wc-tabs__icon::after {
	opacity: 0;
	transform: translate( -50%, -50% ) rotate( 0deg );
}

/*
 * Panels collapse to height:0 (not display:none) so they can slide open
 * smoothly. The script animates the inline height; when fully open it clears it
 * and the rule below takes over, so late-loading content still fits.
 */
.mspmt-wc-tabs__panel {
	height: 0;
	overflow: hidden;
	transition: height 0.32s ease;
}

.mspmt-wc-tabs__item.is-open .mspmt-wc-tabs__panel {
	height: auto;
}

.mspmt-wc-tabs__inner {
	padding: 0 4px 20px;
}

.mspmt-wc-tabs__inner > :first-child {
	margin-top: 0;
}
