/* WAVES Pro — estilos de login / minha-conta (portado do waves-community).
 * Paleta: vermelho Waves (#fe0000), preto, branco. Tudo escopado em .wv-*.
 */
.wv-modal,
.wv-toast,
.wv-account,
.wv-account-page,
.wv-menu {
	--wv-red: #fe0000;
	--wv-black: #000;
	--wv-white: #fff;
	--wv-text: #111;
	--wv-muted: rgba(0, 0, 0, .55);
	--wv-line: rgba(0, 0, 0, .14);
	--wv-soft: rgba(0, 0, 0, .04);
}

/* Botões */
.wv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent !important; border-radius: 8px !important; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1; box-shadow: none !important; transition: background-color .15s, color .15s, border-color .15s; }
.wv-btn--primary { background: var(--wv-black) !important; color: var(--wv-white) !important; border-color: var(--wv-black) !important; }
.wv-btn--primary:hover { background: var(--wv-red) !important; color: var(--wv-white) !important; }
.wv-btn--ghost { background: var(--wv-white) !important; color: var(--wv-red) !important; border-color: var(--wv-red) !important; }
.wv-btn--ghost:hover { background: var(--wv-red) !important; color: var(--wv-white) !important; border-color: var(--wv-red) !important; }
.wv-btn:disabled { opacity: .55; cursor: default; }
.wv-btn:focus-visible { outline: 2px solid var(--wv-red); outline-offset: 2px; }

.wv-link, .wv-modal__close, .wv-account__toggle, .wv-account__drop button { background: transparent !important; }
.wv-link { border: 0 !important; background: none; color: var(--wv-red) !important; font-size: 13px; cursor: pointer; padding: 4px 0; font-weight: 600; box-shadow: none !important; }
.wv-modal .wv-link:hover, .wv-account .wv-link:hover, .wv-link:hover { color: var(--wv-red) !important; background: transparent !important; text-decoration: underline; }

.wv-login-prompt { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--wv-soft); border: 1px solid var(--wv-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; flex-wrap: wrap; }

/* Verify gate */
.wv-verify-gate { background: var(--wv-white); border: 1px solid var(--wv-line); border-left: 4px solid var(--wv-red); border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; }
.wv-verify-gate p { margin: 0 0 10px; font-size: 14px; }
.wv-verify-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wv-verify-code, .wv-i-code { letter-spacing: 4px; text-align: center; border: 1px solid var(--wv-line) !important; border-radius: 8px; padding: 9px 12px; width: 130px; font: inherit; box-shadow: none !important; }
.wv-verify-code:focus, .wv-i-code:focus { outline: none; border-color: var(--wv-red) !important; box-shadow: 0 0 0 3px rgba(254, 0, 0, .15) !important; }

