#warning_popup {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 2rem);
	margin: auto;
	border: none;
	padding: 0;
	background: #fff;
	color: var(--body_typography-color, #212934);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	overflow: auto;
}

#warning_popup::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

/* Mobile: keep a gap to the screen edges */
@media (max-width: 600px) {
	#warning_popup {
		width: calc(100% - 2rem);
	}
}

html.warning-popup-open {
	overflow: hidden;
}

#warning_popup .warning {
	padding: 0;
}

#warning_popup .warning__header {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--awb-color4);
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
	color: #fff;
	padding: 10px 30px;
}

#warning_popup .warning__header::before,
#warning_popup .warning__close::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}

/* Warning triangle */
#warning_popup .warning__header::before {
	content: "\f071";
}

#warning_popup .warning__header-text {
	flex: 1 1 auto;
}

/* Close icon; a real button so it works with keyboard and screen readers */
#warning_popup .warning__close {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	color: inherit;
	font-size: inherit;
	line-height: 1;
	cursor: pointer;
}

#warning_popup .warning__close::before {
	content: "\f057";
}

#warning_popup .warning__close:hover {
	opacity: 0.8;
}

#warning_popup .warning__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

#warning_popup .warning__content {
	padding: 20px 30px;
}

#warning_popup .warning__title {
	margin: 0 0 20px;
	color: var(--awb-color4);
	font-weight: 900 !important;
}

#warning_popup .warning__text > :first-child {
	margin-top: 0;
}

#warning_popup .warning__text > :last-child {
	margin-bottom: 0;
}

#warning_popup .warning__text ul {
	margin: 1em 0 0;
	padding-left: 1.25em;
	list-style: disc;
}

#warning_popup .warning__text li + li {
	margin-top: 0.5em;
}

@media (max-width: 600px) {
	#warning_popup .warning__header {
		font-size: 20px;
		padding: 10px 20px;
		gap: 12px;
	}

	#warning_popup .warning__title {
		font-size: 24px;
	}

	#warning_popup .warning__content {
		padding: 20px;
	}
}
