/**
 * BWOD WC Product Pages — long-description accordion ([bwod_product_long_description]).
 *
 * Native <details>/<summary> accordion: no JS, keyboard-accessible, collapsed by
 * default (pass open="true" to expand). Theme button:hover does not match
 * <summary>, so no neutraliser is needed here.
 */

.bwod-pp-longdesc {
	margin: 16px 0 0;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.bwod-pp-longdesc-summary {
	list-style: none;
	cursor: pointer;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #1f2d3d;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.bwod-pp-longdesc-summary::-webkit-details-marker {
	display: none;
}

/* Chevron that rotates when the accordion opens. */
.bwod-pp-longdesc-summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-right: 4px;
	border-right: 2px solid #1f2d3d;
	border-bottom: 2px solid #1f2d3d;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.bwod-pp-longdesc[open] .bwod-pp-longdesc-summary::after {
	transform: rotate(-135deg);
}

.bwod-pp-longdesc-summary:hover {
	background: #f7f9fc;
}

.bwod-pp-longdesc-summary:focus-visible {
	outline: 2px solid #1f2d3d;
	outline-offset: -2px;
}

.bwod-pp-longdesc-body {
	padding: 0 18px 16px;
}

.bwod-pp-longdesc-body > :first-child {
	margin-top: 0;
}

.bwod-pp-longdesc-body > :last-child {
	margin-bottom: 0;
}

/* Product attribute table (Materiale, Passform, Vekt …) inside the accordion. */
.bwod-pp-attrs {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 0;
	font-size: 14px;
}

.bwod-pp-attrs th,
.bwod-pp-attrs td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.bwod-pp-attrs th {
	width: 38%;
	font-weight: 600;
	color: #1f2d3d;
}

.bwod-pp-attrs tr:last-child th,
.bwod-pp-attrs tr:last-child td {
	border-bottom: 0;
}
