/* EBR – Écoute + achat digital */
.ebr-ea { margin: 10px 0 18px; clear: both; }

/* Bascule Partition / Digital */
.ebr-ea-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.ebr-ea-tab {
	flex: 1 1 0; padding: 9px 14px; border: 1px solid #d9d3c8; background: #fff; color: #525c58;
	font-family: Oswald, Arial, Helvetica, sans-serif; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
	border-radius: 2px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ebr-ea-tab:not(.is-active):hover { border-color: #ab8b68; color: #ab8b68; }
.ebr-ea-tab.is-active,
.ebr-ea-tab.is-active:hover,
.ebr-ea-tab.is-active:focus,
.ebr-ea-tab.is-active:active { background: #ab8b68; border-color: #ab8b68; color: #fff !important; }

/* Mode Partition : on masque les blocs "Format digital N" (redondants avec la liste) */
form.variations_form.ebr-mode-partition .variation-block.ebr-vb-digital { display: none !important; }
form.variations_form.ebr-mode-partition .variation-block.ebr-vb-papier { display: none !important; }
/* Mode Digital : on masque la grille de variations + quantité/bouton standard, on montre la liste */
form.variations_form.ebr-mode-digital .variation-blocks,
form.variations_form.ebr-mode-digital .single_variation_wrap { display: none !important; }

.ebr-ea-hint { font-size: 13px; color: #777; margin: 0 0 10px; line-height: 1.4; }

/* Liste */
.ebr-ea-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e6e1d8; }
.ebr-ea-row {
	display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "play title buy" "play bar buy";
	align-items: center; column-gap: 10px; row-gap: 4px; padding: 9px 0; border-bottom: 1px solid #e6e1d8;
	margin: 0; list-style: none;
}
.ebr-ea-play {
	grid-area: play; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid #c9c1b4; background: #fff; color: #525c58;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ebr-ea-play:hover { border-color: #ab8b68; color: #ab8b68; }
.ebr-ea-play.is-playing { background: #ab8b68; border-color: #ab8b68; color: #fff; }
/* Icônes en CSS pur (triangle / deux barres) */
.ebr-ea-ico-play { display: block; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.ebr-ea-ico-pause { display: none; width: 3px; height: 11px; background: currentColor; margin-left: -5px; box-shadow: 5px 0 0 currentColor; }
.ebr-ea-play.is-playing .ebr-ea-ico-play { display: none; }
.ebr-ea-play.is-playing .ebr-ea-ico-pause { display: block; }
.ebr-ea-play.is-loading { opacity: .6; }

.ebr-ea-title { grid-area: title; font-size: 14px; line-height: 1.3; color: #333; }
.ebr-ea-num { color: #999; margin-right: 2px; }

.ebr-ea-progress { grid-area: bar; display: block; height: 3px; background: #eee7dc; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.ebr-ea-row.is-active .ebr-ea-progress { opacity: 1; }
.ebr-ea-bar { display: block; height: 100%; width: 0; background: #ab8b68; }

.ebr-ea-buy.button, .ebr-ea-buy.button:visited {
	grid-area: buy; margin: 0; padding: 7px 12px !important; font-size: 13px !important; line-height: 1.2; white-space: nowrap;
	background: #ab8b68; color: #fff; border: 0; border-radius: 2px; cursor: pointer;
}
.ebr-ea-buy.button:hover { background: #94775a; color: #fff; }
.ebr-ea-buy.button .woocommerce-Price-amount { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }
.ebr-ea-buy.button:disabled { opacity: .7; cursor: default; }
.ebr-ea-buy.is-added, .ebr-ea-buy.is-added:hover { background: #5f8f5a; }
.ebr-ea-buy--off { grid-area: buy; font-size: 12px; color: #999; }

.ebr-ea-notice { margin-top: 10px; font-size: 13px; }
.ebr-ea-notice a { text-decoration: underline; }
.ebr-ea-notice.is-error { color: #b3261e; }

/* Mobile */
@media (max-width: 600px) {
	.ebr-ea-row { grid-template-columns: 32px 1fr; grid-template-areas: "play title" "play bar" "buy buy"; }
	.ebr-ea-buy.button { width: 100%; text-align: center; margin-top: 4px; }
	.ebr-ea-buy--off { margin-top: 4px; }
}