/*
 * PassTheBar Bundle Offers: customer-facing styles.
 * Every rule is scoped under .pbbo-root so nothing leaks into the theme.
 * The main colour comes from the settings page (--pbbo-brand).
 */

.pbbo-root {
	--pbbo-brand: #1f3a5f;
	--pbbo-brand-soft: #eef2f7;
	--pbbo-brand-line: #c9d3e1;
	--pbbo-ink: #18202b;
	--pbbo-muted: #556070;
	--pbbo-line: #dde2ea;
	--pbbo-surface: #ffffff;
	--pbbo-soft: #f6f7f9;
	--pbbo-gold: #8a5a00;
	--pbbo-gold-mid: #d9a441;
	--pbbo-gold-soft: #fdf6e7;
	--pbbo-green: #126343;
	--pbbo-green-soft: #e6f3ec;
	--pbbo-radius: 14px;
	--pbbo-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
	--pbbo-shadow-lg: 0 24px 64px rgba(16, 24, 40, 0.22);
}

@supports (color: color-mix(in srgb, red 50%, white)) {
	.pbbo-root {
		--pbbo-brand-soft: color-mix(in srgb, var(--pbbo-brand) 7%, #ffffff);
		--pbbo-brand-line: color-mix(in srgb, var(--pbbo-brand) 28%, #ffffff);
	}
}

.pbbo-root,
.pbbo-root *,
.pbbo-root *::before,
.pbbo-root *::after {
	box-sizing: border-box;
}

.pbbo-root p {
	margin: 0;
}

.pbbo-root .pbbo-svg {
	display: block;
	width: 1em;
	height: 1em;
	flex: none;
}

/* ---------- Shared pieces ---------- */

.pbbo-root .pbbo-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pbbo-gold);
}

.pbbo-root .pbbo-testtag {
	display: inline-block;
	margin: 0 0 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff4d6;
	border: 1px dashed #c58a00;
	color: #6b4a00;
	font-size: 12px;
	font-weight: 600;
}

.pbbo-root .pbbo-badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--pbbo-brand);
	color: #ffffff;
	font-size: 24px;
}

.pbbo-root .pbbo-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	margin: 0;
	padding: 12px 24px;
	border: 2px solid var(--pbbo-brand);
	border-radius: 10px;
	background: var(--pbbo-brand);
	color: #ffffff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.pbbo-root .pbbo-btn:hover {
	filter: brightness(0.9);
	color: #ffffff;
}

.pbbo-root .pbbo-btn:active {
	transform: translateY(1px);
}

.pbbo-root .pbbo-btn[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
	filter: none;
	transform: none;
}

.pbbo-root .pbbo-btn--ghost {
	background: transparent;
	color: var(--pbbo-brand);
}

.pbbo-root .pbbo-btn--ghost:hover {
	background: var(--pbbo-brand-soft);
	color: var(--pbbo-brand);
	filter: none;
}

.pbbo-root .pbbo-btn:focus-visible,
.pbbo-root .pbbo-link:focus-visible,
.pbbo-root .pbbo-chip:focus-visible,
.pbbo-root .pbbo-modal__x:focus-visible,
.pbbo-root .pbbo-toast__x:focus-visible,
.pbbo-root button.pbbo-card:focus-visible {
	outline: 3px solid var(--pbbo-gold-mid);
	outline-offset: 2px;
}

.pbbo-root .pbbo-link {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--pbbo-brand);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}

.pbbo-root .pbbo-link:hover {
	color: var(--pbbo-ink);
}

/* ---------- Product page banner ---------- */

.pbbo-root.pbbo-banner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 20px 0;
	padding: 18px 20px;
	border: 1px solid #ecd9ae;
	border-left: 5px solid var(--pbbo-gold-mid);
	border-radius: var(--pbbo-radius);
	background: linear-gradient(135deg, var(--pbbo-gold-soft) 0%, #ffffff 70%);
	color: var(--pbbo-ink);
	font-size: 16px;
	line-height: 1.5;
}

.pbbo-root.pbbo-banner .pbbo-badge-icon {
	background: var(--pbbo-gold-mid);
	color: #2b1d00;
}

