/**
 * Modale di conferma branded — stile allineato alle altre modali Intersections
 * (cfr. intersections-privacy-consent/consent-modal.css).
 * Palette: navy #221e4d, purple #744a89, pink #e6007c.
 */

html.iow-confirm-open {
	overflow: hidden;
}

.iow-confirm-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: rgba(34, 30, 77, 0.6);
}

.iow-confirm-overlay.iow-confirm-hidden {
	display: none;
}

.iow-confirm {
	position: relative;
	width: min(480px, 100%);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	background: #ffffff;
	padding: 40px;
	font-family: 'Poppins', sans-serif;
	color: #221e4d;
}

.iow-confirm:focus {
	outline: none;
}

.iow-confirm-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #221e4d;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.iow-confirm-close:hover {
	color: #744a89;
}

.iow-confirm-title {
	margin: 0 0 12px;
	padding-right: 36px;
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: #221e4d;
}

.iow-confirm-msg {
	margin: 0 0 32px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #221e4d;
}

.iow-confirm-actions {
	display: flex;
	gap: 16px;
}

.iow-confirm-cancel,
.iow-confirm-ok {
	flex: 1 1 0;
	height: 46px;
	padding: 12px 24px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
	border-radius: 0;
	cursor: pointer;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.iow-confirm-cancel {
	background: #ffffff;
	border: 1px solid #221e4d;
	color: #221e4d;
}

.iow-confirm-cancel:hover {
	background: #f1f0f6;
}

.iow-confirm-ok {
	background: linear-gradient(90deg, #221e4d 0%, #744a89 100%);
	border: 0;
	color: #ffffff;
}

.iow-confirm-ok:hover {
	opacity: 0.9;
}

@media (max-width: 600px) {
	.iow-confirm {
		padding: 28px 20px;
	}
	.iow-confirm-actions {
		flex-direction: column-reverse;
	}
}
