/*
Theme Name: Anesta Child
Theme URI: https://catalyse-cop.eu/
Description: Tema filho para personalizações no Anesta.
Author: Catalyse CoP
Author URI: https://catalyse-cop.eu/
Template: anesta
Version: 1.0.0
*/

/* Daqui para baixo é o seu CSS personalizado */

/* === TIPOGRAFIA GLOBAL === */
body, p, h1, h2, h3, h4, h5, h6, span, a, li,
input, textarea, select, button {
  font-family: 'Ubuntu', sans-serif !important;
}

strong {
  font-weight: 500;
  color: #222;
}

/* === LAYOUT E ELEMENTOS GERAIS === */
@media (min-width: 1024px) {
  .menu_side_hide .sc_layouts_row_type_narrow {
    position: fixed;
    width: 100%;
  }
}

#page_content_switcher {
  display: none;
}

.trx_addons_scroll_to_top {
  color: #FFF;
  line-height: 3em;
}

.socials_share.socials_type_drop .social_items {
  bottom: 2em;
  right: -30px;
}

/* === HEADINGS PERSONALIZADOS === */
.single-post h3 {
  font-size: var(--e-global-typography-primary-font-size, 17px);
}

.elementor-kit-10085 h1 {
  font-size: 30px;
}

.elementor-kit-10085 p {
  margin-top: 20px;
}

/* === PAGINAÇÃO === */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current,
.page_links > span:not(.page_links_title),
.page_links > a,
.comments_pagination .page-numbers,
.nav-links .page-numbers {
  font-size: 15px;
  margin: 35px 15px 0 0;
}

/* === BUDDYPRESS: NAVEGAÇÃO & FORMULÁRIOS === */
#buddypress div#item-nav ul,
#buddypress > .activity-type-tabs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.buddypress #buddypress ul li a {
  font-weight: 400;
}
.buddypress #buddypress ul li a:hover {
  text-decoration: underline;
}

#buddypress input[type=submit],
input#group-creation-previous,
input#group-creation-next {
  background: #2B58CB;
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 25px;
  border: none;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#buddypress .standard-form a.clear-value,
.buddypress .field-visibility-settings,
.buddypress .field-visibility-settings-toggle,
.buddypress .field-visibility-settings-notoggle,
input[type="checkbox"] + label:not([for]) {
  display: none;
}

div#buddypress .standard-form fieldset legend {
  color: #3A4D71;
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 12px;
  text-decoration: underline;
}

div#buddypress .standard-form fieldset label {
  font-size: 14px;
  color: #555a50;
  margin-left: 4px;
}

#buddypress .standard-form p.description {
  color: #767676;
  font-size: 80%;
  margin: 20px 0;
}

/* === CHECKBOXES E RADIO BUTTONS === */
.buddypress .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.buddypress .checkbox:last-of-type {
  margin-bottom: 20px;
}
.buddypress .checkbox label {
  font-size: 15px;
}

label[for] {
  display: inline-block;
  font-size: 15px;
  color: #333;
  margin: 20px 5px 20px 0;
  cursor: pointer;
}

/* === BOTÕES E VISIBILIDADE POR ESTADO LOGIN === */
.logged-out .mostrar-so-deslogado {
  display: flex;
}
body.logged-in .mostrar-so-deslogado,
body.logged-in .trx_addons_popup_link {
  display: none;
}

/* === ATIVIDADE (FEED) === */
#buddypress .activity .activity-content strong:first-of-type {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

#buddypress .activity .activity-content p {
  font-weight: 400;
  color: #555;
  margin-bottom: 0.9em;
}

#buddypress .activity .activity-content strong {
  font-weight: 500;
  color: #222;
}

