/*
 * Tema Rytual per SweetAlert2 (js/sweetalert2/).
 * Allinea popup e pulsanti allo stile del CMS.
 * I colori dei pulsanti si impostano in js/sweetalert2-config.js.
 */

.swal2-popup.swal2-rytual {
	font-family: Poppins, sans-serif;
	-webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;
	padding: 24px;
}

.swal2-popup.swal2-rytual .swal2-title {
	color: var(--black-soft);
	font-size: 1.4em;
	font-weight: 600;
	padding: 0 0 8px;
}

.swal2-popup.swal2-rytual .swal2-html-container {
	color: var(--black-soft);
	font-size: 1.0em;
	margin: 8px 0 0;
}

.swal2-popup.swal2-rytual .swal2-actions {
	gap: 8px;
	margin-top: 24px;
}

.swal2-popup.swal2-rytual .swal2-styled {
	height: 48px;
	padding: 0 24px;
	-webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px;
	text-transform: uppercase;
	font-size: 0.9em;
	letter-spacing: 0.1em;
	box-shadow: none;
}

.swal2-popup.swal2-rytual .swal2-styled:focus {
	box-shadow: none;
}

.swal2-popup.swal2-rytual .swal2-styled.swal2-cancel {
	background-color: transparent !important;
	border: 1px solid var(--grey);
	color: var(--dark-grey);
}

.swal2-popup.swal2-rytual .swal2-styled.swal2-cancel:hover {
	border-color: var(--dark-grey);
	color: var(--black-soft);
}

/* Elimina: Annulla azzurro, Sì elimina rosso (--error-color come gli altri delete) */
.swal2-popup.swal2-rytual-invert-actions .swal2-styled.swal2-cancel {
	background-color: var(--main-color, #29c8ff) !important;
	border: 1px solid var(--main-color, #29c8ff);
	color: #fff;
}

.swal2-popup.swal2-rytual-invert-actions .swal2-styled.swal2-cancel:hover {
	opacity: 0.9;
	color: #fff;
}

.swal2-popup.swal2-rytual-invert-actions .swal2-styled.swal2-confirm {
	background-color: var(--error-color, #FF4444) !important;
	border: 1px solid var(--error-color, #FF4444);
	color: #fff;
}

.swal2-popup.swal2-rytual-invert-actions .swal2-styled.swal2-confirm:hover {
	opacity: 0.9;
	color: #fff;
}

.swal2-popup.swal2-rytual .swal2-timer-progress-bar {
	background: var(--main-color);
}

.swal2-popup.swal2-rytual .rytual-swal-list {
	text-align: left;
	line-height: 1.6;
	font-size: 0.95em;
	margin: 8px 0 0;
	padding-left: 20px;
}

.swal2-popup.swal2-rytual .rytual-swal-list b {
	font-weight: 600;
}

/* Nasconde icona se body ha classe da showIcon:false */
body.rytual-swal-no-icon .swal2-icon {
	display: none !important;
}
