/**
 * Modal de confirmacion personalizado.
 *
 * Reemplaza los confirm() nativos del navegador para no romper el modo de
 * pantalla completa (el dialogo nativo fuerza la salida del fullscreen).
 *
 * @package PabloPonceWeddingPlanner
 * @since   1.1.0
 */

#custom-confirm-modal.wedding-modal-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(17, 24, 39, 0.58);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	/* Debe quedar por encima de cualquier vista (incluido fullscreen). */
	z-index: 999999;
}

#custom-confirm-modal .wedding-modal-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0;
	background: #ffffff;
	color: #1f2937;
	border-radius: 16px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
	overflow: hidden;
	font-family: inherit;
	animation: ppwp-confirm-in 0.18s ease-out both;
}

#custom-confirm-modal .wedding-modal-header {
	padding: 20px 24px 0;
}

#custom-confirm-modal .wedding-modal-header h3,
#custom-confirm-modal .wedding-modal-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	color: #111827;
}

#custom-confirm-modal .wedding-modal-body {
	padding: 12px 24px 4px;
}

#custom-confirm-modal .wedding-modal-body p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

#custom-confirm-modal .wedding-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 20px 24px 22px;
}

#custom-confirm-modal .wedding-modal-actions button {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#custom-confirm-modal .wedding-modal-actions button:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

#custom-confirm-modal .btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

#custom-confirm-modal .btn-secondary:hover {
	background: #e5e7eb;
}

#custom-confirm-modal .btn-danger {
	background: #dc2626;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

#custom-confirm-modal .btn-danger:hover {
	background: #b91c1c;
}

#custom-confirm-modal .wedding-modal-actions button:active {
	transform: translateY(1px);
}

@keyframes ppwp-confirm-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 480px) {
	#custom-confirm-modal .wedding-modal-card {
		max-width: none;
	}

	#custom-confirm-modal .wedding-modal-actions {
		flex-direction: column-reverse;
	}

	#custom-confirm-modal .wedding-modal-actions button {
		width: 100%;
	}
}
