:root {
	--jdw-bpb-bg: #ffffff;
	--jdw-bpb-border: #ececec;
	--jdw-bpb-shadow: 0 -8px 32px rgba(17, 17, 17, 0.08);
	--jdw-bpb-text: #1a1a1a;
	--jdw-bpb-muted: #5c5c5c;
	--jdw-bpb-cta: #fb6427;
	--jdw-bpb-cta-hover: #e4551c;
	--jdw-bpb-cta-text: #ffffff;
	--jdw-bpb-radius: 8px;
	--jdw-bpb-logo-col: 88px;
	--jdw-bpb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
	--jdw-bpb-offset: 72px;
}

body.jdw-bpb-active {
	padding-bottom: var(--jdw-bpb-offset);
}

.jdw-bpb-root {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 99990;
	pointer-events: none;
}

/* iPhone: stay at the bottom of the small viewport (toolbar open).
   bottom:0 follows the toolbar as it hides, then the toolbar covers the CTA when it returns. */
.jdw-bpb-root--pinned {
	top: 0;
	bottom: auto;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.jdw-bpb {
	position: relative;
	left: auto;
	right: auto;
	bottom: auto;
	width: 100%;
	flex: 0 0 auto;
	pointer-events: auto;
	overflow: visible;
	box-sizing: border-box;
	background: var(--jdw-bpb-bg);
	border-top: 1px solid var(--jdw-bpb-border);
	box-shadow: var(--jdw-bpb-shadow);
	font-family: var(--jdw-bpb-font);
	color: var(--jdw-bpb-text);
}

.jdw-bpb *,
.jdw-bpb *::before,
.jdw-bpb *::after {
	box-sizing: border-box;
}

.jdw-bpb__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: none;
	gap: 16px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
}

.jdw-bpb__logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.jdw-bpb__inner--no-logo .jdw-bpb__logo {
	display: none;
}

.jdw-bpb__logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
}

.jdw-bpb__logo-link:focus-visible {
	outline: 2px solid var(--jdw-bpb-cta);
	outline-offset: 3px;
	border-radius: 4px;
}

.jdw-bpb__logo-img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.jdw-bpb__spacer {
	display: none;
}

.jdw-bpb__cluster {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	min-width: 0;
	max-width: 100%;
}

.jdw-bpb__copy {
	min-width: 0;
	max-width: 42rem;
}

.jdw-bpb__headline {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.jdw-bpb__text {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--jdw-bpb-text);
}

.jdw-bpb__price,
.jdw-bpb__price-was {
	margin: 0;
	white-space: nowrap;
	line-height: 1.2;
}

.jdw-bpb__price {
	font-size: 16px;
	font-weight: 800;
	color: var(--jdw-bpb-text);
}

.jdw-bpb__price-was {
	font-size: 14px;
	font-weight: 600;
	color: var(--jdw-bpb-muted);
	text-decoration: line-through;
}

.jdw-bpb__subtext {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--jdw-bpb-muted);
}

.jdw-bpb__promo {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.jdw-bpb__promo-code {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border: 1px dashed var(--jdw-bpb-cta);
	border-radius: 4px;
	color: var(--jdw-bpb-cta);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.jdw-bpb__promo-copy {
	appearance: none;
	margin: 0;
	padding: 4px 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--jdw-bpb-text);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.jdw-bpb__promo-copy:hover,
.jdw-bpb__promo-copy:focus-visible {
	color: var(--jdw-bpb-cta);
}

.jdw-bpb__promo-copy:focus-visible {
	outline: 2px solid var(--jdw-bpb-cta);
	outline-offset: 2px;
}

.jdw-bpb__promo-live {
	font-size: 12px;
	color: var(--jdw-bpb-muted);
}

.jdw-bpb__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--jdw-bpb-radius);
	background: var(--jdw-bpb-cta);
	color: var(--jdw-bpb-cta-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.jdw-bpb__cta:hover,
.jdw-bpb__cta:focus-visible {
	background: var(--jdw-bpb-cta-hover);
	color: var(--jdw-bpb-cta-text);
}

.jdw-bpb__cta:focus-visible {
	outline: 2px solid var(--jdw-bpb-cta);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.jdw-bpb__inner {
		display: grid;
		grid-template-columns: 32px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	}

	.jdw-bpb__logo {
		grid-column: 1;
		grid-row: 1;
		z-index: 1;
	}

	.jdw-bpb__logo-img {
		width: 32px;
		height: 32px;
	}

	.jdw-bpb__spacer {
		display: none;
	}

	.jdw-bpb__cluster {
		display: grid;
		flex: none;
		grid-column: 1 / -1;
		grid-row: 1 / span 2;
		grid-template-columns: 32px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 10px;
		align-items: center;
		justify-content: stretch;
		max-width: none;
		min-width: 0;
	}

	.jdw-bpb__copy {
		grid-column: 2;
		grid-row: 1;
		max-width: none;
	}

	.jdw-bpb__cta {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		max-width: none;
		white-space: normal;
		flex-shrink: 0;
	}

	.jdw-bpb__inner--no-logo {
		grid-template-columns: 1fr;
	}

	.jdw-bpb__inner--no-logo .jdw-bpb__logo {
		display: none;
	}

	.jdw-bpb__inner--no-logo .jdw-bpb__cluster {
		grid-template-columns: 1fr;
	}

	.jdw-bpb__inner--no-logo .jdw-bpb__copy {
		grid-column: 1;
	}
}
