.velych-gift-popup {
	--velych-brown: #311a03;
	--velych-cream: #fbfaf2;
	--velych-white: #ffffff;
	--velych-radius: 12px;
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.42s ease, visibility 0.42s ease;
}

.velych-gift-popup.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.velych-gift-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(49, 26, 3, 0.42);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.velych-gift-popup.is-open .velych-gift-popup__overlay {
	opacity: 1;
}

.velych-gift-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(1016px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: var(--velych-cream);
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(49, 26, 3, 0.18);
	transform: scale(0.94) translateY(18px);
	opacity: 0;
	transition:
		transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.4s ease;
}

.velych-gift-popup.is-open .velych-gift-popup__dialog {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.velych-gift-popup__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--velych-brown);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.velych-gift-popup__close:hover {
	opacity: 1;
	transform: scale(0.92);
}

.velych-gift-popup__close svg {
	display: block;
	width: 20px;
	height: 20px;
}

.velych-gift-popup__inner {
	display: grid;
	grid-template-columns: 464px minmax(0, 1fr);
	gap: 8px;
	padding: 8px;
}

.velych-gift-popup__media {
	min-height: 630px;
	border-radius: var(--velych-radius);
	overflow: hidden;
}

.velych-gift-popup__media picture,
.velych-gift-popup__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 630px;
	object-fit: cover;
}

.velych-gift-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 24px 24px;
	text-align: center;
	color: var(--velych-brown);
	font-family: 'Manrope', sans-serif;
	font-weight: 300;
}

.velych-gift-popup__title {
	margin: 0 0 24px;
	max-width: 464px;
	font-family: 'Forum', serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--velych-brown);
}

.velych-gift-popup__subtitle {
	margin: 0 0 24px;
	max-width: 349px;
	font-size: 18px;
	line-height: 1.5;
}

.velych-gift-popup__cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 464px;
	margin-bottom: 24px;
}

.velych-gift-popup__card {
	display: flex;
	align-items: center;
	min-height: 125px;
	padding: 24px 32px;
	border-radius: var(--velych-radius);
	overflow: hidden;
}

.velych-gift-popup__card--light {
	background: var(--velych-white);
	color: var(--velych-brown);
}

.velych-gift-popup__card--dark {
	background: var(--velych-brown);
	color: var(--velych-white);
}

.velych-gift-popup__percent {
	flex: 0 0 auto;
	font-family: 'Forum', serif;
	font-size: 64px;
	font-weight: 400;
	line-height: 1.2;
}

.velych-gift-popup__line {
	flex: 1 1 auto;
	height: 1px;
	margin: 0 16px;
	background: currentColor;
	opacity: 0.35;
}

.velych-gift-popup__amount {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1.5;
	white-space: nowrap;
}

.velych-gift-popup__note {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 422px;
	margin-bottom: 24px;
	text-align: left;
}

.velych-gift-popup__note-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(49, 26, 3, 0.16);
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	flex-shrink: 0;
}

.velych-gift-popup__note p {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.velych-gift-popup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	width: 100%;
	max-width: 464px;
}

.velych-gift-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 10px 40px;
	border-radius: 100px;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	text-decoration: none !important;
	transition: transform 0.2s ease;
}

.velych-gift-popup__btn:hover {
	transform: scale(0.97);
}

.velych-gift-popup__btn--primary {
	background: var(--velych-brown);
	color: var(--velych-white) !important;
}

.velych-gift-popup__btn--outline {
	background: transparent;
	color: var(--velych-brown) !important;
	box-shadow: inset 0 0 0 1px rgba(49, 26, 3, 0.16);
}

body.velych-gift-popup-open {
	overflow: hidden;
}

.velych-gift-popup__close,
.velych-gift-popup__close:hover,
.velych-gift-popup__close:focus,
.velych-gift-popup__close:active {
	background: transparent !important;
	color: var(--velych-brown) !important;
	box-shadow: none !important;
}

.velych-gift-popup__btn--primary,
.velych-gift-popup__btn--primary:hover,
.velych-gift-popup__btn--primary:focus,
.velych-gift-popup__btn--primary:active {
	background: var(--velych-brown) !important;
	color: var(--velych-white) !important;
	box-shadow: none !important;
}

.velych-gift-popup__btn--outline,
.velych-gift-popup__btn--outline:hover,
.velych-gift-popup__btn--outline:focus,
.velych-gift-popup__btn--outline:active {
	background: transparent !important;
	color: var(--velych-brown) !important;
	box-shadow: inset 0 0 0 1px rgba(49, 26, 3, 0.16) !important;
}

/* Mobile popup: <= 767px only */
@media (max-width: 767px) {
	.velych-gift-popup {
		padding: 12px;
	}

	.velych-gift-popup__dialog {
		width: min(375px, 100%);
		max-height: calc(100vh - 24px);
		border-radius: 16px;
	}

	.velych-gift-popup__close {
		top: 10px;
		right: 10px;
	}

	.velych-gift-popup__inner {
		display: flex;
		flex-direction: column;
		padding: 10px;
	}

	.velych-gift-popup__media {
		width: 120px;
		height: 136px;
		min-height: 0;
		margin: 40px auto 24px;
		border-radius: 3px;
		flex-shrink: 0;
	}

	.velych-gift-popup__media picture,
	.velych-gift-popup__media img {
		width: 120px;
		height: 136px;
		min-height: 0;
		object-fit: cover;
	}

	.velych-gift-popup__content {
		width: 100%;
		padding: 0 0 10px;
	}

	.velych-gift-popup__title {
		margin: 0 0 24px;
		max-width: 100%;
		font-size: 24px;
	}

	.velych-gift-popup__subtitle {
		margin: 0 auto 24px;
		max-width: 269px;
		font-size: 14px;
	}

	.velych-gift-popup__cards {
		max-width: 100%;
		gap: 8px;
		margin-bottom: 24px;
	}

	.velych-gift-popup__card {
		min-height: 90px;
		padding: 16px 24px;
	}

	.velych-gift-popup__percent {
		font-size: 48px;
	}

	.velych-gift-popup__line {
		margin: 0 12px;
	}

	.velych-gift-popup__amount {
		font-size: 14px;
	}

	.velych-gift-popup__card--dark .velych-gift-popup__amount {
		text-align: right;
	}

	.velych-gift-popup__note {
		max-width: 100%;
		gap: 8px;
		margin-bottom: 24px;
	}

	.velych-gift-popup__note-icon {
		width: 16px;
		height: 16px;
		font-size: 10px;
	}

	.velych-gift-popup__note p {
		font-size: 14px;
	}

	.velych-gift-popup__actions {
		flex-direction: column;
		gap: 8px;
		max-width: 100%;
	}

	.velych-gift-popup__btn {
		width: 100%;
		min-height: 48px;
		padding: 10px 32px;
		font-size: 14px;
	}

	.velych-gift-popup__btn--primary,
	.velych-gift-popup__btn--primary:hover,
	.velych-gift-popup__btn--primary:focus,
	.velych-gift-popup__btn--primary:active {
		color: #fbfaf2 !important;
	}
}
