/**
 * Deo Instant Buy Now — front-end styles.
 * Kept minimal and easily overridden; all colours/typography/spacing
 * that the Elementor widget exposes are applied via inline CSS variables
 * scoped to the widget wrapper, generated by Elementor itself.
 */

.ibn-wrapper {
	display: block;
	margin: 0;
}

.ibn-wrapper.ibn-full-width .ibn-form,
.ibn-wrapper.ibn-full-width .ibn-buy-now-btn {
	width: 100%;
}

.ibn-align-left {
	text-align: left;
}

.ibn-align-center {
	text-align: center;
}

.ibn-align-right {
	text-align: right;
}

.ibn-form {
	display: inline-block;
	max-width: 100%;
}

.ibn-wrapper.ibn-full-width .ibn-form {
	display: block;
}

.ibn-buy-now-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	position: relative;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 4px;
	background-color: #7f54b3;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	padding: 12px 24px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
}

.ibn-buy-now-btn:hover {
	opacity: 0.92;
}

.ibn-buy-now-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.ibn-buy-now-btn.ibn-is-loading {
	pointer-events: none;
}

.ibn-icon svg,
.ibn-icon i {
	display: inline-flex;
	width: 1em;
	height: 1em;
	font-size: 1.1em;
}

.ibn-icon-after {
	order: 2;
}

.ibn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: ibn-spin 0.6s linear infinite;
}

.ibn-buy-now-btn.ibn-is-loading .ibn-spinner {
	display: inline-block;
}

.ibn-buy-now-btn.ibn-is-loading .ibn-btn-label {
	opacity: 0.7;
}

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

.ibn-variations {
	width: 100%;
	margin-bottom: 10px;
	border-collapse: collapse;
}

.ibn-variations td {
	padding: 4px 6px 4px 0;
	vertical-align: middle;
}

.ibn-variations td.label {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.ibn-variations select {
	width: 100%;
	max-width: 220px;
	padding: 6px 8px;
}

.ibn-single-variation-wrap {
	margin-bottom: 8px;
}

.ibn-variation-message {
	font-size: 13px;
	color: #6d7175;
}

.ibn-variation-message--unavailable {
	color: #cc1818;
}

.ibn-error-message {
	display: none;
	margin-top: 8px;
	font-size: 13px;
	color: #cc1818;
}

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

.ibn-notice {
	font-size: 13px;
	color: #6d7175;
	font-style: italic;
}
