/**
 * Block: BD Price Stack (COD) — .bdp1
 *
 * Reads: --ps-max --stack-gap --row-gap --new-size --old-size --badge-size
 *        --save-size --label-size --note-size
 *        --badge-bg --badge-color --new-color --old-color --save-color --save-bg
 *        --label-color --note-color --panel-bg --panel-line
 *        --cta-bg --cta-color --cta-radius
 *        --seal-size --seal-gap --seal-x --seal-y --seal-rotate --seal-anim-dur
 *        --seal-bg --seal-color
 * Root classes: is-design-* is-text-align-* is-badge-pos-* is-badge-corner-*
 *               is-badge-shape-* is-old-pos-* is-old-strike-* is-save-style-*
 *               is-boxed/no-boxed is-cta-design-* is-seal-shape-*
 *               is-seal-position-* is-seal-anim-* is-seal-clip
 * Mobile-first: phones first, then 768px, then 1024px.
 *
 * The --ps-* variables below are the block's own palette hooks: every piece
 * that has to change colour on a dark panel (design 05 — banner) reads them,
 * so a design only has to re-point a handful of variables instead of
 * re-stating every rule (and the user's own colour attributes still win,
 * because they are always the first fallback step).
 */

.espt-block-bd-price-stack {
	--ps-muted: var(--bd-muted);
	--ps-cta-bg: var(--bd-primary);
	--ps-cta-bg2: var(--bd-primary-dark);
	--ps-cta-ink: #fff;
	--ps-save-plain: var(--bd-primary);
	--ps-save-bg: var(--bd-primary);
	--ps-save-ink: #fff;
	--ps-soft-bg: var(--bd-soft);
	--ps-soft-ink: var(--bd-primary-dark);
}

/* ------------------------------------------------------------ the block */
.espt-block-bd-price-stack .bdp1 {
	align-items: flex-start;
	color: var(--bd-ink);
	display: flex;
	flex-direction: column;
	gap: var(--stack-gap, 9px);
	line-height: 1.6;
	max-width: min(100%, var(--ps-max, 1200px));
	min-width: 0;
	position: relative;
	text-align: left;
}

.espt-block-bd-price-stack .bdp1 > * {
	max-width: 100%;
	min-width: 0;
}

.espt-block-bd-price-stack.is-seal-clip .bdp1 {
	overflow: hidden;
}

.espt-block-bd-price-stack .espt-block-note {
	color: var(--bd-muted);
	font-size: 14px;
	margin: 0;
}

