/**
 * CSS para Login Google no WooCommerce
 * 
 * @version Auto-versionado baseado em filemtime
 * @file wc-login-google-frontend.css
 */

/* Separador "— OU —" abaixo do formulário de login */
.wc-google-login-separator {
    text-align: center;
    margin: 15px 0;
    font-size: 0.9em;
    color: #777;
}

/* Garante que o <p class="form-row"> do botão Google centralize o seu conteúdo */
.wc-google-login-separator + .form-row {
    display: flex;
    justify-content: center;
}

/* Botão de login com Google (login/registro) - estilo pill com ícone */
.wc-google-login-button, 
.wc-checkout-login-email-btn, 
.wc-checkout-create-account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    height: 45px;
    padding: 0px 15px;
    box-sizing: border-box;
    background: #f7f7f73b;
    border-radius: 35px;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.25px;
    color: #7f7f7f;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s 
ease, box-shadow 0.15s 
ease, transform 0.05s 
ease, border-color 0.15s 
ease;
    margin: 10px auto;
    float: none !important;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: unset;
}


.wc-google-login-button:hover,
.wc-google-login-button:focus {
    background-color: #f7f8f8;
    border-color: #c4c6c9;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.22),
        0 0 4px rgba(0, 0, 0, 0.12);
    color: #202124 !important;
    text-decoration: none;
}

.wc-google-login-button:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18),
        0 0 2px rgba(0, 0, 0, 0.08);
}

.wc-google-login-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.wc-google-login-button__text {
    flex: 0 0 auto;
    text-align: center;
}

/* Aviso no topo da Minha Conta (Conexão ativa) */
.wc-google-account-notice {
    border: 1px solid #c2e0ff;
    background-color: #e6f2ff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.wc-google-account-notice-icon {
    font-size: 20px;
    margin-right: 15px;
    line-height: 1;
    color: #4285F4;
}

.wc-google-account-notice-text {
    margin: 0;
}

