/* Steimatzky - book formats (print / digital / audio) on the product page */

.book-formats,
.book-samples,
.product-is_book:not(.empty)~.info-wrapper .steimatzky-price>.title {
	--bf-green: #3b8c4a;
	--bf-green-dark: #2f7540;
	--bf-green-light: #e5f3e1;
	--bf-border: #d6d6d6;
	--bf-muted: #8a8a8a;
	--bf-text: #1d1d1b;
	--bf-radius: 12px;
	direction: rtl;
}

/* Figma (Sa3maKOiVxoE6E2o71aQZZ, Frame 3107 / Frame 2951): format tiles + icons.
   icons = Figma exports, paths unchanged (copies in SteimatzkyBackups/icons/format-*.svg) */
.book-formats,
.book-formats-item,
.product-is_book:not(.empty)~.info-wrapper .steimatzky-price>.title {
	--bf-figma-green: #008644;
	--bf-tile-border: rgba(42, 93, 30, .2);
	--bf-icon-print: url("data:image/svg+xml,%3Csvg width='18.0006' height='13.1233' viewBox='0 0 18.0006 13.1233' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M18.0006 11.9036C17.9407 12.5269 17.3049 13.119 16.7991 13.119L1.23323 13.1233C0.577827 13.0412 0.0830703 12.5447 0 11.8871V1.23928C0.0836811 0.585352 0.578438 0.0789858 1.23323 0L16.7075 0.00183688C17.1656 0.00183688 17.5565 0.285329 17.7862 0.649031C17.876 0.791083 17.9939 0.996201 17.9939 1.17805L18.0006 5.97231L17.8693 5.99435L18.0006 6.04946V11.9036ZM8.64359 12.4075V6.05374L8.69856 5.99802C8.70772 5.98884 8.6613 5.95516 8.64359 5.94047V0.718832L1.25644 0.720669C0.957752 0.818636 0.785503 0.983955 0.717703 1.28949V11.843C0.801384 12.1424 0.973633 12.3255 1.27598 12.4063H8.64298L8.64359 12.4075ZM17.2829 11.7891V1.32623C17.2243 1.00355 17.0459 0.803941 16.7277 0.720057H9.35824L9.35763 12.4069H16.7436C17.0557 12.3046 17.2298 12.124 17.2829 11.7891Z' fill='black'/%3E%3Cpath d='M6.42083 8.96652L2.8488 8.97264C2.60692 8.97264 2.43406 8.85202 2.42979 8.62486C2.4249 8.38361 2.60081 8.24646 2.84819 8.24707L6.44037 8.25748C6.61812 8.25748 6.71951 8.47056 6.71951 8.60159C6.71951 8.74487 6.6285 8.96652 6.42083 8.96652Z' fill='black'/%3E%3Cpath d='M6.43246 6.81647L2.84639 6.82198C2.62405 6.82198 2.45669 6.72463 2.43165 6.49869C2.41271 6.32664 2.53182 6.10193 2.75904 6.10254L6.44834 6.10499C6.6267 6.10499 6.72198 6.33093 6.72259 6.45889C6.7232 6.58686 6.63464 6.81586 6.43246 6.81586V6.81647Z' fill='black'/%3E%3Cpath d='M6.46079 4.60663L2.82768 4.61826C2.70125 4.61826 2.60291 4.5803 2.52716 4.50499C2.44409 4.42233 2.43676 4.29926 2.44898 4.16823C2.46608 3.99005 2.64261 3.89453 2.82158 3.89453L6.44979 3.90004C6.61777 3.90004 6.71427 4.10945 6.72038 4.23068C6.72649 4.35191 6.66297 4.60663 6.46018 4.60724L6.46079 4.60663Z' fill='black'/%3E%3Cpath d='M15.2068 8.96883L11.5724 8.96455C11.3922 8.96455 11.2597 8.73677 11.2627 8.60513C11.267 8.44042 11.3977 8.25 11.5834 8.25L15.2733 8.25306C15.4755 8.25306 15.5745 8.48206 15.5604 8.62656C15.5427 8.80474 15.4193 8.96883 15.2068 8.96883Z' fill='black'/%3E%3Cpath d='M15.2312 6.81659L11.6469 6.81781C11.449 6.81781 11.3189 6.71066 11.27 6.52514C11.2352 6.39411 11.3256 6.16205 11.5083 6.10449L15.299 6.10755C15.4932 6.10755 15.572 6.35492 15.5604 6.48473C15.5476 6.63106 15.4394 6.8172 15.2318 6.8172L15.2312 6.81659Z' fill='black'/%3E%3Cpath d='M15.2315 4.612H11.6186C11.4274 4.612 11.2954 4.46505 11.2661 4.30096C11.2429 4.16992 11.3394 3.95501 11.5074 3.8999H15.2749C15.4673 3.89929 15.565 4.11359 15.5613 4.25136C15.5577 4.41178 15.452 4.612 15.2315 4.612Z' fill='black'/%3E%3C/g%3E%3C/svg%3E");
	--bf-icon-digital: url("data:image/svg+xml,%3Csvg width='10' height='16' viewBox='0 0 10 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.22022 0H1.77978C1.30793 0.000432872 0.85555 0.154048 0.521893 0.427146C0.188235 0.700244 0.000546117 1.07052 0 1.45675V14.5433C0.000546138 14.9295 0.188237 15.2998 0.521895 15.5729C0.855553 15.846 1.30793 15.9996 1.77978 16H8.22022C8.69207 15.9996 9.14445 15.846 9.4781 15.5729C9.81176 15.2998 9.99945 14.9295 10 14.5433V1.45675C9.99945 1.07052 9.81176 0.700244 9.47811 0.427146C9.14445 0.154048 8.69207 0.000432872 8.22022 0ZM9.25132 14.5433C9.25099 14.767 9.14225 14.9815 8.94895 15.1397C8.75565 15.298 8.49357 15.3869 8.22022 15.3872H1.77978C1.50643 15.3869 1.24435 15.298 1.05105 15.1397C0.857752 14.9815 0.74901 14.767 0.748683 14.5433V1.45675C0.748999 1.23299 0.857736 1.01848 1.05104 0.860266C1.24434 0.702053 1.50642 0.613062 1.77978 0.612818H2.60205V0.870151C2.6023 1.05506 2.69215 1.23234 2.85189 1.36309C3.01163 1.49384 3.22821 1.56738 3.45411 1.56759H6.56563C6.79154 1.56739 7.00813 1.49384 7.16787 1.36309C7.32762 1.23234 7.41748 1.05506 7.41774 0.870151V0.612818H8.22022C8.49358 0.613062 8.75566 0.702053 8.94896 0.860266C9.14226 1.01848 9.251 1.23299 9.25132 1.45675V14.5433Z' fill='black'/%3E%3C/svg%3E");
	--bf-icon-audio: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.4494 8.66905V6.20797H13.4464C13.4464 2.7842 10.5373 0 6.96207 0C3.38619 0 0.47711 2.7842 0.47711 6.20797V8.71057C0.19449 8.87899 0 9.19719 0 9.5651V11.5365C0 12.0809 0.416582 12.5215 0.931296 12.5215V13.015C0.931296 13.5594 1.34788 14 1.86259 14H2.79389C3.3086 14 3.72519 13.5594 3.72519 13.015V8.08788C3.72519 7.54347 3.3086 7.10285 2.79389 7.10285H1.86259C1.50006 7.10285 1.18865 7.32409 1.0353 7.64352V6.20669C1.0353 3.10922 3.69348 0.590394 6.96145 0.590394C10.23 0.590394 12.8866 3.11049 12.8866 6.20669H12.8895V7.51116C12.7197 7.26443 12.4471 7.10223 12.1374 7.10223H11.2061C10.6914 7.10223 10.2748 7.54285 10.2748 8.08726V13.0143C10.2748 13.5588 10.6914 13.9994 11.2061 13.9994H12.1374C12.6521 13.9994 13.0687 13.5588 13.0687 13.0143V12.5209C13.5834 12.5209 14 12.0803 14 11.5359V9.56448C14 9.16364 13.7726 8.81995 13.4477 8.66708L13.4494 8.66905Z' fill='black'/%3E%3C/svg%3E");
}

