/* WISE Black Friday: campaign page. The 4 colors come from Odoo (CSS variables set on
 * .wise-bf). Every rule is scoped to .wise-bf; the colors and sizes the WordPress themes
 * usually force on headings, buttons and inputs are protected with !important. The page
 * follows the width of its content (container queries); the popup and the bar fixed at
 * the bottom follow the screen (media queries). */

.wise-bf {
	--wise-bf-primary: #E30613;
	--wise-bf-secondary: #111111;
	--wise-bf-text: #FFFFFF;
	--wise-bf-background: #FFFFFF;
	--wise-bf-ink: #14161b;
	--wise-bf-muted: #646b78;
	--wise-bf-line: #e7e9ee;
	--wise-bf-soft: #f5f6f8;
	--wise-bf-success: #0f7b57;
	--wise-bf-warning: #b45309;
	--wise-bf-gold: #FFD54A;
	--wise-bf-radius: 16px;
	--wise-bf-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
	--wise-bf-shadow-lg: 0 18px 40px rgba(16, 24, 40, .14);
	--wise-bf-tint: color-mix(in srgb, var(--wise-bf-primary) 8%, #fff);
	--wise-bf-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wise-bf-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
	container: wisebf / inline-size;
	background: var(--wise-bf-background);
	color: var(--wise-bf-ink);
	font-family: var(--wise-bf-font);
	font-size: 16px;
	line-height: 1.5;
	margin: 0 auto 32px;
	-webkit-font-smoothing: antialiased;
}
.wise-bf *, .wise-bf *::before, .wise-bf *::after { box-sizing: border-box; }
.wise-bf h2, .wise-bf h3, .wise-bf p, .wise-bf ul { margin: 0; }
.wise-bf h2, .wise-bf h3 {
	color: var(--wise-bf-ink) !important;
	font-family: var(--wise-bf-font) !important;
	font-weight: 800 !important;
	letter-spacing: -.015em !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	margin: 0 !important;
}
.wise-bf h2 { font-size: 24px !important; }
.wise-bf h3 { font-size: 15px !important; font-weight: 700 !important; }
.wise-bf img { max-width: 100%; height: auto; display: block; border: 0; box-shadow: none; }
.wise-bf-icon { display: inline-flex; line-height: 0; }
.wise-bf svg { width: 1.15em; height: 1.15em; flex: none; }
.wise-bf button { font-family: var(--wise-bf-font) !important; }
.wise-bf [hidden] { display: none !important; }
html.wise-bf-locked { overflow: hidden; }

/* === Thin band at the top === */
.wise-bf-band {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding: 10px 12px 10px 18px;
	border-radius: 12px;
	overflow: hidden;
	background:
		radial-gradient(120% 180% at 0% 50%, color-mix(in srgb, var(--wise-bf-primary) 38%, transparent) 0, transparent 45%),
		linear-gradient(90deg, var(--wise-bf-secondary) 30%, color-mix(in srgb, var(--wise-bf-secondary) 78%, transparent) 100%),
		var(--wise-bf-banner, none) center / cover no-repeat,
		var(--wise-bf-secondary);
	color: var(--wise-bf-text);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.wise-bf-band::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--wise-bf-primary);
}
.wise-bf-band-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-width: 0; flex: 1 1 260px; }
.wise-bf .wise-bf-title {
	color: var(--wise-bf-text) !important;
	font-family: var(--wise-bf-display) !important;
	font-size: 21px !important;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}
.wise-bf .wise-bf-subtitle { color: color-mix(in srgb, var(--wise-bf-text) 75%, transparent) !important; font-size: 13.5px; }
.wise-bf-band-timer { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.wise-bf-countdown-label { opacity: .8; font-weight: 600; font-size: 13px; }
.wise-bf-countdown { display: inline-flex; gap: 4px; }
.wise-bf-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	min-width: 38px;
	justify-content: center;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .14);
	color: var(--wise-bf-text);
	border-radius: 7px;
	padding: 3px 6px;
	font-variant-numeric: tabular-nums;
}
.wise-bf-unit strong { font-size: 14px; font-weight: 800; }
.wise-bf-unit small { font-size: 10.5px; opacity: .7; text-transform: lowercase; }
.wise-bf-band-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.wise-bf .wise-bf-band-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, .06) !important;
	color: var(--wise-bf-text) !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	border-radius: 999px !important;
	padding: 6px 14px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease;
}
.wise-bf .wise-bf-band-link:hover { background: var(--wise-bf-primary) !important; border-color: var(--wise-bf-primary) !important; }
.wise-bf .wise-bf-band-link .wise-bf-icon { color: var(--wise-bf-gold); }
.wise-bf .wise-bf-band-cart { background: var(--wise-bf-primary) !important; border-color: var(--wise-bf-primary) !important; }
.wise-bf .wise-bf-band-cart .wise-bf-icon { color: inherit; }
.wise-bf .wise-bf-band-cart:hover { filter: brightness(1.1); }