/* Box de conexão/desconexão em Detalhes da Conta */
.woocommerce-account fieldset.wc-google-connection-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.woocommerce-account fieldset.wc-google-connection-box .form-row label {
    display: block;
    margin-bottom: 0px;
    color: #111;
    font-size: 14px;
    font-weight: 600;
}
.wc-google-connection-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.wc-google-logo-block {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wc-google-logo {
    width: 40px;
    height: 40px;
}

.wc-google-connection-main {
    flex-grow: 1;
    min-width: 220px;
}

.wc-google-connection-title {
    margin: 0 0 5px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.wc-google-connection-status {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-weight: bold;
}

.wc-google-connection-status--connected {
    color: #4CAF50;
}

.wc-google-connection-status--disconnected {
    color: #FF9800;
}

.wc-google-connection-description {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #555;
}

.wc-google-connection-user-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.wc-google-connection-user-info li + li {
    margin-top: 3px;
}

/* Coluna de ações (botões) */
.wc-google-connection-actions {
    flex-shrink: 0;
    text-align: right;
    width: 180px;
    min-width: 180px;
}

.wc-google-connection-actions-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #666;
    font-weight: normal;
}

.wc-google-connect-button,
.wc-google-disconnect-button {
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 0.9em;
}

.wc-google-connect-button {
    background-color: #4285F4;
    color: #fff !important;
}

.wc-google-connect-button:hover,
.wc-google-connect-button:focus {
    background-color: #3367d6;
    color: #fff !important;
}

.wc-google-disconnect-button {
    background-color: #db4437;
    color: #fff !important;
}

.wc-google-disconnect-button:hover,
.wc-google-disconnect-button:focus {
    background-color: #c33b30;
    color: #fff !important;
}

.wc-google-connection-actions-note {
    margin-top: 5px;
    font-size: 0.8em;
    color: #999;
}

/* Área de confirmação de desconexão */
.wc-google-disconnect-options {
    border-top: 1px dashed #ddd;
    padding-top: 15px;
    margin-top: 15px;
    background-color: #fcfcfc;
    padding: 15px;
    border-radius: 4px;
    display: none;
    border-radius: 10px;
}

.wc-google-disconnect-legend {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.wc-google-disconnect-label {
    font-weight: bold;
}

.wc-google-disconnect-description {
    color: #db4437;
    display: block;
    margin-top: 5px;
}

.wc-google-disconnect-checkbox {
    margin-right: 5px;
}

.wc-google-disconnect-checkbox-label {
    display: inline;
    font-weight: bold;
    color: #db4437;
}

/* Box de "Definir senha para login tradicional" */
.woocommerce-account fieldset.wc-google-password-reset-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.wc-google-password-reset-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4285F4;
}

.wc-google-password-reset-text {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #555;
}

.wc-google-password-reset-button {
    background-color: #4285F4;
    color: #fff !important;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}

.wc-google-password-reset-button:hover,
.wc-google-password-reset-button:focus {
    background-color: #3367d6;
    color: #fff !important;
}

/* =============================================
   CHECKOUT - Opções de Login/Cadastro
   ============================================= */

/* Wrapper principal das opções de login */
.wc-google-checkout-login-wrapper {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px 20px;
}

/* Título "Como deseja continuar?" */
.wc-checkout-login-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Container dos botões de opção */
.wc-checkout-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

/* Cada opção de login */
.wc-checkout-login-option {
    width: 100%;
}

.wc-checkout-login-email-btn:hover,
.wc-checkout-create-account-btn:hover {
    background-color: #f7f8f8;
    border-color: #c4c6c9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 4px rgba(0, 0, 0, 0.1);
    color: #202124;
}

/* Remove o outline/focus padrão dos botões */
.wc-checkout-login-email-btn:focus,
.wc-checkout-create-account-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Focus visível apenas para acessibilidade via teclado */
.wc-checkout-login-email-btn:focus-visible,
.wc-checkout-create-account-btn:focus-visible {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}

/* Ícones dos botões */
.wc-checkout-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.wc-checkout-btn-text {
    flex: 0 0 auto;
}

/* =============================================
   CHECKOUT - Formulário de Login
   ============================================= */

   .wc-checkout-login-form-wrapper {
    margin-bottom: 25px;
    padding: 25px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 0px solid #e0e0e0;
}

/* CRÍTICO: Garante que o formulário está oculto por padrão */
.wc-checkout-login-form-wrapper,
.wc-checkout-login-form-wrapper.wc-checkout-login-form-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mostra o formulário apenas quando tem a classe visible */
.wc-checkout-login-form-wrapper.wc-checkout-login-form-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 25px !important;
    padding: 25px 20px !important;
}

.wc-checkout-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wc-checkout-form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 0px solid #e5e5e5;
}






.wc-checkout-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wc-checkout-back-btn:hover {
    background-color: #f0f0f0;
    border-color: #c4c6c9;
}

/* Botão "Voltar" do registro (campos do checkout) */
.wc-checkout-back-from-register-btn {
    margin-bottom: 20px;
    width: 100%;
    max-width: 200px;
}

.wc-checkout-back-from-register-btn svg {
    vertical-align: middle;
    margin-right: 5px;
}

.wc-checkout-login-form .form-row {
    margin-bottom: 15px;
}

.wc-checkout-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.wc-checkout-login-form .input-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.wc-checkout-login-form .input-text:focus {
    border-color: #4285F4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.wc-checkout-submit-login {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4285F4;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wc-checkout-submit-login:hover {
    background-color: #3367d6;
}