/* ---------- read / listen first chapter ---------- */
.book-samples {
	display: flex;
	gap: 10px;
	margin: 16px 0;
}

.book-samples .listen-first-chapter,
.book-samples .first-chapter {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.book-samples .first-chapter:empty {
	display: none;
}

/* theme: .product-page[data-mode="digital"] .first-chapter { margin: 1rem 0; underline; bold } */
.product-page .new-price .book-samples .first-chapter {
	margin: 0;
	font-weight: 400;
	text-decoration: none;
}

/* both buttons: white outlined pill + icon circle (overrides theme .action / .first-chapter link) */
.product-page .book-samples .listen-first-chapter-toggle.action,
.product-page .book-samples .first-chapter .file-content-open.action {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 4px 0 12px;
	background: #fff;
	border: 1px solid var(--bf-border);
	border-radius: 999px;
	box-shadow: none;
	color: var(--bf-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	text-align: right;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
}

.product-page .book-samples .listen-first-chapter-toggle.action:hover,
.product-page .book-samples .first-chapter .file-content-open.action:hover,
.product-page .book-samples .listen-first-chapter-toggle.action.active {
	border-color: var(--bf-green);
	background: #fff;
	color: var(--bf-text);
}

.product-page .book-samples .listen-first-chapter-toggle .icon,
.product-page .book-samples .first-chapter .file-content-open::before {
	content: "";
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 50%;
	background-color: var(--bf-green-light);
	box-shadow: inset 0 0 0 1px #d3e9cb;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px;
}

.product-page .book-samples .listen-first-chapter-toggle .icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d1d1b'%3E%3Crect x='1' y='6.0' width='1.6' height='4' rx='.8'%3E%3Canimate attributeName='height' values='4;9;5;11;4' dur='1.1s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='6.0;3.5;5.5;2.5;6.0' dur='1.1s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='4.2' y='3.5' width='1.6' height='9' rx='.8'%3E%3Canimate attributeName='height' values='9;4;12;6;9' dur='0.9s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='3.5;6.0;2.0;5.0;3.5' dur='0.9s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='7.2' y='1.0' width='1.6' height='14' rx='.8'%3E%3Canimate attributeName='height' values='14;7;10;4;14' dur='1.2s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='1.0;4.5;3.0;6.0;1.0' dur='1.2s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='10.2' y='4.5' width='1.6' height='7' rx='.8'%3E%3Canimate attributeName='height' values='7;12;5;9;7' dur='1s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='4.5;2.0;5.5;3.5;4.5' dur='1s' repeatCount='indefinite'/%3E%3C/rect%3E%3Crect x='13.4' y='6.0' width='1.6' height='4' rx='.8'%3E%3Canimate attributeName='height' values='4;8;11;5;4' dur='1.15s' repeatCount='indefinite'/%3E%3Canimate attributeName='y' values='6.0;4.0;2.5;5.5;6.0' dur='1.15s' repeatCount='indefinite'/%3E%3C/rect%3E%3C/svg%3E");
}

.product-page .book-samples .first-chapter .file-content-open::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 6.5 4.5 3 5v13c3.5-.5 7 0 9 1.5 2-1.5 5.5-2 9-1.5V5c-3.5-.5-7 0-9 1.5zM12 6.5v13'/%3E%3Cpath d='M5.5 8.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='0s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M5.5 11h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='0.3s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M5.5 13.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M14.5 8.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='0.9s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M14.5 11h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='1.2s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M14.5 13.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3Canimate attributeName='stroke-dashoffset' values='4;0;0;4' keyTimes='0;.25;.85;1' dur='2.4s' begin='1.5s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
}

