/*
Theme Name:     Foxiz child
Template:      	foxiz
Theme URI:      https://foxiz.themeruby.com
Author:         Theme-Ruby
Author URI:     https://themeforest.net/user/theme-ruby/portfolio/
Description:    Make your modifications to Foxiz in this child theme.
Version:        1.0
Tags:           custom-background, custom-menu, featured-images, theme-options, custom-colors, translation-ready, threaded-comments, translation-ready
License:        Themeforest Licence
License URI:    https://themeforest.net/licenses/standard
*/

/* Your CSS code goes here
-------------------------------------- */

/* ========================= */
/* BILLBOARD FOXIZ FULL WIDTH */
/* ========================= */

.billboard-wrapper {

    position: relative;

    /* Escapa do container Foxiz */
    width: 100vw !important;
    max-width: 100vw !important;

    left: 50%;
    transform: translateX(-50%);

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 20px 0;
    background: #f9f9f9;

    clear: both;
}

/* Remove limites herdados */
.billboard-wrapper > div {
    width: auto !important;
    max-width: none !important;
}

.billboard-wrapper iframe {
    display: block !important;
    margin: 0 auto !important;
}

/* Reserva altura */
@media (min-width: 1024px) {
    .billboard-wrapper { min-height: 250px; }
}

@media (max-width: 1023px) {
    .billboard-wrapper { min-height: 100px; }
}


/* ========================= */
/* CARD SQUARES */
/* ========================= */
.square-wrapper {
    width: 100% !important;
    max-width: 380px; /* Limite para não ficar largo demais em sidebars grandes */
    margin: 30px auto !important; /* Margem maior para afastar dos parágrafos */
    padding: 15px 10px !important;
    background-color: #f4f4f4 !important; /* Cinza claro de fundo */
    border: 1px solid #e0e0e0; /* Borda sutil para delimitar */
    border-radius: 4px;
    text-align: center !important;
    display: block !important;
    clear: both;
}

/* Rótulo PUBLICIDADE */
.square-wrapper::before {
    content: "PUBLICIDADE";
    display: block;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Centralização do Anúncio dentro do card */
.square-wrapper > div {
    display: table !important;
    margin: 0 auto !important;
    min-height: 250px;
}

/* Ajuste para mobile: garante margem lateral e evita que o card cole nas bordas */
@media (max-width: 767px) {
    .square-wrapper {
        width: calc(100% - 20px) !important; 
        margin: 25px 10px !important;
    }
}

/* ========================= */
/* ANCHOR */
/* ========================= */
#anchor-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Garante que não interfira no clique do site por baixo */
}

/* Botão de Setinha (Collapse) */
#anchor-close-button {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    width: 45px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    pointer-events: auto; /* Reativa o clique apenas no botão */
}

#anchor-close-button svg {
    width: 16px;
    fill: #666;
    transition: transform 0.3s;
}

/* Slot do Anúncio */
#div-gpt-ad-1761918339605-0 {
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    pointer-events: auto;
    display: flex;
    justify-content: center;
}

/* Classe para esconder o anchor ao clicar */
.anchor-hidden {
    display: none !important;
}