/* Gran Adega (FGX): o tema Evo esconde a 1a categoria do rodape; aqui ela e Vinhos */
#rodape .links-rodape-categorias ul li:first-child { display: list-item; }

/* Gran Adega (FGX): esconde a barra de cookies se ela vier sem conteudo */
#avisoCookies:not(:has(.conteiner *)) { display: none; }

/* Gran Adega (FGX): o popup de newsletter nunca abre por cima do aviso de maioridade */
body:has(#AcessoRestritoIdade.in) .fancybox-overlay:has(#modalNewsletter) { display: none !important; }

/* Gran Adega (FGX): itens que o tema cria mesmo desligados (Mega promocoes e rastreio, sem URL configurada) */
#cabecalho li.categoria-id-offers-mb:has(a[href="undefined"]) { display: none !important; }
#cabecalho .menu.superior.visible-phone .action-links li:has(> .form-tracking) { display: none !important; }

/* Gran Adega (FGX): coluna "Formas de envio" do rodape some enquanto nao houver selo de envio */
#rodape .envio:not(:has(li)) { display: none !important; }

/* Gran Adega (FGX): horario na coluna Atendimento (item criado pelo codigo "Ajustes FGX"), no mesmo estilo de telefone e e-mail */
#rodape .links-rodape-atendimento .fgx-horario span { display: inline-block; font-size: 12px; line-height: 1.5; text-transform: uppercase; color: #616161; }
#rodape .links-rodape-atendimento .fgx-horario i { margin-right: 2px; }
@media (max-width: 767px) { #rodape .links-rodape-atendimento .fgx-horario span { font-size: 14px; } }
/* Gran Adega (FGX): o tema pinta o "Enviar" da faixa de newsletter com a cor secundaria (roxo) sobre o vermelho; ilegivel */
button.newsletter-assinar, button.newsletter-assinar::before, button.newsletter-assinar::after { color: #fff !important; }

/* Gran Adega (FGX): o selo do tema no rodape some ate o codigo "Ajustes FGX" trocar pelo da FGX Web (evita piscar) */
.cr.conteiner img[src*="logo-beep-digital"] { visibility: hidden; }

/* Gran Adega (FGX): o tema usa o desenho antigo do Instagram (Font Awesome 3); troca pelo icone atual, na mesma cor e tamanho */
.icon-instagram::before { content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -0.2em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='17.6' cy='6.4' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Gran Adega (FGX): e-mail em maiusculas estourava a largura no celular */
#rodape .links-rodape-atendimento a[href^="mailto:"] { text-transform: none; overflow-wrap: anywhere; }

/* Gran Adega (FGX): botao comprar no vinho da marca. O verde do tema (#10D258/#26D367) com texto branco ficava em 2:1; o vinho da 8,7:1 */
.botao-comprar, .botao-comprar:focus,
.ir-carrinho, .carrinho-interno-ajax .carrinho-rodape .botao.principal, .finalizar-compra .botao.principal, .atualizar-quantidade { background: #8E1F3A !important; border-color: #8E1F3A !important; color: #fff !important; }
.botao-comprar:hover, .ir-carrinho:hover, .carrinho-interno-ajax .carrinho-rodape .botao.principal:hover, .finalizar-compra .botao.principal:hover, .atualizar-quantidade:hover { background: #6F182D !important; border-color: #6F182D !important; }
.disponibilidade-produto b.cor-principal { color: #17803D !important; }
.breadcrumbs li:not(:first-child) a { color: #6B6B6B !important; }
#rodape .sobre-loja-rodape p { color: #616161 !important; }

/* Gran Adega (FGX): botoes de compartilhar proprios, no lugar do ShareThis (ver codigo "Ajustes FGX") */
.sharethis-inline-share-buttons { display: flex; align-items: center; flex-wrap: wrap; }
.sharethis-inline-share-buttons::before { margin-right: 12px !important; }
.sharethis-inline-share-buttons .fgx-share { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 8px; border-radius: 50%; box-sizing: border-box; border: 2px solid #BF323A; background: #fff; transition: background .2s; }
.sharethis-inline-share-buttons .fgx-share:last-child { margin-right: 0; }
.sharethis-inline-share-buttons .fgx-share svg { width: 20px; height: 20px; fill: #BF323A; transition: fill .2s; }
.sharethis-inline-share-buttons .fgx-share:hover, .sharethis-inline-share-buttons .fgx-share:focus-visible { background: #BF323A; }
.sharethis-inline-share-buttons .fgx-share:hover svg, .sharethis-inline-share-buttons .fgx-share:focus-visible svg { fill: #fff; }

/* Gran Adega (FGX): no celular a barra de cookies fica acima do menu inferior, com fundo solido */
@media (max-width: 767px) {
  body:has(.menu-inferior-mobile) #avisoCookies { bottom: 65px !important; background: #fff !important; box-shadow: 0 -4px 14px rgba(43, 18, 21, .14); }
}