.product-page .book-samples .first-chapter .file-content-open span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.product-page .book-samples .first-chapter .file-content-open span::before {
	display: none;
}

/* ---------- first chapter audio player (Idus popup) ---------- */
.audio-sample-popup.idus_popup {
	width: 24rem;
	max-width: calc(100vw - 2rem);
	padding: 1.75rem 1.5rem 1.5rem;
	box-sizing: border-box;
}

.bf-player {
	--bf-green: #3b8c4a;
	--bf-green-dark: #2f7540;
	--bf-green-light: #e5f3e1;
	--bf-text: #1d1d1b;
	--bf-muted: #8a8a8a;
	direction: rtl;
	color: var(--bf-text);
}

.bf-player-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.bf-player-cover {
	flex: 0 0 64px;
	width: 64px;
	height: 92px;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.bf-player-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	text-align: right;
}

.bf-player-label {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--bf-green-light);
	color: var(--bf-green-dark);
	font-size: 12px;
	font-weight: 700;
}

.bf-player-title {
	font-size: 18px;
	line-height: 1.25;
}

.bf-player-author {
	color: var(--bf-muted);
	font-size: 14px;
}

/* progress - timeline runs left to right like every player */
.bf-player-progress {
	margin-bottom: 14px;
}

.bf-player input.bf-player-seek,
.bf-player input.bf-player-vol {
	--p: 0%;
	display: block;
	width: 100%;
	height: 18px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bf-player-seek::-webkit-slider-runnable-track,
.bf-player-vol::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--bf-green) var(--p), #e3e3df var(--p));
}

