:root {
	--sf-popup-backdrop: rgba(0, 0, 0, 0.55);
	--sf-popup-radius: 12px;
	--sf-popup-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.sf-popup.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1050;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}

/* Fallback backdrop when Bootstrap CSS não estiver presente */
.sf-popup.modal.show,
.sf-popup.modal.d-block {
	display: block;
	background: var(--sf-popup-backdrop);
}

.sf-popup .modal-dialog {
	margin: 1.75rem auto;
	max-width: 720px;
	pointer-events: none;
	width: auto;
	position: relative;
}

.sf-popup .modal-dialog-centered {
	min-height: calc(100% - 3.5rem);
	display: flex;
	align-items: center;
}

.sf-popup .modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border: none;
	border-radius: var(--sf-popup-radius);
	box-shadow: var(--sf-popup-shadow);
	outline: 0;
}

.sf-popup .modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 24px;
}

.sf-popup .modal-title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.sf-popup .btn-close {
	border: none;
	background: transparent;
	width: 24px;
	height: 24px;
	line-height: 1;
	opacity: 0.6;
	cursor: pointer;
}

.sf-popup .btn-close::before {
	content: '\00d7';
	font-size: 20px;
	display: block;
	text-align: center;
	color: #000;
}

.sf-popup .btn-close:hover,
.sf-popup .btn-close:focus {
	opacity: 0.9;
	outline: none;
}

@media (max-width: 576px) {
	.sf-popup .modal-dialog {
		margin: 0.75rem auto;
	}

	.sf-popup .modal-body {
		padding: 20px 16px;
	}
}