/* Sticky "Buy now" bar: small screens only, fixed (no layout shift). */
.bookshelf-sticky-buy {
	position: fixed;
	z-index: 90;
	inset-inline: 0;
	inset-block-end: 0;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem var(--wp--preset--spacing--30, 1rem);
	padding-block-end: max(0.6rem, env(safe-area-inset-bottom));
	border-block-start: 1px solid var(--wp--preset--color--border, #e6e6e6);
	background: var(--wp--preset--color--base, #fff);
	box-shadow: 0 -4px 16px rgb(0 0 0 / 8%);
}

.bookshelf-sticky-buy[hidden] {
	display: none;
}

.bookshelf-sticky-buy__text {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
}

.bookshelf-sticky-buy__title {
	overflow: hidden;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.bookshelf-sticky-buy__price {
	font-weight: 600;
}

.bookshelf-sticky-buy__price ins {
	text-decoration: none;
}

.bookshelf-sticky-buy__button {
	flex: none;
	text-decoration: none;
}

body.bookshelf-has-sticky-buy {
	padding-block-end: 4.5rem;
}

@media (min-width: 782px) {

	.bookshelf-sticky-buy {
		display: none !important;
	}

	body.bookshelf-has-sticky-buy {
		padding-block-end: 0;
	}
}