.bf-player-seek::-moz-range-track,
.bf-player-vol::-moz-range-track {
	height: 5px;
	border-radius: 999px;
	background: #e3e3df;
}

.bf-player-seek::-moz-range-progress,
.bf-player-vol::-moz-range-progress {
	height: 5px;
	border-radius: 999px;
	background: var(--bf-green);
}

.bf-player-seek::-webkit-slider-thumb,
.bf-player-vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -4.5px;
	border: 0;
	border-radius: 50%;
	background: var(--bf-green);
	box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, .25);
	transition: transform .15s ease;
}

.bf-player-seek::-moz-range-thumb,
.bf-player-vol::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: var(--bf-green);
	box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0, 0, 0, .25);
}

.bf-player-seek:hover::-webkit-slider-thumb,
.bf-player-seek:focus-visible::-webkit-slider-thumb,
.bf-player-vol:hover::-webkit-slider-thumb,
.bf-player-vol:focus-visible::-webkit-slider-thumb {
	transform: scale(1.2);
}

.bf-player-seek:focus-visible,
.bf-player-vol:focus-visible {
	outline: 2px solid var(--bf-green);
	outline-offset: 3px;
	border-radius: 4px;
}

.bf-player-times {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	color: var(--bf-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

/* controls: speed | -15 | play | +15 | (spacer)
   button.* selectors beat the theme's button:not(.action-close):not(.idus_slider_arrow):hover */
.bf-player-controls {
	display: grid;
	grid-template-columns: 1fr auto auto auto 1fr;
	align-items: center;
	gap: 14px;
}

.bf-player .bf-player-controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: var(--bf-text);
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease, color .15s ease;
}

.bf-player .bf-player-controls button:active {
	transform: scale(.94);
}

.bf-player .bf-player-controls button:focus-visible {
	outline: 2px solid var(--bf-green);
	outline-offset: 2px;
}

.bf-player .bf-player-controls button.bf-player-skip {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.bf-player .bf-player-controls button.bf-player-skip:hover {
	background: #f1f1ee;
}

.bf-player .bf-player-controls button.bf-player-skip svg {
	width: 28px;
	height: 28px;
}

.bf-player .bf-player-controls button.bf-player-play {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--bf-green);
	color: #fff;
	box-shadow: 0 6px 16px rgba(59, 140, 74, .35);
}

.bf-player .bf-player-controls button.bf-player-play:hover {
	background: var(--bf-green-dark);
}

.bf-player .bf-player-controls button.bf-player-play svg {
	width: 28px;
	height: 28px;
}

.bf-player .bf-icon-pause,
.bf-player.is-playing .bf-icon-play {
	display: none;
}

.bf-player.is-playing .bf-icon-pause {
	display: block;
}

.bf-player .bf-player-controls button.bf-player-speed {
	justify-self: start;
	min-width: 44px;
	height: 30px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f1f1ee;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.bf-player .bf-player-controls button.bf-player-speed:hover {
	background: var(--bf-green-light);
}

.bf-player-spinner {
	position: absolute;
	inset: -4px;
	border: 3px solid transparent;
	border-top-color: var(--bf-green);
	border-radius: 50%;
	opacity: 0;
	animation: bf-spin .8s linear infinite;
}

.bf-player.is-loading .bf-player-spinner {
	opacity: 1;
}

@keyframes bf-spin {
	to {
		transform: rotate(360deg);
	}
}

/* volume (hidden by default; JS shows it only where audio.volume is settable - not iOS).
   Same track/thumb as the seek bar (shared rules above); left to right like the timeline */
.bf-player-volume {
	width: 60%;
	margin: 16px auto 0;
}

.bf-player-volume[hidden] {
	display: none;
}

/* ---------- format cards ---------- */
.book-formats .book-formats-cards {
	display: flex;
	/* start on the right and scroll to the left.
	   "mandatory" snapping makes iOS Safari jump to the leftmost card in RTL - use proximity */
	direction: rtl;
	justify-content: flex-start;
	gap: 17px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 16px 0 6px;
	margin-top: -14px;
	margin-bottom: 16px;
}

.store-digital .book-formats .book-formats-cards {
	justify-content: space-evenly;
}

.store-digital .book-formats .book-formats-cards {
	justify-content: space-evenly;
}

.book-formats .book-formats-cards::-webkit-scrollbar {
	display: none;
}

.book-formats .book-format-card {
	position: relative;
	flex: 0 0 140px;
	width: 140px;
	min-width: 0;
	/* min-height: 127px; */
	scroll-snap-align: start;
	padding: 20px 8px 8px;
	background: #fff;
	border: 1px solid var(--bf-tile-border);
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
}

.book-formats .book-format-card:hover {
	border-color: var(--bf-green);
}

.book-formats .book-format-card.active {
	border: 2px solid var(--bf-figma-green);
	padding: 19px 7px 7px;
}

.book-formats .book-format-card:focus-visible {
	outline: 2px solid var(--bf-green-dark);
	outline-offset: 2px;
}

.book-formats .book-format-card .stampa-sale {
	position: absolute;
	top: 0;
	right: 50%;
	width: 100%;
	transform: translate(50%,-50%);
}

.book-formats .book-format-card .stampa-sale span {
	background: var(--bf-green-light) !important;
	color: var(--bf-green);
	font-weight: bold;
	border-radius: 16px;
	padding-inline: 12px;
}

.book-formats .book-format-card.active .stampa-sale {
	transform: translate(50%,calc(-50% - 1px));
}

.book-formats .book-format-card .title {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	color: #000;
	margin-bottom: 2px;
}

/* format icon above the label (decorative - the label text stays) */
.book-formats .book-format-card .title::before {
	content: "";
	display: block;
	margin: 0 auto 6px;
	background: no-repeat center / contain;
}

.book-formats .book-format-card-print .title::before {
	width: 18px;
	height: 13px;
	background-image: var(--bf-icon-print);
}

.book-formats .book-format-card-digital .title::before {
	width: 10px;
	height: 16px;
	background-image: var(--bf-icon-digital);
}

.book-formats .book-format-card-audio .title::before {
	width: 14px;
	height: 14px;
	background-image: var(--bf-icon-audio);
}

.book-formats .book-format-card .price,
.book-formats .book-format-card .price-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0;
}

.book-formats .book-format-card .price-box .price {
	font-size: 18px;
	font-weight: 700;
	color: #000;
}

.book-formats .book-format-card .old-price .price,
.book-formats .book-format-card .old-price {
	font-size: 11px;
	font-weight: 400;
	color: var(--bf-muted);
	text-decoration: line-through;
}

.book-formats .book-format-card .price-label {
	display: none;
}

/* club price (tier price) */
.book-formats .book-format-card .product-tier_price,
.book-formats .book-format-card .prices-tier,
.book-formats .book-format-card .tier-price {
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 700;
	color: var(--bf-figma-green);
	white-space: nowrap;
}

.book-formats .book-format-card .product-tier_price .label,
.book-formats .book-format-card .product-tier_price .price,
.book-formats .book-format-card .prices-tier .price,
.book-formats .book-format-card .tier-price .price {
	font-size: 15px;
	font-weight: 700;
	color: var(--bf-figma-green);
}

/* ---------- panels ---------- */
.book-formats .book-format-panel[hidden] {
	display: none !important;
}

.book-formats .book-format-panel .product-page-addtocart,
.book-formats .book-format-panel .product_addtocart,
.book-formats .book-format-panel .addtocart,
.book-formats .book-format-panel .start-product-view {
	/* theme sets .addtocart { height: 52px } and .product-page-addtocart { height: 40px } with 8-class selectors -
	   the 48px button overflowed into the gift buttons */
	height: auto !important;
	margin: 0;
}

.book-formats .book-format-panel .addtocart button[type="submit"],
.book-formats .book-format-panel .addtocart .action.tocart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--bf-green);
	border-color: var(--bf-green);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.book-formats .book-format-panel .addtocart button[type="submit"]:hover,
