.site-popup_root {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.site-popup_root:not([hidden]) {
	pointer-events: auto;
}

.site-popup_overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.site-popup_group {
	position: absolute;
	inset: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1.5rem;
	overflow-y: auto;
	pointer-events: none;
}

.site-popup_card {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	max-width: min(96vw, 100%);
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.site-popup_header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.5rem 0.5rem 0.5rem 1rem;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.site-popup_title {
	display: none;
}

.btn_popup_close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	border-radius: 0.375rem;
}

.btn_popup_close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.btn_popup_close .material-symbols-outlined {
	font-size: 1.25rem;
}

.site-popup_body {
	flex: 1 1 auto;
	overflow: auto;
	min-height: 0;
}

.site-popup_image {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.site-popup_link {
	display: block;
}

.site-popup_editor {
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #334155;
}

.site-popup_editor img {
	max-width: 100%;
	height: auto;
}

.site-popup_footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	font-size: 0.8125rem;
}

.site-popup_label_hide {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	cursor: pointer;
	color: #475569;
	user-select: none;
}

.btn_popup_close_footer {
	padding: 0.375rem 0.875rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.375rem;
	background: #fff;
	color: #334155;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.btn_popup_close_footer:hover {
	border-color: #6668AF;
	color: #6668AF;
}

body.site-popup_open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.site-popup_group {
		align-items: flex-end;
		padding-bottom: 1rem;
	}

	.site-popup_card {
		width: 100% !important;
		max-height: 85vh !important;
	}
}