.pbbo-root .pbbo-banner__body {
	min-width: 0;
}

.pbbo-root .pbbo-banner__title {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-banner__text {
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-banner__upsell,
.pbbo-root .pbbo-banner__meta,
.pbbo-root .pbbo-panel__meta,
.pbbo-root .pbbo-modal__meta,
.pbbo-root .pbbo-tip {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 10px;
	font-size: 15px;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-banner__upsell .pbbo-svg,
.pbbo-root .pbbo-banner__meta .pbbo-svg,
.pbbo-root .pbbo-panel__meta .pbbo-svg,
.pbbo-root .pbbo-modal__meta .pbbo-svg,
.pbbo-root .pbbo-tip .pbbo-svg {
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.pbbo-root .pbbo-banner__meta,
.pbbo-root .pbbo-panel__meta,
.pbbo-root .pbbo-modal__meta {
	font-weight: 600;
	color: var(--pbbo-gold);
}

.pbbo-root .pbbo-banner__upsell a,
.pbbo-root .pbbo-teaser a {
	color: var(--pbbo-brand);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Cart panel ---------- */

.pbbo-root.pbbo-panel {
	margin: 0 0 28px;
	padding: 24px;
	border: 1px solid var(--pbbo-line);
	border-top: 5px solid var(--pbbo-brand);
	border-radius: var(--pbbo-radius);
	background: var(--pbbo-surface);
	box-shadow: var(--pbbo-shadow);
	color: var(--pbbo-ink);
	font-size: 16px;
	line-height: 1.5;
}

.pbbo-root.pbbo-panel.is-done {
	border-top-color: var(--pbbo-green);
}

.pbbo-root.pbbo-panel.is-done .pbbo-panel__head .pbbo-badge-icon {
	background: var(--pbbo-green);
}

.pbbo-root.pbbo-panel.is-paused {
	border-top-color: var(--pbbo-gold-mid);
	background: var(--pbbo-gold-soft);
}

.pbbo-root.pbbo-panel.is-paused .pbbo-panel__head .pbbo-badge-icon {
	background: var(--pbbo-gold-mid);
	color: #2b1d00;
}

.pbbo-root.pbbo-panel.is-teaser {
	border-top-width: 1px;
	padding: 18px 20px;
}

.pbbo-root.pbbo-panel.pbbo-is-highlight {
	animation: pbbo-pulse 1.6s ease-out 2;
}

@keyframes pbbo-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.6), var(--pbbo-shadow);
	}
	100% {
		box-shadow: 0 0 0 18px rgba(217, 164, 65, 0), var(--pbbo-shadow);
	}
}

.pbbo-root .pbbo-panel__head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.pbbo-root .pbbo-panel__intro {
	min-width: 0;
}

.pbbo-root .pbbo-panel__title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-panel__text {
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-panel__text .woocommerce-Price-amount,
.pbbo-root .pbbo-modal__text .woocommerce-Price-amount,
.pbbo-root .pbbo-banner__text .woocommerce-Price-amount,
.pbbo-root .pbbo-reminder__text .woocommerce-Price-amount {
	font-weight: 700;
	color: var(--pbbo-ink);
}

/* ---------- Picker ---------- */

.pbbo-root .pbbo-picker {
	margin-top: 20px;
}

.pbbo-root .pbbo-group + .pbbo-group {
	margin-top: 18px;
}

.pbbo-root .pbbo-group__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pbbo-root .pbbo-cards > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pbbo-root .pbbo-cards > li::before,
.pbbo-root .pbbo-cards > li::marker {
	content: none;
}

.pbbo-root .pbbo-card,
.pbbo-root button.pbbo-card {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	row-gap: 2px;
	align-items: center;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 14px 16px;
	border: 2px solid var(--pbbo-line);
	border-radius: 12px;
	background: var(--pbbo-surface);
	color: var(--pbbo-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pbbo-root button.pbbo-card:hover {
	border-color: var(--pbbo-brand-line);
	background: var(--pbbo-surface);
	color: var(--pbbo-ink);
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.pbbo-root button.pbbo-card.is-on,
.pbbo-root button.pbbo-card[aria-pressed="true"] {
	border-color: var(--pbbo-brand);
	background: var(--pbbo-brand-soft);
}

.pbbo-root .pbbo-card__tick {
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--pbbo-brand-line);
	border-radius: 50%;
	background: #ffffff;
	color: transparent;
	font-size: 16px;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pbbo-root button.pbbo-card[aria-pressed="true"] .pbbo-card__tick {
	border-color: var(--pbbo-brand);
	background: var(--pbbo-brand);
	color: #ffffff;
}

.pbbo-root .pbbo-card__name {
	font-weight: 700;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-card__price {
	display: flex;
	gap: 8px;
	align-items: baseline;
	font-size: 14px;
}

.pbbo-root .pbbo-card__price del {
	color: var(--pbbo-muted);
	opacity: 0.85;
}

.pbbo-root .pbbo-card__price strong {
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--pbbo-green-soft);
	color: var(--pbbo-green);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pbbo-root .pbbo-card.is-off {
	border-style: dashed;
	background: var(--pbbo-soft);
	cursor: default;
}

.pbbo-root .pbbo-card.is-off .pbbo-card__name {
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-card.is-off .pbbo-card__tick {
	border-color: var(--pbbo-line);
	background: var(--pbbo-line);
	color: #ffffff;
}

.pbbo-root .pbbo-card__note {
	font-size: 14px;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-picker__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--pbbo-line);
}

.pbbo-root .pbbo-picker__count {
	font-size: 17px;
	font-weight: 700;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-picker__msg {
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--pbbo-brand);
}

.pbbo-root .pbbo-picker__msg.is-error {
	color: #a12622;
}

.pbbo-root .pbbo-picker.is-busy {
	opacity: 0.75;
	pointer-events: none;
}

/* ---------- Suggestions under the panel ---------- */

.pbbo-root .pbbo-strip {
	margin-top: 20px;
	padding: 16px 18px;
	border: 1px solid var(--pbbo-line);
	border-radius: 12px;
	background: var(--pbbo-soft);
}

.pbbo-root.pbbo-panel.is-teaser .pbbo-strip:first-child {
	margin-top: 0;
}

.pbbo-root .pbbo-strip__title {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 800;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-strip__text {
	font-size: 15px;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.pbbo-root a.pbbo-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--pbbo-brand-line);
	border-radius: 999px;
	background: var(--pbbo-surface);
	color: var(--pbbo-ink);
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbbo-root a.pbbo-chip:hover {
	border-color: var(--pbbo-brand);
	color: var(--pbbo-ink);
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.pbbo-root .pbbo-chip__name {
	font-weight: 700;
}

.pbbo-root .pbbo-chip__price {
	color: var(--pbbo-muted);
	font-size: 14px;
}

.pbbo-root .pbbo-chip__add {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--pbbo-brand);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
}

.pbbo-root .pbbo-tip {
	margin-top: 18px;
	font-weight: 600;
	color: var(--pbbo-brand);
}

.pbbo-root .pbbo-teaser {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.pbbo-root .pbbo-teaser .pbbo-badge-icon {
	width: 40px;
	height: 40px;
	font-size: 20px;
	background: var(--pbbo-gold-mid);
	color: #2b1d00;
}

.pbbo-root .pbbo-teaser__title {
	font-size: 17px;
	font-weight: 800;
}

.pbbo-root .pbbo-teaser__text {
	font-size: 15px;
	color: var(--pbbo-muted);
}

/* ---------- Checkout reminder ---------- */

.pbbo-root.pbbo-reminder {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
	align-items: center;
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 2px solid var(--pbbo-gold-mid);
	border-radius: var(--pbbo-radius);
	background: var(--pbbo-gold-soft);
	color: var(--pbbo-ink);
	font-size: 16px;
	line-height: 1.5;
}

.pbbo-root.pbbo-reminder .pbbo-badge-icon {
	background: var(--pbbo-gold-mid);
	color: #2b1d00;
}

.pbbo-root .pbbo-reminder__body {
	flex: 1 1 260px;
	min-width: 0;
}

.pbbo-root .pbbo-reminder__title {
	font-size: 18px;
	font-weight: 800;
}

.pbbo-root .pbbo-reminder__text {
	color: var(--pbbo-muted);
}

/* ---------- Pop-up ---------- */

html.pbbo-lock,
html.pbbo-lock body {
	overflow: hidden;
}

.pbbo-root.pbbo-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: var(--pbbo-ink);
	font-size: 16px;
	line-height: 1.5;
}

.pbbo-root.pbbo-modal[hidden] {
	display: none;
}

.pbbo-root .pbbo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 19, 32, 0.6);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.pbbo-root .pbbo-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 32px;
	border-radius: 18px;
	background: var(--pbbo-surface);
	box-shadow: var(--pbbo-shadow-lg);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.pbbo-root .pbbo-modal__dialog:focus {
	outline: none;
}

.pbbo-root.pbbo-modal.is-open .pbbo-modal__backdrop {
	opacity: 1;
}

.pbbo-root.pbbo-modal.is-open .pbbo-modal__dialog {
	opacity: 1;
	transform: none;
}

.pbbo-root .pbbo-modal__x,
.pbbo-root .pbbo-toast__x {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pbbo-soft);
	color: var(--pbbo-ink);
	font: inherit;
	font-size: 28px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.pbbo-root .pbbo-modal__x:hover,
.pbbo-root .pbbo-toast__x:hover {
	background: var(--pbbo-line);
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-modal__hero {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.pbbo-root .pbbo-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--pbbo-gold-soft);
	border: 2px solid var(--pbbo-gold-mid);
	color: var(--pbbo-gold);
	font-size: 30px;
}

.pbbo-root .pbbo-modal__hero .pbbo-testtag {
	margin-left: auto;
	margin-right: auto;
}

.pbbo-root .pbbo-modal__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
	color: var(--pbbo-ink);
}

.pbbo-root .pbbo-modal__text {
	color: var(--pbbo-muted);
	font-size: 17px;
}

.pbbo-root .pbbo-modal__meta {
	justify-content: center;
}

.pbbo-root .pbbo-modal__later {
	margin-top: 14px;
	text-align: center;
}

.pbbo-root .pbbo-done {
	padding: 12px 0 4px;
	text-align: center;
}

.pbbo-root .pbbo-done__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--pbbo-green);
	color: #ffffff;
	font-size: 28px;
}

.pbbo-root .pbbo-done__title {
	font-size: 22px;
	font-weight: 800;
}

.pbbo-root .pbbo-done__text {
	margin-top: 4px;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-done__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
}

/* ---------- Nudge ---------- */

.pbbo-root.pbbo-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999998;
	width: 400px;
	max-width: calc(100vw - 32px);
	padding: 20px;
	border: 1px solid var(--pbbo-line);
	border-top: 5px solid var(--pbbo-gold-mid);
	border-radius: var(--pbbo-radius);
	background: var(--pbbo-surface);
	box-shadow: var(--pbbo-shadow-lg);
	color: var(--pbbo-ink);
	font-size: 16px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.pbbo-root.pbbo-toast[hidden] {
	display: none;
}

.pbbo-root.pbbo-toast.is-open {
	opacity: 1;
	transform: none;
}

.pbbo-root .pbbo-toast__head {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-right: 40px;
}

.pbbo-root .pbbo-toast__head .pbbo-badge-icon {
	width: 40px;
	height: 40px;
	font-size: 20px;
	background: var(--pbbo-gold-mid);
	color: #2b1d00;
}

.pbbo-root .pbbo-toast__title {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 800;
}

.pbbo-root .pbbo-toast__text {
	margin-top: 8px;
	color: var(--pbbo-muted);
}

.pbbo-root .pbbo-toast__more {
	margin-top: 10px;
}

/* ---------- Free lines in the cart table ---------- */
/* Strong rules here on purpose: themes often colour prices in the cart. */

.pbbo-root.pbbo-line-price {
	display: inline-block;
	line-height: 1.4;
}

.pbbo-root.pbbo-line-price del {
	margin-right: 6px;
}

.pbbo-root.pbbo-line-price del,
.pbbo-root.pbbo-line-price del * {
	color: #6b7280 !important;
	opacity: 1 !important;
	text-decoration: line-through !important;
	font-weight: 400 !important;
}

.pbbo-root.pbbo-line-price .pbbo-line-free {
	color: #12723f !important;
	background: none !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pbbo-root.pbbo-line-price .pbbo-line-save,
.pbbo-root.pbbo-line-price .pbbo-line-save * {
	color: #12723f !important;
	font-size: inherit;
	font-weight: 600 !important;
}

.pbbo-root.pbbo-line-price .pbbo-line-save {
	display: block;
	font-size: 0.85em;
}

.pbbo-root.pbbo-savings,
.pbbo-root.pbbo-savings * {
	color: #12723f !important;
	font-weight: 700 !important;
}

.pbbo-root.pbbo-change {
	display: block;
	margin-top: 2px;
	font-size: 0.875em;
}

.pbbo-root.pbbo-change .pbbo-change-link {
	color: var(--pbbo-brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Changing free picks ---------- */

.pbbo-root .pbbo-change-row {
	margin-top: 16px;
}

.pbbo-root .pbbo-swap-wrap[hidden] {
	display: none;
}

.pbbo-root .pbbo-picker__hint {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--pbbo-brand-soft);
	color: var(--pbbo-ink);
	font-size: 15px;
}

/* ---------- Line added to WooCommerce's "added to your cart" message ---------- */

.pbbo-root.pbbo-notice-line {
	display: block;
	margin-top: 6px;
}

/* ---------- Test panel (administrators, test mode only) ---------- */

.pbbo-root.pbbo-testbox {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: auto;
	max-width: min(320px, calc(100vw - 32px));
	padding: 8px 12px;
	border: 2px dashed #c58a00;
	border-radius: 10px;
	background: #fffbea;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15);
	color: #3b2a00;
	font-size: 13px;
	line-height: 1.4;
}

.pbbo-root.pbbo-testbox summary {
	font-weight: 700;
	cursor: pointer;
}

.pbbo-root.pbbo-testbox .pbbo-testbox__rows {
	margin: 8px 0 6px;
	padding: 0;
	list-style: none;
}

.pbbo-root.pbbo-testbox .pbbo-testbox__rows li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 2px 0;
	border-bottom: 1px dotted #e3cf8f;
	list-style: none;
}

.pbbo-root.pbbo-testbox .pbbo-testbox__rows strong {
	white-space: nowrap;
}

.pbbo-root.pbbo-testbox p {
	margin-top: 6px;
}

.pbbo-root .pbbo-testbox__soft {
	color: #6b5a2a;
	font-size: 12px;
}

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

@media (max-width: 600px) {
	.pbbo-root.pbbo-panel {
		padding: 18px 16px;
	}

	.pbbo-root .pbbo-panel__head {
		gap: 12px;
	}

	.pbbo-root .pbbo-badge-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.pbbo-root .pbbo-panel__title {
		font-size: 20px;
	}

	.pbbo-root .pbbo-cards {
		grid-template-columns: 1fr;
	}

	.pbbo-root .pbbo-picker__bar {
		position: sticky;
		bottom: 0;
		margin-left: -16px;
		margin-right: -16px;
		padding: 14px 16px;
		background: var(--pbbo-surface);
	}

	.pbbo-root .pbbo-picker__bar .pbbo-btn {
		width: 100%;
	}

	.pbbo-root.pbbo-modal {
		align-items: flex-end;
		padding: 0;
	}

	.pbbo-root .pbbo-modal__dialog {
		max-height: 92vh;
		padding: 24px 16px 16px;
		border-radius: 18px 18px 0 0;
	}

	.pbbo-root .pbbo-modal__title {
		font-size: 23px;
	}

	.pbbo-root.pbbo-reminder .pbbo-btn {
		width: 100%;
	}

	.pbbo-root.pbbo-toast {
		right: 16px;
		bottom: 16px;
		left: 16px;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbbo-root,
	.pbbo-root * {
		animation: none !important;
		transition: none !important;
	}
}
