.rbm-buttons-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: 100%;
	margin: 2rem auto 0;
}

.rbm-button {
	--rbm-button-color: var(--rbm-default-button-color, #2563eb);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	width: min(100%, 420px);
	min-height: 58px;
	padding: 1rem 1.4rem;
	border: 1px solid color-mix(in srgb, var(--rbm-button-color) 72%, #ffffff);
	border-radius: 18px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--rbm-button-color) 92%, #ffffff), var(--rbm-button-color));
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
	transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, border-color 0.22s ease;
}

.rbm-button,
.rbm-button:hover,
.rbm-button:focus,
.rbm-button:focus-visible,
.rbm-button:active,
.rbm-button:visited,
.rbm-button .rbm-button__label,
.rbm-button .rbm-button__icon {
	text-decoration: none !important;
}

.rbm-button:hover,
.rbm-button:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 22px 40px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	filter: saturate(1.04);
	color: #ffffff;
	outline: none;
}

.rbm-button:focus-visible {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--rbm-primary-color, #2563eb) 22%, #ffffff), 0 22px 40px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rbm-button__icon {
	flex: 0 0 auto;
	font-size: 1.1rem;
	width: 1.1rem;
	height: 1.1rem;
}

.rbm-button__label {
	text-align: center;
}

.rbm-buttons-wrapper:not(.rbm-no-animations) .rbm-button {
	animation: rbm-fade-up 0.5s ease both;
}

.rbm-buttons-wrapper:not(.rbm-no-animations) .rbm-button:nth-child(2) {
	animation-delay: 0.04s;
}

.rbm-buttons-wrapper:not(.rbm-no-animations) .rbm-button:nth-child(3) {
	animation-delay: 0.08s;
}

.rbm-buttons-wrapper:not(.rbm-no-animations) .rbm-button:nth-child(4) {
	animation-delay: 0.12s;
}

.rbm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: var(--rbm-overlay-bg, rgba(15, 23, 42, 0.92));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.rbm-overlay.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.rbm-overlay.rbm-animations-disabled,
.rbm-overlay.rbm-animations-disabled * {
	transition: none !important;
	animation: none !important;
}

.rbm-overlay__dialog {
	width: min(100%, 28rem);
	padding: 2rem 1.5rem;
	border-radius: 1.5rem;
	text-align: center;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	color: #ffffff;
}

.rbm-overlay__text {
	margin: 1rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.rbm-spinner {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto;
	border-radius: 50%;
	border: 4px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--rbm-spinner-color, #ffffff);
	animation: rbm-spin 0.85s linear infinite;
}

.rbm-overlay__actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.25rem;
	flex-wrap: wrap;
}

.rbm-overlay__button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.15rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.rbm-overlay__button:hover,
.rbm-overlay__button:focus-visible {
	transform: translateY(-1px);
}

.rbm-overlay__button--primary {
	background: var(--rbm-primary-color, #2563eb);
	color: #ffffff;
}

.rbm-overlay__button--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

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

@keyframes rbm-fade-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.rbm-button {
		width: 100%;
		max-width: 100%;
		border-radius: 16px;
	}

	.rbm-overlay__dialog {
		padding: 1.6rem 1.1rem;
	}
}

@supports not (background: color-mix(in srgb, red 50%, white)) {
	.rbm-button {
		border-color: rgba(255, 255, 255, 0.18);
		background: var(--rbm-button-color, #2563eb);
	}

	.rbm-button:focus-visible {
		box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 22px 40px rgba(15, 23, 42, 0.2);
	}
}
