/* Biblio Import — front-end styles. */

.biblio-edition-switcher {
	margin: 1em 0;
}

.biblio-edition-switcher__heading {
	display: block;
	margin-bottom: 0.5em;
	font-size: 0.85em;
	opacity: 0.7;
}

.biblio-edition-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.biblio-edition-switcher__list li {
	margin: 0;
}

.biblio-edition-switcher__item {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5em;
	padding: 0.4em 1em;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.9em;
	line-height: 1.4;
	color: inherit;
}

a.biblio-edition-switcher__item:hover,
a.biblio-edition-switcher__item:focus {
	background: rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.biblio-edition-switcher__item.is-current {
	background: currentColor;
}

.biblio-edition-switcher__item.is-current .biblio-edition-switcher__label {
	color: #fff;
	filter: invert(1) grayscale(1) contrast(9);
}

.biblio-edition-switcher__item.is-out-of-stock {
	opacity: 0.5;
}

.biblio-edition-switcher__price {
	font-size: 0.85em;
	opacity: 0.75;
}

.biblio-edition-switcher__price .woocommerce-Price-amount {
	font-weight: 600;
}

/* Availability notice — shown when a book cannot be ordered right now. */
.biblio-availability-notice {
	margin: 1.5em 0;
	padding: 0.9em 1.1em;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: rgba( 0, 0, 0, 0.03 );
}

.biblio-availability-notice__message {
	margin: 0;
	font-weight: 600;
}
