/**
 * 3DFila Addons — Barra fixa de compra (celular).
 *
 * A barra fica sempre fora da tela; o buy-bar.js adiciona .is-visible só em
 * telas pequenas e quando o botão original de compra não está visível.
 */

.tdfa-buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1002; /* acima do cabeçalho fixo do Flatsome (1001) */
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	box-shadow: 0 -6px 18px rgba(0, 0, 0, .10);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
}
.tdfa-buybar.is-visible {
	transform: translateY(0);
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}

.tdfa-buybar__thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	background: #f4f4f4;
}
.tdfa-buybar__info {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.2;
}
.tdfa-buybar__name {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 13px;
	color: #555;
}
.tdfa-buybar__price {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #03a89e;
}
.tdfa-buybar__price small {
	font-size: 11px;
	font-weight: 600;
	color: #777;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.tdfa-buybar__btn {
	flex: 0 0 auto;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: #03a89e;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 48px;
	cursor: pointer;
}
.tdfa-buybar__btn:active {
	filter: brightness(.92);
}
.tdfa-buybar__btn.is-loading {
	opacity: .7;
	pointer-events: none;
}

/* Com a barra visível: espaço no fim da página e atendimento fora do caminho */
body.tdfa-buybar-on #wrapper {
	padding-bottom: 76px;
}
body.tdfa-buybar-on #whatsapp-text,
body.tdfa-buybar-on chatvolt-chatbox-bubble {
	display: none !important;
}
body.tdfa-buybar-on #whatsapp-icon {
	bottom: 88px !important;
}

/* Destaque rápido no seletor quando falta escolher a variação */
.tdfa-buybar-pulse {
	animation: tdfa-buybar-pulse 1s ease 2;
	border-radius: 6px;
}
@keyframes tdfa-buybar-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(3, 168, 158, 0); }
	50%      { box-shadow: 0 0 0 4px rgba(3, 168, 158, .45); }
}

@media (prefers-reduced-motion: reduce) {
	.tdfa-buybar,
	.tdfa-buybar.is-visible {
		transition: none;
	}
	.tdfa-buybar-pulse {
		animation: none;
		outline: 3px solid #03a89e;
	}
}