/* === FORMULÁRIO PERSONALIZADO === */
.activity-custom-form {
  margin: 40px 0;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.activity-custom-form h3.activity-heading {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #2c2c2c;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === FORMULÁRIOS WPUF === */
body ul.wpuf-form {
  margin-top: 20px;
  padding: 30px;
  background-color: var(--theme-color-content_bg);
  border-radius: var(--theme-var-content_rad);
  box-shadow: 0 3px 20px #1d26260d;
}

/* === GRUPOS & BOTÕES === */
.create-group-btn-wrapper {
  text-align: right;
  margin-bottom: 20px;
}
.create-group-btn {
  font-size: 14px;
  background-color: #3253a3;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
}
.create-group-btn:hover {
  background: #243a82;
}

/* === TAGS DE CATEGORIA === */
ul.tags-de-categoria {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tags-de-categoria li a {
  background: #204393;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}
.tags-de-categoria li a:hover {
  background: #ddd;
}

/* === FORMULÁRIOS NEWSLETTER === */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-desc {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  max-width: 500px;
}
.newsletter input[type="email"] {
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid #444;
  background-color: #fff;
  color: #000;
  width: 100%;
}
.newsletter input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #f9a825;
}
form.customize-unpreviewable input[type="submit"] {
  background-color: #f9a825;
  color: #000;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 30px;
  cursor: pointer;
}

/* === TINY MCE E MODAIS === */
.mce-container.mce-panel {
  background: #fff;
z-index: 9 !important;
}
#mceu_39-button,
#mceu_52-button {
  display: none;
}
#mceu_51-button {
  margin-top: 1px;
}
div.wp-link-input input {
  padding: 5px;
  margin-top: 13px;
}

/* === OUTROS ELEMENTOS === */
.imported-article-success {
  margin: 30px 0;
  text-align: center;
  font-size: 18px;
  padding: 10px;
  background-color: #e0ffe0;
  border: 1px solid #70e070;
  border-radius: 5px;
}
.imported-article-success a {
  color: #0066cc;
  text-decoration: none;
}
.imported-article-success a:hover {
  text-decoration: underline;
}
.imported-article {
  font-family: var(--e-global-typography-f81dea0-font-family), Sans-serif;
  color: #333;
}
.imported-article p {
  font-size: 16px;
  line-height: 1.6;
}
.imported-article img {
  max-width: 100%;
  height: auto;
}
.patents-img {
  border-radius: 0;
}

/* Estilos para o contêiner principal do Quill */
#quill-container.catalyse-quill-wrapper {
    margin-top: 0px; /* Mantém a margem que tinhas */
    border: 0px solid #ccc; /* Borda externa, se quiseres */
    box-shadow: 0 1px 1px rgba(0,0,0,0.05); /* Sombra suave para destacar */
    background-color: #fff; /* Fundo branco para o contêiner */
}

/* Estilos para a barra de ferramentas do Quill */
#quill-container.catalyse-quill-wrapper .ql-toolbar.ql-snow {
    border: 1px solid #ddd; /* Remove a borda padrão que o Quill pode ter */
    border-bottom: 1px solid #ddd; /* Adiciona uma borda apenas na parte inferior da toolbar */
    background-color: #f7f7f7; /* Um cinzento claro para o fundo da barra de ferramentas */
    padding: 8px; /* Ajusta o padding conforme necessário */
}

/* Estilos para a área de escrita do Quill */
#quill-container.catalyse-quill-wrapper .ql-editor {
    height: 500px !important; /* Altura que tinhas */
    min-height: 150px; /* Garante uma altura mínima */
    background-color: #fff; /* Fundo branco para a área de edição */
    padding: 10px; /* Padding interno que tinhas */
    font-size: 14px; /* Ajusta o tamanho da fonte, se o tema estiver a sobrescrever */
    line-height: 1.5; /* Ajusta a altura da linha para legibilidade */
}

/* Estilo para o placeholder (texto cinzento quando a caixa está vazia) */
#quill-container.catalyse-quill-wrapper .ql-editor.ql-blank::before {
    color: #999; /* Cor do texto do placeholder */
    font-style: italic; /* Opcional: italic para o placeholder */
}

/* Ajustes para os botões da barra de ferramentas (se estiverem a ser sobrescritos) */
#quill-container.catalyse-quill-wrapper .ql-toolbar button {
    color: #555; /* Cor dos ícones/botões */
background-color: transparent;
border: none; 
}

/* Estilos para links no editor */
#quill-container.catalyse-quill-wrapper .ql-editor a {
    color: #0073aa; 
    text-decoration: underline; 
}

/* Se o teu tema adicionar padding/margin ao contêiner geral do feed de atividades,
   poderás precisar de neutralizá-lo para o teu #quill-container.
   O ID do contêiner principal da atividade pode variar, inspeciona o HTML.
   Exemplo para o contêiner do formulário de atualização do BuddyPress:
*/
#whats-new-form #quill-container.catalyse-quill-wrapper {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

#whats-new-submit {
    display: block !important; /* Ou inline-block, dependendo do design */
    visibility: visible !important;
    opacity: 1 !important;
}

/* 1. Garantir que o contêiner de opções onde o botão está se torna visível */
#whats-new-options {
    display: block !important; /* Força a exibição como bloco */
    visibility: visible !important;
    opacity: 1 !important;
    /* Se o tema usar isto para esconder, remova: */
    max-height: none !important; 
    overflow: visible !important;
}

/* 2. Forçar a visibilidade e posicionamento do botão de submissão */
#whats-new-submit {
    display: block !important; /* Garante que é um elemento de bloco */
    visibility: visible !important;
    opacity: 1 !important;
    
    /* As suas regras de posicionamento que já indicou */
    float: left !important; 
    margin-top: 10px;
    
    /* Se o botão ainda estiver 'por baixo' ou a ser empurrado, pode tentar ajustar a margem */
    /* Exemplo: Se o botão estiver a ser empurrado muito para baixo, pode precisar de uma margem negativa */
    /* margin-top: -50px !important; */ /* Ajuste este valor conforme a necessidade */
    
    /* Ou, se o botão tiver 'position: absolute' nalgum lado, pode ser necessário sobrepor */
    /* position: relative !important; */ /* Se for necessário forçar o fluxo normal */
}

