:root {
	--bsr-primary: #1e73be;
	--bsr-accent: #f58220;
	--bsr-ink: #203246;
	--bsr-soft: #f3f8fd;
	--bsr-border: #d6e5f3;
}

.bsr-top-bar {
	position: relative;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 42px;
	padding: 7px 16px;
	background: var(--bsr-primary);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
	color: #fff;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
}

.bsr-top-bar strong {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .002em;
	line-height: 1.3;
}
.bsr-top-progress-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 29px;
	margin: 0;
	padding: 6px 13px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 6px;
	background: transparent !important;
	box-shadow: none;
	color: #fff !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	text-decoration: none;
	text-transform: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: none;
}
.bsr-top-progress-button::after {
	content: none;
}
.bsr-top-progress-button:hover,
.bsr-top-progress-button:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, .14) !important;
	box-shadow: none;
	color: #fff !important;
	filter: none;
	transform: none;
}
.bsr-top-progress-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.bsr-top-bar .bsr-separator { color: var(--bsr-accent); font-weight: 900; }
.bsr-dynamic-product-price { display: inline-block; }
.bsr-gift-product-price { display: none; }
.bsr-dynamic-product-price.is-gift-available {
	display: inline-block;
	margin: 0;
	padding: 0;
	line-height: 1.2;
	vertical-align: baseline;
}
.bsr-dynamic-product-price.is-gift-available .bsr-normal-product-price {
	display: none;
}
.bsr-dynamic-product-price.is-gift-available .bsr-gift-product-price {
	display: inline;
	margin: 0;
	padding: 0;
	line-height: inherit;
	vertical-align: baseline;
}

/* O Flatsome aplica regras amplas aos spans de preço na página individual.
 * Esta normalização impede que os dois estados internos reservem altura extra. */
.single-product .product-info .bsr-dynamic-product-price.is-gift-available {
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	vertical-align: baseline !important;
	white-space: nowrap;
}
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .bsr-normal-product-price {
	display: none !important;
}
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .bsr-gift-product-price,
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .bsr-gift-original-price,
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .bsr-zero-product-price,
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .woocommerce-Price-amount,
.single-product .product-info .bsr-dynamic-product-price.is-gift-available .woocommerce-Price-currencySymbol,
.single-product .product-info .bsr-dynamic-product-price.is-gift-available bdi {
	display: inline !important;
	height: auto !important;
	min-height: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: inherit !important;
	vertical-align: baseline !important;
}
.bsr-gift-original-price {
	margin: 0 6px 0 0;
	opacity: .62;
	color: inherit;
	font-weight: 400;
}
.bsr-zero-product-price,
.bsr-zero-product-price .woocommerce-Price-amount,
.bsr-zero-product-price .woocommerce-Price-currencySymbol {
	color: #169447;
	font-size: inherit;
	font-weight: 800;
	text-decoration: none;
}

/* Na pagina individual, o preco gratis deve ter a mesma metrica visual do
 * preco normal do Flatsome. Isso evita que um negrito mais pesado aumente
 * visualmente o bloco e mantenha espaco desnecessario abaixo da linha. */
.single-product .product-info .bsr-zero-product-price,
.single-product .product-info .bsr-zero-product-price .woocommerce-Price-amount,
.single-product .product-info .bsr-zero-product-price .woocommerce-Price-currencySymbol,
.single-product .product-info .bsr-zero-product-price bdi {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.bsr-progress-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 22px;
}

.bsr-progress-wrap.is-loading { opacity: .55; pointer-events: none; }
.bsr-progress-card {
	position: relative;
	padding: 16px;
	border: 1px solid var(--bsr-border);
	border-top: 4px solid var(--bsr-primary);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(30, 115, 190, .08);
}