.wc-checkout-lost-password {
    display: inline-block;
    margin-left: 15px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.wc-checkout-lost-password:hover {
    color: #4285F4;
    text-decoration: underline;
}

/* Centraliza o botão dentro do wrapper (legado) */
.wc-google-checkout-login-row {
    display: flex;
    justify-content: center;
    margin: 0 0 15px 0;
}

/* Texto "— OU CRIE UMA CONTA MANUALMENTE —" (legado) */
.wc-google-checkout-or-manual {
    text-align: center;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =============================================
   CHECKOUT - Skeleton Loading
   ============================================= */

/* Animação shimmer para o skeleton */
@keyframes wc-skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animação de pulse suave */
@keyframes wc-skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Fade in quando pronto */
@keyframes wc-skeleton-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container do skeleton */
body:not(.logged-in) .wc-block-checkout__main:not(.wc-checkout-ready) {
    position: relative;
    min-height: 280px;
}

/* Oculta o form interno até estar pronto */
body:not(.logged-in) .wc-block-checkout__main:not(.wc-checkout-ready) > .wc-block-components-form {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

/* Skeleton Component */
.wc-checkout-skeleton {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.wc-checkout-skeleton__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Título skeleton */
.wc-checkout-skeleton__title {
    width: 200px;
    height: 24px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: wc-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Botão skeleton */
.wc-checkout-skeleton__button {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 360px;
    height: 45px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    gap: 12px;
}

/* Ícone skeleton */
.wc-checkout-skeleton__icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    flex-shrink: 0;
    animation: wc-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Texto skeleton */
.wc-checkout-skeleton__text {
    flex: 1;
    height: 16px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: wc-skeleton-shimmer 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

/* Delay para efeito cascata */
.wc-checkout-skeleton__button:nth-child(2) .wc-checkout-skeleton__icon,
.wc-checkout-skeleton__button:nth-child(2) .wc-checkout-skeleton__text {
    animation-delay: 0.15s;
}

.wc-checkout-skeleton__button:nth-child(3) .wc-checkout-skeleton__icon,
.wc-checkout-skeleton__button:nth-child(3) .wc-checkout-skeleton__text {
    animation-delay: 0.3s;
}

.wc-checkout-skeleton__button:nth-child(4) .wc-checkout-skeleton__icon,
.wc-checkout-skeleton__button:nth-child(4) .wc-checkout-skeleton__text {
    animation-delay: 0.45s;
}

/* Skeleton fade out */
.wc-checkout-skeleton--hidden {
    opacity: 0 !important;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Remove skeleton quando os botões de login existirem */
.wc-google-checkout-login-wrapper ~ .wc-checkout-skeleton,
.wc-block-checkout__main:has(.wc-google-checkout-login-wrapper) .wc-checkout-skeleton {
    display: none !important;
}

/* Remove pseudo-elementos quando tiver skeleton HTML ou botões */
body:not(.logged-in) .wc-block-checkout__main:has(.wc-checkout-skeleton)::before,
body:not(.logged-in) .wc-block-checkout__main:has(.wc-checkout-skeleton)::after,
body:not(.logged-in) .wc-block-checkout__main:has(.wc-google-checkout-login-wrapper)::before,
body:not(.logged-in) .wc-block-checkout__main:has(.wc-google-checkout-login-wrapper)::after,
body:not(.logged-in) .wc-block-checkout__main.wc-checkout-ready::before,
body:not(.logged-in) .wc-block-checkout__main.wc-checkout-ready::after {
    display: none !important;
}

/* Quando pronto, mostra o form com animação */
body:not(.logged-in) .wc-block-checkout__main.wc-checkout-ready > .wc-block-components-form {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    animation: wc-skeleton-fadein 0.3s ease;
}

/* Checkout Clássico: Quando existe o wrapper de opções de login, oculta apenas os campos de formulário (não o container) */
/* Mas NÃO esconde quando a classe wc-checkout-show-form está presente */
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options):not(.wc-checkout-show-form) .woocommerce-billing-fields .form-row,
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options):not(.wc-checkout-show-form) .woocommerce-billing-fields__field-wrapper,
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options):not(.wc-checkout-show-form) .woocommerce-shipping-fields,
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options):not(.wc-checkout-show-form) .woocommerce-additional-fields,
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options):not(.wc-checkout-show-form) .col-2 {
    display: none;
}

/* Garante que o col2-set fique visível quando os botões estão dentro dele */
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options) .col2-set,
body:not(.logged-in) .woocommerce-checkout:has(#wc-checkout-login-options) #customer_details,
body:not(.logged-in) .woocommerce-checkout .col2-set:has(#wc-checkout-login-options),
body:not(.logged-in) .woocommerce-checkout #customer_details:has(#wc-checkout-login-options) {
    display: block !important;
    visibility: visible !important;
}

/* Garante que os botões fiquem visíveis dentro do col-1 */
body:not(.logged-in) .woocommerce-checkout .col-1 #wc-checkout-login-options,
body:not(.logged-in) .woocommerce-checkout .col2-set #wc-checkout-login-options,
body:not(.logged-in) .woocommerce-checkout #customer_details #wc-checkout-login-options {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Garante que o formulário de login fique visível APENAS quando tem a classe visible */
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible,
body:not(.logged-in) .woocommerce-checkout .col-1 #wc-checkout-login-form.wc-checkout-login-form-visible,
body:not(.logged-in) .woocommerce-checkout .col2-set #wc-checkout-login-form.wc-checkout-login-form-visible,
body:not(.logged-in) .woocommerce-checkout #customer_details #wc-checkout-login-form.wc-checkout-login-form-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Garante que os elementos dentro do formulário de login fiquem visíveis APENAS quando o formulário está visível */
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .wc-checkout-form-header,
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .wc-checkout-login-form,
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .form-row,
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .woocommerce-form-login,
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .wc-google-login-separator,
body:not(.logged-in) .woocommerce-checkout #wc-checkout-login-form.wc-checkout-login-form-visible .wc-google-login-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Checkout Clássico: Classe para mostrar o formulário quando selecionado */
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form #customer_details,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .col2-set,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .woocommerce-billing-fields,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .woocommerce-shipping-fields,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .woocommerce-additional-fields,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .woocommerce-billing-fields .form-row,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .woocommerce-billing-fields__field-wrapper,
body:not(.logged-in) .woocommerce-checkout.wc-checkout-show-form .col-2 {
    display: block !important;
}

/* Checkout de Blocos: Oculta campos quando existir o wrapper de opções */
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__contact-fields,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) #billing-fields,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__billing-fields,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) #shipping-fields,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__shipping-fields,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) #payment-method,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__payment-method,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) #order-notes,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__order-notes,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__terms,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wc-block-checkout__actions,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-contact-information-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-billing-address-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-shipping-address-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-payment-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-order-note-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-terms-block,
body:not(.logged-in) .wc-block-checkout:has(.wc-google-checkout-login-wrapper) .wp-block-woocommerce-checkout-actions-block {
    display: none !important;
}

/* Checkout de Blocos: Classe para mostrar campos quando selecionado */
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__contact-fields,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form #billing-fields,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__billing-fields,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form #shipping-fields,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__shipping-fields,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form #payment-method,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__payment-method,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form #order-notes,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__order-notes,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__terms,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wc-block-checkout__actions,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-contact-information-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-billing-address-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-shipping-address-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-payment-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-order-note-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-terms-block,
body:not(.logged-in) .wc-block-checkout.wc-checkout-show-form .wp-block-woocommerce-checkout-actions-block {
    display: block !important;
}

/* Garante visibilidade no desktop - força display block */
@media (min-width: 601px) {
    body:not(.logged-in) .woocommerce-checkout .col2-set:has(#wc-checkout-login-options),
    body:not(.logged-in) .woocommerce-checkout #customer_details:has(#wc-checkout-login-options),
    body:not(.logged-in) .woocommerce-checkout .col-1:has(#wc-checkout-login-options),
    body:not(.logged-in) .woocommerce-checkout .col-1 #wc-checkout-login-options {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Responsivo */
@media (max-width: 600px) {
    .wc-google-connection-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-google-connection-actions {
        width: 100%;
        text-align: left;
        margin-top: 15px;
    }

    .wc-google-checkout-login-wrapper {
        padding: 15px;
    }
}
