/* WAVES Community — estilos do bloco de comentários, login e conta.
 * Paleta: vermelho Waves (#fe0000), branco e preto.
 * Botão padrão: preto com fonte branca; hover vermelho Waves.
 * Tudo escopado em .wv-* — não sobrescreve configurações do Elementor.
 */
.wv-community,
.wv-modal,
.wv-toast,
.wv-account {
	--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);
}

.wv-community {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--wv-text);
	max-width: 100%;
}
.wv-community * { box-sizing: border-box; }

.wv-notice { margin: 0 0 18px; }
.wv-notice p { margin: 0; color: var(--wv-muted); font-size: 13px; line-height: 1.5; font-style: italic; }
.wv-notice__label { color: var(--wv-red); font-weight: 700; font-style: normal; margin-right: 4px; }

.wv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wv-title { font-size: 18px; font-weight: 700; margin: 0; }
.wv-title .wv-count { color: var(--wv-red); }
.wv-sorts { display: inline-flex; gap: 18px; background: transparent; padding: 0; }
/* !important: vence a cor primária (rosa) que o tema/Elementor aplica em <button>. */
.wv-sort { border: 0 !important; background: transparent !important; padding: 4px 0; border-radius: 0; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--wv-muted) !important; position: relative; }
.wv-sort:hover { background: transparent !important; color: var(--wv-text) !important; }
.wv-sort.is-active { background: transparent !important; color: var(--wv-red) !important; }
.wv-sort.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--wv-red); }

/* Botões — padrão: preto, fonte branca, hover vermelho Waves */
/* !important nas cores: nossos botões mantêm a paleta (preto/branco/vermelho)
 * mesmo sob os Theme Styles de botão do Elementor/tema. */
.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-sort:focus-visible, .wv-btn:focus-visible { outline: 2px solid var(--wv-red); outline-offset: 2px; }

/* Blindagem: nenhum <button> nosso herda a cor primária (rosa) do tema/Elementor. */
.wv-link, .wv-react, .wv-modal__close, .wv-account__toggle, .wv-account__drop button { background: transparent !important; }
.wv-link { border: 0; background: none; color: var(--wv-muted); font-size: 13px; cursor: pointer; padding: 4px 0; font-weight: 600; }
.wv-link:hover { color: var(--wv-red); }
.wv-link--muted { color: rgba(0, 0, 0, .4); }

/* Composer */
.wv-composer { margin-bottom: 22px; }
.wv-composer__input { width: 100%; border: 1px solid var(--wv-line) !important; border-radius: 10px; padding: 12px 14px; font: inherit; resize: vertical; min-height: 64px; color: var(--wv-text); box-shadow: none !important; }
.wv-composer__input:focus { outline: none; border-color: var(--wv-red) !important; box-shadow: 0 0 0 3px rgba(254, 0, 0, .15) !important; }
.wv-composer__bar { display: flex; justify-content: flex-end; margin-top: 8px; }
.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; }
.wv-closed { background: var(--wv-soft); border: 1px solid var(--wv-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; color: var(--wv-muted); font-size: 14px; }

/* 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; }

/* Feedback CTA */
.wv-feedback-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--wv-white); border: 1px solid var(--wv-line); border-left: 4px solid var(--wv-red); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; flex-wrap: wrap; }
.wv-feedback-cta__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.wv-feedback-cta__text strong { font-size: 14px; }
.wv-feedback-cta__text span { color: var(--wv-muted); }