.bsr-progress-card.is-unlocked { border-top-color: var(--bsr-accent); background: #fffaf5; }
.bsr-progress-copy { display: flex; gap: 10px; }
.bsr-progress-copy strong { color: var(--bsr-ink); font-size: 15px; }
.bsr-progress-copy p { margin: 4px 0 0; color: #526578; font-size: 13px; line-height: 1.4; }
.bsr-steps { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; }
.bsr-steps::before { content: ''; position: absolute; }
.bsr-steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	border: 2px solid var(--bsr-border);
	border-radius: 50%;
	background: #fff;
	color: #789;
	font-size: 12px;
	font-weight: 800;
}
.bsr-steps span.done { border-color: var(--bsr-primary); background: var(--bsr-primary); color: #fff; }
.bsr-steps span.gift.done { border-color: var(--bsr-accent); background: var(--bsr-accent); }
.bsr-stage-meter { height: 9px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: var(--bsr-border); }
.bsr-stage-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bsr-primary), var(--bsr-accent)); transition: width .25s ease; }
.bsr-stage-summary { display: block; margin-top: 5px; color: #526578; font-weight: 700; }
.bsr-choose-button {
	display: inline-block;
	margin-top: 13px;
	padding: 9px 13px;
	border-radius: 6px;
	background: var(--bsr-accent);
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}
.bsr-choose-button:hover { filter: brightness(.94); color: #fff; }
.bsr-free-price { color: #138a49; }
.bsr-line-gift { display: block; color: #138a49; font-weight: 700; }
.bsr-progress-wrap.is-compact {
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 0 0 18px;
}
.bsr-progress-wrap.is-compact .bsr-progress-card {
	padding: 14px 15px;
	border: 1px solid #dce8f2;
	border-left: 4px solid var(--bsr-primary);
	border-radius: 10px;
	background: linear-gradient(90deg, #f7fbff 0, #fff 45%);
	box-shadow: 0 4px 14px rgba(24, 48, 73, .07);
}
.bsr-progress-wrap.is-compact .bsr-progress-card.is-unlocked {
	border-left-color: var(--bsr-accent);
	background: linear-gradient(90deg, #fff8f0 0, #fff 45%);
}
.bsr-progress-wrap.is-compact .bsr-progress-copy {
	min-height: 0;
	gap: 9px;
	align-items: flex-start;
}
.bsr-progress-wrap.is-compact .bsr-gift-icon {
	flex: 0 0 auto;
	margin-top: 1px;
	font-size: 17px;
	line-height: 1.25;
}
.bsr-progress-wrap.is-compact .bsr-progress-copy strong {
	display: block;
	font-size: 15px;
	line-height: 1.35;
}
.bsr-progress-wrap.is-compact .bsr-progress-copy p {
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.4;
}
.bsr-progress-wrap.is-compact .bsr-stage-meter {
	height: 8px;
	margin-top: 11px;
	background: #dce8f2;
}
.bsr-floating-progress { position: fixed; left: 18px; right: auto; bottom: 18px; z-index: 90; width: min(365px, calc(100vw - 36px)); border: 1px solid var(--bsr-border); border-radius: 12px; background: #fff; box-shadow: 0 13px 38px rgba(24,48,73,.23); color: var(--bsr-ink); transition: opacity .16s ease, visibility .16s ease; }
.bsr-floating-progress:not(.bsr-state-ready) { opacity: 0; visibility: hidden; pointer-events: none; }
.bsr-floating-progress.has-unlocked { border-color: var(--bsr-accent); box-shadow: 0 14px 45px rgba(245,130,32,.28); }
.bsr-floating-toggle {
	display: flex !important;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	gap: 9px;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 0;
	border-radius: 11px;
	background: var(--bsr-primary);
	color: #fff;
	font-family: inherit;
	line-height: 1.2 !important;
	text-align: left;
	text-transform: none !important;
	cursor: pointer;
}
.bsr-floating-progress.has-unlocked .bsr-floating-toggle { background: var(--bsr-accent); }
.bsr-floating-toggle > span:nth-child(2) { min-width: 0; flex: 1; }
.bsr-floating-toggle strong,
.bsr-floating-toggle small { display: block; color: #fff; }
.bsr-floating-toggle strong { font-size: 16px; line-height: 1.25; }
.bsr-floating-toggle small { overflow: hidden; margin-top: 3px; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bsr-floating-icon { font-size: 24px; line-height: 1; }
.bsr-floating-chevron { font-size: 20px; line-height: 1; font-weight: 900; }
.bsr-floating-progress:not(.is-open) .bsr-floating-body { display: none; }
.bsr-floating-progress:not(.is-open) .bsr-floating-chevron::before { content: '+'; }
.bsr-floating-progress:not(.is-open) .bsr-floating-chevron { font-size: 0; }
.bsr-floating-progress:not(.is-open) .bsr-floating-chevron::before { font-size: 20px; }
.bsr-floating-body { max-height: min(72vh, 680px); padding: 12px; overflow-y: auto; }
.bsr-progress-wrap.is-floating { grid-template-columns: 1fr; margin: 0; }
.bsr-progress-wrap.is-floating .bsr-progress-card { padding: 13px; box-shadow: none; }
.bsr-floating-progress.bsr-just-unlocked { animation: bsr-pulse 1s ease 2; }
.bsr-floating-progress.has-unlocked:not(.bsr-just-unlocked) { animation: bsr-gift-hop 1.65s ease-in-out infinite; transform-origin: left bottom; }
.bsr-floating-progress.has-unlocked:hover,
.bsr-floating-progress.has-unlocked:focus-within { animation-play-state: paused; }
@keyframes bsr-pulse { 50% { transform: translateY(-5px); box-shadow: 0 18px 55px rgba(245,130,32,.45); } }
@keyframes bsr-gift-hop {
	0%, 55%, 100% { transform: translateY(0); }
	65% { transform: translateY(-5px); }
	75% { transform: translateY(0); }
	84% { transform: translateY(-2px); }
}

@media (max-width: 849px) {
	.bsr-top-bar { gap: 9px; min-height: 38px; padding: 6px 10px; font-size: 12px; }
	.bsr-top-bar strong { font-size: 12px; line-height: 1.3; }
	.bsr-top-progress-button { min-height: 27px; padding: 5px 10px; font-size: 11px; }
	.bsr-progress-wrap { grid-template-columns: 1fr; }
	.bsr-floating-progress { left: 12px; right: auto; bottom: 12px; width: min(350px, calc(100vw - 24px)); }
	.bsr-floating-body { max-height: 65vh; }
}

@media (prefers-reduced-motion: reduce) {
	.bsr-stage-meter span,
	.bsr-floating-progress { transition: none; animation: none !important; }
}
