/* Tá Fixe — Comentários */

/* Honeypot */
.tafixe-hp-c { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Caixa de login EM DESTAQUE no topo do formulário */
.tafixe-com-login {
	border: 1px solid color-mix(in srgb, var(--brand, #2d8cf0) 35%, transparent);
	background: color-mix(in srgb, var(--brand, #2d8cf0) 6%, transparent);
	border-radius:var(--radius,10px); padding: 16px; margin: 0 0 14px; text-align: center;
}
.tafixe-com-login__t { margin: 0 0 12px; font-weight: 800; font-size: 1rem; color: var(--ink, #16181d); }
.tafixe-com-login__alt { margin: 10px 0 0; font-size: .8rem; color: var(--muted, #6b7280); }
.tafixe-com-login__alt a { color: var(--brand, #2d8cf0); font-weight: 700; text-decoration: none; }

.tafixe-com-google {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; max-width: 360px; margin: 0 auto; padding: 13px 16px;
	border: 1px solid var(--line, #e6e8ec); border-radius:var(--radius,10px);
	background: var(--card, #fff); color: var(--ink, #16181d);
	font-weight: 800; font-size: 1rem; text-decoration: none;
	box-shadow: 0 2px 10px rgba(16,18,29,.08);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tafixe-com-google:hover {
	border-color: var(--brand, #2d8cf0); transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(16,18,29,.12);
}
.tafixe-com-google:active { transform: scale(.98); }

/* Incentivo */
.tafixe-com-incentivo {
	margin: 0 0 10px; font-size: .85rem; font-weight: 600;
	color: var(--accent, #8b5cf6);
	background: color-mix(in srgb, var(--accent, #8b5cf6) 9%, transparent);
	border-radius:var(--radius,10px); padding: 8px 12px;
}

/* Chips de resposta rápida */
.tafixe-com-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tafixe-com-chip {
	border: 1px solid var(--line, #e6e8ec); border-radius: 999px;
	background: var(--bg, #f4f5f7); color: var(--ink, #16181d);
	font-size: .8rem; font-weight: 600; padding: 7px 12px; cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tafixe-com-chip:hover { border-color: var(--brand, #2d8cf0); background: color-mix(in srgb, var(--brand, #2d8cf0) 8%, transparent); }
.tafixe-com-chip:active { transform: scale(.95); }

/* Textarea convidativa */
.comment-form-comment textarea {
	width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
	border: 1px solid var(--line, #e6e8ec); border-radius:var(--radius,10px);
	background: var(--bg, #f4f5f7); color: var(--ink, #16181d);
	resize: vertical; min-height: 96px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form-comment textarea:focus {
	outline: none; border-color: var(--brand, #2d8cf0);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #2d8cf0) 16%, transparent);
}
.comment-form-author input, .comment-form-email input {
	padding: 10px 12px; font-size: 16px;
	border: 1px solid var(--line, #e6e8ec); border-radius:var(--radius,10px);
	background: var(--bg, #f4f5f7); color: var(--ink, #16181d);
}

/* Notas de estado */
.tafixe-com-nota { font-size: .9rem; font-weight: 600; padding: 10px 12px; border-radius:var(--radius,10px); }
.tafixe-com-nota.ok  { color: #16a34a; background: color-mix(in srgb, #16a34a 10%, transparent); }
.tafixe-com-nota.err { color: #dc2626; background: color-mix(in srgb, #dc2626 10%, transparent); }
.tafixe-com-nota.espera { color: #b45309; background: color-mix(in srgb, #f59e0b 12%, transparent); }
[data-theme="dark"] .tafixe-com-nota.espera { color: #fbbf24; }
/* Mensagem por cima do comentário acabado de enviar */
.comment-list .tafixe-com-novo > .tafixe-com-nota { margin: 6px 0 8px; font-size: .84rem; padding: 7px 10px; }
/* Pendente: âmbar em vez de verde, para não parecer já publicado */
.comment-list .tafixe-com-novo.tafixe-com-pendente > .comment-body {
	background: color-mix(in srgb, #f59e0b 10%, transparent);
	box-shadow: 0 0 0 6px color-mix(in srgb, #f59e0b 10%, transparent);
}

/* Gostos 👍 */
.tafixe-clike-row { margin-top: 6px; }
.tafixe-clike {
	display: inline-flex; align-items: center; gap: 5px;
	border: 1px solid var(--line, #e6e8ec); border-radius: 999px;
	background: transparent; color: var(--muted, #6b7280);
	font-size: .78rem; font-weight: 700; padding: 4px 10px; cursor: pointer;
	transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.tafixe-clike:hover { border-color: var(--brand, #2d8cf0); color: var(--brand, #2d8cf0); }
.tafixe-clike:active { transform: scale(.92); }
.tafixe-clike.is-liked {
	border-color: var(--brand, #2d8cf0);
	color: var(--brand, #2d8cf0);
	background: color-mix(in srgb, var(--brand, #2d8cf0) 10%, transparent);
}

/* Convite no fim do desconto */
.tafixe-com-convite {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	background: color-mix(in srgb, var(--brand, #2d8cf0) 6%, transparent);
	border: 1px dashed color-mix(in srgb, var(--brand, #2d8cf0) 35%, transparent);
	border-radius:var(--radius,10px); padding: 12px 16px; margin: 16px 0 4px;
}
.tafixe-com-convite p { margin: 0; font-weight: 600; color: var(--ink, #16181d); font-size: .92rem; }
.tafixe-com-convite .cta-button { border: 0; }

/* Anexar foto (registados) */
.tafixe-com-anexo { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.tafixe-com-anexo__btn {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1px dashed var(--line, #e7ebee); border-radius:var(--radius,10px);
	background: var(--bg, #f2f5f7); color: var(--ink, #1d1f20);
	font-size: .82rem; font-weight: 700; padding: 9px 13px; cursor: pointer;
	transition: border-color .15s ease;
}
.tafixe-com-anexo__btn:hover { border-color: var(--brand, #ff7900); }
.tafixe-com-anexo__btn small { color: var(--muted, #5f6c74); font-weight: 600; }
.tafixe-com-img { position: relative; }
.tafixe-com-img__selo {
	display: inline-flex; align-items: center; gap: 4px;
	margin-top: 6px; padding: 3px 9px; border-radius: 999px;
	background: #1d6f42; color: #fff;
	font-size: .72rem; font-weight: 700;
}

.tafixe-com-anexo__legal { margin: 4px 0 0; color: var(--muted, #646970); line-height: 1.45; max-width: 560px; }
.tafixe-com-anexo__legal a { color: inherit; text-decoration: underline; }

.tafixe-com-anexo__prev { position: relative; }
.tafixe-com-anexo__prev img {
	width: 64px; height: 64px; object-fit: cover;
	border-radius:var(--radius-sm,8px); display: block; border: 1px solid var(--line, #e7ebee);
}
.tafixe-com-anexo__prev button {
	position: absolute; top: -8px; right: -8px;
	width: 22px; height: 22px; line-height: 1; font-size: 14px;
	border: 0; border-radius: 50%; cursor: pointer;
	background: #dc2626; color: #fff;
}
.tafixe-com-anexo__msg { font-size: .78rem; color: var(--muted, #5f6c74); }

/* Foto dentro do comentário publicado */
.tafixe-com-img { margin-top: 8px; }
.tafixe-com-img img {
	max-width: 240px; max-height: 240px; width: auto; height: auto;
	border-radius:var(--radius-sm,8px); border: 1px solid var(--line, #e7ebee); display: block;
}

/* Comentário acabado de publicar */
.tafixe-com-novo { animation: tafixeComIn .35s ease; }
/* Comentário acabado de publicar fica com um verde suave, para se ver que
   entrou e onde ficou. Só existe até refrescar (a classe vem do JS). */
.comment-list .tafixe-com-novo > .comment-body {
	background: color-mix(in srgb, #22c55e 12%, transparent);
	box-shadow: 0 0 0 6px color-mix(in srgb, #22c55e 12%, transparent);
	border-radius: var(--radius, 10px); border-top-color: transparent;
}
.tafixe-com-agora { font-size: .75rem; color: var(--accent, #8b5cf6); font-weight: 700; }
@keyframes tafixeComIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Enquanto se escreve, esconder a barra amarela fixa do fundo (tapava a caixa
   no telemóvel — era por isso que "não aparecia onde escrever"). */
body.tafixe-com-escreve .single-sticky { display: none !important; }

/* Respostas pré-definidas do staff (só admin/moderador vê) */
.tafixe-com-chips--staff { align-items: center; margin-top: -4px; padding: 8px; border-radius:var(--radius,10px);
	background: color-mix(in srgb, #f59e0b 10%, transparent); border: 1px dashed color-mix(in srgb, #f59e0b 45%, transparent); }
.tafixe-com-chips__lbl { font-size: .8rem; font-weight: 800; color: #b45309; margin-right: 4px; }
[data-theme="dark"] .tafixe-com-chips__lbl { color: #fbbf24; }
.tafixe-com-chip--staff { border-color: color-mix(in srgb, #f59e0b 50%, transparent);
	background: var(--card, #fff); color: var(--ink, #16181d); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tafixe-com-chip--staff:hover { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 8%, transparent); }

/* Caixa da foto por cima do site */
.tafixe-com-img img { cursor: zoom-in; }
.tafixe-com-img a { display: inline-block; max-width: 100%; line-height: 0; } /* o link só ocupa a foto */
.tafixe-lb {
	position: fixed; inset: 0; z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.86); padding: 16px; cursor: zoom-out;
	animation: tafixe-lb-in .15s ease-out;
}
.tafixe-lb img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm, 8px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.tafixe-lb__x {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
	border: 0; border-radius: 999px; background: rgba(255,255,255,.15); color: #fff;
	font-size: 18px; line-height: 40px; cursor: pointer;
}
.tafixe-lb-aberta { overflow: hidden; }
@keyframes tafixe-lb-in { from { opacity: 0; } to { opacity: 1; } }

/* Editor no lugar (moderadores) */
.tafixe-com-editor textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--line, #ddd); border-radius: var(--radius-sm, 8px); font: inherit; line-height: 1.5; resize: vertical; }
.tafixe-com-editor__acoes { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.tafixe-com-editor__x { background: none; border: 0; color: var(--muted, #666); cursor: pointer; text-decoration: underline; font: inherit; }

/* Apagar (moderadores) */
.tafixe-com-apagar { color: #b32d2e !important; margin-left: 4px; }

/* Menções @Nome */
.tafixe-mencoes { position: relative; margin-top: 4px; border: 1px solid var(--line, #ddd); border-radius: var(--radius-sm, 8px); background: var(--card, #fff); box-shadow: 0 6px 20px rgba(0,0,0,.12); max-width: 320px; overflow: hidden; z-index: 20; }
.tafixe-mencoes__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink, #111); }
.tafixe-mencoes__item img { border-radius: 50%; }
.tafixe-mencoes__item.is-sel, .tafixe-mencoes__item:hover { background: var(--bg, #f3f4f6); }
.tafixe-mencao { color: var(--brand, #7c3aed); font-weight: 700; }

/* =========================================================================
   Resposta estilo Facebook (25/11/2026, pedido do dono): ao tocar em
   «Responder», a caixa aparece logo por baixo do comentário, compacta —
   avatar + caixa redonda que cresce ao escrever + botão pequeno. O resto
   (login, nome/email) só aparece quando se começa a escrever. A caixa
   principal, no fundo, fica igual.
   ========================================================================= */
.tf-resp-av { display: none; }
.comment-list #respond {
	margin: 2px 0 10px 42px; padding: 0 3px 0 0; background: none; border: 0; box-shadow: none;
}
.comment-list .children #respond { margin-left: 36px; }
.comment-list #respond .comment-reply-title {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	margin: 0 0 6px; font-size: .78rem; font-weight: 600; color: var(--muted, #5c6675); line-height: 1.3;
}
.comment-list #respond .comment-reply-title small { font-size: inherit; }
.comment-list #respond #cancel-comment-reply-link { color: var(--muted, #5c6675); text-decoration: none; font-weight: 700; }
.comment-list #respond #cancel-comment-reply-link:hover { color: var(--ink, #16181d); }
.comment-list #respond .comment-notes,
.comment-list #respond .logged-in-as,
.comment-list #respond .tafixe-com-incentivo,
.comment-list #respond .tafixe-com-anexo,
.comment-list #respond .tafixe-com-login__t { display: none; }
.comment-list #respond:not(.tf-escreve) .tafixe-com-login,
.comment-list #respond:not(.tf-escreve) .comment-form-author,
.comment-list #respond:not(.tf-escreve) .comment-form-email,
.comment-list #respond:not(.tf-escreve) .comment-form-cookies-consent { display: none; }
.comment-list #respond .tafixe-com-login { padding: 8px; margin: 0 0 8px; }
.comment-list #respond .tafixe-com-google { padding: 8px 12px; font-size: .88rem; }
.comment-list #respond .tafixe-com-login__alt { font-size: .76rem; margin: 6px 0 0; }
.comment-list #respond .comment-form-author label,
.comment-list #respond .comment-form-email label { font-size: .78rem; color: var(--muted, #5c6675); }
.comment-list #respond .comment-form-comment { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; }
.comment-list #respond .tf-resp-av {
	display: block; position: static; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; margin-top: 4px;
}
.comment-list #respond .comment-form-comment textarea {
	flex: 1 1 auto; min-width: 0; height: 42px; min-height: 42px; max-height: 220px; padding: 9px 14px;
	border-radius: 20px; resize: none; line-height: 1.4; overflow-y: auto;
}
.comment-list #respond .comment-form-author,
.comment-list #respond .comment-form-email { margin: 0 0 6px; }
.comment-list #respond .comment-form-author input,
.comment-list #respond .comment-form-email input { width: 100%; box-sizing: border-box; padding: 8px 12px; }
.comment-list #respond .form-submit { display: flex; justify-content: flex-end; margin: 0; }
.comment-list #respond .form-submit .cta-button,
.comment-list #respond .form-submit [type="submit"] { padding: 7px 16px; font-size: .85rem; min-height: 0; }
.comment-list #respond .tafixe-com-chips--staff { margin: 0 0 6px; padding: 6px; }
.comment-list #respond .tafixe-com-chip { padding: 5px 10px; font-size: .76rem; }
