.prima-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.prima-popup[hidden] {
	display: none;
}

.prima-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 22, 38, 0.72);
	opacity: 0;
	transition: opacity 300ms ease;
}

.prima-popup.is-open .prima-popup__overlay {
	opacity: 1;
}

.prima-popup.is-closing .prima-popup__overlay {
	opacity: 0;
	transition-duration: 200ms;
}

.prima-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 767px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background:
		linear-gradient(#faf8f3, #faf8f3) padding-box,
		linear-gradient(180deg, #c9a24a 0%, #1c3d5a 100%) border-box;
	border: 1px solid transparent;
	border-radius: 6px;
	box-shadow:
		0 0 0 6px #faf8f3,
		0 0 0 7px #d4c7a8,
		0 28px 64px rgba(12, 22, 38, 0.32);
	padding: 40px 42px 38px;
	box-sizing: border-box;
	opacity: 0;
	transform: scale(0.96) translateY(8px);
	transition: opacity 300ms ease, transform 300ms ease;
}

.prima-popup__dialog::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1c3d5a 0%, #c9a24a 50%, #1c3d5a 100%);
}

.prima-popup.is-open .prima-popup__dialog {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.prima-popup.is-closing .prima-popup__dialog {
	opacity: 0;
	transform: scale(0.96) translateY(8px);
	transition-duration: 200ms;
}

.prima-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #d4c7a8;
	border-radius: 50%;
	background: #ffffff;
	color: #5c6570;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.prima-popup__close:hover,
.prima-popup__close:focus-visible {
	background: #1c3d5a;
	border-color: #1c3d5a;
	color: #ffffff;
	outline: none;
}

.prima-popup__header {
	margin: 0 36px 22px 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #080c35;
}

.prima-popup__eyebrow {
	margin: 0 0 8px;
	font-family: "Source Sans 3", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #c9a24a;
}

.prima-popup__title {
	margin: 0;
	padding-bottom: 14px;
	font-family: "Inter Tight", sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
	color: #0a0d31;
}

.prima-popup__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-top: 14px;
	background: #080c35;
}

.prima-popup__body {
	font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: #3d4654;
}

.prima-popup__body p {
	margin: 0 0 14px;
}

.prima-popup__body p:last-child {
	margin-bottom: 0;
}

body.prima-popup-locked {
	overflow: hidden;
}

@media (max-width: 600px) {
	.prima-popup {
		padding: 16px;
		align-items: flex-end;
	}

	.prima-popup__dialog {
		max-height: calc(100vh - 32px);
		padding: 32px 22px 24px;
		border-radius: 10px 10px 0 0;
		box-shadow:
			0 0 0 4px #faf8f3,
			0 0 0 5px #d4c7a8,
			0 16px 40px rgba(12, 22, 38, 0.28);
	}

	.prima-popup__header {
		margin-right: 28px;
	}

	.prima-popup__title {
		font-size: 18px;
	}
}