/* Lista / itens */
.wv-list { list-style: none; margin: 0; padding: 0; }
.wv-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--wv-line); }
.wv-item--reply { margin-left: 40px; }
.wv-item.is-pending { opacity: .72; }
.wv-item__avatar { flex: 0 0 auto; }
.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: var(--wv-black); color: var(--wv-white); 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; }
.wv-item__body { flex: 1 1 auto; min-width: 0; }
.wv-item__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 1px; }
.wv-item__author { font-weight: 700; color: var(--wv-red); }
.wv-item__submeta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wv-item__time, .wv-item__edited { color: var(--wv-muted); font-size: 12px; }
.wv-item__time { text-decoration: none; cursor: pointer; }
.wv-item__time:hover { color: var(--wv-red); text-decoration: underline; }
.wv-item--highlight { animation: wv-flash 2.4s ease-out; border-radius: 8px; }
@keyframes wv-flash {
	0% { background: rgba( 254, 0, 0, 0.16 ); box-shadow: 0 0 0 4px rgba( 254, 0, 0, 0.16 ); }
	100% { background: transparent; box-shadow: 0 0 0 4px rgba( 254, 0, 0, 0 ); }
}
.wv-badge { background: rgba(254, 0, 0, .1); color: var(--wv-red); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.wv-team-tag { background: var(--wv-red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.wv-item--team .wv-item__author { color: var(--wv-red); }
.wv-team-note { font-size: 13px; color: var(--wv-muted); margin-bottom: 8px; }
.wv-team-note strong { color: var(--wv-red); }

/* Moderação inline (front) — visível só para moderadores. */
.wv-mod-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--wv-line); }
.wv-modbtn { border: 1px solid var(--wv-line); background: var(--wv-white); color: var(--wv-text); border-radius: 6px !important; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.wv-modbtn:hover { border-color: var(--wv-black); }
.wv-modbtn--danger { color: var(--wv-red); border-color: var(--wv-red); }
.wv-modbtn--danger:hover { background: var(--wv-red); color: var(--wv-white); }
.wv-item__text { font-size: 15px; line-height: 1.5; word-wrap: break-word; }
.wv-item__actions { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
/* Flat estilo Disqus: sem borda/fundo (vence o tema), ícones cinza, ícone+contador na horizontal. */
.wv-act { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; cursor: pointer; color: var(--wv-muted) !important; font-size: 13px; font-weight: 600; line-height: 1; display: inline-flex !important; align-items: center !important; gap: 6px; transition: color .15s; }
.wv-act svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: 0 0 auto; transition: transform .15s; }
.wv-act:hover { color: var(--wv-red) !important; background: none !important; }
.wv-act:hover svg { transform: scale(1.08); }
.wv-act--text { color: #444 !important; }
.wv-act--text:hover { color: var(--wv-red) !important; }
.wv-react.is-on { color: var(--wv-red) !important; }
.wv-react.is-on svg { fill: rgba(254, 0, 0, .12); }
.wv-item__sub:not(:empty) { margin-top: 10px; }

.wv-list-state { text-align: center; padding: 14px 0; }
.wv-empty, .wv-loading { color: var(--wv-muted); font-size: 14px; }

/* 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); }
.wv-modal__close:hover { color: var(--wv-red); }
.wv-modal__title { margin: 0 0 16px; font-size: 19px; }
/* Garante que [hidden] vença regras de display dos passos (step2 etc.). */
.wv-modal [hidden], .wv-community [hidden] { display: none !important; }

/* Forms (auth/feedback) */
.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; }

.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; }
.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-nudge p { font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.wv-nudge__bar { display: flex; gap: 8px; justify-content: flex-end; }
.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; }
.wv-account__drop button { white-space: nowrap; }

/* 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%; }
/* !important p/ vencer o estilo de <button> do tema (borda/cor cinza). */
.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); }
.wv-account__drop button:hover { background: var(--wv-red) !important; color: var(--wv-white); }

/* Modo expandido (flag "Menu sempre aberto" — menu mobile): opções já abertas,
   em fluxo, centralizadas e combinando com o popup (texto claro, sem card). */
.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" (widget). Defaults discretos — estilo fino via Elementor. */
.wv-account-page { max-width: 520px; }
.wv-account-page__title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--wv-text); }

@media (max-width: 600px) {
	.wv-item--reply { margin-left: 24px; }
	.wv-feedback-cta, .wv-login-prompt { flex-direction: column; align-items: flex-start; }
}
