/* MaxCod Core — componentes da loja (funcionam com qualquer tema; o tema MaxCod complementa). */

.mx-lookup, .mx-checkout-trust, .mx-wa-float {
	--mxc-primary: var(--mx-primary, #f20d0d);
	--mxc-ink: var(--mx-ink, #202127);
	--mxc-muted: var(--mx-muted, #6b6475);
	--mxc-border: var(--mx-border, #ece8ef);
	--mxc-surface: var(--mx-surface, #f6f5f8);
	--mxc-green: #16a34a;
}

/* Botão "Comprar agora" (reserva para outros temas) */
.mx-buy-now { text-transform: uppercase; }

.mx-lookup .mx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}
.mx-lookup .mx-btn-primary { background: var(--mxc-primary); color: #fff; }

/* Selos no checkout */
.mx-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 0 0 6px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--mxc-surface);
	font-size: 14px;
	font-weight: 600;
	color: var(--mxc-ink);
}

/* Consulta de pedido -------------------------------------------------- */

.mx-lookup .mx-block { text-align: left; }
.mx-lookup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.mx-lookup .mx-field { margin: 0; }
.mx-lookup .mx-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--mxc-ink); }
.mx-lookup .mx-field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--mxc-border);
	border-radius: 10px;
	font: inherit;
}
.mx-lookup-login { margin: 14px 0 0; font-size: 14px; color: var(--mxc-muted); }
.mx-lookup-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mx-lookup-date { margin: 0; color: var(--mxc-muted); font-size: 14px; }
.mx-lookup-items { list-style: none; margin: 18px 0; padding: 0; }
.mx-lookup-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mxc-border); }
.mx-lookup-items li:last-child { border-bottom: 0; }
.mx-lookup-total { font-size: 18px; }
.mx-status { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--mxc-surface); font-size: 13px; font-weight: 700; color: var(--mxc-ink); white-space: nowrap; }
.mx-status.is-ok { background: #dcfce7; color: #166534; }
.mx-status.is-wait { background: #fef3c7; color: #92400e; }
.mx-status.is-bad { background: #fee2e2; color: #991b1b; }
@media (max-width: 600px) { .mx-lookup-fields { grid-template-columns: 1fr; } }

/* Botão flutuante de WhatsApp ---------------------------------------- */

.mx-wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 95;
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.mx-wa-icon {
	display: grid;
	place-items: center;
	width: 60px; height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
	transition: transform .25s;
}
.mx-wa-float:hover .mx-wa-icon { transform: scale(1.08); }
.mx-wa-icon::after {
	content: "";
	position: absolute;
	right: 0; bottom: 0;
	width: 60px; height: 60px;
	border-radius: 50%;
	border: 2px solid #25d366;
	animation: mx-wa-pulse 2.4s ease-out infinite;
	pointer-events: none;
}
@keyframes mx-wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.mx-wa-bubble {
	padding: 9px 14px;
	border-radius: 12px;
	background: #fff;
	color: #202127;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	white-space: nowrap;
	opacity: 0;
	transform: translateX(8px);
	transition: .25s;
	pointer-events: none;
}
.mx-wa-float:hover .mx-wa-bubble, .mx-wa-float:focus-visible .mx-wa-bubble { opacity: 1; transform: none; }
@media (max-width: 600px) {
	.mx-wa-float { right: 14px; bottom: 14px; }
	.mx-wa-icon, .mx-wa-icon::after { width: 54px; height: 54px; }
	.mx-wa-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mx-wa-icon::after { animation: none; } }