/* Language switch FR | EN */
.wise-bf-lang {
	display: inline-flex;
	padding: 2px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .2);
}
.wise-bf .wise-bf-lang button {
	min-width: 34px;
	margin: 0 !important;
	padding: 4px 9px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: color-mix(in srgb, var(--wise-bf-text) 70%, transparent) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: .06em !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
}
.wise-bf .wise-bf-lang button:hover { color: var(--wise-bf-text) !important; }
.wise-bf .wise-bf-lang button[aria-pressed="true"] { background: var(--wise-bf-text) !important; color: var(--wise-bf-secondary) !important; }

/* === Introduction, messages, footer === */
.wise-bf-intro { margin: 22px 0 0; color: var(--wise-bf-muted); max-width: 72ch; }
.wise-bf-intro-text > * + * { margin-top: 8px; }
.wise-bf-notice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px !important;
	padding: 7px 14px;
	border-radius: 12px;
	background: var(--wise-bf-tint);
	color: var(--wise-bf-ink);
	font-size: 13.5px;
	font-weight: 600;
}
.wise-bf-notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wise-bf-primary); flex: none; }
.wise-bf-message {
	margin-top: 16px;
	padding: 56px 20px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	border-radius: var(--wise-bf-radius);
	background: var(--wise-bf-soft);
	border: 1px dashed var(--wise-bf-line);
}
.wise-bf-footer {
	display: grid;
	gap: 16px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--wise-bf-line);
	font-size: 13px;
	color: var(--wise-bf-muted);
}
.wise-bf-footer a { color: var(--wise-bf-primary); }

/* === Buttons === */
.wise-bf .wise-bf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0 !important;
	padding: 11px 20px !important;
	border: 1px solid transparent !important;
	border-radius: 12px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.wise-bf .wise-bf-btn-primary {
	background: var(--wise-bf-primary) !important;
	color: var(--wise-bf-text) !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--wise-bf-primary) 30%, transparent) !important;
}
.wise-bf .wise-bf-btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.wise-bf .wise-bf-btn-light {
	background: #fff !important;
	color: var(--wise-bf-ink) !important;
	border-color: var(--wise-bf-line) !important;
}
.wise-bf .wise-bf-btn-light:hover { background: var(--wise-bf-soft) !important; }
.wise-bf .wise-bf-btn:active:not(:disabled) { transform: translateY(1px); }
.wise-bf .wise-bf-btn:disabled { background: #cfd2d8 !important; color: #fff !important; box-shadow: none !important; cursor: not-allowed; }
.wise-bf .wise-bf-btn-block { width: 100%; }
.wise-bf .wise-bf-btn.is-loading { opacity: .75; cursor: progress; }
.wise-bf button:focus-visible, .wise-bf input:focus-visible, .wise-bf textarea:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wise-bf-primary) 45%, transparent) !important;
	outline-offset: 2px;
}

/* === Offers === */
.wise-bf-offers { margin-top: 28px; scroll-margin-top: 90px; }
.wise-bf-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.wise-bf .wise-bf-section-head h2 { display: flex; align-items: center; gap: 10px; }
.wise-bf .wise-bf-section-head h2::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--wise-bf-primary); }
.wise-bf-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--wise-bf-soft); }
.wise-bf-tabs::-webkit-scrollbar { display: none; }
.wise-bf .wise-bf-tab {
	flex: none;
	margin: 0 !important;
	background: transparent !important;
	color: var(--wise-bf-muted) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 7px 16px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.wise-bf .wise-bf-tab:hover { color: var(--wise-bf-ink) !important; }
.wise-bf .wise-bf-tab.is-active { background: var(--wise-bf-secondary) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .15) !important; }

.wise-bf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

.wise-bf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wise-bf-line);
	border-radius: var(--wise-bf-radius);
	overflow: hidden;
	box-shadow: var(--wise-bf-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wise-bf-card:hover { border-color: color-mix(in srgb, var(--wise-bf-ink) 22%, transparent); }
.wise-bf-card.is-selected { border-color: var(--wise-bf-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--wise-bf-primary) 22%, transparent), var(--wise-bf-shadow); }
.wise-bf-card.is-closed { opacity: .6; filter: grayscale(.4); }
.wise-bf-card.is-closed:hover { transform: none; box-shadow: var(--wise-bf-shadow); }
.wise-bf-media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #fff 0%, var(--wise-bf-soft) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}
.wise-bf-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; mix-blend-mode: multiply; }
.wise-bf-placeholder { color: #c3c7cf; display: grid; place-items: center; }
.wise-bf-placeholder svg { width: 56px; height: 56px; }
.wise-bf-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--wise-bf-primary);
	color: var(--wise-bf-text);
	font-weight: 900;
	font-size: 14px;
	line-height: 1;
	padding: 7px 10px;
	border-radius: 999px;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--wise-bf-primary) 35%, transparent);
}
.wise-bf-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--wise-bf-line); }
.wise-bf-ref { font-size: 12.5px; color: var(--wise-bf-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.wise-bf .wise-bf-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.wise-bf-features { padding: 0 !important; list-style: none !important; font-size: 13px; color: var(--wise-bf-muted); }
.wise-bf-features li { position: relative; padding-left: 14px; margin: 0 !important; }
.wise-bf-features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--wise-bf-primary); }
.wise-bf-card-foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 8px; }
/* The price block has the same height in every card (price on one line, usual price on
 * its own line, saving pill kept even when empty), so that the prices of a row line up on
 * large screens whatever the length of the amounts. */
