:root {
	--psh-pc-primary: #16303F;
	--psh-pc-accent: #2BB6EA;
	--psh-pc-accent-dark: #2395c0;
	--psh-pc-cta: #16303F;
	--psh-pc-cta-dark: #0f232d;
	--psh-pc-bg-on: #F2F8FC;
	--psh-pc-bg-off: #ffffff;
	--psh-pc-border: #d8e0e8;
	--psh-pc-radius: 16px;
	--psh-pc-badge-top: #e74c3c;
	--psh-pc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	/* Sales price typography -- overridable from the Design panel. */
	--psh-pc-price-size: 28px;
	--psh-pc-price-weight: 800;
	--psh-pc-price-tracking: -.8px;
	--psh-pc-muted: #6b7780;
	--psh-pc-strike: #9aa3aa;
	--psh-pc-ring: #cfd6dd;
}

.psh-pc {
	font-family: var(--psh-pc-font);
	max-width: 560px;
	margin: 0 auto;
	color: var(--psh-pc-primary);
}

.psh-pc *,
.psh-pc *::before,
.psh-pc *::after {
	box-sizing: border-box;
}

.psh-pc__cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ---------------------------------------------------------------- card */

.psh-pc__card {
	position: relative;
	display: grid;
	grid-template-columns: 22px 1fr auto;
	grid-auto-rows: min-content;
	gap: 6px 12px;
	align-items: baseline;
	padding: 20px 22px;
	background: var(--psh-pc-bg-off);
	border: 2px solid var(--psh-pc-border);
	border-radius: var(--psh-pc-radius);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	transition: border-color .2s ease, background-color .2s ease;
}

.psh-pc__card:hover {
	border-color: var(--psh-pc-accent);
}

.psh-pc__card:focus-visible {
	outline: 2px solid var(--psh-pc-accent);
	outline-offset: 2px;
}

/* Selected: near-black border + tinted background (buy-box design). */
.psh-pc__card--on {
	border-color: var(--psh-pc-primary);
	background: var(--psh-pc-bg-on);
}

.psh-pc__card--oos {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ------------------------------------------------------------ radio dot */

.psh-pc__indicator {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--psh-pc-ring);
	background: #fff;
	position: relative;
	transition: border-color .2s ease;
}

.psh-pc__card--on .psh-pc__indicator {
	border-color: var(--psh-pc-primary);
}

.psh-pc__card--on .psh-pc__indicator::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--psh-pc-accent);
}

/* ------------------------------------------------------- title column */

.psh-pc__main {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.psh-pc__headline {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.psh-pc__label {
	font-size: 13px;
	color: var(--psh-pc-muted);
	flex: 0 0 100%;
}

/* Savings + badge pills (inline, next to the headline). */
.psh-pc__savings,
.psh-pc__badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--psh-pc-accent);
	padding: 6px 12px;
	border-radius: 999px;
	letter-spacing: .2px;
	white-space: nowrap;
}

.psh-pc__badge {
	background: var(--psh-pc-accent-dark);
}

.psh-pc__badge--top {
	background: var(--psh-pc-badge-top);
}

/* -------------------------------------------------------- price block */

