@media (max-width: 768px) {
	.woocommerce-tabs .tabs.wc-tabs {
		display: none;
	}

	.woocommerce-tabs .wc-tab {
		display: block !important;
	}

	.bc-accordion__title {
		margin: 0 0 10px;
	}

	.bc-acc-trigger {
		display: block;
		width: 100%;
		text-align: left;
	}
}

/* Accordion mode is explicitly toggled by JS via .is-accordion on the wrapper */
.woocommerce-tabs.is-accordion .tabs.wc-tabs {
	display: none;
}

.woocommerce-tabs.is-accordion .wc-tab {
	display: block !important;
}

/* Hidden bodies stay hidden cross-browser */
.bc-tab[hidden] {
	display: none !important;
}

@media (min-width: 769px) {
	.bc-accordion__title {
		display: none;
	}
}

/* ===== Accordion base tokens ===== */
/* ===== Accordion tokens ===== */
:root {
	--bc-acc-border: #e5e5e5;
	--bc-acc-bg: #fafafa;
	--bc-acc-bg-hover: #f2f2f2;
	--bc-acc-radius: 10px;
	--bc-acc-pad: 12px;
	--bc-acc-gap: 14px;
	--bc-acc-focus: #2271b1;
	--bc-acc-text: inherit;
	--bc-acc-body-bg: #fff;
}

/* Title wrapper reset */
.bc-accordion__title {
	margin: 0;
}

/* Accessible trigger button */
.bc-acc-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bc-acc-border);
	border-radius: var(--bc-acc-radius);
	background: var(--bc-acc-bg);
	font: inherit;
	font-weight: 600;
	color: var(--bc-acc-text);
	cursor: pointer;
	text-align: left;
}

/* Chevron indicator */
.bc-acc-trigger::after {
	content: "";
	flex: 0 0 auto;
	margin-left: auto;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 160ms ease;
}

.bc-acc-trigger[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

/* Hover and focus */
.bc-acc-trigger:hover {
	background: var(--bc-acc-bg-hover);
}

.bc-acc-trigger:focus-visible {
	outline: 2px solid var(--bc-acc-focus);
	outline-offset: 2px;
}

/* Body container: the first .bc-tab inside the panel */
.bc-tab {
	padding: var(--bc-acc-pad);
	border-top: 0;
	background: var(--bc-acc-body-bg);
	margin: 0;
}

/* Hidden must collapse space cross-browser */
.bc-tab[hidden] {
	display: none !important;
}

/* Inner content spacing */
.bc-tab__section> :first-child {
	margin-top: 0;
}

.bc-tab__section> :last-child {
	margin-bottom: 0;
}

.bc-tab__section h4 {
	margin-top: 0.85em;
}

/* Wrapper behavior in accordion mode */
.woocommerce-tabs.is-accordion .tabs.wc-tabs {
	display: none;
}

.woocommerce div.product .woocommerce-tabs.is-accordion .wc-tab {
	display: block !important;
	margin-bottom: 0;
}


/* Desktop tabs tidy up (optional) */
.woocommerce-tabs .tabs.wc-tabs {
	gap: 8px;
}

.woocommerce-tabs .tabs.wc-tabs li a {
	outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.bc-acc-trigger::after {
		transition: none;
	}
}
