/*
  Blessed Friday 15% promo. All UI is position:fixed so the promo never
  touches document layout (no CLS). The dot banner / counter is drawn into
  a <canvas>, which sits inside a fixed-position slot that itself doesn't
  intercept pointer events except on its interactive children.
*/

/* Host that holds everything. */
#pk-bf-root { position: fixed; inset: 0; pointer-events: none; z-index: 10000; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
#pk-bf-root[hidden], #pk-bf-root *[hidden] { display: none !important; }

/* Desktop banner (274 x 108) / phone counter (150 x 58) / tablet counter (190 x 72). */
#pk-bf-slot {
	position: absolute;
	bottom: 20px; left: 20px;
	border-radius: 16px;
	background: #0B0F14;
	box-shadow: 0 20px 40px rgba(11,15,20,.35);
	overflow: hidden;
	transform: translateY(160px);
	opacity: 0;
	transition: transform .55s cubic-bezier(.34,1.3,.5,1), opacity .25s ease,
		width .42s cubic-bezier(.34,1.2,.5,1), height .42s cubic-bezier(.34,1.2,.5,1);
	pointer-events: auto;
	cursor: pointer;
}
#pk-bf-slot[data-mode="in"] { transform: translateY(0); opacity: 1; }
#pk-bf-slot[data-mode="hidden"] { transform: translateY(160px); opacity: 0; pointer-events: none; }

/* The small "BLESSED FRIDAY" label (desktop only; phone/tablet versions
   paint the label as part of the dot canvas when the card opens up). */
#pk-bf-slot .pk-bf-label {
	position: absolute; left: 18px; top: 13px;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 11px; letter-spacing: .14em;
	color: #C9D1DA;
	pointer-events: none;
}

/* Static label used on the phone/tablet counter while it's still counting
   (the dot canvas covers the number itself; this covers "Get 15% Discount"). */
#pk-bf-slot .pk-bf-stat {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; color: #fff;
	pointer-events: none; line-height: 1.15; text-align: left;
}

#pk-bf-slot canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

/* × on the banner / counter plate. */
#pk-bf-slot .pk-bf-x {
	position: absolute; right: 2px; top: 2px;
	width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: #C9D1DA;
	font-size: 18px; line-height: 1; cursor: pointer;
}
#pk-bf-slot .pk-bf-x:hover { background: rgba(255,255,255,.08); }

/* Pill that replaces the desktop banner when × is clicked. */
#pk-bf-pill {
	position: absolute; left: 20px; bottom: 20px;
	min-height: 44px; padding: 0 16px;
	border: 0; border-radius: 999px;
	background: #0B0F14; color: #F6B100;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 14px; letter-spacing: .02em;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(11,15,20,.3);
	pointer-events: auto;
}
#pk-bf-pill:hover { background: #1a222d; }

/* Form modal — floats over everything, dims the page. */
.pk-bf-modal {
	position: fixed; inset: 0; z-index: 10001;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	pointer-events: auto;
}
.pk-bf-backdrop {
	position: absolute; inset: 0;
	background: rgba(11,15,20,.55);
	animation: pk-bf-fade .2s ease;
}
.pk-bf-card {
	position: relative;
	width: 340px; max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	padding: 24px 22px;
	border-radius: 20px;
	background: #fff; color: #0B0F14;
	box-shadow: 0 30px 70px rgba(11,15,20,.32);
	animation: pk-bf-up .28s cubic-bezier(.34,1.2,.5,1);
}
@keyframes pk-bf-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pk-bf-up  { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }

.pk-bf-x,
.pk-bf-card > .pk-bf-x {
	position: absolute; right: 10px; top: 10px;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: #5B6470;
	font-size: 22px; line-height: 1; cursor: pointer;
}
.pk-bf-card > .pk-bf-x:hover { background: #F4F7FB; }

.pk-bf-eyebrow {
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 11px; letter-spacing: .16em;
	color: #106fb5;
}
.pk-bf-title {
	margin-top: 4px; padding-right: 32px;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 26px; line-height: 1.08; letter-spacing: -.03em;
}

.pk-bf-fields { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pk-bf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-bf-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pk-bf-field { display: block; }
.pk-bf-field > span {
	display: block;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 700; font-size: 12.5px; color: #283039;
}
.pk-bf-field input,
.pk-bf-field select {
	display: block; width: 100%; box-sizing: border-box;
	margin-top: 4px; padding: 10px;
	border: 1.5px solid #E7ECF2; border-radius: 10px;
	background: #F4F7FB;
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px; /* keeps iOS Safari from zooming on focus */
	color: #0B0F14;
	-webkit-appearance: none;
	appearance: none;
}
.pk-bf-field input:focus,
.pk-bf-field select:focus { outline: 2px solid #106fb5; outline-offset: 1px; border-color: #106fb5; }
.pk-bf-grid4 .pk-bf-field:last-child select { padding-left: 2px; padding-right: 2px; text-align: center; }

.pk-bf-alert {
	margin-top: 4px; min-height: 0;
	font-size: 13.5px; line-height: 1.4; color: #c62a2f;
}
.pk-bf-alert:empty { margin-top: 0; }

/* Turnstile widget already has its own styles from inc/turnstile.php. */
.pk-bf-form .cf-turnstile { margin-top: 10px; }

.pk-bf-honeypot {
	position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px;
	overflow: hidden;
}

.pk-bf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; margin-top: 10px;
	padding: 0 20px; width: 100%;
	border: 0; border-radius: 999px;
	background: #F6B100; color: #0B0F14;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 15px;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.pk-bf-btn:hover { background: #ffc01c; }
.pk-bf-btn:active { transform: translateY(1px); }
.pk-bf-btn[disabled] { opacity: .6; cursor: progress; }
.pk-bf-btn--ghost { background: #0B0F14; color: #fff; }
.pk-bf-btn--ghost:hover { background: #1a222d; }

.pk-bf-success .pk-bf-done-text {
	margin: 10px 0 0;
	font-size: 15px; line-height: 1.5; color: #5B6470;
}

/* Honour reduced-motion: no springy card entrance, no slide on the slot. */
@media (prefers-reduced-motion: reduce) {
	#pk-bf-slot { transition: opacity .2s ease; transform: none; }
	.pk-bf-card { animation: none; }
	.pk-bf-backdrop { animation: none; }
}

.pk-bf-help { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: #5B6470; }

/* ---- Blessed Friday · countdown aside ---- */
/* Shell wraps the aside + the card. On tablet/desktop they sit side by side
   with no gap and one shadow. On phone the aside collapses to a compact
   top strip, so the card itself stays 340px and the mobile stack is calm. */
.pk-bf-shell {
	position: relative;
	display: flex;
	align-items: stretch;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 30px 70px rgba(11,15,20,.32);
	animation: pk-bf-up .28s cubic-bezier(.34,1.2,.5,1);
}
/* Reset the card's own float-card styling now that the shell owns the shadow
   and radius. The card still draws the right half. */
.pk-bf-shell .pk-bf-card {
	animation: none;
	box-shadow: none;
	border-radius: 0;
	max-width: none;
	max-height: none;
	width: 340px;
	flex: none;
	overflow: auto;
}

/* The aside itself. 180px on desktop/tablet, left of the card. */
.pk-bf-aside {
	flex: none;
	width: 180px;
	background: radial-gradient(130% 110% at 20% 0%, #182333 0%, #0B0F14 70%);
	color: #fff;
	padding: 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.pk-bf-aside-top {
	font-weight: 800; font-size: 10px; letter-spacing: .2em; color: #c9d1da;
}
.pk-bf-aside-head {
	margin: 4px 0 0;
	font-weight: 800; font-size: 18px; line-height: 1.05; letter-spacing: -.02em;
	color: #fff;
}
.pk-bf-aside-head em { font-style: normal; color: #F6B100; }
.pk-bf-aside-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.pk-bf-tile {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 8px;
	padding: 8px 4px 6px;
	text-align: center;
	display: flex; flex-direction: column; gap: 2px;
}
.pk-bf-tile-n {
	color: #fff; font-weight: 900; font-size: 22px; line-height: 1;
	letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.pk-bf-tile-l {
	color: #8a94a3; font-weight: 700; font-size: 8.5px; letter-spacing: .14em;
}
.pk-bf-aside-foot {
	margin: auto 0 0 0;
	color: #8a94a3; font-size: 10.5px; line-height: 1.4;
	font-family: 'Inter', sans-serif; font-weight: 400;
}

/* Phone: aside becomes a top strip so the 340px card still has its full width
   on the stack. The countdown layout flattens to one row with a dot between
   the label and the tiles. */
@media (max-width: 640px) {
	.pk-bf-shell {
		flex-direction: column;
		max-width: calc(100vw - 24px);
	}
	.pk-bf-shell .pk-bf-card {
		width: 100%;
		max-width: 340px;
	}
	.pk-bf-aside {
		width: 100%;
		padding: 14px 16px;
		gap: 10px;
	}
	.pk-bf-aside-head { display: none; }
	.pk-bf-aside-foot { display: none; }
	.pk-bf-aside-top {
		display: flex; align-items: center; gap: 10px; font-size: 9.5px;
	}
	.pk-bf-aside-top::after {
		content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.14);
	}
	.pk-bf-aside-tiles { gap: 6px; }
	.pk-bf-tile { padding: 6px 4px 5px; }
	.pk-bf-tile-n { font-size: 18px; }
}

/* Reduced motion respects the no-slide guideline: shell entrance stays calm. */
@media (prefers-reduced-motion: reduce) {
	.pk-bf-shell { animation: none; }
}

/* ---- Aside brand block (top of the aside) ---- */
.pk-bf-aside-brand { display: flex; flex-direction: column; gap: 6px; }
.pk-bf-aside-eyebrow {
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 11px; letter-spacing: .18em; color: #c9d1da;
}
.pk-bf-aside-title {
	margin: 0;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	font-weight: 800; font-size: 24px; line-height: 1.04; letter-spacing: -.028em;
	color: #fff;
}
/* Countdown block sits at the bottom of the aside. */
.pk-bf-aside-count {
	margin: auto 0;
	display: flex; flex-direction: column; gap: 10px;
}
/* Clear the old foot auto-push (now the whole count block does the pushing). */
.pk-bf-aside-foot { margin: auto 0 0 0 !important; }

/* Phone: compact top strip - brand condenses, countdown sits inline on one row. */
@media (max-width: 640px) {
	.pk-bf-aside-brand { gap: 2px; }
	.pk-bf-aside-title { font-size: 20px; }
	.pk-bf-aside-count {
		margin-top: 10px;
		gap: 8px;
	}
	.pk-bf-aside-count .pk-bf-aside-head { display: none; }
}

/* Reorder: only tiles centered, OFFER ENDS block pinned to bottom. */
.pk-bf-shell .pk-bf-aside > .pk-bf-aside-tiles { margin: auto 0; }
.pk-bf-aside-bottom { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.pk-bf-aside-bottom .pk-bf-aside-foot { margin: 6px 0 0 0 !important; }

/* Phone: hide the bottom OFFER ENDS group */
@media (max-width: 640px) {
	.pk-bf-aside-bottom { display: none; }
	.pk-bf-shell .pk-bf-aside > .pk-bf-aside-tiles { margin: 0; }
}

/* Phone: scale down banner */
@media (max-width: 640px) {
	#pk-bf-slot { transform-origin: 0 100%; transform: scale(.88); }
	#pk-bf-slot[data-mode="in"] { transform: translateY(0) scale(.88); }
	#pk-bf-slot[data-mode="hidden"] { transform: translateY(160px) scale(.88); }
}
