/* Joker Shop Toolkit Pro: Hero Product. Everything runs on custom
   properties: the preset sets them, the module's colour fields override. */

.cwt-hero {
	--h-bg: linear-gradient(135deg, #0b1626 0%, #142a44 55%, #0d1b2e 100%);
	--h-ink: #fff;
	--h-muted: rgba(255, 255, 255, 0.74);
	--h-accent: #22d3ee;
	--h-accent-2: #3b82f6;
	--h-on-accent: #04202a;
	--h-back: rgba(34, 211, 238, 0.2);
	--h-pill-bg: rgba(255, 255, 255, 0.12);
	--h-pill-ink: var(--h-ink);
	--h-price-bg: rgba(255, 255, 255, 0.08);
	--h-price-ink: var(--h-ink);
	--h-badge-bg: #f5b324;
	--h-badge-ink: #1b1203;
	--h-ghost: rgba(255, 255, 255, 0.08);
	--h-btn-bg: var(--h-accent);
	--h-btn-ink: var(--h-on-accent);
	--h-btn2-ink: var(--h-ink);
	--h-btn2-line: color-mix(in srgb, var(--h-ink) 40%, transparent);
	--h-radius: 28px;
	--h-pad: clamp(28px, 5vw, 72px);
	--h-min: 0px;
	--h-img-max: 520px;
	--h-gap: clamp(24px, 4vw, 64px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: var(--h-min);
	padding: var(--h-pad);
	border-radius: var(--h-radius);
	background: var(--h-bg);
	color: var(--h-ink);
	box-sizing: border-box;
}

.cwt-hero *,
.cwt-hero *::before,
.cwt-hero *::after {
	box-sizing: border-box;
}

/* Presets ---------------------------------------------------------------- */

.cwt-hero--p-candy {
	--h-bg: linear-gradient(135deg, #ff6aa8 0%, #d81b7f 55%, #7f1259 100%);
	--h-muted: rgba(255, 255, 255, 0.82);
	--h-accent: #ffe066;
	--h-accent-2: #ff9a3c;
	--h-on-accent: #5c0b3f;
	--h-back: rgba(255, 255, 255, 0.22);
	--h-pill-bg: rgba(255, 255, 255, 0.18);
	--h-price-bg: rgba(255, 255, 255, 0.16);
	--h-badge-bg: #ffe066;
	--h-badge-ink: #6b0d49;
	--h-ghost: rgba(255, 255, 255, 0.14);
}

.cwt-hero--p-frost {
	--h-bg: linear-gradient(160deg, #eef8ff 0%, #c4e7ff 50%, #92d2ff 100%);
	--h-ink: #0b2540;
	--h-muted: #36597a;
	--h-accent: #0077d9;
	--h-accent-2: #1fc0ec;
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.75);
	--h-pill-bg: rgba(255, 255, 255, 0.6);
	--h-price-bg: #fff;
	--h-badge-bg: #0077d9;
	--h-badge-ink: #fff;
	--h-ghost: rgba(11, 37, 64, 0.08);
}

.cwt-hero--p-cocoa {
	--h-bg: linear-gradient(135deg, #24130a 0%, #4a2817 55%, #6e3c1f 100%);
	--h-ink: #fff7ee;
	--h-muted: rgba(255, 238, 220, 0.78);
	--h-accent: #eaa856;
	--h-accent-2: #c8692c;
	--h-on-accent: #2a160c;
	--h-back: rgba(234, 168, 86, 0.22);
	--h-pill-bg: rgba(255, 238, 220, 0.12);
	--h-price-bg: rgba(255, 238, 220, 0.09);
	--h-badge-bg: #eaa856;
	--h-badge-ink: #2a160c;
	--h-ghost: rgba(255, 238, 220, 0.07);
}

.cwt-hero--p-citrus {
	--h-bg: linear-gradient(135deg, #ffc93c 0%, #ff9f1c 55%, #f77f00 100%);
	--h-ink: #2b1600;
	--h-muted: rgba(43, 22, 0, 0.78);
	--h-accent: #1f1a17;
	--h-accent-2: #e63946;
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.38);
	--h-pill-bg: rgba(255, 255, 255, 0.42);
	--h-price-bg: rgba(255, 255, 255, 0.5);
	--h-badge-bg: #e63946;
	--h-badge-ink: #fff;
	--h-ghost: rgba(43, 22, 0, 0.08);
}

.cwt-hero--p-clean {
	--h-bg: #f5f6f8;
	--h-ink: #14171c;
	--h-muted: #59606b;
	--h-accent: #14171c;
	--h-accent-2: #4b5563;
	--h-on-accent: #fff;
	--h-back: #fff;
	--h-pill-bg: #fff;
	--h-price-bg: #fff;
	--h-badge-bg: #d6232f;
	--h-badge-ink: #fff;
	--h-ghost: rgba(20, 23, 28, 0.05);
}

.cwt-hero--bg-none {
	background: transparent;
}

/* Soft coloured glows behind everything */
.cwt-hero--glows::before,
.cwt-hero--glows::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 55%;
	aspect-ratio: 1;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.45;
	pointer-events: none;
}

.cwt-hero--glows::before {
	top: -25%;
	right: -10%;
	background: var(--h-accent);
}

.cwt-hero--glows::after {
	bottom: -30%;
	left: -15%;
	background: var(--h-accent-2);
	opacity: 0.35;
}

/* Layout ----------------------------------------------------------------- */

.cwt-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "content media";
	align-items: center;
	gap: var(--h-gap);
	min-height: inherit;
}

.cwt-hero--r45 .cwt-hero__inner { grid-template-columns: 45fr 55fr; }
.cwt-hero--r40 .cwt-hero__inner { grid-template-columns: 40fr 60fr; }
.cwt-hero--r55 .cwt-hero__inner { grid-template-columns: 55fr 45fr; }

.cwt-hero--left .cwt-hero__inner {
	grid-template-areas: "media content";
}

.cwt-hero--left.cwt-hero--r45 .cwt-hero__inner { grid-template-columns: 55fr 45fr; }
.cwt-hero--left.cwt-hero--r40 .cwt-hero__inner { grid-template-columns: 60fr 40fr; }
.cwt-hero--left.cwt-hero--r55 .cwt-hero__inner { grid-template-columns: 45fr 55fr; }

.cwt-hero__media { grid-area: media; }
.cwt-hero__content { grid-area: content; }

.cwt-hero--stacked .cwt-hero__inner {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "media" "content";
	justify-items: center;
	text-align: center;
}

.cwt-hero--stacked .cwt-hero__content {
	max-width: 720px;
}

/* Overlap: the content sits on a glass card that overlaps the image */
.cwt-hero--overlap .cwt-hero__content {
	position: relative;
	z-index: 2;
	margin-right: calc(var(--h-gap) * -1.5);
	padding: clamp(22px, 3vw, 40px);
	border: 1px solid color-mix(in srgb, var(--h-ink) 18%, transparent);
	border-radius: calc(var(--h-radius) * 0.8);
	background: color-mix(in srgb, var(--h-ink) 7%, transparent);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.cwt-hero--a-center .cwt-hero__content {
	text-align: center;
}

.cwt-hero--a-center .cwt-hero__pills,
.cwt-hero--a-center .cwt-hero__buy,
.cwt-hero--a-center .cwt-hero__rating,
.cwt-hero--stacked .cwt-hero__pills,
.cwt-hero--stacked .cwt-hero__buy,
.cwt-hero--stacked .cwt-hero__rating {
	justify-content: center;
}

/* Media ------------------------------------------------------------------ */

.cwt-hero__media {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: min(var(--h-img-max), 60vw);
}

.cwt-hero__figure {
	position: relative;
	z-index: 2;
	display: block;
	line-height: 0;
}

.cwt-hero .cwt-hero__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: var(--h-img-max);
	margin: 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.32));
	transform: scale(var(--h-img-scale, 1));
	transform-origin: 50% 55%;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cwt-hero__backdrop {
	--h-back-w: min(82%, calc(var(--h-img-max) * 0.95));
	position: absolute;
	z-index: 0;
	top: calc(50% + var(--h-back-y, 0%));
	left: calc(50% + var(--h-back-x, 0%));
	width: calc(var(--h-back-w) * var(--h-back-scale, 1));
	aspect-ratio: 1;
	opacity: var(--h-back-opacity, 1);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.cwt-hero__backdrop--circle {
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--h-back) 100%, #fff 20%), var(--h-back) 60%, transparent 71%);
}

.cwt-hero__backdrop--blob {
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	background: linear-gradient(135deg, var(--h-back), color-mix(in srgb, var(--h-accent) 30%, transparent));
	animation: cwt-hero-blob 14s ease-in-out infinite alternate;
}

.cwt-hero__backdrop--ring {
	border: 2px solid color-mix(in srgb, var(--h-accent) 55%, transparent);
	border-radius: 50%;
	box-shadow:
		0 0 0 22px var(--h-back),
		0 0 0 23px color-mix(in srgb, var(--h-accent) 25%, transparent),
		inset 0 0 60px var(--h-back);
}

.cwt-hero__backdrop--spotlight {
	width: calc(110% * var(--h-back-scale, 1));
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, #fff 55%, transparent), color-mix(in srgb, var(--h-back) 80%, transparent) 45%, transparent 100%);
}

/* 1.3.7 shapes. Each draws from --h-back and --h-accent, so presets and
   the colour fields carry through. */

.cwt-hero__backdrop--halo {
	width: calc(var(--h-back-w) * 1.15 * var(--h-back-scale, 1));
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--h-accent) 45%, transparent), var(--h-back) 55%, transparent 100%);
	filter: blur(22px);
}