.wise-bf-prices { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.wise-bf-price { display: block; color: var(--wise-bf-primary); font-size: 23px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wise-bf-was { display: block; min-height: 1.45em; color: var(--wise-bf-muted); font-size: 14px; line-height: 1.45; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wise-bf-saving.is-empty { visibility: hidden; }
.wise-bf-saving {
	align-self: flex-start;
	min-height: calc(1.5em + 6px); /* line + padding (border-box) */
	line-height: 1.5;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 700;
	color: var(--wise-bf-success);
	background: color-mix(in srgb, var(--wise-bf-success) 10%, #fff);
	padding: 3px 9px;
	border-radius: 999px;
}
.wise-bf-stock { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--wise-bf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wise-bf-stock.is-soon { color: var(--wise-bf-primary); }
.wise-bf-card.is-soon .wise-bf-media { filter: saturate(.75); }
.wise-bf-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.wise-bf-stock.is-available { color: var(--wise-bf-success); }
.wise-bf-stock.is-limited { color: var(--wise-bf-warning); }
.wise-bf-stock.is-out_of_stock { color: #8a909b; }
.wise-bf .wise-bf-add { width: 100%; margin-top: 6px !important; }

/* Quantity */
.wise-bf-stepper {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	border: 1px solid var(--wise-bf-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}
.wise-bf-card .wise-bf-stepper { width: 100%; margin-top: 6px; min-height: 46px; border: 1.5px solid var(--wise-bf-primary); background: var(--wise-bf-tint); }
.wise-bf .wise-bf-stepper button {
	width: 42px;
	min-height: 40px;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wise-bf-ink) !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	padding: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.wise-bf .wise-bf-stepper button:hover:not(:disabled) { background: color-mix(in srgb, var(--wise-bf-primary) 12%, transparent) !important; }
.wise-bf .wise-bf-stepper button:disabled { color: #c3c7cf !important; cursor: not-allowed; }
.wise-bf-qty { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* === Bar fixed at the bottom: opens the selection === */
.wise-bf .wise-bf-bar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 12px;
	width: auto;
	margin: 0 !important;
	padding: 10px 10px 10px 12px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: var(--wise-bf-secondary) !important;
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1.25 !important;
	text-align: left;
	text-transform: none !important;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .3) !important;
	cursor: pointer;
	animation: wise-bf-rise .3s ease both;
}
.wise-bf-bar-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
	flex: none;
}
.wise-bf-bar-icon svg { width: 20px; height: 20px; }
.wise-bf-bar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wise-bf-bar-count { font-size: 12px; opacity: .75; }
.wise-bf-bar-total { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wise-bf-bar-action {
	padding: 10px 16px;
	border-radius: 11px;
	background: var(--wise-bf-primary);
	color: var(--wise-bf-text);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.wise-bf .wise-bf-bar:hover .wise-bf-bar-action { filter: brightness(1.08); }
@keyframes wise-bf-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) {
	.wise-bf .wise-bf-bar { left: auto; right: 24px; bottom: 24px; min-width: 340px; }
}

/* === Popup: selection > order form > confirmation === */
.wise-bf-modal {
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: min(88vh, 860px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	color: var(--wise-bf-ink);
	overflow: visible;
}
.wise-bf-modal:not([open]) { display: none; }
.wise-bf-modal[open] { animation: wise-bf-pop .22s ease both; }
.wise-bf-modal::backdrop { background: rgba(10, 12, 16, .6); backdrop-filter: blur(3px); }
@keyframes wise-bf-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.wise-bf-modal-panel {
	display: flex;
	flex-direction: column;
	max-height: inherit;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: hidden;
}
.wise-bf-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 14px 22px;
	border-bottom: 1px solid var(--wise-bf-line);
}
.wise-bf .wise-bf-modal-head h2 { font-size: 19px !important; }
.wise-bf .wise-bf-icon-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--wise-bf-soft) !important;
	color: var(--wise-bf-ink) !important;
	box-shadow: none !important;
	cursor: pointer;
	flex: none;
}
.wise-bf .wise-bf-icon-btn:hover { background: var(--wise-bf-line) !important; }
.wise-bf-modal-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.wise-bf-modal-foot {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--wise-bf-line);
	background: #fafbfc;
}
.wise-bf-modal-foot .wise-bf-btn-primary { flex: 1; max-width: 300px; margin-left: auto !important; }
.wise-bf-modal[data-view="done"] .wise-bf-modal-foot .wise-bf-btn-primary { max-width: none; }
@media (max-width: 600px) {
	/* Sheet coming from the bottom on phones */
	.wise-bf-modal { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
	.wise-bf-modal-panel { border-radius: 20px 20px 0 0; }
	.wise-bf-modal[open] { animation-name: wise-bf-sheet; }
	.wise-bf-modal-body { padding: 16px; }
	.wise-bf-modal-head { padding: 14px 14px 12px 16px; }
	.wise-bf-modal-foot { padding-left: 16px; padding-right: 16px; }
}
@keyframes wise-bf-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Selection lines */
.wise-bf-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 8px; text-align: center; color: var(--wise-bf-muted); font-size: 14.5px; }
.wise-bf-empty .wise-bf-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--wise-bf-soft); color: #b9bec7; }
.wise-bf-empty svg { width: 28px; height: 28px; }
.wise-bf-lines { list-style: none !important; padding: 0 !important; }
.wise-bf-lines li {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	grid-template-areas: "img info amount" "img step step";
	align-items: center;
	gap: 6px 12px;
	margin: 0 !important;
	padding: 12px 0;
	border-bottom: 1px solid var(--wise-bf-line);
}
.wise-bf-lines li:first-child { padding-top: 0; }
.wise-bf-line-img {
	grid-area: img;
	width: 56px;
	height: 56px;
	object-fit: contain;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid var(--wise-bf-line);
	background: #fff;
	align-self: start;
}
.wise-bf-line-img.wise-bf-placeholder svg { width: 26px; height: 26px; }
.wise-bf-line-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.wise-bf-line-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wise-bf-line-unit { font-size: 12.5px; color: var(--wise-bf-muted); font-variant-numeric: tabular-nums; }
.wise-bf-line-amount { grid-area: amount; font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.wise-bf-lines .wise-bf-stepper { grid-area: step; justify-self: start; min-height: 34px; }
.wise-bf .wise-bf-lines .wise-bf-stepper button { width: 34px; min-height: 32px; font-size: 17px !important; }
.wise-bf-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--wise-bf-soft);
	font-weight: 600;
}
.wise-bf-total strong { color: var(--wise-bf-primary); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.wise-bf-small { margin-top: 8px !important; font-size: 12.5px; color: var(--wise-bf-muted); }

/* Order form */
.wise-bf-recap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--wise-bf-tint);
	font-size: 14px;
	font-weight: 600;
}
.wise-bf-recap strong { color: var(--wise-bf-primary); font-size: 17px; font-weight: 900; }
.wise-bf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.wise-bf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wise-bf-field.is-wide { grid-column: 1 / -1; }
.wise-bf-field label { font-size: 13px; font-weight: 600; color: var(--wise-bf-ink); margin: 0 !important; }
.wise-bf-req { color: var(--wise-bf-primary); }
.wise-bf-opt { color: var(--wise-bf-muted); font-weight: 400; }
.wise-bf .wise-bf-field input, .wise-bf .wise-bf-field textarea {
	width: 100% !important;
	max-width: none !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 11px 13px !important;
	border: 1px solid #d5d8de !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--wise-bf-ink) !important;
	font-family: var(--wise-bf-font) !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wise-bf .wise-bf-field textarea { resize: vertical; }
.wise-bf .wise-bf-field input:focus, .wise-bf .wise-bf-field textarea:focus {
	border-color: var(--wise-bf-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wise-bf-primary) 14%, transparent) !important;
	outline: none !important;
}
.wise-bf-prefixed { display: flex; }
.wise-bf-prefixed > span {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--wise-bf-soft);
	border: 1px solid #d5d8de;
	border-right: 0;
	border-radius: 12px 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wise-bf-muted);
}
.wise-bf .wise-bf-prefixed input { border-radius: 0 12px 12px 0 !important; }
.wise-bf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.wise-bf-feedback { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.wise-bf-feedback:empty { min-height: 0; }
.wise-bf-feedback.is-error, .wise-bf-wheel-result.is-error { color: #c0262d; font-weight: 600; }

/* Confirmation */
.wise-bf-success { text-align: center; padding: 18px 6px 8px; }
.wise-bf-success-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wise-bf-success) 12%, #fff);
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--wise-bf-success) 6%, #fff);
	color: var(--wise-bf-success);
	font-size: 32px;
	font-weight: 900;
}
.wise-bf-success-text { font-size: 16px; }
.wise-bf-reference {
	display: inline-block;
	margin-top: 14px !important;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wise-bf-soft);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* === Wheel of fortune (bottom of the page) === */
