.ics-popup {
	display: none;
	inset: 0;
	position: fixed;
	z-index: 1000;
}

.ics-popup[hidden] {
	display: none !important;
}

.ics-popup.is-active {
	display: block;
}

body.ics-popup-open {
	overflow: hidden;
}

.ics-popup__backdrop {
	background: rgba(0, 0, 0, 0.5);
	border: 0;
	cursor: pointer;
	inset: 0;
	padding: 0;
	position: absolute;
	width: 100%;
}

.ics-popup__dialog {
	background: #fff;
	left: 50%;
	max-height: calc(100vh - 2rem);
	max-width: min(42rem, calc(100vw - 2rem));
	overflow: auto;
	padding: 2rem;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
}

.ics-popup__title {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ics-popup__close {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: 0.25rem;
	position: absolute;
	right: 0.75rem;
	top: 0.5rem;
}

.ics-popup__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.25rem;
}