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

.hawthorne-event-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	padding: 18px;
	font-family: Arial, Helvetica, sans-serif;
}

.hawthorne-event-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 18, 0, 35, 0.88 );
	backdrop-filter: blur( 4px );
}

.hawthorne-event-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min( 760px, 96vw );
	max-height: 96vh;
	max-height: 96svh;
	overflow: hidden;
	background: #23003d;
	border: 3px solid #fff;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba( 0, 0, 0, 0.62 );
}

.hawthorne-event-popup__dialog:focus {
	outline: 3px solid #ffcf38;
	outline-offset: 3px;
}

.hawthorne-event-popup__x {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #210035;
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	background: #fff;
	border: 2px solid #210035;
	border-radius: 50%;
	cursor: pointer;
}

.hawthorne-event-popup__image-wrap {
	min-height: 0;
	overflow: auto;
	background: #23003d;
	overscroll-behavior: contain;
}

.hawthorne-event-popup__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.hawthorne-event-popup__image--flyer {
	max-height: calc( 96vh - 82px );
	max-height: calc( 96svh - 82px );
	object-fit: contain;
}

.hawthorne-event-popup__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 12px;
	background: #23003d;
	border-top: 1px solid rgba( 255, 255, 255, 0.3 );
}

.hawthorne-event-popup__button {
	min-height: 46px;
	padding: 10px 18px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	border: 2px solid #fff;
	border-radius: 7px;
	cursor: pointer;
}

.hawthorne-event-popup__button--primary {
	color: #fff;
	background: #d50012;
}

.hawthorne-event-popup__button--secondary {
	color: #24003e;
	background: #fff;
}

.hawthorne-event-popup__button:focus-visible,
.hawthorne-event-popup__x:focus-visible {
	outline: 3px solid #ffcf38;
	outline-offset: 2px;
}

body.hawthorne-event-popup-open {
	overflow: hidden;
}

@media ( max-width: 600px ) {
	.hawthorne-event-popup {
		padding: 7px;
	}

	.hawthorne-event-popup__dialog {
		width: 98vw;
		max-height: 98vh;
		max-height: 98svh;
		border-width: 2px;
		border-radius: 10px;
	}

	.hawthorne-event-popup__image--flyer {
		max-height: calc( 98vh - 76px );
		max-height: calc( 98svh - 76px );
	}

	.hawthorne-event-popup__actions {
		padding: 9px;
	}

	.hawthorne-event-popup__button {
		flex: 1;
		padding: 9px 8px;
		font-size: 14px;
	}
}

@media ( prefers-reduced-motion: no-preference ) {
	.hawthorne-event-popup:not([hidden]) .hawthorne-event-popup__dialog {
		animation: hawthorne-event-popup-in 180ms ease-out;
	}

	@keyframes hawthorne-event-popup-in {
		from {
			opacity: 0;
			transform: translateY( 10px ) scale( 0.985 );
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
