/* ==========================================================================
   CAIXA FLUTUANTE "REGISTRE-SE E RECEBA SEU VIP"

   Aparece em todas as paginas do site (vem do partials/footer.phtml).
   Fica no canto inferior esquerdo (o botao "voltar ao topo" usa o direito).
   O X recolhe o cartao num botao redondo com o presente, que reabre ao
   clicar; a escolha fica salva no navegador por 1 dia.
   ========================================================================== */
.gift-float {
	--gift-offset: 0px;
	bottom: calc(1.25rem + var(--gift-offset));
	font-family: var(--font-0);
	left: 1.25rem;
	position: fixed;
	transition: bottom .3s ease;
	z-index: 19;
}

/* ------------------------------------------------------------ cartao */
.gift-float__card {
	align-items: center;
	animation: giftIn .6s cubic-bezier(.2, .9, .3, 1.2) both;
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(255, 183, 81, .16), transparent 55%),
		linear-gradient(180deg, #24201e, #141110);
	border: 1px solid rgba(216, 174, 96, .45);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4) inset;
	box-sizing: border-box;
	display: flex;
	gap: 16px;
	max-width: 22.5rem;
	padding: 16px 18px 16px 16px;
	position: relative;
}
.gift-float_min .gift-float__card {
	display: none;
}

.gift-float__close {
	align-items: center;
	background: #110f0f;
	border: 1px solid #443f3a;
	border-radius: 50%;
	color: #aea599;
	cursor: pointer;
	display: flex;
	font-size: .75rem;
	height: 1.625rem;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: -.625rem;
	top: -.625rem;
	transition: color .2s, border-color .2s;
	width: 1.625rem;
}
.gift-float__close:hover {
	border-color: #ffb751;
	color: #fff8ed;
}

/* ------------------------------------------------- caixinha de presente */
.gift-float__box {
	align-items: center;
	animation: giftWiggle 3.2s ease-in-out infinite;
	background: linear-gradient(145deg, #ffda84 0%, #d8ae60 45%, #9b7436 100%);
	border-radius: 12px;
	box-shadow: 0 0 22px rgba(255, 183, 81, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
	color: #2a1d0d;
	display: flex;
	flex-shrink: 0;
	font-size: 1.75rem;
	height: 3.75rem;
	justify-content: center;
	position: relative;
	transform-origin: 50% 90%;
	width: 3.75rem;
}
.gift-float__box i {
	filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .6));
}
/* Brilhinhos em volta do presente */
.gift-float__box::before,
.gift-float__box::after {
	animation: giftSpark 2.4s ease-in-out infinite;
	background: #fff3c4;
	border-radius: 50%;
	box-shadow: 0 0 8px #ffda84;
	content: "";
	height: 5px;
	position: absolute;
	width: 5px;
}
.gift-float__box::before {
	right: -4px;
	top: -3px;
}
.gift-float__box::after {
	animation-delay: 1.2s;
	bottom: 4px;
	left: -5px;
}
.gift-float__tag {
	background: #c8322a;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	bottom: -.5rem;
	color: #fff;
	font-family: var(--font-1);
	font-size: .625rem;
	font-weight: 700;
	left: 50%;
	letter-spacing: .06em;
	line-height: 1;
	padding: 3px 7px 2px;
	position: absolute;
	transform: translateX(-50%);
}

/* ------------------------------------------------------------- textos */
.gift-float__body {
	min-width: 0;
}
.gift-float__title {
	color: #fff8ed;
	font-family: var(--font-1);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
}
.gift-float__title span {
	color: #ffb751;
}
.gift-float__desc {
	color: #c1b9af;
	font-size: .8125rem;
	line-height: 1.35;
	margin-top: 4px;
}
.gift-float__btn {
	margin-top: 10px;
	text-decoration: none;
}

/* -------------------------------------------- botao recolhido (bolha) */
.gift-float__bubble {
	align-items: center;
	animation: giftIn .5s cubic-bezier(.2, .9, .3, 1.2) both;
	background: linear-gradient(145deg, #ffda84 0%, #d8ae60 45%, #9b7436 100%);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 3px #1a1716, 0 0 0 4px rgba(216, 174, 96, .6);
	color: #2a1d0d;
	cursor: pointer;
	display: none;
	font-size: 1.5rem;
	height: 3.5rem;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 3.5rem;
}
.gift-float_min .gift-float__bubble {
	display: flex;
}
.gift-float__bubble i {
	animation: giftWiggle 3.2s ease-in-out infinite;
}
/* Anel pulsando para chamar atencao sem atrapalhar */
.gift-float__bubble::after {
	animation: giftPulse 2s ease-out infinite;
	border: 2px solid rgba(255, 183, 81, .7);
	border-radius: 50%;
	content: "";
	inset: -4px;
	position: absolute;
}
.gift-float__bubble:hover {
	filter: brightness(110%);
}

/* ---------------------------------------------------------- animacoes */
@keyframes giftIn {
	from { opacity: 0; transform: translateY(20px) scale(.9); }
	to   { opacity: 1; transform: none; }
}
@keyframes giftWiggle {
	0%, 70%, 100% { transform: rotate(0); }
	74% { transform: rotate(-10deg) scale(1.06); }
	78% { transform: rotate(9deg) scale(1.06); }
	82% { transform: rotate(-6deg); }
	86% { transform: rotate(4deg); }
	90% { transform: rotate(0); }
}
@keyframes giftSpark {
	0%, 100% { opacity: 0; transform: scale(.4); }
	50%      { opacity: 1; transform: scale(1); }
}
@keyframes giftPulse {
	from { opacity: .9; transform: scale(1); }
	to   { opacity: 0; transform: scale(1.45); }
}
@media (prefers-reduced-motion: reduce) {
	.gift-float__box,
	.gift-float__bubble i,
	.gift-float__bubble::after,
	.gift-float__box::before,
	.gift-float__box::after {
		animation: none;
	}
}

/* ------------------------------------------------------------ celular */
@media (max-width: 559.98px) {
	.gift-float {
		bottom: calc(.75rem + var(--gift-offset));
		left: .75rem;
	}
	.gift-float__card {
		gap: 12px;
		max-width: calc(100vw - 1.5rem - .75rem);
		padding: 12px 14px 12px 12px;
	}
	.gift-float__box {
		font-size: 1.375rem;
		height: 3rem;
		width: 3rem;
	}
	.gift-float__title {
		font-size: .9375rem;
	}
	.gift-float__desc {
		font-size: .75rem;
	}
}