.cwt-hero__backdrop--double::before,
.cwt-hero__backdrop--double::after {
	content: "";
	position: absolute;
	border-radius: 50%;
}

.cwt-hero__backdrop--double::before {
	inset: 0 20% 20% 0;
	background: var(--h-back);
}

.cwt-hero__backdrop--double::after {
	inset: 24% 0 0 24%;
	background: color-mix(in srgb, var(--h-accent) 26%, transparent);
}

.cwt-hero__backdrop--pulse {
	border-radius: 50%;
	background: radial-gradient(circle, var(--h-back) 0%, var(--h-back) 50%, transparent 71%);
}

.cwt-hero__backdrop--pulse::before,
.cwt-hero__backdrop--pulse::after {
	content: "";
	position: absolute;
	inset: 8%;
	border: 2px solid color-mix(in srgb, var(--h-accent) 55%, transparent);
	border-radius: 50%;
	animation: cwt-hero-ripple 4.8s ease-out infinite;
}

.cwt-hero__backdrop--pulse::after {
	animation-delay: 2.4s;
}

.cwt-hero__backdrop--orbit {
	border: 1.5px dashed color-mix(in srgb, var(--h-accent) 45%, transparent);
	border-radius: 50%;
	background: radial-gradient(circle, var(--h-back) 0%, transparent 70%);
}