.book-formats .book-format-panel .addtocart .action.tocart:hover {
	background: var(--bf-green-dark);
	border-color: var(--bf-green-dark);
}

/* theme leftovers inside the component */
.book-formats .price-label,
.book-formats .no-display {
	display: none !important;
}

.book-formats>.stock_status {
	display: none;
}

.book-formats>.backtostock {
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
}

.book-formats>.backtostock .backinstock_product_digital[product_outofstock="true"] {
	margin-top: 12px;
	padding: 12px 16px;
	border: 1px solid var(--bf-green);
	border-radius: var(--bf-radius);
}

.book-formats .book-format-panel .start-product-view[product_outofstock="true"] .tocart {
	opacity: .45;
	pointer-events: none;
}

/* ---------- gift buttons ---------- */
.book-formats .send_gift {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
}

.book-formats .send_gift .send_gift_digital-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	background: var(--bf-green-light);
	border: 0;
	border-radius: 999px;
	color: var(--bf-text);
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	box-sizing: border-box;
}

.book-formats .send_gift .send_gift_digital-open:hover {
	background: #d6ecd0;
}

.book-formats .send_gift .send_gift_digital-open .icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8C10 4 6 4 7.5 7 8.3 8 12 8 12 8zM12 8c2-4 6-4 4.5-1-.8 1-4.5 1-4.5 1z'/%3E%3Cpath d='M12 8v12'/%3E%3C/svg%3E");
}

