/* Shop example accordion (docs/shop-examples.md): below the floating gallery and summary, as WooCommerce's tabs box. Each
 * item a framed title row with + (closed) or − (open) at its end, the panel below; several can be open. */
.myco-product-accordion {
	clear: both;
	border-bottom: 1px solid var(--myco-color-border);
}

.myco-product-accordion__item {
	border: 1px solid var(--myco-color-border);
	border-bottom: 0;
}

.myco-product-accordion__item > summary {
	position: relative;
	display: block;
	padding: 17px 56px 17px 22px;
	color: var(--myco-color-primary);
	font-family: var(--casetti-font-heading, inherit);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.myco-product-accordion__item > summary::-webkit-details-marker {
	display: none;
}

/* + and −: two bars, the upright one turns flat when the item opens. */
.myco-product-accordion__item > summary::before,
.myco-product-accordion__item > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 16px;
	height: 2px;
	margin-top: -1px;
	background: currentColor;
}

.myco-product-accordion__item > summary::after {
	transform: rotate(90deg);
	transition: transform 0.2s ease;
}

.myco-product-accordion__item[open] > summary::after {
	transform: rotate(0deg);
}

.myco-product-accordion__item > .woocommerce-Tabs-panel {
	margin: 0;
	padding: 0 22px 22px;
}

@media (max-width: 600px) {
	.myco-product-accordion__item > summary { padding: 17px 48px 17px 20px; }
	.myco-product-accordion__item > summary::before,
	.myco-product-accordion__item > summary::after { right: 18px; }
	.myco-product-accordion__item > .woocommerce-Tabs-panel { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.myco-product-accordion__item > summary::after {
		transition: none;
	}
}