.cwt-hero__backdrop--orbit::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 8px, var(--h-accent) 0 6px, transparent 7px);
	animation: cwt-hero-orbit 14s linear infinite;
}

.cwt-hero__backdrop--sunburst {
	width: calc(var(--h-back-w) * 1.25 * var(--h-back-scale, 1));
	border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, var(--h-back) 0deg 7.5deg, transparent 7.5deg 15deg);
	-webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%);
	mask: radial-gradient(closest-side, #000 25%, transparent 100%);
	animation: cwt-hero-spin 90s linear infinite;
}

.cwt-hero__backdrop--dots {
	width: calc(var(--h-back-w) * 1.1 * var(--h-back-scale, 1));
	background: radial-gradient(circle, color-mix(in srgb, var(--h-accent) 50%, transparent) 2px, transparent 2.6px) 0 0 / 18px 18px;
	-webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%);
	mask: radial-gradient(closest-side, #000 35%, transparent 100%);
}

.cwt-hero__backdrop--tile,
.cwt-hero__backdrop--diamond,
.cwt-hero__backdrop--hexagon,
.cwt-hero__backdrop--arch {
	background: linear-gradient(135deg, var(--h-back), color-mix(in srgb, var(--h-accent) 24%, transparent));
}

.cwt-hero__backdrop--tile {
	width: calc(var(--h-back-w) * 0.85 * var(--h-back-scale, 1));
	border-radius: 22%;
	transform: translate(-50%, -50%) rotate(-8deg);
}

.cwt-hero__backdrop--diamond {
	width: calc(var(--h-back-w) * 0.72 * var(--h-back-scale, 1));
	border-radius: 16%;
	transform: translate(-50%, -50%) rotate(45deg);
}

.cwt-hero__backdrop--hexagon {
	clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.cwt-hero__backdrop--arch {
	width: calc(var(--h-back-w) * 0.8 * var(--h-back-scale, 1));
	aspect-ratio: 4 / 5;
	border-radius: 50% 50% 14% 14% / 40% 40% 11% 11%;
}

/* My image: the uploaded cut-out keeps its own shape and proportions. */
.cwt-hero__backdrop--image {
	aspect-ratio: auto;
	line-height: 0;
}

.cwt-hero .cwt-hero__backdrop-img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	object-fit: contain;
}

.cwt-hero__backdrop--move-spin .cwt-hero__backdrop-img { animation: cwt-hero-img-spin 60s linear infinite; }
.cwt-hero__backdrop--move-sway .cwt-hero__backdrop-img { animation: cwt-hero-sway 9s ease-in-out infinite alternate; }
.cwt-hero__backdrop--move-float .cwt-hero__backdrop-img { animation: cwt-hero-float 8s ease-in-out infinite; }
.cwt-hero__backdrop--move-pulse .cwt-hero__backdrop-img { animation: cwt-hero-breathe 7s ease-in-out infinite; }

.cwt-hero__floor {
	position: absolute;
	z-index: 1;
	bottom: 2%;
	left: 50%;
	width: 58%;
	height: 34px;
	border-radius: 50%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 45%, transparent 72%);
	transform: translateX(-50%);
	filter: blur(4px);
	pointer-events: none;
}

