/**
 * Vemax Company - Addon — variações estruturais por idioma.
 *
 * Escopo deste arquivo:
 *   1. blocos que existem apenas em determinados idiomas;
 *   2. o estilo da página Terms & Conditions.
 *
 * Este módulo NÃO define largura de layout. Não há aqui nenhuma regra para
 * `.elementor-container`, `.elementor-section`, `.e-con` ou `.container`: a
 * largura das seções, containers, colunas e widgets continua sendo definida
 * individualmente no Elementor, e as seções externas seguem full width.
 *
 * As classes `vemax-lang-pt|en|es` vêm do <body>, via Vemax_I18n_Structure.
 */

/* ------------------------------------------------------------------ */
/* Blocos exclusivos de um idioma                                      */
/* ------------------------------------------------------------------ */

/*
 * Marcadores para blocos montados no Elementor que precisam existir só em
 * alguns idiomas. Aplique a classe ao container do widget (aba Avançado →
 * Classes CSS) e o bloco deixa de ocupar espaço nos demais idiomas.
 *
 * `display: none` é suficiente aqui porque estes marcadores existem para
 * conteúdo estático montado no editor. Onde a exigência é o elemento NÃO
 * existir no DOM — o WhatsApp flutuante e os itens de menu — a remoção é
 * feita em PHP, em Vemax_I18n_Structure.
 */

.vemax-only-pt,
.vemax-only-en,
.vemax-only-es {
	display: none;
}

.vemax-lang-pt .vemax-only-pt,
.vemax-lang-en .vemax-only-en,
.vemax-lang-es .vemax-only-es {
	display: revert;
}

/* Elementor envolve o widget; esconder o wrapper evita o gap do flex/grid. */
.vemax-lang-en .elementor-widget.vemax-only-pt,
.vemax-lang-es .elementor-widget.vemax-only-pt,
.vemax-lang-pt .elementor-widget.vemax-only-en,
.vemax-lang-es .elementor-widget.vemax-only-en,
.vemax-lang-pt .elementor-widget.vemax-only-es,
.vemax-lang-en .elementor-widget.vemax-only-es {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Botão de WhatsApp no Single Produto                                 */
/* ------------------------------------------------------------------ */

/*
 * Em inglês o site não oferece nenhum canal de WhatsApp — a mesma regra já
 * aplicada ao botão flutuante e aos cartões de contato em
 * Vemax_I18n_Structure. O botão montado no Elementor recebe a classe
 * `botao-whatsapp` (aba Avançado → Classes CSS) e some no idioma inglês.
 *
 * O wrapper `.elementor-widget` também é escondido para o widget não deixar
 * um espaço vazio no flex/grid do container.
 */

.vemax-lang-en .botao-whatsapp,
.vemax-lang-en .elementor-widget.botao-whatsapp {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Telefone internacional                                              */
/* ------------------------------------------------------------------ */

/*
 * Fora do português o campo aceita "+", espaços e hífens, então o texto de
 * ajuda do formato brasileiro não se aplica. O texto correto de cada idioma
 * é injetado pelo JavaScript da máscara.
 */
.vemax-lang-en .vemax-catalog-phone-hint,
.vemax-lang-es .vemax-catalog-phone-hint {
	display: none;
}

/*
 * O texto de ajuda do telefone é conteúdo do formulário, montado no editor
 * (no Catálogo, o campo "phone_hint" do widget). O JS da máscara apenas
 * traduz o texto existente — não cria elemento nenhum, para não alterar a
 * altura do .elementor-field-group e desalinhar o campo dos vizinhos.
 */

/* ------------------------------------------------------------------ */
/* Terms & Conditions (somente inglês)                                 */
/* ------------------------------------------------------------------ */

.vemax-terms {
	width: 100%;
	max-width: 896px; /* container max-w-4xl do original */
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.vemax-terms { padding: 0 24px; }
}

@media (min-width: 1024px) {
	.vemax-terms { padding: 0 32px; }
}

.vemax-terms__hero {
	padding: 32px 0 40px;
}

.vemax-terms__eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffc200;
}

.vemax-terms__heading {
	margin: 12px 0 16px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
}

@media (min-width: 1024px) {
	.vemax-terms__heading { font-size: 48px; }
}

.vemax-terms__intro {
	max-width: 42rem;
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
}

.vemax-terms__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 0 0;
}

.vemax-terms__doc {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	background: #2a2b3d;
	transition: border-color 300ms ease;
}

@media (min-width: 640px) {
	.vemax-terms__doc {
		flex-direction: row;
		align-items: center;
	}
}

.vemax-terms__doc:hover {
	border-color: rgba(255, 194, 0, 0.3);
}

.vemax-terms__icon {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid rgba(255, 194, 0, 0.2);
	border-radius: 12px;
	background: rgba(255, 194, 0, 0.1);
	color: #ffc200;
}

.vemax-terms__icon svg {
	width: 28px;
	height: 28px;
}

.vemax-terms__body {
	flex: 1 1 auto;
	min-width: 0;
}

.vemax-terms__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	transition: color 200ms ease;
}

.vemax-terms__doc:hover .vemax-terms__title {
	color: #ffc200;
}

.vemax-terms__desc {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
}

.vemax-terms__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	background: #ffc200;
	color: #23243a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 200ms ease;
}

.vemax-terms__cta:hover,
.vemax-terms__cta:focus {
	background: #e8b000;
	color: #23243a;
}

.vemax-terms__cta:active {
	scale: 97%;
}

.vemax-terms__cta svg {
	width: 16px;
	height: 16px;
}

.vemax-terms__note {
	margin: 48px 0 0;
	font-size: 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
}

.vemax-terms__note a {
	color: #ffc200;
}

.vemax-terms__note a:hover {
	text-decoration: underline;
}
