/**
 * Custom Buy Now Button styles.
 * Most visual properties are controlled via Elementor's own controls
 * (inline styles). This file covers structural/behavioral CSS that
 * Elementor controls do not manage directly.
 */

.cbnb-button-wrapper {
	display: block;
	width: 100%;
}

.cbnb-buy-now-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-style: solid;
	border-width: 0;
	font-family: inherit;
	line-height: 1.4;
	text-decoration: none;
	transition: all 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
}

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

.cbnb-buy-now-button:disabled,
.cbnb-buy-now-button.cbnb-loading {
	cursor: not-allowed;
	opacity: 0.75;
}

/* Simple inline spinner shown via ::before while loading. */
.cbnb-buy-now-button.cbnb-loading .cbnb-button-text::before {
	content: '';
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.5em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -0.15em;
	animation: cbnb-spin 0.6s linear infinite;
}

@keyframes cbnb-spin {
	to {
		transform: rotate( 360deg );
	}
}

.cbnb-error-message {
	display: none;
	margin-top: 8px;
	color: #d63638;
	font-size: 0.875em;
	line-height: 1.4;
}

.cbnb-error-message.cbnb-visible {
	display: block;
}

.cbnb-editor-warning {
	padding: 12px 16px;
	background: #fff8e5;
	border: 1px dashed #f0b849;
	color: #6b5100;
	font-size: 13px;
	border-radius: 4px;
}

.cbnb-editor-note {
	margin-top: 6px;
	padding: 8px 12px;
	background: #eef6fc;
	border: 1px dashed #4a90d9;
	color: #1a4d7a;
	font-size: 12px;
	border-radius: 4px;
}