.cwt-hero__ghost {
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	color: transparent;
	font-size: clamp(4rem, 12vw, 11rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	-webkit-text-stroke: 2px var(--h-ghost);
	pointer-events: none;
	user-select: none;
}

/* Motion */

.cwt-hero--motion-float .cwt-hero__figure {
	animation: cwt-hero-float 6s ease-in-out infinite;
}

.cwt-hero--motion-float .cwt-hero__floor {
	animation: cwt-hero-floor 6s ease-in-out infinite;
}

.cwt-hero--motion-tilt .cwt-hero__figure {
	transform: perspective(900px) rotateX(var(--h-rx, 0deg)) rotateY(var(--h-ry, 0deg));
	transition: transform 0.25s ease-out;
}

@keyframes cwt-hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@keyframes cwt-hero-floor {
	0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
	50% { transform: translateX(-50%) scale(0.86); opacity: 0.7; }
}

@keyframes cwt-hero-spin {
	from { transform: translate(-50%, -50%) rotate(0deg); }
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cwt-hero-img-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes cwt-hero-orbit {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes cwt-hero-ripple {
	0% { transform: scale(0.8); opacity: 0.9; }
	100% { transform: scale(1.35); opacity: 0; }
}

@keyframes cwt-hero-sway {
	from { transform: rotate(-5deg); }
	to { transform: rotate(5deg); }
}

@keyframes cwt-hero-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@keyframes cwt-hero-blob {
	0% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: translate(-50%, -50%) rotate(0deg); }
	100% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; transform: translate(-50%, -50%) rotate(25deg); }
}

/* Badge */

.cwt-hero__badge {
	position: absolute;
	z-index: 3;
	display: grid;
	place-items: center;
	background: var(--h-badge-bg);
	color: var(--h-badge-ink);
	font-size: clamp(0.8rem, 1.2vw, 1rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.5);
}

.cwt-hero__badge--tl { top: 6%; left: 4%; }
.cwt-hero__badge--tr { top: 6%; right: 4%; }
.cwt-hero__badge--bl { bottom: 8%; left: 4%; }
.cwt-hero__badge--br { bottom: 8%; right: 4%; }

.cwt-hero__badge--burst,
.cwt-hero__badge--circle {
	width: clamp(92px, 11vw, 128px);
	aspect-ratio: 1;
	padding: 14px;
	transform: rotate(-12deg);
}

.cwt-hero__badge--burst {
	clip-path: polygon(50% 0%, 59.1% 10%, 71.7% 5%, 75.6% 17.9%, 89.1% 18.8%, 86.9% 32.2%, 98.7% 38.9%, 91% 50%, 98.7% 61.1%, 86.9% 67.8%, 89.1% 81.2%, 75.6% 82.1%, 71.7% 95%, 59.1% 90%, 50% 100%, 40.9% 90%, 28.3% 95%, 24.4% 82.1%, 10.9% 81.2%, 13.1% 67.8%, 1.3% 61.1%, 9% 50%, 1.3% 38.9%, 13.1% 32.2%, 10.9% 18.8%, 24.4% 17.9%, 28.3% 5%, 40.9% 10%);
	box-shadow: none;
	filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3));
}

.cwt-hero__badge--circle {
	border-radius: 50%;
	outline: 2px dashed color-mix(in srgb, var(--h-badge-ink) 35%, transparent);
	outline-offset: -8px;
}

.cwt-hero__badge--pill {
	padding: 9px 18px;
	border-radius: 999px;
}

.cwt-hero__badge--ribbon {
	padding: 10px 26px;
	clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
	box-shadow: none;
}

.cwt-hero__badge--tag {
	padding: 9px 16px 9px 26px;
	border-radius: 6px 10px 10px 6px;
	transform: rotate(-4deg);
}

.cwt-hero__badge--tag::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 9px;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--h-badge-ink) 55%, transparent);
}

/* Content ---------------------------------------------------------------- */

.cwt-hero__content {
	min-width: 0;
}

.cwt-hero__content > * {
	margin-top: 0;
}

.cwt-hero__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--h-accent);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cwt-hero .cwt-hero__title {
	margin: 0 0 14px;
	color: inherit;
	font-size: clamp(2rem, 4.2vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.05;
}

.cwt-hero .cwt-hero__title a {
	color: inherit;
	text-decoration: none;
}

.cwt-hero__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--h-muted);
	font-size: 0.875rem;
}

.cwt-hero__desc {
	max-width: 52ch;
	margin-bottom: 22px;
	color: var(--h-muted);
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.6;
}

.cwt-hero--stacked .cwt-hero__desc,
.cwt-hero--a-center .cwt-hero__desc {
	margin-right: auto;
	margin-left: auto;
}

/* Pills */

.cwt-hero .cwt-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.cwt-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
}

.cwt-hero__pill-icon {
	flex: none;
	color: var(--h-accent);
}

.cwt-hero__pills--glass .cwt-hero__pill {
	border-color: color-mix(in srgb, var(--h-ink) 22%, transparent);
	background: var(--h-pill-bg);
	color: var(--h-pill-ink);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.cwt-hero__pills--soft .cwt-hero__pill {
	background: color-mix(in srgb, var(--h-accent) 18%, transparent);
	color: var(--h-pill-ink);
}

.cwt-hero__pills--solid .cwt-hero__pill {
	background: var(--h-accent);
	color: var(--h-on-accent);
}

.cwt-hero__pills--solid .cwt-hero__pill-icon {
	color: currentColor;
}

.cwt-hero__pills--outline .cwt-hero__pill {
	border-color: color-mix(in srgb, var(--h-accent) 70%, transparent);
	color: var(--h-pill-ink);
}

/* Price and buttons */

.cwt-hero__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 22px;
}

.cwt-hero__price {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	color: var(--h-price-ink);
	line-height: 1.1;
}

.cwt-hero__amount {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.01em;
}

.cwt-hero__amount .cwt-card__prefix {
	display: block;
	margin-bottom: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	opacity: 0.8;
	text-transform: uppercase;
}

.cwt-hero__amount del {
	margin-right: 6px;
	font-size: 0.55em;
	font-weight: 600;
	opacity: 0.6;
}

