/* ── Anchor placeholder (ocupa espacio en el flujo del documento) ── */
.snb-anchor {
	display: none;
}

/* ── Barra sticky ── */
.snb-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 9999;
	background-color: #fff;
	transform: translateY(-110%);
	transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
	opacity: 0;
	pointer-events: none;
}

.snb-bar.snb-pos-top {
	top: 0;
	transform: translateY(-110%);
}

.snb-bar.snb-pos-bottom {
	bottom: 0;
	top: auto;
	transform: translateY(110%);
}

.snb-bar.snb-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/* ── Contenido interno ── */
.snb-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap !important;
}

/* ── Lado izquierdo ── */
.snb-left {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 0;
}

.snb-label {
	font-size: 15px;
	color: #374151;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.snb-prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.snb-price-original {
	font-size: 14px;
	color: #9ca3af;
	text-decoration: line-through;
}

.snb-price-current {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	line-height: 1.1;
}

.snb-note {
	font-size: 12px;
	color: #6b7280;
}

/* ── Lado derecho ── */
.snb-right {
	flex-shrink: 0;
}

@keyframes snb-scale-pulse {
	0%, 100% { transform: scale(1); }
	50%       { transform: scale(1.04); }
}

.snb-btn-wrap {
	display: inline-flex;
	flex-shrink: 0;
	animation: snb-scale-pulse 1.8s ease-in-out infinite;
}

.snb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f97316;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 28px;
	border-radius: 6px; /* 1px menos que el wrap para que se vea el borde */
	white-space: nowrap;
	transition: background-color .2s ease, transform .15s ease;
	cursor: pointer;
	border: none;
	width: 100%;
	justify-content: center;
}

.snb-btn:hover {
	background-color: #ea6c0a;
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}

.snb-btn-icon {
	display: flex;
	align-items: center;
	font-size: 1em;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.snb-inner {
		gap: 10px;
	}

	.snb-label {
		white-space: normal;
		font-size: 13px;
	}

	.snb-price-current {
		font-size: 18px;
	}

	.snb-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* ── Editor de Elementor: mostrar siempre visible ── */
.elementor-editor-active .snb-bar {
	position: relative !important;
	transform: none !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
