/* =========================
   MINI BAR SOCIAL (MAPA)
========================= */
.ccs-social-mini{
  display:flex;
  gap:8px;
  align-items:center;
  margin:8px 0 10px;
  flex-wrap:wrap;
}

.ccs-social-mini button{
  border:1px solid #cfd4dc;
  border-radius:999px;
  padding:6px 12px;
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:#111;
  transition:all .15s ease;
}

.ccs-social-mini button:hover{ background:#e9ecf1; }
.ccs-social-mini .open{ background:#f3f4f6; }
.ccs-social-mini .count{ font-weight:800; }
.ccs-social-mini .ico{ font-size:14px; }

.ccs-social-mini.liked .like{
  border-color:#E0245E;
  color:#E0245E;
}
.ccs-social-mini.liked .like .ico{ color:#E0245E; }

/* =========================
   FEED LAYOUT
========================= */
.ccs-social-wrap{
  max-width:900px;
  margin:0 auto;
  padding:10px;
  background:#f2f3f5;
}

.ccs-social-header{ margin:6px 0 12px; }

.ccs-social-h1{
  font-size:20px;
  font-weight:900;
  color:#111;
}

.ccs-social-sub{
  color:#444;
  font-size:13px;
  margin-top:4px;
}

.ccs-social-center{
  text-align:center;
  margin:12px 0 22px;
}

/* =========================
   CARDS
========================= */
.ccs-social-card{
  background:#ffffff;
  border:1px solid #dcdfe3;
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.ccs-social-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.ccs-social-author{
  font-size:12px;
  color:#222;
  font-weight:800;
}

.ccs-social-date{
  font-size:12px;
  color:#555;
  margin-top:2px;
}

.ccs-social-title{
  font-weight:900;
  margin:10px 0 6px;
  font-size:14px;
  color:#111;
}

.ccs-social-title-link{
  color:#0b57d0;
  text-decoration:none;
  font-weight:900;
}

.ccs-social-title-link:hover{
  color:#063a8f;
  text-decoration:underline;
}

/* 🔥 TEXTO DO POST (bem visível) */
.ccs-social-text{
  color:#111 !important;
  font-size:15px;
  line-height:1.5;
  background:#f7f8fa;
  border-left:4px solid #111;
  padding:10px 12px;
  border-radius:10px;
  margin:6px 0 10px;
}

/* =========================
   AÇÕES (LIKE / COMENTAR / ABRIR)
========================= */
.ccs-social-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:6px;
}

.ccs-social-actions button{
  border:1px solid #cfd4dc;
  border-radius:999px;
  padding:7px 12px;
  background:#f9fafb;
  cursor:pointer;
  font-size:12px;
  display:flex;
  gap:6px;
  align-items:center;
  transition:all .15s ease;
  color:#111;
}

.ccs-social-actions button:hover{ background:#e9ecf1; }

.ccs-social-actions.is-liked .ccs-social-action-like{
  background:#ffe9ef;
  border-color:#E0245E;
  color:#E0245E;
}

.ccs-social-actions.is-liked .ccs-social-action-like .ico{
  color:#E0245E;
}

/* =========================
   BOTÃO EXCLUIR
========================= */
.ccs-social-btn-del{
  border:1px solid rgba(176,0,32,.55);
  color:#b00020;
  background:#fff;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}

.ccs-social-btn-del:hover{
  background:#ffe5ea;
}

/* =========================
   COMPOSER (ESCREVER POST)
========================= */
.ccs-social-compose textarea{
  width:100%;
  min-height:90px;
  border:1px solid #cfd4dc;
  border-radius:12px;
  padding:10px;
  font-size:14px;
  outline:none;
  color:#111;
  background:#fff;
}

.ccs-social-compose textarea::placeholder{
  color:#666;
  opacity:1;
}

.ccs-social-compose-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.ccs-social-btn-primary{
  background:#111;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:900;
}

.ccs-social-btn-primary:hover{ opacity:.92; }

.ccs-social-btn{
  background:#fff;
  border:1px solid #cfd4dc;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:900;
  color:#111;
}

.ccs-social-btn:hover{ background:#f1f3f6; }

.ccs-social-muted{
  color:#444;
  font-size:12px;
}

/* =========================
   POSTAGEM RÁPIDA (FOTOS)
========================= */
.ccs-social-compose-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.ccs-social-file input{ display:none; }

.ccs-social-file span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #cfd4dc;
  background:#fff;
  padding:8px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
  color:#111;
}

.ccs-social-file span:hover{ background:#f1f3f6; }

.ccs-social-preview{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.ccs-social-thumb{
  width:72px;
  height:72px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.12);
  background:#f7f8fa;
}

.ccs-social-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ccs-social-gallery{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:8px;
  margin:10px 0;
}

.ccs-social-gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#f7f8fa;
}

@media (min-width: 680px){
  .ccs-social-gallery{ grid-template-columns:repeat(3, 1fr); }
  .ccs-social-gallery img{ height:200px; }
}

/* =========================
   ANCORAGEM / DESTAQUE
========================= */
.ccs-social-card.ccs-highlight{
  outline:3px solid rgba(11,87,208,.55);
  box-shadow:0 10px 26px rgba(11,87,208,.18);
  transform:translateY(-1px);
}

/* =========================
   COMENTÁRIOS
========================= */
.ccs-social-comments{
  margin-top:10px;
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ccs-social-comment{
  background:#ffffff;
  border:1px solid #dcdfe3;
  border-radius:12px;
  padding:10px;
}

.ccs-social-comment-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.ccs-social-comment-author{
  font-size:12px;
  font-weight:900;
  color:#111;
}

.ccs-social-comment-date{
  font-size:12px;
  color:#666;
}

.ccs-social-comment-body{
  font-size:14px;
  color:#222;
  line-height:1.4;
}

.ccs-social-mini-del-comment{
  margin-top:8px;
  border:1px solid rgba(176,0,32,.55);
  color:#b00020;
  background:#fff;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:900;
}

.ccs-social-mini-del-comment:hover{
  background:#ffe5ea;
}

/* =========================
   INPUT + BOTÃO "ENVIAR" (FIX DEFINITIVO)
   ⚠️ seletor bem forte pra ganhar do tema/elementor
========================= */
#ccs_social_feed .ccs-social-card .ccs-social-add-comment{
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
}

#ccs_social_feed .ccs-social-card .ccs-social-add-comment .ccs-social-comment-input{
  flex:1;
  border:1px solid #bfc5ce !important;
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
  background:#ffffff !important;
  color:#111 !important;
}

#ccs_social_feed .ccs-social-card .ccs-social-add-comment .ccs-social-comment-input::placeholder{
  color:#555 !important;
  opacity:1 !important;
}

/* ✅ BOTÃO ENVIAR: PRETO REAL, SEMPRE LEGÍVEL */
#ccs_social_feed .ccs-social-card .ccs-social-add-comment button.ccs-social-btn,
#ccs_social_feed .ccs-social-card .ccs-social-add-comment .ccs-social-btn{
  background:#111111 !important;
  color:#ffffff !important;
  border:1px solid #111111 !important;
  font-weight:900 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}

/* hover */
#ccs_social_feed .ccs-social-card .ccs-social-add-comment button.ccs-social-btn:hover,
#ccs_social_feed .ccs-social-card .ccs-social-add-comment .ccs-social-btn:hover{
  background:#000000 !important;
  border-color:#000000 !important;
}

/* disabled (quando aparece "Enviando...") */
#ccs_social_feed .ccs-social-card .ccs-social-add-comment button.ccs-social-btn:disabled,
#ccs_social_feed .ccs-social-card .ccs-social-add-comment .ccs-social-btn:disabled{
  background:#6b7280 !important;
  border-color:#6b7280 !important;
  color:#ffffff !important;
  opacity:1 !important;
  cursor:not-allowed !important;
}