/* alignment */
.espt-block-bd-price-stack.is-text-align-center .bdp1 {
	align-items: center;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.espt-block-bd-price-stack.is-text-align-center .bdp1-row {
	justify-content: center;
}

.espt-block-bd-price-stack.is-text-align-right .bdp1 {
	align-items: flex-end;
	margin-left: auto;
	text-align: right;
}

.espt-block-bd-price-stack.is-text-align-right .bdp1-row {
	justify-content: flex-end;
}

/* ------------------------------------------------------------- eyebrow */
.espt-block-bd-price-stack .bdp1-label {
	color: var(--label-color, var(--bd-muted));
	font-size: var(--label-size, 13px);
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

/* --------------------------------------------------------- price badge */
.espt-block-bd-price-stack .bdp1-off {
	align-items: center;
	background: var(--badge-bg, var(--bd-accent));
	border-radius: 999px;
	color: var(--badge-color, var(--bd-accent-ink));
	display: inline-flex;
	font-size: var(--badge-size, 13px);
	font-weight: 800;
	gap: 0.45em;
	letter-spacing: 0.02em;
	line-height: 1.25;
	max-width: 100%;
	padding: 0.4em 0.85em;
	position: relative;
	white-space: nowrap;
}

.espt-block-bd-price-stack .bdp1-off-i {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.espt-block-bd-price-stack .bdp1-off-i svg {
	height: 1.1em;
	width: 1.1em;
}

.espt-block-bd-price-stack .bdp1-off-t {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.espt-block-bd-price-stack .bdp1-offrow {
	width: 100%;
}

/* badge shapes */
.espt-block-bd-price-stack.is-badge-shape-soft .bdp1-off { border-radius: 8px; }
.espt-block-bd-price-stack.is-badge-shape-square .bdp1-off { border-radius: 0; }
.espt-block-bd-price-stack.is-badge-shape-cut .bdp1-off {
	border-radius: 0;
	clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 0.7em) 100%, 0 100%);
	padding-right: 1.2em;
}

.espt-block-bd-price-stack.is-badge-shape-ribbon .bdp1-off {
	border-radius: 4px 0 0 4px;
	margin-right: 0.55em;
}

.espt-block-bd-price-stack.is-badge-shape-ribbon .bdp1-off::after {
	border: 0.55em solid transparent;
	border-left-color: var(--badge-bg, var(--bd-accent));
	content: "";
	height: 0;
	left: 100%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
}

/* badge floating in a corner of the box */
/* max-width is resolved against the box, but the badge is also inset from the
   edge — without the inset subtracted a long badge sticks out of the block and
   gives the whole page a horizontal scrollbar on a 320px screen. */
.espt-block-bd-price-stack.is-badge-pos-corner .bdp1-off {
	max-width: calc(100% - 20px);
	position: absolute;
	right: 0;
	top: 0;
	z-index: 3;
}

.espt-block-bd-price-stack.is-badge-pos-corner.is-badge-corner-left .bdp1-off {
	left: 0;
	right: auto;
}

.espt-block-bd-price-stack.is-badge-pos-corner.is-boxed .bdp1-off {
	right: 10px;
	top: 10px;
}

.espt-block-bd-price-stack.is-badge-pos-corner.is-badge-corner-left.is-boxed .bdp1-off {
	left: 10px;
	right: auto;
}

/* ---------------------------------------------------------- price line */
.espt-block-bd-price-stack .bdp1-row {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: var(--row-gap, 11px);
	justify-content: flex-start;
	min-width: 0;
	width: 100%;
}

.espt-block-bd-price-stack .bdp1-new {
	color: var(--new-color, var(--bd-primary-dark));
	font-size: var(--new-size, 32px);
	font-weight: 800;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.espt-block-bd-price-stack .bdp1-new[data-espt-count] {
	font-variant-numeric: tabular-nums;
}

.espt-block-bd-price-stack .bdp1-old {
	color: var(--old-color, var(--bd-muted));
	font-size: var(--old-size, 17px);
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.espt-block-bd-price-stack .bdp1-old > span {
	display: inline-block;
	position: relative;
}

.espt-block-bd-price-stack.is-old-strike-line .bdp1-old > span {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

.espt-block-bd-price-stack.is-old-strike-diagonal .bdp1-old > span::after {
	background: currentColor;
	content: "";
	height: 1.5px;
	left: -4%;
	position: absolute;
	top: 50%;
	transform: rotate(-12deg);
	width: 108%;
}

/* old price placement */
.espt-block-bd-price-stack.is-old-pos-before .bdp1-old { order: -1; }
.espt-block-bd-price-stack.is-old-pos-above .bdp1-old { flex: 0 0 100%; order: -1; }
.espt-block-bd-price-stack.is-old-pos-below .bdp1-old { flex: 0 0 100%; order: 2; }

/* --------------------------------------------------------- saving line */
.espt-block-bd-price-stack .bdp1-save {
	font-size: var(--save-size, 15px);
	font-weight: 600;
	line-height: 1.45;
	max-width: 100%;
}

.espt-block-bd-price-stack .bdp1-save-in {
	align-items: center;
	color: var(--save-color, var(--ps-save-plain));
	display: inline-flex;
	gap: 0.4em;
	max-width: 100%;
	overflow-wrap: anywhere;
	position: relative;
}

.espt-block-bd-price-stack .bdp1-save-i {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.espt-block-bd-price-stack .bdp1-save-i svg {
	height: 1.1em;
	width: 1.1em;
}

.espt-block-bd-price-stack.is-save-style-chip .bdp1-save-in {
	background: var(--save-bg, var(--ps-save-bg));
	border-radius: 999px;
	color: var(--save-color, var(--ps-save-ink));
	padding: 0.34em 0.9em;
}

.espt-block-bd-price-stack.is-save-style-soft .bdp1-save-in {
	background: var(--save-bg, var(--ps-soft-bg));
	border-radius: 999px;
	color: var(--save-color, var(--ps-soft-ink));
	padding: 0.34em 0.9em;
}

.espt-block-bd-price-stack.is-save-style-dashed .bdp1-save-in {
	background: var(--save-bg, transparent);
	border: 1.5px dashed currentColor;
	border-radius: 10px;
	padding: 0.3em 0.85em;
}

.espt-block-bd-price-stack.is-save-style-ribbon .bdp1-save-in {
	background: var(--save-bg, var(--ps-save-bg));
	border-radius: 4px;
	color: var(--save-color, var(--ps-save-ink));
	margin-right: 0.6em;
	padding: 0.34em 0.9em;
}

.espt-block-bd-price-stack.is-save-style-ribbon .bdp1-save-in::after {
	border: 0.6em solid transparent;
	border-left-color: var(--save-bg, var(--ps-save-bg));
	content: "";
	height: 0;
	left: 100%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
}

/* ---------------------------------------------------------------- note */
.espt-block-bd-price-stack .bdp1-note {
	color: var(--note-color, var(--ps-muted));
	font-size: var(--note-size, 13px);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* ======================================================== 01 — classic */
/* the base look above; the box comes from .espt-bd-box */

/* ========================================================= 02 — inline */
.espt-block-bd-price-stack.is-design-inline .bdp1-row {
	width: auto;
}

.espt-block-bd-price-stack.is-design-inline .bdp1-save {
	margin-top: 2px;
}

/* ========================================================== 03 — card */
/* The accent bar is a background layer, not a ::before: a background is
   clipped by the border-radius for free, so the panel does not need
   overflow:hidden — which used to cut the stand card off even when the user
   had turned "Clip the card inside the box" off. */
.espt-block-bd-price-stack.is-design-card .bdp1 {
	background-color: var(--panel-bg, var(--bd-soft));
	background-image: linear-gradient(to right, var(--bd-primary) 5px, transparent 5px);
	border: 1px solid var(--panel-line, var(--bd-soft-line));
	border-radius: var(--bd-radius);
	padding: calc(var(--bd-pad) + 2px);
	padding-left: calc(var(--bd-pad) + 10px);
}

/* ======================================================== 04 — ticket */
.espt-block-bd-price-stack.is-design-ticket .bdp1 {
	background: var(--panel-bg, var(--bd-soft));
	border-radius: 14px;
	padding: calc(var(--bd-pad) + 4px);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
	-webkit-mask-image:
		radial-gradient(circle 10px at 0 58%, transparent 97%, #000 100%),
		radial-gradient(circle 10px at 100% 58%, transparent 97%, #000 100%);
	mask-image:
		radial-gradient(circle 10px at 0 58%, transparent 97%, #000 100%),
		radial-gradient(circle 10px at 100% 58%, transparent 97%, #000 100%);
}

.espt-block-bd-price-stack.is-design-ticket .bdp1-save {
	border-top: 2px dashed var(--panel-line, var(--bd-soft-line));
	margin-top: 4px;
	padding-top: 12px;
	width: 100%;
}

/* ======================================================== 05 — banner */
/* The panel is dark/saturated, so re-point the palette hooks: the savings
   chip, the note and the CTA button all have to stop defaulting to the same
   colour as the banner itself (they were invisible before). */
.espt-block-bd-price-stack.is-design-banner {
	--ps-muted: rgba(255, 255, 255, 0.82);
	--ps-cta-bg: #fff;
	--ps-cta-bg2: rgba(255, 255, 255, 0.7);
	--ps-cta-ink: var(--bd-primary-dark);
	--ps-save-plain: #fff;
	--ps-save-bg: rgba(255, 255, 255, 0.22);
	--ps-save-ink: #fff;
	--ps-soft-bg: rgba(255, 255, 255, 0.18);
	--ps-soft-ink: #fff;
}

/* Same trick as the card: the corner glow is a background layer (clipped by
   the radius automatically) instead of an overflow-hidden ::after, so the
   stand card can still be nudged outside the banner. */
.espt-block-bd-price-stack.is-design-banner .bdp1 {
	background-color: var(--panel-bg, var(--bd-primary));
	background-image:
		radial-gradient(circle 128px at calc(100% - 30px) 10px, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.12));
	border: 0;
	border-radius: var(--bd-radius);
	color: #fff;
	padding: calc(var(--bd-pad) + 4px);
}

.espt-block-bd-price-stack.is-design-banner .bdp1-label { color: var(--label-color, rgba(255, 255, 255, 0.85)); }
.espt-block-bd-price-stack.is-design-banner .bdp1-new { color: var(--new-color, #fff); }
.espt-block-bd-price-stack.is-design-banner .bdp1-old { color: var(--old-color, rgba(255, 255, 255, 0.78)); }
.espt-block-bd-price-stack.is-design-banner.is-save-style-dashed .bdp1-save-in { border-color: rgba(255, 255, 255, 0.6); }

/* The outline button's hover fill is the only thing the hooks cannot carry. */
.espt-block-bd-price-stack.is-design-banner.is-cta-design-outline .bd-cta-btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

/* ========================================================= 06 — split */
.espt-block-bd-price-stack.is-design-split .bdp1-row {
	border: 1px solid var(--panel-line, var(--bd-line));
	border-radius: 14px;
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 1fr);
	overflow: hidden;
	width: 100%;
}

.espt-block-bd-price-stack.is-design-split .bdp1-old,
.espt-block-bd-price-stack.is-design-split .bdp1-new {
	align-items: center;
	display: flex;
	flex: initial;
	justify-content: center;
	min-width: 0;
	padding: 12px 14px;
	text-align: center;
}

.espt-block-bd-price-stack.is-design-split .bdp1-old {
	background: var(--bd-soft);
	order: -1;
}

.espt-block-bd-price-stack.is-design-split .bdp1-new {
	background: var(--panel-bg, var(--bd-primary));
	color: var(--new-color, #fff);
	order: 0;
	padding: 16px 14px;
}

/* Only the badge that sits *inside* the price row is a grid item — it spans
   both columns so it never steals the old-price cell. A badge placed above /
   below / in the corner is a child of .bdp1 and must not be reordered. */
.espt-block-bd-price-stack.is-design-split .bdp1-row .bdp1-off {
	grid-column: 1 / -1;
	justify-content: center;
	order: -2;
}

/* No old price (product not on sale, or the field cleared) means there is no
   second panel to show — without this the bordered box keeps a blank half.
   The extra :not() outranks the two-column tablet rule at any width; browsers
   without :has() simply drop this rule and keep the old two-column look. */
.espt-block-bd-price-stack.is-design-split .bdp1-row:not(:has(.bdp1-old)) {
	grid-template-columns: minmax(0, 1fr);
}

/* ========================================================== 07 — pill */
.espt-block-bd-price-stack.is-design-pill .bdp1-row {
	align-items: center;
}

.espt-block-bd-price-stack.is-design-pill .bdp1-new {
	background: var(--panel-bg, var(--bd-soft));
	border: 1px solid var(--panel-line, var(--bd-soft-line));
	border-radius: 999px;
	color: var(--new-color, var(--bd-primary-dark));
	padding: 0.24em 0.7em;
}

.espt-block-bd-price-stack.is-design-pill .bdp1-old {
	background: rgba(100, 116, 139, 0.12);
	background: color-mix(in srgb, var(--bd-muted) 12%, transparent);
	border-radius: 999px;
	padding: 0.3em 0.7em;
}

/* ========================================================== 08 — hero */
.espt-block-bd-price-stack.is-design-hero .bdp1 {
	padding-top: 4px;
}

.espt-block-bd-price-stack.is-design-hero .bdp1-label {
	letter-spacing: 0.12em;
	opacity: 0.9;
}

.espt-block-bd-price-stack.is-design-hero .bdp1-new {
	font-size: calc(var(--new-size, 32px) * 1.18);
	letter-spacing: -0.02em;
	line-height: 1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.espt-block-bd-price-stack.is-design-hero .bdp1-new {
		/* Second line wins where color-mix is supported: the gradient has to
		   darken the colour the user actually picked, otherwise "Offer price
		   colour" always faded into the same near-black and looked ignored. */
		background-image: linear-gradient(120deg, var(--new-color, var(--bd-primary)), var(--bd-deep));
		background-image: linear-gradient(120deg, var(--new-color, var(--bd-primary)), color-mix(in srgb, var(--new-color, var(--bd-primary)) 45%, var(--bd-deep)));
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.espt-block-bd-price-stack.is-design-hero .bdp1-old {
	font-weight: 600;
	opacity: 0.85;
}

.espt-block-bd-price-stack.is-design-hero .bdp1-save-in {
	font-weight: 800;
}

/* ---------------------------------------------------- stand card (seal) */
.espt-block-bd-price-stack .bdp1-seal {
	align-items: flex-start;
	display: flex;
	inset: 0;
	justify-content: flex-end;
	padding: var(--seal-gap, 10px);
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

.espt-block-bd-price-stack.is-seal-position-top-left .bdp1-seal { align-items: flex-start; justify-content: flex-start; }
.espt-block-bd-price-stack.is-seal-position-top-center .bdp1-seal { align-items: flex-start; justify-content: center; }
.espt-block-bd-price-stack.is-seal-position-top-right .bdp1-seal { align-items: flex-start; justify-content: flex-end; }
.espt-block-bd-price-stack.is-seal-position-middle-left .bdp1-seal { align-items: center; justify-content: flex-start; }
.espt-block-bd-price-stack.is-seal-position-middle-center .bdp1-seal { align-items: center; justify-content: center; }
.espt-block-bd-price-stack.is-seal-position-middle-right .bdp1-seal { align-items: center; justify-content: flex-end; }
.espt-block-bd-price-stack.is-seal-position-bottom-left .bdp1-seal { align-items: flex-end; justify-content: flex-start; }
.espt-block-bd-price-stack.is-seal-position-bottom-center .bdp1-seal { align-items: flex-end; justify-content: center; }
.espt-block-bd-price-stack.is-seal-position-bottom-right .bdp1-seal { align-items: flex-end; justify-content: flex-end; }

.espt-block-bd-price-stack .bdp1-seal-rot {
	transform: translate(var(--seal-x, 0px), var(--seal-y, 0px)) rotate(var(--seal-rotate, 0deg));
	transform-origin: center;
}

.espt-block-bd-price-stack .bdp1-seal-badge {
	align-items: center;
	background: var(--seal-bg, var(--bd-danger));
	box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.55);
	color: var(--seal-color, #fff);
	display: flex;
	flex-direction: column;
	gap: 2px;
	justify-content: center;
	line-height: 1.15;
	text-align: center;
}

.espt-block-bd-price-stack .bdp1-seal-ico {
	display: inline-flex;
	font-size: calc(var(--seal-size, 72px) * 0.22);
	line-height: 0;
}

.espt-block-bd-price-stack .bdp1-seal-ico svg { height: 1em; width: 1em; }

.espt-block-bd-price-stack .bdp1-seal-text {
	font-size: calc(var(--seal-size, 72px) * 0.21);
	font-weight: 800;
	overflow-wrap: anywhere;
}

.espt-block-bd-price-stack .bdp1-seal-sub {
	font-size: calc(var(--seal-size, 72px) * 0.12);
	letter-spacing: 0.06em;
	opacity: 0.92;
	overflow-wrap: anywhere;
	text-transform: uppercase;
}

.espt-block-bd-price-stack.is-seal-shape-round .bdp1-seal-badge {
	border-radius: 50%;
	height: var(--seal-size, 72px);
	padding: 6px;
	width: var(--seal-size, 72px);
}

.espt-block-bd-price-stack.is-seal-shape-pill .bdp1-seal-badge {
	border-radius: 999px;
	max-width: 100%;
	padding: calc(var(--seal-size, 72px) * 0.09) calc(var(--seal-size, 72px) * 0.18);
}

.espt-block-bd-price-stack.is-seal-shape-pill .bdp1-seal-text { font-size: calc(var(--seal-size, 72px) * 0.17); }
.espt-block-bd-price-stack.is-seal-shape-pill .bdp1-seal-sub { font-size: calc(var(--seal-size, 72px) * 0.13); letter-spacing: 0; opacity: 0.9; text-transform: none; }

.espt-block-bd-price-stack.is-seal-shape-ribbon .bdp1-seal-badge {
	border-radius: 4px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
	max-width: 100%;
	padding: calc(var(--seal-size, 72px) * 0.1) calc(var(--seal-size, 72px) * 0.22) calc(var(--seal-size, 72px) * 0.18);
}

.espt-block-bd-price-stack.is-seal-shape-ribbon .bdp1-seal-text { font-size: calc(var(--seal-size, 72px) * 0.16); }
.espt-block-bd-price-stack.is-seal-shape-ribbon .bdp1-seal-sub { font-size: calc(var(--seal-size, 72px) * 0.12); letter-spacing: 0; text-transform: none; }

.espt-block-bd-price-stack.is-seal-anim-pop .bdp1-seal-badge { animation: espt-ps-seal-pop var(--seal-anim-dur, 900ms) cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.espt-block-bd-price-stack.is-seal-anim-bounce .bdp1-seal-badge { animation: espt-ps-seal-bounce var(--seal-anim-dur, 900ms) cubic-bezier(0.28, 0.84, 0.42, 1) both; }
.espt-block-bd-price-stack.is-seal-anim-spin .bdp1-seal-badge { animation: espt-ps-seal-spin var(--seal-anim-dur, 900ms) ease-out both; }
.espt-block-bd-price-stack.is-seal-anim-pulse .bdp1-seal-badge { animation: espt-ps-seal-pulse var(--seal-anim-dur, 900ms) ease-in-out infinite; }
.espt-block-bd-price-stack.is-seal-anim-float .bdp1-seal-badge { animation: espt-ps-seal-float var(--seal-anim-dur, 900ms) ease-in-out infinite alternate; }
.espt-block-bd-price-stack.is-seal-anim-tada .bdp1-seal-badge { animation: espt-ps-seal-tada calc(var(--seal-anim-dur, 900ms) * 2) ease-in-out infinite; }
.espt-block-bd-price-stack.is-seal-anim-rotate .bdp1-seal-badge { animation: espt-ps-seal-rotate calc(var(--seal-anim-dur, 900ms) * 4) linear infinite; }

@keyframes espt-ps-seal-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes espt-ps-seal-bounce {
	0% { opacity: 0; transform: translateY(-60%) scale(0.7); }
	60% { opacity: 1; transform: translateY(8%) scale(1.04); }
	80% { transform: translateY(-4%) scale(0.99); }
	100% { transform: translateY(0) scale(1); }
}
@keyframes espt-ps-seal-spin { from { opacity: 0; transform: rotate(-220deg) scale(0.3); } to { opacity: 1; transform: rotate(0deg) scale(1); } }
@keyframes espt-ps-seal-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes espt-ps-seal-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes espt-ps-seal-tada {
	0%, 100% { transform: scale(1) rotate(0); }
	12% { transform: scale(0.92) rotate(-4deg); }
	24%, 48% { transform: scale(1.08) rotate(4deg); }
	36%, 60% { transform: scale(1.08) rotate(-4deg); }
	72% { transform: scale(1) rotate(0); }
}
@keyframes espt-ps-seal-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- CTA button */
.espt-block-bd-price-stack .bd-cta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
	width: 100%;
}

.espt-block-bd-price-stack .bd-cta-al-left { align-items: flex-start; }
.espt-block-bd-price-stack .bd-cta-al-center { align-items: center; }
.espt-block-bd-price-stack .bd-cta-al-right { align-items: flex-end; }

.espt-block-bd-price-stack .bd-cta-btn {
	align-items: center;
	background: var(--cta-bg, var(--ps-cta-bg));
	border: 0;
	border-radius: var(--cta-radius, 12px);
	color: var(--cta-color, var(--ps-cta-ink));
	cursor: pointer;
	display: inline-flex;
	font-size: 16px;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	line-height: 1.25;
	max-width: 100%;
	padding: 13px 22px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	width: 100%;
}

.espt-block-bd-price-stack .bd-cta-btn:hover {
	color: var(--cta-color, var(--ps-cta-ink));
	filter: brightness(1.06);
	text-decoration: none;
}

/* The label is a flex child: without min-width:0 a long unbroken word pushes
   the button past a 320px screen instead of wrapping inside it. */
.espt-block-bd-price-stack .bd-cta-btn > span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.espt-block-bd-price-stack .bd-cta-hover-lift:hover { box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.45); transform: translateY(-3px); }
.espt-block-bd-price-stack .bd-cta-hover-scale:hover { transform: scale(1.04); }
.espt-block-bd-price-stack .bd-cta-hover-glow:hover {
	box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.45);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta-bg, var(--ps-cta-bg)) 28%, transparent);
}

.espt-block-bd-price-stack .bd-cta-note {
	color: var(--note-color, var(--ps-muted));
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.espt-block-bd-price-stack.is-cta-design-pill .bd-cta-btn { border-radius: 999px; }
.espt-block-bd-price-stack.is-cta-design-gradient .bd-cta-btn { background-image: linear-gradient(135deg, var(--cta-bg, var(--ps-cta-bg)), var(--ps-cta-bg2)); }
.espt-block-bd-price-stack.is-cta-design-outline .bd-cta-btn { background: transparent; border: 2px solid var(--cta-bg, var(--ps-cta-bg)); color: var(--cta-color, var(--cta-bg, var(--ps-cta-bg))); }
.espt-block-bd-price-stack.is-cta-design-outline .bd-cta-btn:hover { background: var(--bd-soft); color: var(--cta-color, var(--cta-bg, var(--ps-cta-bg))); }
.espt-block-bd-price-stack.is-cta-design-soft .bd-cta-btn { background: var(--cta-bg, var(--ps-soft-bg)); color: var(--cta-color, var(--ps-soft-ink)); }
.espt-block-bd-price-stack.is-cta-design-soft .bd-cta-btn:hover { color: var(--cta-color, var(--ps-soft-ink)); }
.espt-block-bd-price-stack.is-cta-design-3d .bd-cta-btn { box-shadow: 0 4px 0 var(--ps-cta-bg2); }
.espt-block-bd-price-stack.is-cta-design-3d .bd-cta-btn:active { box-shadow: 0 0 0 var(--ps-cta-bg2); transform: translateY(4px); }
.espt-block-bd-price-stack.is-cta-design-glow .bd-cta-btn { box-shadow: 0 8px 26px -8px var(--cta-bg, var(--ps-cta-bg)); }
.espt-block-bd-price-stack.is-cta-design-elevated .bd-cta-btn { box-shadow: 0 12px 26px -12px rgba(15, 23, 42, 0.5); }
.espt-block-bd-price-stack.is-cta-design-shine .bd-cta-btn { overflow: hidden; position: relative; }

.espt-block-bd-price-stack.is-cta-design-shine .bd-cta-btn::after {
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	content: "";
	height: 200%;
	left: -60%;
	position: absolute;
	top: -50%;
	transform: skewX(-18deg);
	transition: left 0.6s ease;
	width: 40%;
}

.espt-block-bd-price-stack.is-cta-design-shine .bd-cta-btn:hover::after { left: 130%; }
.espt-block-bd-price-stack.is-cta-design-ghost .bd-cta-btn { background: transparent; color: var(--cta-color, var(--ps-soft-ink)); padding: 6px 12px; text-decoration: underline; width: auto; }
.espt-block-bd-price-stack.is-cta-design-ghost .bd-cta-btn:hover { color: var(--cta-color, var(--ps-soft-ink)); }

.espt-block-bd-price-stack .bd-cta-attn .bd-cta-btn { animation: espt-ps-pop 1.8s ease-in-out infinite; }

/* A running animation outranks the hover rules, so the lift/scale hover
   effects did nothing while the attention pulse was on. */
.espt-block-bd-price-stack .bd-cta-attn:hover .bd-cta-btn { animation: none; }

@keyframes espt-ps-pop {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.035); }
}

.espt-block-bd-price-stack .bd-bico { display: inline-flex; flex: 0 0 auto; line-height: 0; transition: transform 0.2s ease; }
.espt-block-bd-price-stack .bd-bico svg { height: 1.05em; width: 1.05em; }
.espt-block-bd-price-stack .bd-cta-btn:hover .bd-bico-slide { transform: translateX(4px); }
.espt-block-bd-price-stack .bd-bico-bounce { animation: espt-ps-bico-bounce 1.4s ease-in-out infinite; }
.espt-block-bd-price-stack .bd-bico-pulse { animation: espt-ps-bico-pulse 1.4s ease-in-out infinite; }

@keyframes espt-ps-bico-bounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes espt-ps-bico-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

/* ------------------------------------------------------------- tablet */
@media (min-width: 768px) {
	.espt-block-bd-price-stack .bd-cta-btn { width: auto; }
	.espt-block-bd-price-stack .bd-cta-full .bd-cta-btn { width: 100%; }
	.espt-block-bd-price-stack.is-cta-design-ghost .bd-cta-btn { width: auto; }

	.espt-block-bd-price-stack.is-design-inline .bdp1 {
		align-items: center;
		column-gap: 18px;
		flex-direction: row;
		flex-wrap: wrap;
		row-gap: var(--stack-gap, 9px);
	}

	/* The row direction turns the block's text alignment into a main-axis
	   question — without this the pieces always hugged the left edge. */
	.espt-block-bd-price-stack.is-design-inline.is-text-align-left .bdp1 { justify-content: flex-start; }
	.espt-block-bd-price-stack.is-design-inline.is-text-align-center .bdp1 { justify-content: center; }
	.espt-block-bd-price-stack.is-design-inline.is-text-align-right .bdp1 { justify-content: flex-end; }

	.espt-block-bd-price-stack.is-design-inline .bdp1-note,
	.espt-block-bd-price-stack.is-design-inline .bd-cta {
		flex: 1 0 100%;
	}

	.espt-block-bd-price-stack.is-design-split .bdp1-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------ desktop */
@media (min-width: 1024px) {
	.espt-block-bd-price-stack.is-design-banner .bdp1,
	.espt-block-bd-price-stack.is-design-card .bdp1,
	.espt-block-bd-price-stack.is-design-ticket .bdp1 {
		padding: calc(var(--bd-pad) + 8px);
	}

	.espt-block-bd-price-stack.is-design-card .bdp1 {
		padding-left: calc(var(--bd-pad) + 16px);
	}
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
	.espt-block-bd-price-stack .bdp1-seal-badge,
	.espt-block-bd-price-stack .bd-cta-attn .bd-cta-btn,
	.espt-block-bd-price-stack .bd-bico-bounce,
	.espt-block-bd-price-stack .bd-bico-pulse {
		animation: none;
		opacity: 1;
	}

	.espt-block-bd-price-stack .bd-cta-btn,
	.espt-block-bd-price-stack .bd-bico,
	.espt-block-bd-price-stack.is-cta-design-shine .bd-cta-btn::after {
		transition: none;
	}

	.espt-block-bd-price-stack.is-cta-design-shine .bd-cta-btn::after { display: none; }
}
