/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* =========================================================
   OTIMIZAÇÃO EXTREMA: Simulador de Frete (Página de Produto)
   ========================================================= */

/* 1. Remove 100% do padding externo para esticar até a ponta */
fieldset#field-simulador.simulador_frete_pagina {
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    border: none !important; /* Limpa qualquer borda residual do fieldset */
}

/* 2. Reduz drasticamente o padding interno e 3. Diminui a fonte */
fieldset#field-simulador.simulador_frete_pagina table td,
fieldset#field-simulador.simulador_frete_pagina table th {
    padding: 6px 4px !important; /* Reduz de ~16px para 4px nas laterais */
    font-size: 13px !important;  /* Fonte mais compacta (ideal entre 12px e 13px) */
    line-height: 1.3 !important; /* Evita que o texto pequeno fique embolado */
    vertical-align: middle;      /* Centraliza o texto com o valor */
}

/* Garante que a tabela use o novo espaço total sem vazar do layout */
fieldset#field-simulador.simulador_frete_pagina table {
    width: 100%;
    table-layout: auto;
    margin-bottom: 0 !important; 
}

/* =========================================================
   CORREÇÕES DE LAYOUT: Carrinho e Fluid Checkout
   ========================================================= */

/* 1. Corrige o "Brasil" (Select2) desalinhado no Carrinho/Checkout */
.select2-container--default .select2-selection--single {
    height: 48px !important; /* Altura unificada */
    display: flex !important;
    align-items: center !important; /* Centraliza verticalmente o conteúdo */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important; /* Remove o line-height excessivo do Elementor */
    padding-top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

/* 2. Corrige Labels sobrepostas (Fluid Checkout vs Astra) */
.woocommerce-checkout .fc-wrapper .form-row input.input-text,
.woocommerce-checkout .fc-wrapper .form-row input[type="tel"],
.woocommerce-checkout .fc-wrapper .form-row input[type="email"] {
    min-height: 52px !important;
    padding-top: 22px !important; /* Abre espaço vital no topo para a label flutuante */
    padding-bottom: 6px !important;
    box-sizing: border-box !important;
}

/* 3. Corrige texto cortado no seletor de Parcelas (PagBank) e Estados */
.woocommerce-checkout .fc-wrapper .form-row select,
#pagseguro-credit-card-form select {
    min-height: 52px !important;
    height: auto !important; /* Remove qualquer altura fixa que corte a fonte */
    padding-top: 18px !important; /* Espaço para label e texto do select */
    padding-bottom: 6px !important;
    line-height: 1.4 !important;
}

/* =========================================================
   OTIMIZAÇÃO LCP BANNER: Correção de Colapso e Preenchimento
   ========================================================= */

/* 1. Alvo: A Seção/Container que segura o banner (precisa de classe no Elementor) */
.lcp-banner-container {
    position: relative !important; /* Garante que o absolute de dentro se baseie aqui */
    min-height: 80vh !important; /* Define uma altura mínima (80% da altura da tela - ajuste se necessário) */
    overflow: hidden !important; /* Corta o que sobrar da imagem */
    display: flex !important; /* Ajuda no alinhamento do texto */
    align-items: center !important; /* Centraliza o texto verticalmente */
}

/* 2. Alvo: A imagem otimizada dentro do container */
.lcp-banner-container .lcp-banner-image img {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important; /* A mágica do corte sem distorção */
    object-position: center center !important; /* Foco centralizado */
    z-index: -1 !important; /* Mantém a imagem atrás do texto */
}