.book-formats .send_gift .send_gift-audio .icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8C10 4 6 4 7.5 7 8.3 8 12 8 12 8zM12 8c2-4 6-4 4.5-1-.8 1-4.5 1-4.5 1z'/%3E%3Cpath d='M9 15.0v2'%3E%3Canimate attributeName='d' values='M9 15.0v2;M9 13.5v5;M9 14.5v3;M9 15.0v2' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M12 13.5v5'%3E%3Canimate attributeName='d' values='M12 13.5v5;M12 15.0v2;M12 14.0v4;M12 13.5v5' dur='.9s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M15 14.5v3'%3E%3Canimate attributeName='d' values='M15 14.5v3;M15 13.5v5;M15 15.0v2;M15 14.5v3' dur='1.1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
}


/* =========================================================
   product tile (category / search / carousels)
   chips מודפס / דיגיטלי / שמע switch the price
   ========================================================= */
.book-formats-item {
	direction: rtl;
	text-align: center;
	--bf-green: #3b8c4a;
	--bf-text: #1d1d1b;
}

.book-formats-item .book-format-chips {
	display: flex;
	direction: rtl;
	gap: 7px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px 0;
	margin: 8px 0 8px;
	/* the tile name link is stretched over .info-wrapper (a.product_link::before { inset: 0 }) -
	   lift the chips above it so they can be clicked */
	position: relative;
}

.book-formats-item .book-format-chips::-webkit-scrollbar {
	display: none;
}

/* centered when they fit, scrollable from the start when they don't */
.book-formats-item .book-format-chip:first-child {
	margin-inline-start: auto;
}

.book-formats-item .book-format-chip:last-child {
	margin-inline-end: auto;
}

/* Figma Frame 2951: 32px #EEEDE5 circle + format icon.
   text stays in the button (accessible name) - hidden visually only */
.product-item .book-formats-item .book-format-chip {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	box-shadow: none;
	box-sizing: border-box;
	font-size: 0;
	line-height: 0;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s ease;
}

/* .book-format-chips in the selector (0,4,0): the theme's button:hover / button:focus { background: 0 }
   (0,3,1) would otherwise remove the circle + icon on hover and after a click (focus) */
.product-item .book-formats-item .book-format-chips .book-format-chip {
	background: #eeede5 no-repeat center;
	color: transparent;
}

.product-item .book-formats-item .book-format-chips .book-format-chip-print {
	background-image: var(--bf-icon-print);
	background-size: 18px 13px;
}

.product-item .book-formats-item .book-format-chips .book-format-chip-digital {
	background-image: var(--bf-icon-digital);
	background-size: 10px 16px;
}

.product-item .book-formats-item .book-format-chips .book-format-chip-audio {
	background-image: var(--bf-icon-audio);
	background-size: 14px 14px;
}

.product-item .book-formats-item .book-format-chip:hover {
	border-color: #b9b9b4;
}

.product-item .book-formats-item .book-format-chip.active {
	border-color: var(--bf-text);
}

.product-item .book-formats-item .book-format-chip:focus-visible {
	outline: 2px solid var(--bf-green);
	outline-offset: 1px;
}

.book-formats-item .book-format-price {
	min-height: 3.5rem;
}

.book-formats-item .book-format-price[hidden] {
	display: none !important;
}

.idus_minicart_popup .minicart-wrapper .scroll-area .crosssell-list .idus-slider-crosssell .idus-slider-background .idus-slider .idus-slider-slide .info-wrapper .price,
.book-formats-item .book-format-price,
.book-formats-item .book-format-price .price-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0;
}

.book-formats-item .price-label,
.book-formats-item .no-display {
	display: none !important;
}

