/**
 * Modales compartidos.
 */

.depol-mr-app .depol-mr-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem 1rem;
	overflow-y: auto;
	background: rgba(var(--text-rgb), 0.55);
	backdrop-filter: blur(6px);
}

.depol-mr-app .depol-mr-modal-overlay.open {
	display: flex;
}

.depol-mr-app .depol-mr-modal {
	position: relative;
	width: 100%;
	max-width: 400px;
	margin: auto;
	padding: 2rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 4px solid rgba(59, 130, 246, 0.18);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.depol-mr-app .depol-mr-modal--confirm {
	width: min(94vw, 480px);
	max-width: 480px;
}

.depol-mr-app .depol-mr-modal--import {
	width: min(94vw, 640px);
	max-width: 640px;
}

.depol-mr-app .depol-mr-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--depol-mr-touch-min);
	min-height: var(--depol-mr-touch-min);
	margin: 0;
	padding: 0;
	border: none;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--textsub);
	font: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.depol-mr-app .depol-mr-modal-close:hover,
.depol-mr-app .depol-mr-modal-close:focus-visible {
	background: var(--surface-brand-soft);
	color: var(--navy);
	outline: none;
	box-shadow: var(--focus-ring);
}

.depol-mr-app .depol-mr-modal-lead {
	margin: 0 0 1.2rem;
	color: var(--textsub);
	font-size: 0.86rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.depol-mr-app .depol-mr-modal-warn {
	color: var(--warning);
}

.depol-mr-app .depol-mr-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.depol-mr-app .depol-mr-modal-actions .depol-mr-button--primary {
	flex: 1;
	width: auto;
	min-width: 8.75rem;
	margin-top: 0;
}
