/**
 * On-Page Checkout - Activation Confirmation Modal
 */

.w3opcfe-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	box-sizing: border-box;
}

.w3opcfe-modal-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.w3opcfe-modal-dialog {
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	border-radius: 12px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: relative;
	transform: scale(0.94) translateY(6px);
	transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.w3opcfe-modal-overlay.is-active .w3opcfe-modal-dialog {
	transform: scale(1) translateY(0);
}

.w3opcfe-modal-header {
	padding: 24px 24px 16px 24px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	box-sizing: border-box;
}

.w3opcfe-modal-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.w3opcfe-modal-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.w3opcfe-modal-title-wrap {
	flex-grow: 1;
	padding-right: 20px;
}

.w3opcfe-modal-title {
	margin: 0 0 8px 0 !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
}

.w3opcfe-modal-desc {
	margin: 0 !important;
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: #475569 !important;
}

.w3opcfe-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 18px;
	color: #94a3b8;
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.w3opcfe-modal-close:hover,
.w3opcfe-modal-close:focus {
	color: #0f172a;
	background: #f1f5f9;
	outline: none;
}

.w3opcfe-modal-footer {
	padding: 16px 24px 20px 24px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	box-sizing: border-box;
}

.w3opcfe-modal-btn {
	font-size: 13.5px !important;
	font-weight: 500 !important;
	border-radius: 6px !important;
	padding: 8px 16px !important;
	height: auto !important;
	min-height: 38px;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	line-height: 1.4 !important;
	transition: all 0.15s ease !important;
	border: 1px solid transparent !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

.w3opcfe-modal-btn-cancel {
	background: #ffffff !important;
	border-color: #cbd5e1 !important;
	color: #334155 !important;
}

.w3opcfe-modal-btn-cancel:hover,
.w3opcfe-modal-btn-cancel:focus {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
	outline: none !important;
}

.w3opcfe-modal-btn-continue {
	background: #2563eb !important;
	color: #ffffff !important;
	border-color: #2563eb !important;
}

.w3opcfe-modal-btn-continue:hover,
.w3opcfe-modal-btn-continue:focus {
	background: #1d4ed8 !important;
	border-color: #1d4ed8 !important;
	color: #ffffff !important;
	outline: none !important;
}

.w3opcfe-modal-btn-continue:disabled,
.w3opcfe-modal-btn-cancel:disabled {
	opacity: 0.7 !important;
	cursor: not-allowed !important;
}

.w3opcfe-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: w3opcfeModalSpin 0.7s linear infinite;
	display: none;
	flex-shrink: 0;
}

.w3opcfe-modal-btn-continue.is-loading .w3opcfe-spinner,
.w3opcfe-modal-btn-cancel.is-loading .w3opcfe-spinner {
	display: inline-block;
}

@keyframes w3opcfeModalSpin {
	to {
		transform: rotate(360deg);
	}
}