.wise-bf-wheel {
	position: relative;
	margin-top: 48px;
	border-radius: 22px;
	background:
		radial-gradient(60% 80% at 15% 20%, color-mix(in srgb, var(--wise-bf-primary) 40%, transparent) 0, transparent 60%),
		radial-gradient(50% 70% at 95% 100%, color-mix(in srgb, var(--wise-bf-primary) 22%, transparent) 0, transparent 60%),
		var(--wise-bf-secondary);
	color: #fff;
	padding: 28px 18px;
	scroll-margin-top: 90px;
	overflow: hidden;
}
.wise-bf-wheel-inner { display: grid; gap: 24px; align-items: center; }
.wise-bf-wheel-stage { position: relative; width: min(100%, 340px); margin: 0 auto; }
.wise-bf-canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.wise-bf-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	z-index: 1;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 28px solid #fff;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}
.wise-bf .wise-bf-wheel h2 { color: #fff !important; font-size: 26px !important; }
.wise-bf-wheel-intro { margin-top: 8px !important; color: rgba(255, 255, 255, .78); }
.wise-bf-wheel-form { display: grid; gap: 14px; margin-top: 18px; }
.wise-bf .wise-bf-wheel .wise-bf-field label { color: rgba(255, 255, 255, .9); }
.wise-bf .wise-bf-wheel .wise-bf-opt { color: rgba(255, 255, 255, .55); }
.wise-bf .wise-bf-wheel .wise-bf-field input { border-color: transparent !important; }
.wise-bf .wise-bf-wheel .wise-bf-prefixed > span { border-color: transparent; }
.wise-bf-wheel-rules { font-size: 12px; color: rgba(255, 255, 255, .68); max-height: 120px; overflow: auto; }
.wise-bf-wheel-rules a { color: #fff; }
.wise-bf-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .9); cursor: pointer; margin: 0 !important; }
.wise-bf-accept input { width: 18px; height: 18px; margin: 2px 0 0 !important; accent-color: var(--wise-bf-primary); flex: none; }
.wise-bf-wheel-result:empty { display: none; }
.wise-bf-wheel-result { margin-top: 14px; }
.wise-bf-wheel-result.is-won {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
}
.wise-bf-prize { font-size: 21px; font-weight: 900; color: var(--wise-bf-gold); }
.wise-bf-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wise-bf-code strong {
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 18px;
	letter-spacing: .1em;
	background: #fff;
	color: var(--wise-bf-ink);
	padding: 5px 12px;
	border-radius: 9px;
	border: 2px dashed var(--wise-bf-primary);
}
.wise-bf-wheel .wise-bf-small { color: rgba(255, 255, 255, .7); }
.wise-bf-wheel-result .wise-bf-btn { justify-self: start; margin-top: 6px !important; }
.wise-bf-lost { font-size: 16px; color: rgba(255, 255, 255, .85); }