/* 3. Garantir que o contêiner principal do Quill (e o Quill em si) têm altura adequada */
#quill-container.catalyse-quill-wrapper {
    height: auto !important; /* Permite que o wrapper se ajuste ao conteúdo */
    min-height: 150px; /* Garante que o Quill tem uma altura mínima */
    max-height: none !important; /* Remove qualquer limite de altura */
    overflow: visible !important; /* Garante que o conteúdo não é cortado */
}

/* O editor Quill dentro do wrapper - Remova o 'Display: none;' daqui se o adicionou */
#quill-container.catalyse-quill-wrapper .ql-editor {
    height: 400px ; /* Altura que definiste para o editor */
    min-height: 150px; 
    /* ... outras propriedades de estilo ... */
    /* REMOVER: Display: none; */ 
}

/* 4. Ajustar o contêiner #whats-new-content se ele estiver a limitar o espaço */
/* Este é o pai da textarea e do #whats-new-options, então pode ser que ele limite o espaço */
#whats-new-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

div#buddypress #item-body #whats-new-form #whats-new-content, div#buddypress > form#whats-new-form #whats-new-content {
    z-index: 4;
    position: relative;
    margin-left: 0;
    padding: 0;
    -webkit-border-radius: 0 0 5px 5px;
    -ms-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
    border: none !important;
    border-width: none !important;
}

div#buddypress #item-body #whats-new-form #whats-new-content, div#buddypress > form#whats-new-form #whats-new-content {
    border: 1px solid var(--theme-color-bd_color);
    border-width: 1px;
    background-color: var(--theme-color-input_bg_color);
    box-shadow: none !important;
}

div#buddypress #item-body #whats-new-form + #subnav {
    margin-top: -50px !important;
}

div#buddypress #item-body #whats-new-form #whats-new-content textarea:not(.rtm-upload-edit-desc), div#buddypress > form#whats-new-form #whats-new-content textarea:not(.rtm-upload-edit-desc) {
    display: none !important;
}

#whats-new-submit {
  cursor: pointer;
  transition: background-color 0.6s ease, opacity 0.9s ease;
}

#whats-new-submit:hover {
  background-color: #2B58CB !important;
border: 0px;
border-radius: 12px;
}

#whats-new-submit, #aw-whats-new-submit {
  background-color: #2b58cb;
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px !important;
font-weight:400 !important;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

#whats-new-submit:hover {
  background-color: #1e44a3;
}

#whats-new-submit:disabled {
  background-color: transparent !important;
  color: #fff !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  border: 1px solid #ccc !important;
}

div#buddypress input[type="submit"]{
padding: 15px 40px !important
}

.media-modal-close {
    margin: 20px;
	padding: 0 !important;
}

.media-router .media-menu-item {
    margin: 18px 10px;
    background: #fff;
    border: 1px solid #dcdcde;
padding: 5px 15px !important;
}


.media-router .media-menu-item:hover {
    margin: 10px 10px;
    background: #2b58cb;
    border: 1px solid #dcdcde;
color: #fff;
padding: 5px 15px !important;
}

.input-text{
background: #fff !important;
}

.wp-event-manager-file-upload {
    max-width: 1000px;
}

.mce-menubtn.mce-fixed-width span {
    padding: 0px 10px 0px 10px !important;
font-size: 12px;
}

.mce-panel .mce-btn i.mce-caret {
    border-top: 6px solid #fff !important;
}

.mce-toolbar .mce-btn i {
    color: #fff !important;
}

body.mce-content-body {
  font-family: 'Ubuntu', sans-serif !important;
}

/* Se estiveres a usar o TinyMCE fora do admin (frontend editor como WPUF ou ACF) */
.mceContentBody,
.wp-editor,
.wp-editor-area,
textarea.wp-editor-area {
  font-family: 'Ubuntu', sans-serif !important;
}

.logged-in .somente-para-convidados {
  display: none !important;
}

/* ESCONDER o widget de login original do tema APENAS quando não há login */
body:not(.logged-in) .trx_addons_login_link {
  display: none !important;
}

#wpadminbar .ab-icon, #wpadminbar>#wp-toolbar>#wp-admin-bar-root-default .ab-icon {
    font: normal 20px / 1 dashicons !important;
}

.page_content_blocks div#buddypress #item-body #whats-new-form, .page_content_blocks div#buddypress > form#whats-new-form {
  -webkit-border-radius: var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad);
  -ms-border-radius: var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad);
  border-radius: var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad) var(--theme-var-content_rad);
  margin-bottom: 100px;
}

div#buddypress #item-body #whats-new-form + #subnav {
    -webkit-border-radius: 15px 15px;
    -ms-border-radius: 15px 15px;
    border-radius: 15px 15px;
}