/* PeakNow – Black Friday / Cyber Monday 2026 */
:root {
	--pn-bfcm-h: 0px;
	--pn-bfcm-brand: #5246b8;
	--pn-bfcm-brand-2: #8b7cf6;
	--pn-bfcm-ink: #0f0d1f;
	--pn-bfcm-soft: #f3f1ff;
}

/* Push the page and the fixed theme header down by the promo bar height. */
body.pn-bfcm-on { padding-top: var(--pn-bfcm-h); }
body.pn-bfcm-on header.header { top: var(--pn-bfcm-h) !important; }
body.admin-bar.pn-bfcm-on header.header { top: calc(var(--pn-bfcm-h) + 32px) !important; }

/* The 10%-off newsletter popup sits out the sale (its code wouldn't work anyway). */
body.pn-bfcm-on #peak-coupon-popup { display: none !important; }

.pn-bfcm-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	font-family: var(--font-family, Avenir, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
}
.admin-bar .pn-bfcm-top { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .pn-bfcm-top { top: 46px; }
	body.admin-bar.pn-bfcm-on header.header { top: calc(var(--pn-bfcm-h) + 46px) !important; }
}

/* ---------- Skinny banner ---------- */
.pn-bfcm-banner {
	background: var(--pn-bfcm-ink);
	color: #fff;
	text-align: center;
}
.pn-bfcm-top--cm .pn-bfcm-banner {
	background: linear-gradient(90deg, #2a1f7a, var(--pn-bfcm-brand) 50%, #2a1f7a);
}
.pn-bfcm-banner__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	min-height: 36px;
	padding: 6px 14px;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: .01em;
}
.pn-bfcm-banner__tag {
	display: inline-block;
	padding: 4px 8px 2px;
	border-radius: 4px;
	background: var(--pn-bfcm-brand);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.pn-bfcm-top--cm .pn-bfcm-banner__tag { background: #fff; color: var(--pn-bfcm-brand); }
.pn-bfcm-banner__text strong { color: #c9c1ff; font-weight: 800; }
.pn-bfcm-top--cm .pn-bfcm-banner__text strong { color: #fff; }
.pn-bfcm-banner__cta {
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pn-bfcm-banner__code {
	padding: 1px 8px;
	border: 1px dashed rgba(255, 255, 255, .7);
	border-radius: 4px;
	font-size: 13px;
}
.pn-bfcm-banner__code[hidden] { display: none; }

/* ---------- Progress bar ---------- */
.pn-bfcm-progress {
	background: var(--pn-bfcm-soft);
	border-bottom: 1px solid #e3dfff;
	color: var(--pn-bfcm-ink);
}
.pn-bfcm-progress[hidden] { display: none; }
.pn-bfcm-progress__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 960px;
	margin: 0 auto;
	padding: 7px 16px 8px;
}
.pn-bfcm-progress__msg {
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}
.pn-bfcm-progress__msg strong { color: var(--pn-bfcm-brand); font-weight: 800; }
.pn-bfcm-progress__track {
	position: relative;
	flex: 1 1 260px;
	max-width: 360px;
	height: 8px;
	margin: 0 12px 10px 0;
	border-radius: 99px;
	background: #dcd7fb;
}
.pn-bfcm-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--pn-bfcm-brand-2), var(--pn-bfcm-brand));
	transition: width .5s ease;
}
.pn-bfcm-progress__tick {
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #b9b1f3;
	box-shadow: 0 0 0 1px #cfc9f8;
}
.pn-bfcm-progress__tick.is-reached { background: var(--pn-bfcm-brand); }
.pn-bfcm-progress__tick em {
	position: absolute;
	top: 11px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	color: #6b6596;
}
.pn-bfcm-progress__tick.is-reached em { color: var(--pn-bfcm-brand); }

@media (max-width: 640px) {
	.pn-bfcm-hide-sm { display: none; }
	.pn-bfcm-banner__link { gap: 8px; font-size: 13px; min-height: 32px; padding: 5px 10px; }
	.pn-bfcm-progress__inner { flex-direction: column; gap: 4px; padding: 6px 14px 4px; }
	.pn-bfcm-progress__msg { white-space: normal; text-align: center; font-size: 12.5px; }
	.pn-bfcm-progress__track { width: calc(100% - 24px); max-width: none; flex: none; margin: 2px 0 13px; }
}

/* ---------- Popup ---------- */
.pn-bfcm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--font-family, Avenir, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	opacity: 0;
	transition: opacity .2s ease;
}
.pn-bfcm-modal[hidden] { display: none; }
.pn-bfcm-modal.is-open { opacity: 1; }
.pn-bfcm-modal__overlay { position: absolute; inset: 0; background: rgba(15, 13, 31, .62); }
.pn-bfcm-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 34px 30px 24px;
	border-radius: 20px;
	background: radial-gradient(120% 80% at 50% 0%, #2e2479 0%, var(--pn-bfcm-ink) 70%);
	color: #fff;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	transform: translateY(12px);
	transition: transform .25s ease;
}
.pn-bfcm-modal.is-open .pn-bfcm-modal__dialog { transform: none; }
.pn-bfcm-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 22px;
	line-height: 34px;
	cursor: pointer;
}
.pn-bfcm-modal__close:hover { background: rgba(255, 255, 255, .2); }
.pn-bfcm-modal__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 6px 10px 4px;
	border-radius: 4px;
	background: var(--pn-bfcm-brand);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.pn-bfcm-modal__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
}
.pn-bfcm-modal [data-pn-bfcm-variant] { display: none; }
.pn-bfcm-modal[data-variant="entry"] [data-pn-bfcm-variant="entry"],
.pn-bfcm-modal[data-variant="exit"] [data-pn-bfcm-variant="exit"] { display: inline; }
.pn-bfcm-modal__sub { margin: 0 auto 18px; max-width: 340px; color: #d9d5f5; font-size: 15px; line-height: 1.45; }
.pn-bfcm-modal__sub strong { color: #fff; }
.pn-bfcm-modal__sub[hidden], .pn-bfcm-modal__progress[hidden], .pn-bfcm-code[hidden] { display: none; }
.pn-bfcm-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.pn-bfcm-tiers li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 12px 6px;
	border: 1px solid rgba(201, 193, 255, .35);
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
}
.pn-bfcm-tiers li:last-child { border-color: #c9c1ff; background: rgba(139, 124, 246, .22); }
.pn-bfcm-tiers span { color: #d9d5f5; font-size: 13px; }
.pn-bfcm-tiers strong { font-size: 22px; font-weight: 800; line-height: 1.1; }
.pn-bfcm-modal__progress {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	font-size: 14px;
}
.pn-bfcm-modal__btn {
	display: block;
	padding: 14px 20px;
	border-radius: 999px;
	background: #fff;
	color: var(--pn-bfcm-ink) !important;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none !important;
	transition: transform .15s ease, background .15s ease;
}
.pn-bfcm-modal__btn:hover { background: #ece9ff; transform: translateY(-1px); }
.pn-bfcm-modal__fine { margin: 14px 0 0; color: #a9a3cf; font-size: 11px; line-height: 1.45; }
.pn-bfcm-code { margin: 0 0 18px; }
.pn-bfcm-code__label { display: block; margin-bottom: 6px; color: #d9d5f5; font-size: 13px; }
.pn-bfcm-code__btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 10px 18px;
	border: 2px dashed #c9c1ff;
	border-radius: 12px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	cursor: pointer;
	font: inherit;
}
.pn-bfcm-code__btn strong { font-size: 22px; letter-spacing: .08em; }
.pn-bfcm-code__btn span {
	padding: 6px 10px 4px;
	border-radius: 6px;
	background: #fff;
	color: var(--pn-bfcm-ink);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}
body.pn-bfcm-modal-open { overflow: hidden; }

@media (max-width: 480px) {
	.pn-bfcm-modal__dialog { padding: 30px 18px 20px; }
	.pn-bfcm-modal__title { font-size: 25px; }
	.pn-bfcm-tiers strong { font-size: 19px; }
}

/* ---------- Unlocked-tier prices ---------- */
.pn-bfcm-price del { opacity: .55; font-weight: 400; margin-right: 2px; text-decoration-thickness: 1px; }
.pn-bfcm-price ins { text-decoration: none; }
.pn-bfcm-price ins .amount { color: var(--pn-bfcm-brand); font-weight: 800; }
.pn-bfcm-pricetag {
	display: inline-block;
	margin-left: 4px;
	padding: 3px 6px 1px;
	border-radius: 4px;
	background: var(--pn-bfcm-brand);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}
.pn-bfcm-then { font-size: .92em; opacity: .8; white-space: nowrap; }

/* ---------- Checkout summary during Black Friday ---------- */
body.pn-bfcm-bf .pnlx-order form.pnlx-o-code { display: none !important; }
.pn-bfcm-codenote {
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 10px;
	background: var(--pn-bfcm-soft);
	color: #3b3570;
	font-size: 12.5px;
	line-height: 1.4;
}

/* ---------- Preview badge (preview browser only) ---------- */
.pn-bfcm-preview {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 100001;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	max-width: calc(100vw - 100px);
	padding: 8px 12px;
	border-radius: 10px;
	background: #ffde59;
	color: #111;
	font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.pn-bfcm-preview a { color: #111 !important; text-decoration: underline !important; }