/* === Layout by width of the page content === */
@container wisebf (min-width: 820px) {
	.wise-bf-wheel { padding: 40px 44px; }
	.wise-bf-wheel-inner { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; }
	.wise-bf-wheel-stage { width: 360px; }
}
@container wisebf (max-width: 560px) {
	.wise-bf-band { padding: 9px 10px 9px 14px; }
	.wise-bf .wise-bf-title { font-size: 14px !important; }
	.wise-bf .wise-bf-subtitle { font-size: 12.5px; }
	.wise-bf-band-links { margin-left: 0; width: 100%; }
	.wise-bf-lang { margin-left: auto; }
	.wise-bf h2 { font-size: 21px !important; }
	.wise-bf-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wise-bf-media { padding: 10px; }
	.wise-bf-card-body { padding: 10px 11px 12px; }
	.wise-bf .wise-bf-name { font-size: 14px !important; }
	.wise-bf-price { font-size: 18px; }
	.wise-bf-features { display: none; }
	.wise-bf .wise-bf-add { padding: 10px 8px !important; font-size: 14px !important; }
	.wise-bf .wise-bf-add .wise-bf-icon { display: none; }
	.wise-bf-wheel { border-radius: 18px; }
	.wise-bf .wise-bf-wheel h2 { font-size: 22px !important; }
}
@container wisebf (max-width: 340px) {
	.wise-bf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.wise-bf-fields { grid-template-columns: 1fr; }
}

/* === Rotating banners === */
.wise-bf-slider { position: relative; margin: 0 0 14px; border-radius: var(--wise-bf-radius); overflow: hidden; background: var(--wise-bf-secondary); }
.wise-bf-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.wise-bf-slides::-webkit-scrollbar { display: none; }
.wise-bf-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.wise-bf-slide img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; user-select: none; }
.wise-bf .wise-bf-slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .85) !important;
	color: var(--wise-bf-ink) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2) !important;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease;
}
.wise-bf-slider:hover .wise-bf-slide-arrow, .wise-bf .wise-bf-slide-arrow:focus-visible { opacity: 1; }
.wise-bf .wise-bf-slide-arrow.is-prev { left: 12px; }
.wise-bf .wise-bf-slide-arrow.is-next { right: 12px; }
.wise-bf-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.wise-bf .wise-bf-dots button {
	width: 8px;
	height: 8px;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, .55) !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15) !important;
	cursor: pointer;
	transition: width .2s ease, background-color .2s ease;
}
.wise-bf .wise-bf-dots button[aria-current="true"] { width: 22px; background: #fff !important; }

/* === Offers between the side rails === */
.wise-bf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; }
.wise-bf-rail { min-width: 0; }
.wise-bf-rail-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wise-bf-decor { width: 100%; max-width: 170px; pointer-events: none; }
.wise-bf-rail.is-left, .wise-bf-rail .wise-bf-decor { display: none; }
.wise-bf-rail.is-right { order: -1; margin-top: 24px; }
.wise-bf-rail.is-right .wise-bf-rail-inner { align-items: stretch; }
.wise-bf-tiers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: none; }
.wise-bf-tiers::-webkit-scrollbar { display: none; }
.wise-bf-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border: 1.5px dashed color-mix(in srgb, var(--wise-bf-primary) 55%, transparent);
	border-radius: 12px;
	background: var(--wise-bf-tint);
	transition: background-color .2s ease, color .2s ease;
}
.wise-bf-tier-off { color: var(--wise-bf-primary); font-size: 18px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wise-bf-tier-from { font-size: 12.5px; color: var(--wise-bf-muted); }
.wise-bf-tier.is-reached { background: var(--wise-bf-primary); border-style: solid; border-color: var(--wise-bf-primary); }
.wise-bf-tier.is-reached .wise-bf-tier-off, .wise-bf-tier.is-reached .wise-bf-tier-from { color: var(--wise-bf-text); }
.wise-bf-tier.is-reached::after { content: "✓"; position: absolute; top: 8px; right: 10px; color: var(--wise-bf-text); font-weight: 900; }
.wise-bf .wise-bf-teaser {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wise-bf-ink) !important;
	cursor: pointer;
}
.wise-bf-teaser-wheel {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	border: 6px solid var(--wise-bf-secondary);
	box-shadow: 0 0 0 3px var(--wise-bf-gold), var(--wise-bf-shadow-lg);
	animation: wise-bf-turn 9s linear infinite;
}
.wise-bf-teaser-label { font-size: 15px; font-weight: 900; text-align: center; color: var(--wise-bf-primary); }
@keyframes wise-bf-turn { to { transform: rotate(360deg); } }

