/* BF Garmin — bloc compatibilité fiche produit (summary WooCommerce) */

.bf-garmin-compat {
	margin: 1rem 0 1.25rem;
	width: 100%;
	max-width: 100%;
}

.bf-garmin-compat__details {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	background: #fafafa;
	overflow: hidden;
}

.bf-garmin-compat__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	padding-right: 2.75rem;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	color: inherit;
	user-select: none;
	position: relative;
}

.bf-garmin-compat__summary::-webkit-details-marker {
	display: none;
}

.bf-garmin-compat__summary::marker {
	content: "";
}

.bf-garmin-compat__heading {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
}

.bf-garmin-compat__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	line-height: 0;
	color: inherit;
	opacity: 0.85;
}

.bf-garmin-compat__icon svg {
	display: block;
	width: 1.2em;
	height: 1.2em;
}

.bf-garmin-compat__heading-text {
	min-width: 0;
}

.bf-garmin-compat__chevron {
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -0.15rem;
	opacity: 0.55;
	transition: transform 0.2s ease;
}

/* Shoptimizer : flèche summary::after — décal pour ne pas coller au bord */
.summary .bf-garmin-compat__details > .bf-garmin-compat__summary::after {
	right: 1rem;
}

/* Shoptimizer ajoute déjà une flèche sur .summary details summary::after */
.summary .bf-garmin-compat__chevron {
	display: none;
}

.bf-garmin-compat__details[open] .bf-garmin-compat__chevron {
	transform: rotate(-135deg);
	margin-top: 0.15rem;
}

/* Alignement panneau avec l’accordéon PDP Shoptimizer */
.summary .bf-garmin-compat__panel.cg-accordion-item {
	padding-bottom: 0.75rem;
}

.bf-garmin-compat__panel {
	padding: 0 1rem 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	font-size: 0.875rem;
	line-height: 1.5;
	color: inherit;
}

.bf-garmin-compat__list {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.bf-garmin-compat__list li {
	padding: 0.2rem 0;
}

.bf-garmin-compat__list--columns {
	column-count: 2;
	column-gap: 1.25rem;
}

.bf-garmin-compat__families {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-top: 0.35rem;
}

.bf-garmin-compat__family {
	margin: 0;
}

.bf-garmin-compat__family-name {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: inherit;
	opacity: 0.75;
}

.bf-garmin-compat__family-line {
	margin: 0;
}

.bf-garmin-compat__list--family {
	margin-top: 0.25rem;
}

@media (max-width: 768px) {
	.bf-garmin-compat__list--columns {
		column-count: 1;
	}

	.bf-garmin-compat__summary {
		padding: 0.75rem 0.85rem;
		padding-right: 2.5rem;
		font-size: 0.9rem;
	}

	.summary .bf-garmin-compat__details > .bf-garmin-compat__summary::after {
		right: 0.85rem;
	}

	.bf-garmin-compat__panel {
		padding: 0 0.85rem 0.85rem;
	}
}

@media (min-width: 992px) {
	.single-product .summary .bf-garmin-compat {
		max-width: 100%;
	}
}
