.customthings-customizer-root {
	margin-top: 12px;
}

.customthings-customizer-button {
	display: inline-block;
	position: relative;
	min-height: 44px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #111;
	background: #fff;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	overflow: visible;
	box-sizing: border-box;
	z-index: 1;
}

.customthings-customizer-button--loading {
	opacity: 0.8;
}

.customthings-customizer-button--active {
	position: relative;
	z-index: 1;
}

.customthings-customizer-button--active::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 12px;
	background: linear-gradient(
		90deg,
		#4f46e5 0%,
		#7c3aed 25%,
		#ec4899 50%,
		#f59e0b 75%,
		#eab308 100%
	);
	z-index: -2;
}

.customthings-customizer-button--active::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 8px;
	background: #fff;
	z-index: -1;
}

.customthings-customizer-button--active:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.customthings-customizer-button--active:active {
	transform: translateY(0);
}

.customthings-customizer-button--inactive {
	opacity: 0.4;
	color: #111;
	cursor: not-allowed;
	filter: contrast(0.4);
}

.customthings-customizer-button--inactive:hover {
	opacity: 0.5;
}

.customthings-customizer-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.customthings-customizer-modal[hidden] {
	display: none !important;
}

.customthings-customizer-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.customthings-customizer-modal__panel {
	position: relative;
	width: min(1100px, calc(100vw - 32px));
	height: min(760px, calc(100vh - 32px));
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.customthings-customizer-modal__iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.customthings-modal-open {
	overflow: hidden;
}