/* Periods (weeks) */
.wise-bf-periods { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px; }
.wise-bf-periods::-webkit-scrollbar { display: none; }
.wise-bf .wise-bf-period {
	flex: 1 0 170px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin: 0 !important;
	padding: 10px 14px !important;
	border: 1.5px solid var(--wise-bf-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: var(--wise-bf-ink) !important;
	text-align: left;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.wise-bf .wise-bf-period:hover { border-color: var(--wise-bf-primary) !important; }
.wise-bf .wise-bf-period.is-active { background: var(--wise-bf-secondary) !important; border-color: var(--wise-bf-secondary) !important; color: #fff !important; }
.wise-bf-period-dates { font-size: 13px; font-weight: 600; color: var(--wise-bf-primary); }
.wise-bf-period-name { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.wise-bf-period-status { font-size: 12px; color: var(--wise-bf-muted); }
.wise-bf-period.is-active .wise-bf-period-status { color: rgba(255, 255, 255, .7); }
.wise-bf-period.is-now .wise-bf-period-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--wise-bf-success); vertical-align: 1px; }
.wise-bf-period.is-done { opacity: .65; }

/* Search */
.wise-bf-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 200px; margin: 0 !important; color: var(--wise-bf-muted); }
.wise-bf-search .wise-bf-icon { position: absolute; left: 13px; pointer-events: none; }
.wise-bf .wise-bf-search-input {
	width: 100% !important;
	min-height: 42px;
	margin: 0 !important;
	padding: 9px 14px 9px 40px !important;
	border: 1px solid #d5d8de !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--wise-bf-ink) !important;
	font-family: var(--wise-bf-font) !important;
	font-size: 14.5px !important;
	box-shadow: none !important;
}
.wise-bf .wise-bf-search-input:focus { border-color: var(--wise-bf-primary) !important; outline: none !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wise-bf-primary) 14%, transparent) !important; }
.wise-bf-tabs + .wise-bf-grid, .wise-bf-section-head + .wise-bf-grid { margin-top: 0; }
.wise-bf-tabs { margin-bottom: 16px; }
.wise-bf-no-result { padding: 28px 16px; text-align: center; color: var(--wise-bf-muted); border: 1px dashed var(--wise-bf-line); border-radius: var(--wise-bf-radius); }

/* Amounts (cart and form) */
.wise-bf-summary { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--wise-bf-soft); font-size: 14px; }
.wise-bf-recap .wise-bf-summary { margin: 0 0 16px; background: var(--wise-bf-tint); }
.wise-bf-recap { display: block; margin: 0; padding: 0; background: none; }
.wise-bf-sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--wise-bf-muted); font-variant-numeric: tabular-nums; }
.wise-bf-sum-row.is-discount { color: var(--wise-bf-success); font-weight: 700; }
.wise-bf-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1px solid var(--wise-bf-line); font-weight: 700; }
.wise-bf-sum-total strong { color: var(--wise-bf-primary); font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.wise-bf-sum-hint { font-size: 12.5px; color: var(--wise-bf-warning); font-weight: 600; }

/* Delivery choice */
.wise-bf-delivery { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wise-bf-delivery legend { padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--wise-bf-ink); }
.wise-bf-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.wise-bf-choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.wise-bf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wise-bf-choice-box {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	gap: 2px 10px;
	padding: 12px 14px;
	border: 1.5px solid #d5d8de;
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}
.wise-bf-choice-box .wise-bf-icon { grid-row: 1 / 3; font-size: 22px; color: var(--wise-bf-muted); }
.wise-bf-choice-label { font-size: 14.5px; font-weight: 700; color: var(--wise-bf-ink); }
.wise-bf-choice-price { font-size: 13px; font-weight: 700; color: var(--wise-bf-success); font-variant-numeric: tabular-nums; }
.wise-bf-choice input:checked + .wise-bf-choice-box { border-color: var(--wise-bf-primary); background: var(--wise-bf-tint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--wise-bf-primary) 18%, transparent); }
.wise-bf-choice input:checked + .wise-bf-choice-box .wise-bf-icon { color: var(--wise-bf-primary); }
.wise-bf-choice input:focus-visible + .wise-bf-choice-box { outline: 3px solid color-mix(in srgb, var(--wise-bf-primary) 45%, transparent); outline-offset: 2px; }
.wise-bf .wise-bf-field select {
	width: 100% !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 10px 13px !important;
	border: 1px solid #d5d8de !important;
	border-radius: 12px !important;
	background-color: #fff !important;
	color: var(--wise-bf-ink) !important;
	font-family: var(--wise-bf-font) !important;
	font-size: 15px !important;
}
.wise-bf .wise-bf-field select:focus { border-color: var(--wise-bf-primary) !important; outline: none !important; }
.wise-bf-pickup-name { font-weight: 700; }
.wise-bf-pickup-details { font-size: 13px; color: var(--wise-bf-muted); white-space: pre-line; }

