/* ── Book Format Popup v2.5 — bfp.css ────────────────────────────────────────
   Clean minimal style matching reference screenshot
   White panel, teal hover fill, pill price badge, inline icon
──────────────────────────────────────────────────────────────────────────── */

/* ── Modal overlay ── */
.bfp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.bfp-modal[hidden] {
	display: none;
}

/* ── Backdrop ── */
.bfp-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 15 13 / 80%);
	cursor: pointer;
}

/* ── Panel ── */
.bfp-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.22);
	overflow: hidden;
	animation: bfp-pop 0.22s cubic-bezier(0.34, 1.26, 0.64, 1) both;
	/* border and header bg overridden inline per-popup */
}

@keyframes bfp-pop {
	from { opacity: 0; transform: scale(0.94) translateY(12px); }
	to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Header (text only, no bg) ── */
.bfp-header {
	padding: 28px 28px 10px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	/* background and border-bottom overridden inline */
}

.bfp-header-inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

/* Hide cover image in this style — clean look */
.bfp-cover {
	display: none;
}

/* Eyebrow — hidden in clean mode, shown if store name differs from heading */
.bfp-eyebrow {
	font-family: 'Chau Philomene One', sans-serif;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	/* colour set inline */
	margin-bottom: 2px;
	opacity: 0.7;
}

.bfp-heading {
	font-family: 'Chau Philomene One', sans-serif;
	font-size: 24px;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.bfp-author {
	font-size: 13px;
	color: #666;
	font-style: italic;
	margin-top: 2px;
}

.bfp-sub {
	font-size: 14px;
	color: #555;
	margin: 4px 0 0;
	line-height: 1.5;
}

/* Close button */
.bfp-close {
	background: none;
	border: none;
	color: #999;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	margin-top: 2px;
	transition: color 0.15s;
}

.bfp-close:hover {
	color: #333;
}

/* ── Options list ── */
.bfp-options {
	padding: 16px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ── Single option row ── */
.bfp-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #fff;
	border: 1.5px solid #d4a853;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
	cursor: pointer;
}

.bfp-option:hover {
	background: var(--bfp-hover, #3aada4);
	border-color: var(--bfp-hover, #3aada4);
	transform: translateY(-1px);
	text-decoration: none;
}

/* Icon — circle with amber border */
.bfp-option-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	border: 1.5px solid #d4a853;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.18s, background 0.18s;
}

.bfp-option-icon .material-symbols-outlined {
	font-size: 20px;
	color: #d4a853;
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
	transition: color 0.18s;
}

.bfp-option:hover .bfp-option-icon {
	border-color: rgba(255,255,255,0.6);
	background: rgba(255,255,255,0.15);
}

.bfp-option:hover .bfp-option-icon .material-symbols-outlined {
	color: #fff;
}

/* Body text */
.bfp-option-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bfp-option-label {
	font-family: 'Chau Philomene One', sans-serif;
	font-size: 17px;
	font-weight: 400;
	color: #1a1a1a;
	letter-spacing: 0.02em;
	transition: color 0.18s;
}

.bfp-option:hover .bfp-option-label {
	color: #fff;
}

.bfp-option-note {
	font-size: 11px;
	color: #888;
	transition: color 0.18s;
}

.bfp-option:hover .bfp-option-note {
	color: rgba(255,255,255,0.75);
}

/* Right side — pill price badge */
.bfp-option-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bfp-option-price {
	display: inline-block;
	padding: 5px 14px;
	background: #f0f0f0;
	border-radius: 999px;
	font-family: 'Chau Philomene One', sans-serif;
	font-size: 15px;
	color: #1a1a1a;
	letter-spacing: 0.02em;
	transition: background 0.18s, color 0.18s;
}

.bfp-option:hover .bfp-option-price {
	background: rgba(255,255,255,0.25);
	color: #fff;
}

/* No arrow in this style */
.bfp-option-arrow {
	display: none;
}

/* ── Disabled option (no URL / coming soon) ── */
.bfp-option--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	background: #fafafa;
	border-color: #eee;
	pointer-events: none;
}

.bfp-option--disabled .bfp-option-icon .material-symbols-outlined {
	color: #bbb;
}

.bfp-option--disabled .bfp-option-label {
	color: #aaa;
}

.bfp-option--disabled .bfp-option-price {
	background: #eee;
	color: #bbb;
}

.bfp-option-unavailable {
	display: none;
}

/* ── Footer note ── */
.bfp-footer-note {
	text-align: center;
	font-size: 11px;
	color: #aaa;
	padding: 0 24px 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ── Trigger button ── */
.bfp-trigger {
	display: inline-block;
	padding: 14px 40px;
	background: #CC7E2B;
	color: #FFFFFF;
	font-family: 'Chau Philomene One', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none;
	border: 3px solid #86684F;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.15s;
	-webkit-appearance: none;
}

.bfp-trigger:hover {
	background: #D59D2C;
	border-color: #EBCA48;
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
	.bfp-trigger {
		font-size: 17px;
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.bfp-panel {
		border-radius: 12px;
	}
	.bfp-header {
		padding: 20px 18px 8px;
	}
	.bfp-options {
		padding: 12px 14px 18px;
	}
	.bfp-heading {
		font-size: 20px;
	}
}
