/* Shared price comparator — /carti/ + review singles (.bn-carte-prices-below) */
@keyframes bn-prices-spin { to { transform: rotate(360deg); } }

/* Base CTA — scoped to comparator (same look as /carti/) */
.bn-carte-prices-below .buton.cumpara,
.bn-carte-prices-below a.buton.cumpara {
	background-color: #BF5D54;
	font-weight: bold;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 0.45rem;
}
.bn-carte-prices-below .buton.cumpara:hover,
.bn-carte-prices-below a.buton.cumpara:hover {
	background-color: #3E4A64;
	color: #fff !important;
}
.bn-carte-prices-below .prices-table .logo_shop,
.bn-carte-prices-below #preturile .logo_shop {
	display: block;
	max-width: 84px;
	max-height: 32px;
	width: auto;
	height: auto;
}
.bn-carte-prices-below .bn-prices-error { margin: 0.75rem 0; color: #8a3b34; font-weight: 600; text-align: center; }

.page-carte .bn-carte-prices-below, .bn-carte-prices-below {
	margin: 1.25rem 0 0;
}

:is(.page-carte, .bn-carte-prices-below) .bn-prices-loading--page {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 4.5rem;
	padding: 1rem 0.5rem;
	color: #3e4a64;
	font: 600 0.9rem/1.35 "Open Sans", sans-serif;
}

:is(.page-carte, .bn-carte-prices-below) .bn-prices-loading--page .bn-prices-spinner {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	border: 2.5px solid rgba(62, 74, 100, 0.18);
	border-top-color: #bf5d54;
	border-radius: 50%;
	animation: bn-prices-spin 0.7s linear infinite;
	flex: 0 0 auto;
}

:is(.page-carte, .bn-carte-prices-below) #preturile {
	text-align: center;
	margin: 1.75rem auto 0;
	max-width: min(920px, 100%);
	padding: 1.35rem 1.25rem 1.1rem;
	box-sizing: border-box;
	background: linear-gradient(180deg, #fff8f6 0%, #ffffff 55%);
	border: 2px solid #BF5D54;
	border-radius: 1rem;
	box-shadow: 0 14px 36px rgba(191, 93, 84, 0.18);
	overflow-x: hidden;
	container-type: inline-size;
	container-name: bn-preturi;
}

:is(.page-carte, .bn-carte-prices-below) #preturile h2 {
	margin: 0 0 1rem;
	color: #BF5D54;
	overflow-wrap: anywhere;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table,
:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tbody {
	display: block;
	border: 0;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 0 0.7rem;
	padding: 0.9rem 1rem;
	background: #fff;
	border: 1px solid #f0e5e1;
	border-radius: 0.65rem;
	box-shadow: none;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr:last-child {
	margin-bottom: 0;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table td {
	border: 0;
	padding: 0;
	vertical-align: middle;
	min-width: 0;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .small_td {
	width: auto;
	flex: 0 0 auto;
	max-width: 5rem;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr.prices-row--source .small_td {
	max-width: 7.5rem;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .shop-name-fallback {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	color: #5a4a46;
	letter-spacing: 0.01em;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table td:nth-child(2) {
	flex: 1 1 0%;
	min-width: 0 !important;
	max-width: 100%;
	overflow: hidden;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	z-index: 0;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2.25rem;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%);
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title a {
	display: block !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	text-overflow: clip !important;
	-webkit-line-clamp: unset !important;
	-webkit-box-orient: unset !important;
	max-width: 100%;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .align-right.price-action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	white-space: nowrap;
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 42%;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	box-sizing: border-box;
	min-height: 2.55rem;
	padding: 0.62rem 1.05rem;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 6px 14px rgba(191, 93, 84, 0.22);
	white-space: nowrap;
	text-shadow: none;
	border: 0;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price {
	display: inline-flex;
	align-items: baseline;
	gap: 0.18rem;
	padding-right: 0.75rem;
	border-right: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price small {
	font-size: 0.68rem;
	font-weight: 700;
	opacity: 0.92;
	text-transform: lowercase;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-sep {
	display: none;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0;
	margin: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label i {
	font-size: 0.7rem;
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara.is-best {
	background: linear-gradient(135deg, #2f9e44 0%, #48b85c 100%);
	box-shadow: 0 8px 18px rgba(47, 158, 68, 0.28);
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara.is-best:hover {
	background: #3E4A64;
	box-shadow: 0 8px 18px rgba(62, 74, 100, 0.28);
}

:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara:hover {
	box-shadow: 0 8px 18px rgba(62, 74, 100, 0.28);
}

/* Keep offer CTA on the same row as logo + title; title fades instead of wrapping. */
@container bn-preturi (max-width: 36rem) {
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr {
		flex-wrap: nowrap !important;
		gap: 0.4rem;
		padding: 0.55rem 0.65rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .small_td {
		max-width: 3.75rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .logo_shop {
		max-width: 48px;
		max-height: 18px;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table td:nth-child(2) {
		flex: 1 1 0% !important;
		min-width: 0 !important;
		max-width: none;
		overflow: hidden;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title,
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title a {
		min-width: 0 !important;
		max-width: 100%;
		overflow: hidden !important;
		white-space: nowrap !important;
		word-break: normal !important;
		display: block !important;
		-webkit-line-clamp: unset !important;
		font-size: 0.82rem;
		line-height: 1.3;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .align-right.price-action {
		flex: 0 0 auto !important;
		justify-content: flex-end;
		padding-top: 0 !important;
		margin-top: 0 !important;
		border-top: 0 !important;
		white-space: nowrap;
		max-width: 56%;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara {
		width: auto !important;
		min-height: 2rem;
		padding: 0.35rem 0.5rem;
		gap: 0.35rem;
		font-size: 0.72rem;
		box-shadow: 0 3px 8px rgba(191, 93, 84, 0.18);
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price {
		display: inline-flex;
		padding-right: 0.4rem;
		font-size: 0.78rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price small {
		font-size: 0.55rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label {
		margin-left: 0;
		font-size: 0.62rem;
		letter-spacing: 0.02em;
		gap: 0.25rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label i {
		font-size: 0.55rem;
	}
}

@container bn-preturi (max-width: 22rem) {
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr {
		gap: 0.3rem;
		padding: 0.45rem 0.5rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title,
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title a {
		font-size: 0.74rem;
		line-height: 1.25;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .align-right.price-action {
		max-width: 58%;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara {
		min-height: 1.85rem;
		padding: 0.28rem 0.4rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price {
		padding-right: 0.3rem;
		font-size: 0.72rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label {
		font-size: 0.58rem;
	}
}

/* Viewport fallback when container queries are unavailable / cache-old */
@media screen and (max-width: 767px) {
	:is(.page-carte, .bn-carte-prices-below) #preturile {
		overflow-x: hidden;
		padding: 1rem 0.85rem 0.85rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table tr {
		flex-wrap: nowrap !important;
		gap: 0.4rem;
		padding: 0.55rem 0.65rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table td:nth-child(2) {
		flex: 1 1 0% !important;
		min-width: 0 !important;
		max-width: none;
		overflow: hidden;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title,
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title a {
		word-break: normal !important;
		white-space: nowrap !important;
		display: block !important;
		-webkit-line-clamp: unset !important;
		font-size: 0.82rem;
		line-height: 1.3;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .align-right.price-action {
		flex: 0 0 auto !important;
		justify-content: flex-end;
		padding-top: 0 !important;
		margin-top: 0 !important;
		border-top: 0 !important;
		max-width: 56%;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara {
		width: auto !important;
		min-height: 2rem;
		padding: 0.35rem 0.5rem;
		gap: 0.35rem;
		font-size: 0.72rem;
		box-shadow: 0 3px 8px rgba(191, 93, 84, 0.18);
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price {
		display: inline-flex;
		padding-right: 0.4rem;
		font-size: 0.78rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price small {
		font-size: 0.55rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label {
		margin-left: 0;
		font-size: 0.62rem;
		gap: 0.25rem;
	}
}

@media screen and (max-width: 480px) {
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title,
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .book-title a {
		font-size: 0.74rem;
		line-height: 1.25;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .prices-table .align-right.price-action {
		flex-direction: row;
		align-items: center;
		max-width: 58%;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara {
		min-height: 1.85rem;
		padding: 0.28rem 0.4rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-price {
		padding-right: 0.3rem;
		font-size: 0.72rem;
	}
	:is(.page-carte, .bn-carte-prices-below) #preturile .buton.cumpara .btn-label {
		font-size: 0.58rem;
	}
}