/* Large page: rails on each side of the offers, 3 cards or more per row */
@container wisebf (min-width: 1000px) {
	.wise-bf-layout.has-left { grid-template-columns: 150px minmax(0, 1fr); }
	.wise-bf-layout.has-right { grid-template-columns: minmax(0, 1fr) 190px; }
	.wise-bf-layout.has-left.has-right { grid-template-columns: 150px minmax(0, 1fr) 190px; }
	.wise-bf-rail.is-left, .wise-bf-rail .wise-bf-decor { display: block; }
	.wise-bf-rail.is-right { order: 0; margin-top: 0; }
	.wise-bf-rail { padding-top: 28px; }
	.wise-bf-rail .wise-bf-rail-inner { position: sticky; top: 100px; }
	.wise-bf-tiers { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}
@container wisebf (max-width: 560px) {
	.wise-bf-slider { border-radius: 12px; margin-bottom: 10px; }
	.wise-bf-slide img { aspect-ratio: 16 / 7; }
	.wise-bf .wise-bf-slide-arrow { display: none; }
	.wise-bf-search { flex-basis: 100%; }
	.wise-bf .wise-bf-period { flex-basis: 150px; padding: 8px 12px !important; }
	.wise-bf-tier-off { font-size: 16px; }
	.wise-bf-was { font-size: 12.5px; }
	.wise-bf-saving { font-size: 11px; }
}
/* === Page of the campaign: theme around it (body.wise-bf-page, set by the plugin) ===
 * No sidebar, whole width of the theme, no title of the theme nor breadcrumb. */
body.wise-bf-page #sidebar, body.wise-bf-page #secondary, body.wise-bf-page aside.sidebar { display: none !important; }
body.wise-bf-page #left-area, body.wise-bf-page #primary, body.wise-bf-page .content-area {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.wise-bf-page #main-content .container::before { display: none !important; }
body.wise-bf-page #main-content .container { padding-top: 24px !important; }
body.wise-bf-page .entry-title.main_title, body.wise-bf-page .page .entry-header .entry-title,
body.wise-bf-page .rank-math-breadcrumb, body.wise-bf-page .woocommerce-breadcrumb, body.wise-bf-page .yoast-breadcrumbs { display: none !important; }
body.wise-bf-page article.page { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* === Drawn decorations (theme of Odoo) === */
.wise-bf-decor-art { width: 100%; max-width: 180px; margin-top: -28px; pointer-events: none; }
.wise-bf-decor-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.wise-bf-swing { animation: wise-bf-swing 3.6s ease-in-out infinite alternate; }
@keyframes wise-bf-swing { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* === Wheel of fortune: small on the side, in a popup when clicked === */
.wise-bf .wise-bf-teaser { position: static; }
.wise-bf-rail.is-left .wise-bf-rail-inner { gap: 22px; }
.wise-bf .wise-bf-teaser:hover .wise-bf-teaser-wheel { animation-duration: 2.5s; }
.wise-bf-teaser-wheel { position: relative; }
.wise-bf-teaser-wheel::after {
	content: "";
	position: absolute;
	inset: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 5px var(--wise-bf-primary);
}
.wise-bf .wise-bf-wheel-fab {
	position: fixed;
	left: 14px;
	bottom: 86px;
	z-index: 99997;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 5px 14px 5px 5px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--wise-bf-secondary) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-transform: none !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .3) !important;
	cursor: pointer;
}
.wise-bf-wheel-fab .wise-bf-teaser-wheel { width: 44px; height: 44px; border-width: 3px; box-shadow: 0 0 0 2px var(--wise-bf-gold); }
.wise-bf-wheel-fab .wise-bf-teaser-wheel::after { width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 3px var(--wise-bf-primary); }
/* Shown while the left rail (with its small wheel) is not: page narrower than 1000 px. */
.wise-bf .wise-bf-wheel-fab { display: inline-flex; }
@container wisebf (min-width: 1000px) {
	.wise-bf .wise-bf-wheel-fab { display: none; }
}
.wise-bf-wheel-modal { width: min(860px, calc(100vw - 32px)); }
.wise-bf-wheel-panel { position: relative; max-height: inherit; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; background: var(--wise-bf-secondary); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.wise-bf-wheel-modal .wise-bf-wheel { margin-top: 0; border-radius: 22px; }
.wise-bf .wise-bf-wheel-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
@media (max-width: 600px) {
	.wise-bf-wheel-modal { width: 100vw; }
	.wise-bf-wheel-panel, .wise-bf-wheel-modal .wise-bf-wheel { border-radius: 20px 20px 0 0; }
	.wise-bf-wheel-modal .wise-bf-wheel-stage { width: min(100%, 260px); }
}

/* === Identity: shop price labels ===
 * Prices, amounts and titles in a condensed face (shelf price labels); the discount badge
 * is a hanging price tag, the discount tiers are cut-out coupons. The rest stays quiet. */
.wise-bf h2, .wise-bf .wise-bf-section-head h2 { font-family: var(--wise-bf-display) !important; font-weight: 800 !important; letter-spacing: 0 !important; }
.wise-bf h2 { font-size: 30px !important; }
.wise-bf .wise-bf-section-head h2::before { display: none; }
.wise-bf .wise-bf-name { font-size: 15.5px !important; font-weight: 600 !important; line-height: 1.25 !important; min-height: 2.5em; }
.wise-bf-card { box-shadow: none; transition: border-color .15s ease; }
.wise-bf-card.is-selected { box-shadow: 0 0 0 2px var(--wise-bf-primary); }
.wise-bf-media { background: var(--wise-bf-soft); }
.wise-bf-media img { transition: none; }

.wise-bf-price { font-family: var(--wise-bf-display); font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: 0; }
.wise-bf-cur { font-size: .55em; font-weight: 700; margin-left: .2em; letter-spacing: .02em; }
.wise-bf-was { font-size: 14.5px; }
.wise-bf-saving { background: none; padding: 0; color: var(--wise-bf-success); font-weight: 600; font-size: 13px; min-height: 1.5em; }

/* Price tag: notched label with its hole */
.wise-bf-badge {
	top: 14px;
	left: 0;
	padding: 6px 12px 6px 20px;
	border-radius: 0 6px 6px 0;
	font-family: var(--wise-bf-display);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: .01em;
	box-shadow: none;
	clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%);
}
.wise-bf-badge::before {
	content: "";
	position: absolute;
	left: 9px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: #fff;
}

/* Buttons of the cards: one line, whatever the width of the card */
.wise-bf-card { container-type: inline-size; }
.wise-bf .wise-bf-add { white-space: nowrap; padding: 10px 14px !important; font-size: 15px !important; border-radius: 10px !important; }
.wise-bf .wise-bf-add span:last-child { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 250px) {
	.wise-bf .wise-bf-add .wise-bf-icon { display: none; }
	.wise-bf .wise-bf-add { font-size: 14px !important; padding: 10px 8px !important; }
	.wise-bf-price { font-size: 26px; }
}

/* Discount tiers: cut-out coupons (notches on each side) */
.wise-bf-tier {
	gap: 0;
	padding: 14px 20px;
	border: 0;
	border-radius: 10px;
	background: color-mix(in srgb, var(--wise-bf-primary) 9%, #fff);
	-webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
		radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.wise-bf-tier::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	top: 50%;
	border-top: 1.5px dashed color-mix(in srgb, var(--wise-bf-primary) 30%, transparent);
	opacity: 0;
}
.wise-bf-tier-off { font-family: var(--wise-bf-display); font-size: 28px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.wise-bf-tier-from { font-size: 13px; line-height: 1.3; color: var(--wise-bf-ink); }
.wise-bf-tier.is-reached { background: var(--wise-bf-primary); border: 0; }
.wise-bf-tier.is-reached::after { top: 10px; right: 16px; }

/* Band: title in the condensed face, sentence case */
.wise-bf-unit strong { font-family: var(--wise-bf-display); font-size: 17px; }
.wise-bf-period-name { font-family: var(--wise-bf-display); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.wise-bf-sum-total strong, .wise-bf-bar-total { font-family: var(--wise-bf-display); letter-spacing: 0; }
.wise-bf-sum-total strong { font-size: 24px; }
.wise-bf-teaser-label { font-family: var(--wise-bf-display); font-size: 19px; }
@container wisebf (max-width: 560px) {
	.wise-bf h2 { font-size: 26px !important; }
	.wise-bf .wise-bf-title { font-size: 18px !important; }
	.wise-bf-price { font-size: 24px; }
	.wise-bf-badge { font-size: 16px; padding: 5px 10px 5px 18px; }
	.wise-bf .wise-bf-name { font-size: 14px !important; }
	.wise-bf-tier { padding: 12px 18px; }
	.wise-bf-tier-off { font-size: 22px; }
}

/* Room for the bar fixed at the bottom */
.wise-bf[data-state="running"] { padding-bottom: 80px; }

@media (prefers-reduced-motion: reduce) {
	.wise-bf-card, .wise-bf .wise-bf-btn, .wise-bf-media img { transition: none; }
	.wise-bf-teaser-wheel, .wise-bf-swing { animation: none; }
	.wise-bf-slides { scroll-behavior: auto; }
	.wise-bf-card:hover, .wise-bf-card:hover .wise-bf-media img { transform: none; }
	.wise-bf-modal[open], .wise-bf .wise-bf-bar { animation: none; }
}