.cwt-hero__amount ins {
	text-decoration: none;
}

.cwt-hero__amount .woocommerce-price-suffix {
	font-size: 0.4em;
	font-weight: 600;
	opacity: 0.75;
}

.cwt-hero__note {
	color: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	opacity: 0.75;
}

.cwt-hero__price--panel,
.cwt-hero__price--glass,
.cwt-hero__price--outline,
.cwt-hero__price--gradient {
	padding: 14px 22px;
	border-radius: 18px;
}

.cwt-hero__price--panel {
	background: var(--h-price-bg);
	box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.5);
}

.cwt-hero__price--glass {
	border: 1px solid color-mix(in srgb, var(--h-ink) 22%, transparent);
	background: color-mix(in srgb, var(--h-ink) 9%, transparent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.cwt-hero__price--outline {
	border: 2px solid var(--h-accent);
}

.cwt-hero__price--gradient {
	background: linear-gradient(135deg, var(--h-accent), var(--h-accent-2));
	color: var(--h-on-accent);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 18px 30px -16px color-mix(in srgb, var(--h-accent-2) 80%, transparent);
}

.cwt-hero__price--sticker {
	justify-content: center;
	align-items: center;
	width: 150px;
	aspect-ratio: 1;
	padding: 16px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--h-accent), var(--h-accent-2));
	color: var(--h-on-accent);
	text-align: center;
	box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.55);
	transform: rotate(-6deg);
}

.cwt-hero__price--sticker .cwt-hero__amount {
	font-size: 1.6rem;
}

.cwt-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cwt-hero .cwt-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	margin: 0;
	padding: 0 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}

.cwt-hero .cwt-hero__btn--primary {
	background: var(--h-btn-bg);
	color: var(--h-btn-ink);
	box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--h-btn-bg) 90%, transparent);
}

.cwt-hero .cwt-hero__btn--primary:hover,
.cwt-hero .cwt-hero__btn--primary:focus-visible {
	color: var(--h-btn-ink);
	transform: translateY(-2px);
	box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--h-btn-bg) 95%, transparent);
}

.cwt-hero .cwt-hero__btn--secondary {
	border-color: var(--h-btn2-line);
	background: transparent;
	color: var(--h-btn2-ink);
}

.cwt-hero .cwt-hero__btn--secondary:hover,
.cwt-hero .cwt-hero__btn--secondary:focus-visible {
	border-color: var(--h-btn2-ink);
	color: var(--h-btn2-ink);
}

.cwt-hero .cwt-hero__btn:focus-visible {
	outline: 3px solid var(--h-accent);
	outline-offset: 3px;
}

.cwt-hero .cwt-hero__btn.is-added::after {
	content: "\2713";
}

.cwt-hero .cwt-hero__btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Entrance (only once the script has prepared it) */