/* ==============================
   MODAL DE IMAGEM – FIX FINAL
============================== */
#ccs_social_img_modal{
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.92);
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: auto !important;
}

#ccs_social_img_modal img{
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 14px;
  pointer-events: auto;
}

.ccs-social-img-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 42px;
  background: rgba(255,255,255,.14);
  color: #fff;
  z-index: 1000000;
}

.ccs-social-img-zoom{
  cursor: zoom-in;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

/* trava o fundo quando o modal abre */
html.ccs-social-modal-open,
body.ccs-social-modal-open{
  overflow: hidden !important;
}


/* garante que a imagem receba o clique */
.ccs-social-gallery{
  position: relative;
  z-index: 1;
}

.ccs-social-gallery img{
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: zoom-in;
}

/* evita camadas roubarem o clique */
.ccs-social-title,
.ccs-social-actions{
  pointer-events: none;
}


.ccs-social-card *{
  pointer-events: auto;
}

.ccs-social-gallery{
  position: relative;
  z-index: 10;
}

.ccs-social-gallery img{
  position: relative;
  z-index: 20;
  cursor: zoom-in;
}


/* ===============================
   MODAL – CARROSSEL DE IMAGENS
================================ */

.ccs-social-modal-track{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  max-height: 100%;
}

.ccs-social-modal-track img{
  flex: 0 0 100%;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  scroll-snap-align: center;
  border-radius: 16px;
  user-select: none;
}