/* Avatar */
.wv-avatar { width: 36px; height: 36px; border-radius: 50% !important; aspect-ratio: 1 / 1; object-fit: cover; flex-shrink: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background-color: #000 !important; color: #fff !important; font-weight: 700; text-transform: uppercase; }
img.wv-avatar { padding: 0 !important; border: 0 !important; max-width: none; }
.wv-avatar--ph { font-size: 15px; }
.wv-avatar-edit { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wv-avatar-edit .wv-avatar { width: 56px; height: 56px; font-size: 22px; }

/* Toast */
.wv-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--wv-black); color: var(--wv-white); padding: 11px 18px; border-radius: 8px; font-size: 14px; z-index: 99999; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .35s, transform .35s; }
.wv-toast--ok { background: var(--wv-black); border-left: 4px solid var(--wv-red); }
.wv-toast--err { background: var(--wv-red); }
.wv-toast.is-out { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* Modal */
.wv-modal { position: fixed; inset: 0; z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--wv-text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.wv-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.wv-modal__box { position: relative; background: var(--wv-white); border-radius: 14px; width: 100%; max-width: 380px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-height: 90vh; overflow: auto; }
.wv-modal__close { position: absolute; top: 10px; right: 12px; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 26px; line-height: 1; cursor: pointer; color: var(--wv-muted) !important; }
.wv-modal .wv-modal__close:hover, .wv-modal__close:hover { color: var(--wv-red) !important; background: transparent !important; }
.wv-modal__title { margin: 0 0 16px; font-size: 19px; }
.wv-modal [hidden] { display: none !important; }

/* Forms */
.wv-form { display: flex; flex-direction: column; gap: 6px; }
.wv-form label { font-size: 12px; font-weight: 700; color: var(--wv-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: .3px; }
.wv-form input, .wv-form select, .wv-form textarea { border: 1px solid var(--wv-line) !important; border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--wv-text); box-shadow: none !important; }
.wv-form input:focus, .wv-form select:focus, .wv-form textarea:focus { outline: none; border-color: var(--wv-red) !important; box-shadow: 0 0 0 3px rgba(254, 0, 0, .15) !important; }
.wv-form .wv-btn { margin-top: 14px; }

/* Erro inline do login (não-silencioso) + fallback para conta sem senha. */
.wv-auth__err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.wv-auth__err-hint { display: block; margin-top: 6px; color: #7a2222; }
.wv-auth__err .wv-link { color: #b91c1c !important; font-weight: 700; text-decoration: underline; padding: 0; }
.wv-auth__alt { text-align: center; margin: 12px 0 0; }
.wv-auth__alt .wv-link { font-size: 13px; }

.wv-auth__tabs { display: flex; gap: 4px; background: var(--wv-soft); border-radius: 8px; padding: 3px; margin-bottom: 14px; }
.wv-auth__tabs button { flex: 1; border: 0; background: transparent !important; padding: 8px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--wv-muted); }
.wv-auth__tabs button.is-active { background: var(--wv-red) !important; color: var(--wv-white) !important; }
.wv-auth__foot { text-align: center; font-size: 13px; color: var(--wv-muted); margin: 14px 0 0; }
.wv-google-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
/* Holder do botão do Google (GIS): largura total do conteúdo do modal e botão
   centralizado. A largura do botão é definida no JS (renderButton) com folga,
   então NÃO usamos overflow/max-width aqui (causavam artefato branco no iframe). */
.wv-google { width: 100%; display: flex; justify-content: center; }
.wv-or { color: var(--wv-muted); font-size: 12px; width: 100%; text-align: center; }
.wv-signup-step2 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--wv-line); display: flex; flex-direction: column; gap: 8px; }
.wv-verified-ok { color: #1a7f43; font-size: 13px; font-weight: 600; margin: 4px 0 0; }
.wv-checkline { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; text-transform: none !important; font-weight: 400 !important; color: var(--wv-text) !important; }

/* Account bar (header) */
.wv-account { display: inline-flex; align-items: center; height: 100%; gap: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
.wv-account__menu { position: relative; display: flex; align-items: center; height: 100%; }
.wv-account__toggle { display: inline-flex !important; align-items: center !important; gap: 8px; height: auto; line-height: 1; vertical-align: middle; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; cursor: pointer; font: inherit; color: #fff !important; }
.wv-account__toggle .wv-avatar { vertical-align: middle; }
.wv-account__name { font-weight: 600; font-size: 14px; line-height: 1; color: #fff !important; }
.wv-account__drop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--wv-white); border: 1px solid var(--wv-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; min-width: 160px; z-index: 50; }
.wv-account__drop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--wv-text); white-space: nowrap; }
.wv-account__drop button:hover { background: var(--wv-red) !important; color: var(--wv-white); }
.wv-account__sep { height: 1px; background: var(--wv-line); margin: 6px 8px; }

/* Modal de exclusão de conta (LGPD) */
.wv-del-modal__text { font-size: 14px; color: #444; margin: 0 0 14px; line-height: 1.5; }
.wv-del-modal__err { margin: 4px 0 0; }
.wv-del-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.wv-account__drop .wv-logout { color: var(--wv-red) !important; font-weight: 600; }
.wv-account__drop .wv-logout:hover { color: var(--wv-white) !important; }

.wv-account__menu--open { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wv-account__menu--open .wv-account__toggle { pointer-events: none; }
.wv-account__menu--open .wv-account__drop { position: static; display: block; width: 100%; margin-top: 4px; padding: 4px 0; background: transparent !important; border: 0 !important; box-shadow: none !important; min-width: 0; }
.wv-account__menu--open .wv-account__drop button { text-align: center; color: #fff; font-weight: 600; padding: 8px 12px; }
.wv-account__menu--open .wv-account__drop button:hover { background: rgba(255, 255, 255, .15) !important; color: #fff; }

.wv-editor-hint { padding: 30px; text-align: center; color: var(--wv-muted); border: 1px dashed var(--wv-line); border-radius: 10px; }

/* Página "Minha Conta" */
.wv-account-page { max-width: 520px; }
.wv-account-page__title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--wv-text); }
.wv-loading { color: var(--wv-muted); font-size: 14px; }

@media (max-width: 600px) {
	.wv-login-prompt { flex-direction: column; align-items: flex-start; }
}

/* ===================== Conta: inline + hambúrguer ===================== */
/* Modos FIXOS (a responsividade é configurada no Elementor por dispositivo).
   Cores/tipografia/tamanhos são sobrescritos pelos controles do widget. */

/* Itens (compartilhado pelos dois modos) */
.wv-menu__list a,
.wv-menu__link {
	box-sizing: border-box; text-decoration: none; color: #fff;
	font-size: 16px; font-weight: 600; line-height: 1.2;
	background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.wv-menu__link--primary { font-weight: 800; }
button.wv-menu__link { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.wv-menu__list a:hover,
.wv-menu__link:hover { color: rgba(255, 255, 255, .7); background: transparent; text-decoration: none; }

/* ---------- Modo "inline" (deslogado = links com divisor) ---------- */
/* É a barra normal (.wv-account): logado mostra a bolinha do avatar + nome
   (estilos .wv-account__* já existentes); deslogado mostra os links abaixo. */
.wv-account--inline { display: inline-flex; align-items: center; gap: 0; }
.wv-account--inline .wv-menu__link { display: inline-block; width: auto; padding: 4px 10px; }
.wv-account--inline:not(.wv-account--nodiv) .wv-menu__link:not(:first-child) { position: relative; }
.wv-account--inline:not(.wv-account--nodiv) .wv-menu__link:not(:first-child)::before {
	content: "|"; color: rgba(255, 255, 255, .5); position: absolute; left: -2px; top: 50%;
	transform: translateY(-50%); opacity: .9;
}

/* ---------- Modo "hambúrguer" (fixo) ---------- */
.wv-menu { position: relative; display: inline-flex; align-items: center; }
.wv-menu__burger {
	width: 26px; height: 26px; display: inline-flex; flex-direction: column;
	justify-content: center; gap: 5px; background: transparent !important;
	border: 0 !important; padding: 0 !important; box-shadow: none !important; cursor: pointer;
}
.wv-menu__burger span:not(.wv-avatar) {
	display: block; width: 100%; height: 2px; border-radius: 2px;
	background-color: #fff; transition: transform .2s ease, opacity .2s ease;
}
.wv-menu--open .wv-menu__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wv-menu--open .wv-menu__burger span:nth-child(2) { opacity: 0; }
.wv-menu--open .wv-menu__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logado: avatar (bolinha) no lugar dos traços — reaproveita .wv-avatar do desktop. */
.wv-menu--auth .wv-menu__burger { width: auto !important; height: auto !important; gap: 0 !important; }
.wv-menu--auth .wv-menu__burger > span:not(.wv-avatar) { display: none; }

.wv-menu__panel {
	display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 280px; max-width: 92vw;
	flex-direction: column; align-items: stretch; box-sizing: border-box; z-index: 1000;
	background: #fe0000; padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.wv-menu--open .wv-menu__panel { display: flex; }
.wv-menu--full .wv-menu__panel { width: 100vw; left: 50%; right: auto; transform: translateX(-50%); }

.wv-menu .wv-account { display: block; height: auto; }
.wv-menu__list { list-style: none; margin: 0; padding: 0; }
.wv-menu__list li { margin: 0; padding: 0; }
.wv-menu__list a,
.wv-menu .wv-menu__link { display: block; width: 100%; padding: 12px 18px; text-align: left; }

.wv-menu__sep { border: 0; border-top: 1px solid rgba(255, 255, 255, .25); margin: 6px 0; }
.wv-menu__hint { color: rgba(255, 255, 255, .8); font-size: 12px; padding: 8px 18px; }

/* CTA "Seja Pro" persistente na barra de conta (guest + Free) */
.wv-account .wv-goprem,
.wv-menu .wv-goprem {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wv-white) !important;
	color: var(--wv-red) !important;
	font-weight: 800;
	font-size: 13px;
	line-height: 1;
	padding: 8px 14px;
	border-radius: 999px;
	border: 2px solid var(--wv-red) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.wv-account .wv-goprem:hover,
.wv-menu .wv-goprem:hover {
	background: var(--wv-red) !important;
	color: var(--wv-white) !important;
}
.wv-menu .wv-goprem { display: block; text-align: center; margin-bottom: 6px; }
/* Espaço entre o "Seja Pro" e o avatar/nome. O .wv-account renderiza como block
   (kit do Elementor sobrescreve o inline-flex), então o gap não aplica — usa margem. */
.wv-account .wv-goprem { margin-right: 10px; }

/* Selo Pro (assinante): logo do Waves Pro no slot do "Seja Pro", sem clique */
.wv-account .wv-pro-badge,
.wv-menu .wv-pro-badge { display: inline-flex; align-items: center; pointer-events: none; user-select: none; }
.wv-account .wv-pro-badge img,
.wv-menu .wv-pro-badge img { width: 63px; height: auto; max-width: 63px; display: block; }
.wv-pro-badge--txt { color: #fff; font-weight: 800; font-size: 13px; }
.wv-menu .wv-pro-badge { justify-content: center; margin-bottom: 6px; }

.wv-account__toggle .wv-pro-badge { margin-left: 8px; }
