/* WooCommerce uses the same outer container for guest forms and the member sidebar. */
.woocommerce-account:not(.logged-in) .woocommerce:has(> #customer_login) {
    display: block !important;
}

.woocommerce-account:not(.logged-in) #customer_login {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    width: 100%;
}

#customer_login::before,
#customer_login::after {
    display: none;
}

#customer_login > :is(.u-column1, .u-column2) {
    box-sizing: border-box;
    float: none;
    width: auto;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    background: #fff;
    color: #27231f;
}

#customer_login h2 {
    margin: 0 0 1rem;
    color: #23201c;
}

#customer_login form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#customer_login .form-row,
#customer_login .input-text {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

#customer_login .input-text {
    min-height: 44px;
}

#reg_email {
    scroll-margin-block-start: clamp(12rem, 30vh, 18rem);
}

@media (max-width: 800px) {
    .woocommerce-account:not(.logged-in) #customer_login {
        grid-template-columns: minmax(0, 1fr);
    }

    #customer_login .gfa-account-seller-link a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}
