/* RedFeed — emoji e GIF nos comentarios */
.rf-cx-tools{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto}
.rf-cx-compose .rf-cx-tools .rf-cx-btn,
:is(#rfFeedReelsViewer,#rfProfileReelsViewer) .rf-cx-compose.rf-cx-compose .rf-cx-tools button.rf-cx-btn.rf-cx-btn{flex:0 0 auto!important;width:30px!important;height:30px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:rgba(255,255,255,.78)!important;font-size:1.1rem!important;font-weight:400!important;line-height:1!important;cursor:pointer;display:grid!important;place-items:center}
.rf-cx-compose .rf-cx-tools .rf-cx-btn:hover{color:#ff8ab3!important;background:rgba(255,23,77,.12)!important}
.rf-cx-compose .rf-cx-tools .rf-cx-btn-gif,
:is(#rfFeedReelsViewer,#rfProfileReelsViewer) .rf-cx-compose.rf-cx-compose .rf-cx-tools button.rf-cx-btn-gif.rf-cx-btn-gif{width:32px!important;height:22px!important;margin:0 3px!important;border:0!important;outline:0;border-radius:6px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;letter-spacing:0!important;overflow:visible}
html[data-rf-theme="light"] .rf-cx-compose .rf-cx-tools .rf-cx-btn-gif{background:#e2e8f0!important;color:#334155!important}
.rf-cx-compose input,.rf-cx-compose textarea{min-width:0!important;flex:1 1 auto}
.rf-cx-compose>button[type="submit"],.rf-cx-compose>#rfCommentSheetSend{flex:0 0 auto}
html[data-rf-theme="light"] .rf-cx-compose .rf-cx-tools .rf-cx-btn{color:#475569!important}
form.rf-comment-form.rf-cx-compose{display:flex;align-items:flex-end;gap:6px}
form.rf-comment-form.rf-cx-compose textarea{flex:1;min-width:0}

.rf-cx-panel{position:fixed;z-index:2147483400;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:16px;background:linear-gradient(180deg,#16121c,#0d0d14);border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 50px rgba(0,0,0,.55);color:#fff;max-height:min(60vh,440px)}
.rf-cx-panel[hidden]{display:none!important}
.rf-cx-tabs{display:flex;gap:6px;align-items:center}
.rf-cx-tab{flex:1;border:0;border-radius:999px;padding:8px 10px;background:rgba(255,255,255,.06);color:#c8c8d8;font-weight:800;font-size:.74rem;cursor:pointer}
.rf-cx-tab.is-active{background:linear-gradient(135deg,#ff174d,#ff2ea6);color:#fff}
.rf-cx-close{flex:0 0 auto;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.06);color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
.rf-cx-body{display:flex;flex-direction:column;gap:8px;min-height:0}
.rf-cx-body[hidden]{display:none!important}
.rf-cx-picker{width:100%;height:min(40vh,320px)}
.rf-cx-gif-search{width:100%;box-sizing:border-box;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;padding:9px 14px;font-size:16px;outline:none}
.rf-cx-gif-search:focus{border-color:#ff2e63}
.rf-cx-gif-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-auto-rows:100px;gap:6px;overflow:auto;height:min(36vh,280px);align-content:start}
.rf-cx-gif-grid button{position:relative;width:100%;height:100%;border:0;padding:0;border-radius:10px;overflow:hidden;background:#111;cursor:pointer}
.rf-cx-gif-grid img,.rf-cx-gif-grid video{width:100%;height:100%;object-fit:cover;display:block}
.rf-cx-gif-grid video{position:absolute;inset:0;opacity:0;transition:opacity .15s;pointer-events:none}
.rf-cx-gif-grid button.is-moving video{opacity:1}
.rf-cx-gif-foot{font-size:.7rem;font-weight:700;text-align:center;opacity:.6;min-height:1em}
html[data-rf-theme="light"] .rf-cx-panel{background:#fff;border-color:#e2e8f0;color:#0f172a;box-shadow:0 18px 50px rgba(15,23,42,.2)}
html[data-rf-theme="light"] .rf-cx-tab{background:#f1f5f9;color:#334155}
html[data-rf-theme="light"] .rf-cx-close{background:#f1f5f9;color:#0f172a}
html[data-rf-theme="light"] .rf-cx-gif-search{background:#f1f5f9;border-color:#cbd5e1;color:#0f172a}

/* GIF dentro do comentario */
.rf-social-comment-text.has-gif{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.rf-cx-comment-gif{display:block;width:auto;max-width:min(220px,70%);max-height:200px;border-radius:12px;background:#0a0a12}
.rf-cx-comment-mention{font-weight:800;color:#ff8ab3}

/* Envio em andamento: emoji/GIF ficam travados ate o servidor responder */
.rf-cx-compose[data-rf-submitting="1"] .rf-cx-btn{opacity:.4;pointer-events:none}
/* GIF acima do limite de comentario (3 MB / 640 px): aparece apagado e so mostra o aviso */
.rf-cx-gif-grid button.is-too-big{opacity:.35;filter:grayscale(1)}