.psh-pc__prices {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

/* Reference stacks the compare-at ABOVE the price, right-aligned; it used to
   sit beside the price on one baseline, which widened the column and squeezed
   the headline row until the pills wrapped to a second line. */
.psh-pc__price-row {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: flex-end;
	gap: 8px;
}

.psh-pc__strike {
	order: 1;
	font-size: 13px;
	white-space: nowrap;
	line-height: 1.2;
	color: var(--psh-pc-strike);
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.psh-pc__total {
	order: 2;
	font-size: var(--psh-pc-price-size, 28px);
	font-weight: var(--psh-pc-price-weight, 800);
	line-height: 1.05;
	letter-spacing: var(--psh-pc-price-tracking, -.8px);
}

/* Reference renders "$1.50/night": the figure is the readable one, the
   period is muted, and there is no space around the slash. */
.psh-pc__unit {
	font-size: 14px;
	font-weight: 600;
	color: var(--psh-pc-primary);
	margin-top: 1px;
	opacity: .82;
}

.psh-pc__unit-suffix {
	font-weight: 500;
	color: var(--psh-pc-strike);
	opacity: 1;
}

/* ----------------------------------------------------------- benefits */

.psh-pc__benefits {
	grid-column: 2 / -1;
	list-style: none;
	margin: 2px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.psh-pc__benefit {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 16px;
	line-height: 1.35;
}

.psh-pc__benefit--strong {
	font-weight: 700;
}

.psh-pc__tick {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 2px;
}

/* ------------------------------------------- message / oos (legacy) */

.psh-pc__msg {
	grid-column: 2 / -1;
	font-size: 13px;
	font-weight: 600;
	color: var(--psh-pc-message, #4b5862);
}

/* Palette-driven (was a hardcoded red that read as off-brand on Aetivia). */
.psh-pc__msg--effect {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--psh-pc-message-bg, var(--psh-pc-bg-on));
	color: var(--psh-pc-message, var(--psh-pc-primary));
	width: fit-content;
}

.psh-pc__msg-plus {
	font-weight: 700;
}

.psh-pc__msg-effect {
	font-weight: 600;
}

.psh-pc__oos {
	grid-column: 2 / -1;
	font-size: 12px;
	color: #b04545;
	font-weight: 600;
}

/* ----------------------------------------------------------------- cta */

.psh-pc__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 18px 22px;
	background: var(--psh-pc-cta);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font: 800 15px/1.1 var(--psh-pc-font);
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}

.psh-pc__cta:hover {
	background: var(--psh-pc-cta-dark);
}

.psh-pc__cta:focus-visible {
	outline: 2px solid var(--psh-pc-primary);
	outline-offset: 3px;
}

/* Flex items eat leading whitespace, so the separator gap has to be a box
   offset, not a space character in the JS string. */
.psh-pc__cta-total:not(:empty) {
	white-space: nowrap;
	margin-left: 6px;
}

.psh-pc__cta-save {
	white-space: nowrap;
	margin-left: 6px;
}

/* -------------------------------------------------------------- states */

.psh-pc__err {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fdecea;
	color: #b04545;
	border: 1px solid #f5c2c0;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.psh-pc--loading .psh-pc__cta {
	opacity: 0.6;
	cursor: progress;
	pointer-events: none;
}

/* --------------------------------------------------------- responsive */

@media (max-width: 480px) {
	.psh-pc {
		max-width: 100%;
	}

	.psh-pc__card {
		padding: 16px 16px;
	}

	.psh-pc__headline {
		font-size: 17px;
	}

	.psh-pc__total {
		font-size: 24px;
	}

	.psh-pc__strike {
		font-size: 12px;
	}

	.psh-pc__cta {
		padding: 16px 18px;
		font-size: 14px;
	}

	.psh-pc__unit {
		font-size: 13px;
	}

	.psh-pc__benefit {
		font-size: 15px;
	}
}

/* ---- per-tier add-ons: the buy-box bump ---------------------------------- */
.psh-pc .psh-pc__tier {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
}
.psh-pc .psh-pc__addons {
	display: none;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}
.psh-pc .psh-pc__tier--on .psh-pc__addons {
	display: flex;
}
.psh-pc .psh-pc__addon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--psh-pc-border);
	border-radius: 8px;
	background: var(--psh-pc-bg-off);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.psh-pc .psh-pc__addon:hover {
	border-color: var(--psh-pc-accent);
}
.psh-pc .psh-pc__addon-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.psh-pc .psh-pc__addon-check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid var(--psh-pc-border);
	border-radius: 50%;
	background: #fff;
	position: relative;
}
.psh-pc .psh-pc__addon-input:focus-visible + .psh-pc__addon-check {
	outline: 2px solid var(--psh-pc-accent);
	outline-offset: 2px;
}
.psh-pc .psh-pc__addon-input:checked + .psh-pc__addon-check {
	border-color: var(--psh-pc-accent);
	background: var(--psh-pc-accent);
}
.psh-pc .psh-pc__addon-input:checked + .psh-pc__addon-check::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
}
.psh-pc .psh-pc__addon-thumb img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
}
.psh-pc .psh-pc__addon-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.psh-pc .psh-pc__addon-label {
	font-weight: 600;
	color: var(--psh-pc-primary);
}
.psh-pc .psh-pc__addon-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--psh-pc-badge-top);
	color: #fff;
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .02em;
}
.psh-pc .psh-pc__addon-msg {
	font-size: .85em;
	opacity: .8;
}
.psh-pc .psh-pc__addon-prices {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}
.psh-pc .psh-pc__addon-was {
	font-size: .85em;
	text-decoration: line-through;
	opacity: .6;
}
.psh-pc .psh-pc__addon-price {
	font-weight: 700;
	color: var(--psh-pc-primary);
}

/* ---- order bumps: paid toggle is a checkmark, free bonuses are sticky ---- */
.psh-pc .psh-pc__addon-check {
	border-radius: 4px;
	background: #fff;
	transition: background .15s ease, border-color .15s ease;
}
.psh-pc .psh-pc__addon-input:checked + .psh-pc__addon-check {
	background: var(--psh-pc-accent);
	border-color: var(--psh-pc-accent);
}
.psh-pc .psh-pc__addon-input:checked + .psh-pc__addon-check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border-radius: 0;
	background: none;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
.psh-pc .psh-pc__addon--free {
	cursor: default;
}
.psh-pc .psh-pc__addon--free:hover {
	border-color: var(--psh-pc-border);
}
.psh-pc .psh-pc__addon-lock {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	background: transparent;
	position: relative;
}

/* 1.9.5 -- free bonus rows: bold accent "+" reads as a bonus, not a control.
   Drawn from ::before only; the free slot's second pseudo-element stays unused
   (that one was the old checkbox tick). */
.psh-pc .psh-pc__addon-lock::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 15px;
	height: 15px;
	transform: translate(-50%, -50%);
	background-image:
		linear-gradient(var(--psh-pc-accent), var(--psh-pc-accent)),
		linear-gradient(var(--psh-pc-accent), var(--psh-pc-accent));
	background-size: 15px 3px, 3px 15px;
	background-position: center center;
	background-repeat: no-repeat;
}

