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

.hv-oszi-popup {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 24px;
	position: fixed;
	transition: opacity 260ms ease, visibility 260ms ease;
	visibility: hidden;
	z-index: 2147483000;
}

.hv-oszi-popup.is-visible {
	opacity: 1;
	visibility: visible;
}

.hv-oszi-popup__backdrop {
	background: rgba(18, 13, 10, 0.76);
	inset: 0;
	position: absolute;
}

@supports ((-webkit-backdrop-filter: blur(7px)) or (backdrop-filter: blur(7px))) {
	.hv-oszi-popup__backdrop {
		-webkit-backdrop-filter: blur(7px);
		backdrop-filter: blur(7px);
		background: rgba(18, 13, 10, 0.68);
	}
}

.hv-oszi-popup__dialog {
	background: #fffaf4;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), 0 8px 28px rgba(63, 29, 14, 0.28);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	max-width: 780px;
	overflow: auto;
	position: relative;
	transform: translateY(20px) scale(0.96);
	transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
	z-index: 1;
}

.hv-oszi-popup.is-visible .hv-oszi-popup__dialog {
	transform: translateY(0) scale(1);
}

.hv-oszi-popup__dialog::after {
	background: linear-gradient(90deg, #8b1e24 0%, #c95f22 52%, #e1a328 100%);
	content: "";
	height: 5px;
	inset: auto 0 0;
	position: absolute;
}

.hv-oszi-popup__close {
	align-items: center;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(91, 38, 22, 0.14);
	border-radius: 999px;
	box-shadow: 0 5px 18px rgba(34, 19, 12, 0.22);
	color: #5d211c;
	cursor: pointer;
	display: flex;
	height: 46px;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 46px;
	z-index: 3;
}

.hv-oszi-popup__close:hover {
	background: #ffffff;
	color: #a52b28;
	transform: rotate(4deg) scale(1.05);
}

.hv-oszi-popup__close:focus-visible,
.hv-oszi-popup__button:focus-visible,
.hv-oszi-popup__image-link:focus-visible {
	outline: 3px solid #f2b544;
	outline-offset: 3px;
}

.hv-oszi-popup__close svg {
	fill: currentColor;
	height: 24px;
	width: 24px;
}

.hv-oszi-popup__image-link {
	background: #e8d2b9;
	display: block;
	overflow: hidden;
}

.hv-oszi-popup__image {
	aspect-ratio: 1640 / 924;
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.hv-oszi-popup__content {
	align-items: center;
	background:
		radial-gradient(circle at 6% 20%, rgba(225, 163, 40, 0.13), transparent 34%),
		linear-gradient(135deg, #fffdf9 0%, #fff7ed 100%);
	display: flex;
	gap: 26px;
	justify-content: space-between;
	padding: 25px 30px 29px;
}

.hv-oszi-popup__title {
	color: #481b18;
	font-family: inherit;
	font-size: clamp(25px, 3.4vw, 36px);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin: 0;
	max-width: 470px;
}

.hv-oszi-popup__button {
	align-items: center;
	background: linear-gradient(135deg, #a92328 0%, #c43c2d 100%);
	border: 1px solid rgba(111, 16, 20, 0.28);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(150, 31, 31, 0.24);
	color: #ffffff !important;
	display: inline-flex;
	flex: 0 0 auto;
	font-family: inherit;
	font-size: 16px;
	font-weight: 750;
	gap: 10px;
	justify-content: center;
	letter-spacing: 0.01em;
	min-height: 50px;
	padding: 12px 21px 12px 24px;
	text-decoration: none !important;
	transition: box-shadow 170ms ease, transform 170ms ease;
}

.hv-oszi-popup__button:hover {
	box-shadow: 0 13px 30px rgba(150, 31, 31, 0.34);
	color: #ffffff !important;
	transform: translateY(-2px);
}

.hv-oszi-popup__button svg {
	fill: currentColor;
	height: 20px;
	transition: transform 170ms ease;
	width: 20px;
}

.hv-oszi-popup__button:hover svg {
	transform: translateX(3px);
}

html.hv-oszi-popup-open,
body.hv-oszi-popup-open {
	overflow: hidden !important;
}

@media (max-width: 600px) {
	.hv-oszi-popup {
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		padding-left: max(12px, env(safe-area-inset-left));
		padding-right: max(12px, env(safe-area-inset-right));
		padding-top: max(12px, env(safe-area-inset-top));
	}

	.hv-oszi-popup__dialog {
		border-radius: 19px;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		max-width: 420px;
	}

	.hv-oszi-popup__close {
		height: 44px;
		right: 9px;
		top: 9px;
		width: 44px;
	}

	.hv-oszi-popup__content {
		display: block;
		padding: 19px 18px 23px;
		text-align: center;
	}

	.hv-oszi-popup__title {
		font-size: clamp(24px, 7.7vw, 31px);
		line-height: 1.1;
		margin: 0 auto 17px;
		max-width: 340px;
	}

	.hv-oszi-popup__button {
		font-size: 17px;
		min-height: 52px;
		width: 100%;
	}
}

@media (max-width: 360px) {
	.hv-oszi-popup__content {
		padding: 16px 15px 20px;
	}

	.hv-oszi-popup__title {
		font-size: 23px;
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hv-oszi-popup,
	.hv-oszi-popup__dialog,
	.hv-oszi-popup__button,
	.hv-oszi-popup__button svg,
	.hv-oszi-popup__close {
		transition: none !important;
	}
}