.cwt-hero.is-reveal-ready .cwt-hero__content > *,
.cwt-hero.is-reveal-ready .cwt-hero__media {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cwt-hero.is-reveal-ready .cwt-hero__media {
	transform: scale(0.94);
}

.cwt-hero.is-in .cwt-hero__content > *,
.cwt-hero.is-in .cwt-hero__media {
	opacity: 1;
	transform: none;
}

.cwt-hero.is-in .cwt-hero__content > :nth-child(2) { transition-delay: 0.06s; }
.cwt-hero.is-in .cwt-hero__content > :nth-child(3) { transition-delay: 0.12s; }
.cwt-hero.is-in .cwt-hero__content > :nth-child(4) { transition-delay: 0.18s; }
.cwt-hero.is-in .cwt-hero__content > :nth-child(5) { transition-delay: 0.24s; }
.cwt-hero.is-in .cwt-hero__content > :nth-child(6) { transition-delay: 0.3s; }
.cwt-hero.is-in .cwt-hero__media { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
	.cwt-hero__figure,
	.cwt-hero__floor,
	.cwt-hero__backdrop--blob,
	.cwt-hero__backdrop--sunburst,
	.cwt-hero__backdrop--pulse::before,
	.cwt-hero__backdrop--pulse::after,
	.cwt-hero__backdrop--orbit::before,
	.cwt-hero__backdrop-img {
		animation: none !important;
	}
	.cwt-hero--motion-tilt .cwt-hero__figure {
		transform: none;
	}
	.cwt-hero.is-reveal-ready .cwt-hero__content > *,
	.cwt-hero.is-reveal-ready .cwt-hero__media {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 768px) {
	.cwt-hero .cwt-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "media" "content";
		gap: 24px;
	}
	.cwt-hero--m-content .cwt-hero__inner {
		grid-template-areas: "content" "media";
	}
	.cwt-hero--overlap .cwt-hero__content {
		margin: -60px 0 0;
	}
	.cwt-hero__media {
		min-height: 0;
	}
	.cwt-hero .cwt-hero__img {
		max-height: min(var(--h-img-max), 340px);
	}
	.cwt-hero__buy {
		gap: 14px;
	}
	.cwt-hero__buttons,
	.cwt-hero .cwt-hero__btn {
		width: 100%;
	}
	.cwt-hero .cwt-hero__btn {
		flex: 1 1 auto;
	}
}

@media (forced-colors: active) {
	.cwt-hero__badge,
	.cwt-hero__price,
	.cwt-hero__pill {
		border: 1px solid CanvasText;
	}
}

/* More presets ----------------------------------------------------------- */

.cwt-hero--p-berry {
	--h-bg: linear-gradient(135deg, #3b0a57 0%, #7b1fa2 55%, #c2185b 100%);
	--h-muted: rgba(255, 255, 255, 0.8);
	--h-accent: #ff80ab;
	--h-accent-2: #ea80fc;
	--h-on-accent: #3b0a57;
	--h-back: rgba(255, 128, 171, 0.22);
	--h-pill-bg: rgba(255, 255, 255, 0.14);
	--h-price-bg: rgba(255, 255, 255, 0.12);
	--h-badge-bg: #ff80ab;
	--h-badge-ink: #3b0a57;
	--h-ghost: rgba(255, 255, 255, 0.1);
}

.cwt-hero--p-ocean {
	--h-bg: linear-gradient(135deg, #0f766e 0%, #0e5a8a 55%, #0b2a5b 100%);
	--h-muted: rgba(255, 255, 255, 0.8);
	--h-accent: #5eead4;
	--h-accent-2: #38bdf8;
	--h-on-accent: #042f2e;
	--h-back: rgba(94, 234, 212, 0.2);
	--h-pill-bg: rgba(255, 255, 255, 0.13);
	--h-price-bg: rgba(255, 255, 255, 0.1);
	--h-badge-bg: #fde047;
	--h-badge-ink: #0b2a5b;
	--h-ghost: rgba(255, 255, 255, 0.08);
}

.cwt-hero--p-mint {
	--h-bg: linear-gradient(150deg, #f0fdf4 0%, #bbf7d0 55%, #6ee7b7 100%);
	--h-ink: #052e1c;
	--h-muted: #2f5d47;
	--h-accent: #059669;
	--h-accent-2: #0d9488;
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.7);
	--h-pill-bg: rgba(255, 255, 255, 0.65);
	--h-price-bg: #fff;
	--h-badge-bg: #f43f5e;
	--h-badge-ink: #fff;
	--h-ghost: rgba(5, 46, 28, 0.08);
}

.cwt-hero--p-sunset {
	--h-bg: linear-gradient(135deg, #ff9a3c 0%, #f5426c 50%, #6a2c91 100%);
	--h-muted: rgba(255, 255, 255, 0.85);
	--h-accent: #fff3b0;
	--h-accent-2: #ffd166;
	--h-on-accent: #5a1846;
	--h-back: rgba(255, 255, 255, 0.22);
	--h-pill-bg: rgba(255, 255, 255, 0.18);
	--h-price-bg: rgba(255, 255, 255, 0.16);
	--h-badge-bg: #fff3b0;
	--h-badge-ink: #6a2c91;
	--h-ghost: rgba(255, 255, 255, 0.13);
}

.cwt-hero--p-lavender {
	--h-bg: linear-gradient(150deg, #faf5ff 0%, #e9d5ff 55%, #c4b5fd 100%);
	--h-ink: #2e1065;
	--h-muted: #5b4a85;
	--h-accent: #7c3aed;
	--h-accent-2: #c026d3;
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.7);
	--h-pill-bg: rgba(255, 255, 255, 0.65);
	--h-price-bg: #fff;
	--h-badge-bg: #7c3aed;
	--h-badge-ink: #fff;
	--h-ghost: rgba(46, 16, 101, 0.07);
}

.cwt-hero--p-aurora {
	--h-bg: linear-gradient(135deg, #04131c 0%, #0b2533 50%, #1a1238 100%);
	--h-muted: rgba(255, 255, 255, 0.75);
	--h-accent: #4ade80;
	--h-accent-2: #a78bfa;
	--h-on-accent: #04131c;
	--h-back: rgba(74, 222, 128, 0.16);
	--h-badge-bg: #a78bfa;
	--h-badge-ink: #120a2a;
}

.cwt-hero--p-cherry {
	--h-bg: linear-gradient(135deg, #e11d48 0%, #9f1239 55%, #4c0519 100%);
	--h-muted: rgba(255, 255, 255, 0.82);
	--h-accent: #fff1f2;
	--h-accent-2: #fda4af;
	--h-on-accent: #9f1239;
	--h-back: rgba(255, 255, 255, 0.18);
	--h-pill-bg: rgba(255, 255, 255, 0.14);
	--h-price-bg: rgba(255, 255, 255, 0.12);
	--h-badge-bg: #fde047;
	--h-badge-ink: #4c0519;
	--h-ghost: rgba(255, 255, 255, 0.1);
}

.cwt-hero--p-lime {
	--h-bg: linear-gradient(135deg, #d9f99d 0%, #a3e635 55%, #4ade80 100%);
	--h-ink: #1a2e05;
	--h-muted: rgba(26, 46, 5, 0.78);
	--h-accent: #1a2e05;
	--h-accent-2: #166534;
	--h-on-accent: #ecfccb;
	--h-back: rgba(255, 255, 255, 0.45);
	--h-pill-bg: rgba(255, 255, 255, 0.5);
	--h-price-bg: rgba(255, 255, 255, 0.6);
	--h-badge-bg: #1a2e05;
	--h-badge-ink: #d9f99d;
	--h-ghost: rgba(26, 46, 5, 0.08);
}

.cwt-hero--p-luxe {
	--h-bg: linear-gradient(135deg, #0a0a0a 0%, #1c1917 55%, #292524 100%);
	--h-ink: #fafaf9;
	--h-muted: rgba(250, 250, 249, 0.72);
	--h-accent: #d4af37;
	--h-accent-2: #f5d77a;
	--h-on-accent: #1c1917;
	--h-back: rgba(212, 175, 55, 0.16);
	--h-pill-bg: rgba(212, 175, 55, 0.1);
	--h-price-bg: rgba(212, 175, 55, 0.1);
	--h-badge-bg: #d4af37;
	--h-badge-ink: #1c1917;
	--h-ghost: rgba(212, 175, 55, 0.12);
}

.cwt-hero--p-graphite {
	--h-bg: linear-gradient(135deg, #1c1e22 0%, #2a2d33 55%, #3a3e46 100%);
	--h-muted: rgba(255, 255, 255, 0.74);
	--h-accent: #e0313d;
	--h-accent-2: #ff6b6b;
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.08);
	--h-pill-bg: rgba(255, 255, 255, 0.08);
	--h-price-bg: rgba(255, 255, 255, 0.06);
	--h-badge-bg: #e0313d;
	--h-badge-ink: #fff;
	--h-ghost: rgba(255, 255, 255, 0.06);
}

/* My colours: three picked colours blended like the presets. Text and
   panels follow the tone (worked out from how light the colours are). */
.cwt-hero--p-custom {
	--h-c1: #1e3a8a;
	--h-c2: #7c3aed;
	--h-c3: #db2777;
	--h-bg: linear-gradient(135deg, var(--h-c1) 0%, var(--h-c2) 55%, var(--h-c3) 100%);
	--h-accent-2: color-mix(in srgb, var(--h-c3) 65%, #fff);
	--h-badge-bg: var(--h-accent);
}

.cwt-hero--p-custom.cwt-hero--tone-dark {
	--h-ink: #fff;
	--h-muted: rgba(255, 255, 255, 0.8);
	--h-accent: color-mix(in srgb, var(--h-c3) 60%, #fff);
	--h-on-accent: color-mix(in srgb, var(--h-c1) 85%, #000);
	--h-back: color-mix(in srgb, var(--h-c3) 30%, rgba(255, 255, 255, 0.2));
	--h-pill-bg: rgba(255, 255, 255, 0.14);
	--h-price-bg: rgba(255, 255, 255, 0.12);
	--h-badge-ink: color-mix(in srgb, var(--h-c1) 85%, #000);
	--h-ghost: rgba(255, 255, 255, 0.1);
}

.cwt-hero--p-custom.cwt-hero--tone-light {
	--h-ink: color-mix(in srgb, var(--h-c2) 25%, #111);
	--h-muted: color-mix(in srgb, var(--h-c2) 30%, #444);
	--h-accent: color-mix(in srgb, var(--h-c3) 70%, #000);
	--h-accent-2: color-mix(in srgb, var(--h-c2) 70%, #000);
	--h-on-accent: #fff;
	--h-back: rgba(255, 255, 255, 0.65);
	--h-pill-bg: rgba(255, 255, 255, 0.6);
	--h-price-bg: #fff;
	--h-badge-ink: #fff;
	--h-ghost: color-mix(in srgb, var(--h-c2) 12%, transparent);
}

.cwt-hero--p-custom.cwt-hero--glows::before {
	background: var(--h-c1);
	filter: blur(80px) brightness(1.3);
}

.cwt-hero--p-custom.cwt-hero--glows::after {
	background: var(--h-c3);
	filter: blur(80px) brightness(1.2);
}

/* Light presets: dark accents would muddy the glows, so keep them faint. */
.cwt-hero--p-clean.cwt-hero--glows::before,
.cwt-hero--p-clean.cwt-hero--glows::after,
.cwt-hero--p-mint.cwt-hero--glows::before,
.cwt-hero--p-mint.cwt-hero--glows::after,
.cwt-hero--p-lavender.cwt-hero--glows::before,
.cwt-hero--p-lavender.cwt-hero--glows::after,
.cwt-hero--p-lime.cwt-hero--glows::before,
.cwt-hero--p-lime.cwt-hero--glows::after,
.cwt-hero--p-custom.cwt-hero--tone-light.cwt-hero--glows::before,
.cwt-hero--p-custom.cwt-hero--tone-light.cwt-hero--glows::after {
	opacity: 0.07;
}

/* Height cap ------------------------------------------------------------ */
/* "Fit the screen" (default 80% of the screen) or "No taller than": the
   image takes whatever height is left so the banner stays within it. */

.cwt-hero--h-screen {
	--h-cap: 80svh;
}

.cwt-hero--h-fixed {
	--h-cap: 600px;
}

.cwt-hero--h-screen,
.cwt-hero--h-fixed {
	--h-pad: clamp(20px, 3.5vw, 56px);
	--h-fit: calc(var(--h-cap) - 2 * var(--h-pad));
	max-height: none;
}

.cwt-hero--h-screen .cwt-hero__media,
.cwt-hero--h-fixed .cwt-hero__media {
	min-height: 0;
}

.cwt-hero--h-screen .cwt-hero__img,
.cwt-hero--h-fixed .cwt-hero__img {
	max-height: min(var(--h-img-max), var(--h-fit));
}

/* Side by side, the content column sets the height: keep its type in proportion. */
.cwt-hero--h-screen .cwt-hero__title,
.cwt-hero--h-fixed .cwt-hero__title {
	font-size: clamp(1.75rem, min(3.6vw, 6.5svh), 3.25rem);
}

.cwt-hero--h-screen .cwt-hero__desc,
.cwt-hero--h-fixed .cwt-hero__desc {
	margin-bottom: clamp(12px, 2svh, 22px);
}

.cwt-hero--h-screen .cwt-hero__pills,
.cwt-hero--h-fixed .cwt-hero__pills {
	margin-bottom: clamp(14px, 2.4svh, 26px);
}

/* Stacked (and phones), the image shares the height with the text. */
.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__img,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__img {
	max-height: min(var(--h-img-max), calc(var(--h-fit) * 0.36));
}

.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__title,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__title {
	margin-bottom: 8px;
	font-size: clamp(1.5rem, min(3vw, 5svh), 2.75rem);
}

.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__rating,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__rating {
	margin-bottom: 8px;
}

.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__price--panel,
.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__price--glass,
.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__price--outline,
.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__price--gradient,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__price--panel,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__price--glass,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__price--outline,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__price--gradient {
	padding: 10px 18px;
}

.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__inner,
.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__inner {
	gap: clamp(12px, 2.5svh, 28px);
}

@media (max-width: 768px) {
	.cwt-hero--h-screen .cwt-hero__img,
	.cwt-hero--h-fixed .cwt-hero__img {
		max-height: min(var(--h-img-max), 340px, calc(var(--h-fit) * 0.42));
	}
}

/* Phones: optionally drop the description or pills to keep the banner short. */
@media (max-width: 768px) {
	.cwt-hero--m-nodesc .cwt-hero__desc,
	.cwt-hero--m-nopills .cwt-hero__pills {
		display: none;
	}
	.cwt-hero__buttons {
		flex-wrap: nowrap;
	}
	.cwt-hero .cwt-hero__btn {
		min-height: 46px;
		padding: 0 16px;
	}
}

/* Fill the column (equal-height Beaver Builder columns) ----------------- */

.cwt-hero--fill {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	height: 100%;
}

.cwt-hero--fill > .cwt-hero__inner {
	flex: 1 1 auto;
}

/* Always the image height: every hero's image is drawn at the same height
   (within the width available), so side-by-side heroes match. */
.cwt-hero--img-exact .cwt-hero__img {
	height: var(--h-img-max);
	max-width: 100%;
}

.cwt-hero--img-exact.cwt-hero--h-screen .cwt-hero__img,
.cwt-hero--img-exact.cwt-hero--h-fixed .cwt-hero__img {
	height: min(var(--h-img-max), var(--h-fit));
}

.cwt-hero--img-exact.cwt-hero--h-screen.cwt-hero--stacked .cwt-hero__img,
.cwt-hero--img-exact.cwt-hero--h-fixed.cwt-hero--stacked .cwt-hero__img {
	height: min(var(--h-img-max), calc(var(--h-fit) * 0.36));
}

@media (max-width: 768px) {
	.cwt-hero--img-exact .cwt-hero__img,
	.cwt-hero--img-exact.cwt-hero--h-screen .cwt-hero__img,
	.cwt-hero--img-exact.cwt-hero--h-fixed .cwt-hero__img {
		height: auto;
		max-height: min(var(--h-img-max), 300px);
	}
}

/* Phones: no height cap and no column filling; the hero is as tall as its
   content. (Scale still applies, as a real size so nothing is clipped.) */
@media (max-width: 768px) {
	.cwt-hero--h-screen,
	.cwt-hero--h-fixed {
		--h-fit: 100000px;
	}
	.cwt-hero--fill {
		height: auto;
	}
}

/* Phones: the scaled image gets room above and below (the scale only
   changes how it is drawn), so the top is never cut off. */
@media (max-width: 768px) {
	.cwt-hero__figure {
		margin-block: calc(min(var(--h-img-max), 340px) * (var(--h-img-scale, 1) - 1) * 0.5);
	}
}

/* Price prefix before the price, as in the product grid ("From £550.00"). */
.cwt-hero__price--prefix-inline .cwt-hero__amount .cwt-card__prefix {
	display: inline;
	margin: 0 0.3em 0 0;
	font-size: 0.5em;
	font-weight: 600;
	letter-spacing: 0;
	opacity: 0.85;
	text-transform: none;
}