.book-formats-item .book-format-price .price-box .price {
	font-size: 16px;
	font-weight: 700;
	color: var(--bf-text);
}

/* club price (tier price) */
.book-formats-item .book-format-price .product-tier_price:not(.empty),
.book-formats-item .book-format-price .prices-tier {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--bf-figma-green);
	font-size: 16px;
	font-weight: 700;
}

.book-formats-item .book-format-price .product-tier_price .label,
.book-formats-item .book-format-price .product-tier_price .price,
.book-formats-item .book-format-price .prices-tier .price {
	font-size: 16px;
	font-weight: 700;
	color: var(--bf-figma-green);
}

.product-item[data-mode="carousel"] .book-formats-item .book-format-price .price-box .price {
	font-size: 16px;
}

/* tile of a book without a family: "מודפס" title -> print icon in a 32px circle (like the chips).
   text stays in the DOM, hidden visually only. non-books (.product-is_book.empty) untouched */
.product-is_book:not(.empty)~.info-wrapper .steimatzky-price>.title {
	font-weight: normal;
	font-size: 1rem;
}

.product-is_book:not(.empty)~.info-wrapper .steimatzky-price>.title:before {
	content: '';

	display: flex;
	width: 32px;
	height: 32px;
	margin: 0 auto 8px;
	padding: 0;
	border-radius: 50%;
	background: #eeede5 var(--bf-icon-print) no-repeat center / 18px 13px;
	border: 1px solid var(--bf-text);
	box-sizing: border-box;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
	color: transparent;
}


/* =========================================================
   generic product page block (single-format books / non-books:
   page/steimatzky_price.phtml without a family) - same look as the format panels.
   direct children of .info-wrapper only, so .book-formats / quickview / cart are not reached
   ========================================================= */
/* .product-wrapper in the selector: beats the theme's
   .catalog-product-view:not(.store-digital) .product-page .product-wrapper .info-wrapper .addtocart .tocart { height: 100% }.
   :not(.add_to_cart_run) keeps the theme's white loading state while adding to cart */
.catalog-product-view .product-page:not(.add_to_cart_run) .product-wrapper .info-wrapper>.addtocart .product-page-addtocart button.tocart {
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	background-color: #3b8c4a;
	border-color: #3b8c4a;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.catalog-product-view .product-page:not(.add_to_cart_run) .product-wrapper .info-wrapper>.addtocart .product-page-addtocart button.tocart:hover {
	background-color: #2f7540;
	border-color: #2f7540;
	color: #fff;
}

/* club price - as in the format cards */
.catalog-product-view .product-page .info-wrapper>.price .product-tier_price,
.catalog-product-view .product-page .info-wrapper>.price .product-tier_price .label,
.catalog-product-view .product-page .info-wrapper>.price .product-tier_price .price {
	color: #008644;
	font-weight: 700;
}


/* =========================================================
   cart / mini cart - audio book (Idus cart mode "audio")
   same look as the theme's [data-mode="digital"]: no quantity,
   green details, free text .audio-book ("ספר שמע") with a headphones icon
   ========================================================= */
.cart.items .product-cart[data-mode="audio"] .product-wrapper .product-item-price,
.cart.items .product-cart[data-mode="audio"] .product-wrapper .product-item-price_total {
	min-height: auto;
}

.product-cart[data-mode="audio"] .product-item-qty .control {
	display: none;
}

.product-cart[data-mode="audio"] .details {
	margin: auto 0 0 !important;
}

.product-cart[data-mode="audio"] .details .product-item-details {
	color: #0a5e11;
	font-size: .9rem;
	font-weight: bold;
	margin-top: 1rem;
}

/* gift (send to a phone) details - same as digital */
.product-cart[data-mode="audio"] .details .product-item-details .option_digital_book_telephone_wrap::before,
.product-cart[data-mode="audio"] .details .product-item-details .option_audio_book_telephone_wrap::before {
	content: "\e888";
	font-family: steimatzky, idus;
	font-size: 1.2rem;
	font-style: normal;
	font-weight: normal;
	display: inline-block;
	width: 1em;
	line-height: 1em;
	text-align: center;
	text-decoration: inherit;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
}

.product-cart[data-mode="audio"] .details .product-item-details .options.list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.product-cart[data-mode="audio"] .details .product-item-details .options.list .options_attr_code_swatch_digital_book_country_code,
.product-cart[data-mode="audio"] .details .product-item-details .options.list .options_attr_code_swatch_audio_book_country_code {
	display: flex;
	align-items: flex-end;
}

