.creps-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	transition: opacity 200ms ease;
	padding: 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.creps-modal--open {
	opacity: 1;
}

.creps-modal__box {
	background: #fff;
	border-radius: 12px;
	max-width: 400px;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 200ms ease;
}

.creps-modal--open .creps-modal__box {
	transform: scale(1);
}

.creps-modal__header {
	padding: 40px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.creps-modal--success .creps-modal__header {
	background: #7CB342;
}

.creps-modal--error .creps-modal__header {
	background: #E53935;
}

.creps-modal__icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 3px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.creps-modal__body {
	padding: 28px 24px 24px;
	text-align: center;
}

.creps-modal__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #333;
}

.creps-modal__message {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: #666;
}

.creps-modal__button {
	display: inline-block;
	padding: 12px 36px;
	border: none;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: opacity 150ms ease, transform 150ms ease;
	font-family: inherit;
}

.creps-modal--success .creps-modal__button {
	background: #7CB342;
}

.creps-modal--error .creps-modal__button {
	background: #E53935;
}

.creps-modal__button:hover {
	opacity: 0.9;
}

.creps-modal__button:active {
	transform: scale(0.98);
}

.creps-modal__button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.creps-modal__box {
		max-width: 100%;
	}

	.creps-modal__header {
		padding: 32px 16px;
	}

	.creps-modal__icon {
		width: 64px;
		height: 64px;
	}

	.creps-modal__body {
		padding: 24px 20px 20px;
	}

	.creps-modal__title {
		font-size: 18px;
	}

	.creps-modal__message {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.creps-modal,
	.creps-modal__box,
	.creps-modal__button {
		transition: none;
	}
}