/* ATWS Optin Success Modal */

.atws-optin-success-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.atws-optin-success-overlay.atws-visible {
	display: flex;
	opacity: 1;
}

.atws-optin-success-modal {
	background: #fff;
	border-radius: 12px;
	padding: 40px 48px;
	max-width: 520px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px);
	transition: transform 0.3s ease;
	position: relative;
}

.atws-optin-success-overlay.atws-visible .atws-optin-success-modal {
	transform: translateY(0);
}

.atws-optin-success-modal .atws-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	background: #4CAF50;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.atws-optin-success-modal .atws-success-icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.atws-optin-success-modal .atws-success-heading {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #333;
	line-height: 1.3;
}

.atws-optin-success-modal .atws-success-message {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
	margin: 0;
}

.atws-optin-success-modal .atws-success-message p {
	margin: 0 0 10px;
}

.atws-optin-success-modal .atws-success-message p:last-child {
	margin-bottom: 0;
}

.atws-optin-success-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	transition: background 0.2s ease, color 0.2s ease;
}

.atws-optin-success-close:hover,
.atws-optin-success-close:focus {
	background: #f1f1f1;
	color: #333;
	outline: none;
}

.atws-optin-success-close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* Hide the opt-in form when success state is active */
.atws-optin-form-hidden .accessally-optin-form {
	display: none !important;
}
