/* Balcam – Pop-up de stock insuficiente */
#balcam-stock-modal {
	--bsp-accent: #0c71c3;
	--bsp-accent-2: #f3961e;
	--bsp-text: #263646;
	--bsp-muted: #5b6b7a;
	--bsp-bg: #ffffff;
	--bsp-radius: 16px;
}

.bsp-lock,
.bsp-lock body {
	overflow: hidden !important;
}

.bsp-overlay,
.bsp-overlay * {
	box-sizing: border-box;
}

.bsp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999; /* above Divi header and the floating cart */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 30, 40, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.bsp-overlay[hidden] {
	display: none;
}

.bsp-overlay.bsp-open {
	opacity: 1;
}

.bsp-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 32px 28px 24px;
	border-radius: var(--bsp-radius);
	border-top: 6px solid var(--bsp-accent-2);
	background: var(--bsp-bg);
	color: var(--bsp-text);
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.2s ease;
}

.bsp-open .bsp-dialog {
	transform: none;
}

.bsp-x {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	color: var(--bsp-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.bsp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(243, 150, 30, 0.14);
	color: var(--bsp-accent-2);
}

.bsp-title {
	margin: 0 0 10px;
	padding: 0;
	color: var(--bsp-accent);
	font-family: 'Boogaloo', 'Montserrat', sans-serif;
	font-size: 26px;
	line-height: 1.2;
}

.bsp-msg {
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.bsp-hint {
	margin: 0 0 20px;
	padding: 0;
	color: var(--bsp-muted);
	font-size: 14px;
	line-height: 1.5;
}

.bsp-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bsp-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border: 2px solid var(--bsp-accent);
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.bsp-btn[hidden] {
	display: none;
}

.bsp-btn-primary {
	background: var(--bsp-accent);
	color: #fff;
}

.bsp-btn-primary:hover,
.bsp-btn-primary:focus-visible {
	background: #0a5fa4;
	border-color: #0a5fa4;
}

.bsp-btn-ghost {
	background: transparent;
	color: var(--bsp-accent);
}

.bsp-btn-ghost:hover,
.bsp-btn-ghost:focus-visible {
	background: rgba(12, 113, 195, 0.08);
	color: var(--bsp-accent);
}

.bsp-btn:focus-visible,
.bsp-x:focus-visible {
	outline: 3px solid var(--bsp-accent-2);
	outline-offset: 2px;
}

/* Invisible marker inside WooCommerce notices */
.balcam-stock-flag {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.bsp-overlay,
	.bsp-dialog {
		transition: none;
	}
}