/* --------------------------------------------- badge corner position */
/* Added 1.9.8. 'inline' leaves the original in-flow behaviour alone. */
.psh-pc__card {
	position: relative;
	overflow: visible;
}

.psh-pc--badge-right .psh-pc__badge,
.psh-pc--badge-left .psh-pc__badge {
	position: absolute;
	top: -13px;
	z-index: 2;
}

.psh-pc--badge-right .psh-pc__badge {
	right: 16px;
}

.psh-pc--badge-left .psh-pc__badge {
	left: 16px;
}

@media (max-width: 480px) {
	.psh-pc--badge-right .psh-pc__card--badged,
	.psh-pc--badge-left .psh-pc__card--badged {
		padding-top: 34px;
	}

	.psh-pc--badge-right .psh-pc__badge {
		right: 12px;
	}

	.psh-pc--badge-left .psh-pc__badge {
		left: 12px;
	}
}

/* 1.9.9: the badge straddles the top edge, so a badged card needs clearance
   from the tier box above it. */
.psh-pc--badge-right .psh-pc__card--badged,
.psh-pc--badge-left .psh-pc__card--badged {
	margin-top: 10px;
}

/* --------------------------------------------------------------------------
   1.9.11 -- mobile space optimisation. Scoped to <=480px, desktop untouched.
   Measured on the live pages at 390px: the pricing block loses 102px on
   aetivia and 97px on distinctflair; the CTA rises ~95px on both.
   The price row stacks ONLY on cards without a benefit list (:has()); engines
   without :has() keep the previous single-row price, so nothing can break.
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
	.psh-pc__card { padding: 14px 13px; gap: 5px 10px; }
	.psh-pc__cards { gap: 8px; }
	.psh-pc__main { gap: 6px; }
	.psh-pc__label { font-size: 15.5px; line-height: 1.15; }
	.psh-pc__savings { font-size: 11px; padding: 2px 7px; line-height: 1.2; }
	.psh-pc__total { font-size: 22px; }
	.psh-pc__strike { font-size: 11px; }
	.psh-pc__price-row { gap: 6px; }
	.psh-pc__unit { font-size: 12px; margin-top: 0; }
	.psh-pc__benefit { font-size: 14px; line-height: 1.3; }
	.psh-pc__benefits { gap: 6px; margin-top: 1px; }
	.psh-pc__msg { font-size: 12.5px; padding: 4px 8px; }
	.psh-pc__addon { padding: 8px 10px; gap: 8px; }
	.psh-pc__addon-thumb,
	.psh-pc__addon-thumb img { width: 32px; height: 32px; }
	.psh-pc__addons { margin-top: 8px; gap: 6px; }
	.psh-pc--badge-right .psh-pc__card--badged,
	.psh-pc--badge-left .psh-pc__card--badged { padding-top: 30px; margin-top: 8px; }
	.psh-pc__cta { padding: 14px 16px; }
	.psh-pc__card:not(:has(.psh-pc__benefits)) .psh-pc__price-row {
		flex-direction: column-reverse;
		align-items: flex-end;
		gap: 0;
	}
}

/*
 * Phone layout, 1.13.0. The cards are already rows; on a handset the job is
 * less furniture -- tighter padding, one secondary line, the badge inline
 * rather than floating over the price column.
 */
@media (max-width: 480px) {
	.psh-pc .psh-pc__card {
		grid-template-columns: 18px minmax(0, 1fr) auto;
		column-gap: 10px;
		padding: 13px 14px 13px 15px;
	}
	.psh-pc--badge-right .psh-pc__card--badged,
	.psh-pc--badge-left .psh-pc__card--badged {
		padding-top: 13px;
	}
	.psh-pc .psh-pc__badge {
		position: static;
		order: -1;
		font-size: 10.5px;
		padding: 2px 7px;
	}
}

@media (max-width: 480px) {
	.psh-pc .psh-pc__main { row-gap: 2px; column-gap: 6px; }
	.psh-pc .psh-pc__headline { font-size: 16px; line-height: 1.2; }
	.psh-pc .psh-pc__label { font-size: 12.5px; }
	.psh-pc .psh-pc__savings-money { font-size: 11px; }
}

@media (max-width: 480px) {
	.psh-pc .psh-pc__prices { text-align: right; }
	.psh-pc .psh-pc__total { font-size: 19px; }
	.psh-pc .psh-pc__strike { font-size: 12px; }
	.psh-pc .psh-pc__unit,
	.psh-pc .psh-pc__unit--each {
		display: block;
		text-align: right;
		font-size: 11.5px;
	}
	.psh-pc .psh-pc__unit-suffix { margin-left: 3px; }
}

/* ==========================================================================
   Rolled back 2026-10-14 -- the 1.14.0 "Cleaner cards" pass (one full-width
   row per tier) was not workable for our case, so the card CSS is back to the
   pre-1.14 layout. The 1.14.x feature layer is untouched: its styling lives in
   assets/css/engage.css and its behaviour in assets/js/engage.js.
   ========================================================================== */
