.cactus-gift-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

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

.cactus-gift-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(40, 28, 24, 0.55);
	cursor: pointer;
}

.cactus-gift-popup__dialog {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 420px);
	width: 100%;
	line-height: 0;
	border-radius: 28px;
	overflow: visible;
	animation: cactus-gift-popup-in 0.35s ease;
}

.cactus-gift-popup__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cactus-gift-popup__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	color: #2b2b2b;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.cactus-gift-popup__close:focus-visible {
	outline: 2px solid #c48b8b;
	outline-offset: 2px;
}

@keyframes cactus-gift-popup-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 480px) {
	.cactus-gift-popup {
		padding: 0.75rem;
	}

	.cactus-gift-popup__dialog {
		max-width: min(94vw, 360px);
	}
}