.product-cart[data-mode="audio"] .details .product-item-details .options.list>div .label,
.product-cart[data-mode="audio"] .details .product-item-details .options.list .option_digital_book_message_wrap,
.product-cart[data-mode="audio"] .details .product-item-details .options.list .option_audio_book_message_wrap,
.product-cart[data-mode="audio"] .details .subtitle,
.product-cart[data-mode="audio"] .details .toggle {
	display: none;
}

/* label "ספר שמע" - hidden everywhere except audio items (like .digital-book) */
.product-cart .audio-book {
	display: none;
}

.product-cart[data-mode="audio"] .audio-book {
	display: block;
}

.product-cart[data-mode="audio"] .digital-book {
	display: none;
}

.product-cart .audio-book .product-free_text {
	position: relative;
	padding-right: 1.5rem;
}

.product-cart .audio-book .product-free_text::before {
	content: "";
	position: absolute;
	right: 0;
	display: flex;
	width: 1.3rem;
	height: 100%;
	background: no-repeat center / 1.2rem auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E");
}

/* ---------- reduced motion: static icons ---------- */
@media (prefers-reduced-motion: reduce) {
	.bf-player-spinner {
		animation: none;
	}

	.product-page .book-samples .listen-first-chapter-toggle .icon {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d1d1b'%3E%3Crect x='1' y='6.0' width='1.6' height='4' rx='.8'%3E%3C/rect%3E%3Crect x='4.2' y='3.5' width='1.6' height='9' rx='.8'%3E%3C/rect%3E%3Crect x='7.2' y='1.0' width='1.6' height='14' rx='.8'%3E%3C/rect%3E%3Crect x='10.2' y='4.5' width='1.6' height='7' rx='.8'%3E%3C/rect%3E%3Crect x='13.4' y='6.0' width='1.6' height='4' rx='.8'%3E%3C/rect%3E%3C/svg%3E");
	}

	.product-page .book-samples .first-chapter .file-content-open::before {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 6.5 4.5 3 5v13c3.5-.5 7 0 9 1.5 2-1.5 5.5-2 9-1.5V5c-3.5-.5-7 0-9 1.5zM12 6.5v13'/%3E%3Cpath d='M5.5 8.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3Cpath d='M5.5 11h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3Cpath d='M5.5 13.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3Cpath d='M14.5 8.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3Cpath d='M14.5 11h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3Cpath d='M14.5 13.5h4' stroke-dasharray='4' stroke-dashoffset='0'%3E%3C/path%3E%3C/svg%3E");
	}

	.book-formats .send_gift .send_gift-audio .icon {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8C10 4 6 4 7.5 7 8.3 8 12 8 12 8zM12 8c2-4 6-4 4.5-1-.8 1-4.5 1-4.5 1z'/%3E%3Cpath d='M9 15.0v2'%3E%3C/path%3E%3Cpath d='M12 13.5v5'%3E%3C/path%3E%3Cpath d='M15 14.5v3'%3E%3C/path%3E%3C/svg%3E");
	}
}

/* ---------- desktop ---------- */
@media (min-width: 768px) {
	.book-formats .book-formats-cards {
		overflow: visible;
		flex-wrap: nowrap;
	}

	/* desktop = mobile look (Figma mobile Frame 3107) */
	.book-formats .book-format-card {
		flex: 0 0 140px;
		width: 140px;
		max-width: none;
	}

	.book-samples {
		max-width: 460px;
	}
}

/* quickview popup (420px content): 3 x 140px + gaps overflow - cards share the row, max 140px */
.product_quickview .book-formats .book-format-card {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: 140px;
}

/* ---------- "open book" button for an owned book (app) ----------
   theme (all.css) hides the button text and shows a fixed ::before "פתח ספר".
   js/script.js sets title + data-owned-type -> show "פתח ספר דיגיטלי" / "פתח ספר שמע" */
.store-digital.catalog-product-view .product-page[data-mode="digital"] .new-price .product-page-addtocart .tocart.owned_by_customer[data-owned-type]::before,
.store-digital.catalog-product-view.has_saved_card .product-page[data-mode="digital"] .new-price .start-product-view .product_addtocart .tocart.owned_by_customer[data-owned-type]::before,
.book-formats .book-format-panel .product-page-addtocart .tocart.owned_by_customer[data-owned-type]::before {
	content: attr(title);
}