/* Elementor Buy Now Button — base styles
   Note: colors, typography, border, radius, padding, hover state and width
   are all generated dynamically per-widget-instance by Elementor's own
   control system (see class-buy-now-button-widget.php). This file only
   contains structural / behavioral CSS that isn't tied to a specific
   instance's design settings. */

.bnb-buy-now-wrap {
	width: 100%;
}

.bnb-buy-now-btn {
	align-items: center;
	justify-content: center;
	gap: 0;
	border-style: solid;
	border-width: 0;
	cursor: pointer;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.bnb-buy-now-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.bnb-buy-now-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.bnb-buy-now-icon svg {
	fill: currentColor;
}

/* In-flight state while the AJAX add-to-cart request / form submit is running */
.bnb-buy-now-btn[data-bnb-processing="1"] {
	opacity: .65;
	pointer-events: none;
	cursor: progress;
}

.bnb-btn-disabled,
.bnb-buy-now-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	pointer-events: none;
}

/* -----------------------------------------------------------
 * Mobile sticky bar
 * These base rules keep the bar visually inert (off-screen,
 * invisible, non-interactive) until JS explicitly activates it
 * for the current viewport — so there is zero risk of it ever
 * showing on desktop/tablet even before JS runs.
 * --------------------------------------------------------- */
.bnb-sticky-buy-now {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform .35s cubic-bezier(.22,.68,0,1), opacity .3s ease, visibility .35s;
	will-change: transform, opacity;
}

.bnb-sticky-buy-now[data-bnb-safe-area="1"] {
	padding-bottom: calc(env(safe-area-inset-bottom, 0px));
}

.bnb-sticky-buy-now.bnb-sticky-active {
	display: block;
}

.bnb-sticky-buy-now.bnb-sticky-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.bnb-sticky-buy-now .bnb-buy-now-btn {
	display: flex;
	width: 100%;
	border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
	.bnb-sticky-buy-now {
		transition: opacity .2s linear, visibility .2s;
	}
}
