/*
 * NOTICE OF LICENSE
 * This source file is subject to the Software License Agreement
 * that is bundled with this package in the file LICENSE.txt.
 * @author    Peter Sliacky (Prestasmart)
 * @copyright Peter Sliacky (Prestasmart)
 * @license   http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * Copyright (c) 2021-2023
 */

.login .login__register-prompt #tc-social-logins {
    margin: 0;
}
.login .login__register-prompt:has(#tc-social-logins :is(#tc-google-signin:not(:empty), #tc-facebook-signin:not(:empty))) .login-with-social-buttons-container {
    display: block;
}
#tc-facebook-signin {
    background: #3b5998;
    color: white;
    font-weight: 600;
}
#tc-facebook-signin:hover,
#tc-google-signin [role="button"]:hover {
    opacity: .85;
}
#tc-google-signin [role="button"] {
    border-radius: 40px;
    height: 37px;
    background: #131314;
    color: white;
}
#tc-google-signin div:has(>svg) {
    border-right: 1px solid;
    padding-right: 10px;
    padding-top: 3px;
    width: 26px;
    height: 23px;
}
#tc-google-signin div:has(>svg) ~ span {
    font-weight: 600;
}

#tc-social-logins {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 0;
    margin-top: 2rem;
    & .tc-social-login-btn {
        /* margin: 0 2px; */
        cursor: not-allowed;
        position: relative;
        text-align: left;
        border-radius: 40px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        /* color: #3c4043; */
        border: 1px solid #dadce0;
        /* padding: 11px 11px 8px 40px; */
        padding: 5px;
        font-size: 14px;
        font-family: "Roboto", sans-serif;
        /* font-weight: 500; */
        max-width: 100%;
        /* width: 240px; */
        width: 100%;
        text-align: center;
        display: none;
        &.enabled {
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .5rem;
        }

        & span.social-logo {
            /* position: absolute; */
            display: inline-block;
            /* left: 0; */
            /* padding: 8px 7px 7px 8px; */
            /* top: 1px;
            bottom: 1px; */
            border-right: 1px solid;
            padding: 1px 8px 0px 3px;
            text-align: center;
            & .facebook-logo {
                background-image: url("data:image/svg+xml;charset=UTF-8,%3c?xml version='1.0' encoding='utf-8'?%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='266.893px' height='266.895px' viewBox='0 0 266.893 266.895' enable-background='new 0 0 266.893 266.895' xml:space='preserve'%3e%3cpath id='Blue_1_' fill='%233C5A99' d='M248.082,262.307c7.854,0,14.223-6.369,14.223-14.225V18.812 c0-7.857-6.368-14.224-14.223-14.224H18.812c-7.857,0-14.224,6.367-14.224,14.224v229.27c0,7.855,6.366,14.225,14.224,14.225 H248.082z'/%3e%3cpath id='f' fill='%23FFFFFF' d='M182.409,262.307v-99.803h33.499l5.016-38.895h-38.515V98.777c0-11.261,3.127-18.935,19.275-18.935 l20.596-0.009V45.045c-3.562-0.474-15.788-1.533-30.012-1.533c-29.695,0-50.025,18.126-50.025,51.413v28.684h-33.585v38.895h33.585 v99.803H182.409z'/%3e%3c/svg%3e");
            }

            & > span {
                display: inline-block;
                width: 21px;
                height: 21px;
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center center;
            }
        }

        /* &:hover {
            border-color: #d2e3fc;
            background-color: #f8faff;
        } */
    }
}
