@use 'variables' as *;
@use 'mixins' as *;

$zwssgrconnectgoogle: ".zwssgr";

#{$zwssgrconnectgoogle} {
    &-gmbc-outer-wrapper {
        position: absolute;
        height: 100%;
        min-height: 100vh;
        width: calc(100% + 20px);
        left: -20px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: var(--black-color);
            opacity: 0.5;
            z-index: 2;
        }
    }
    &-gmbc-container {
        width: 100%;
        max-width: 500px;
        min-height: 125px;
        background-color: var(--white-color);
        position: relative;
        padding: 25px;
        border-radius: var(--border-radius-large);
        z-index: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        @include respond-below('sm') {
            max-width: 280px;
            margin: 0 0 0 5px;
        }
        #{$zwssgrconnectgoogle} {
            &-close-button {
                display: inline-block;
                width: 35px;
                height: 35px;
                position: relative;
                box-shadow: none;
                &:hover {
                    &::before {
                        transform: translate(-50%, -50%) rotate(135deg) !important;
                    }
                    &::after {
                        transform: translate(-50%, -50%) rotate(225deg) !important;
                    }            
                }
                &::before {
                    transform: translate(-50%, -50%) rotate(-45deg) !important;
                }
                &::after {
                    transform: translate(-50%, -50%) rotate(+45deg) !important;
                }
                &::before, &::after {
                    content: "";
                    position: absolute;
                    height: 2px;
                    width: 20px;
                    background-color: var(--red-color);
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    transition: ease-out 0.3s all;
                }
            }
            &-close-gmb-wrap {
                position: absolute;
                right: 0;
                top: 0;
                height: auto;
            }
        }
    }
    &-gmbc-inner-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        span, input {
            font-size: var(--font-size-body);
            font-weight: var(--font-weight-500);
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--secondary-color-100);
            text-align: center;
            margin: 0 0 15px 0;
        }
        input {
            width: 16px;
            height: 16px;
        }
        button {
            padding: 20px 24px 20px 24px;
            border-radius: var(--border-radius-small);
            border: 1px solid var(--primary-color-100);
            background-color: var(--white-color);
            color: var(--secondary-color);
            font-size: var(--font-size-body);
            font-weight: var(--font-weight-500);
            font-family: var(--font-primary);
            line-height: 1;
        }
        #{$zwssgrconnectgoogle} {
            &-caution-div {
                input {
                    margin: 0 5px 0 0;
                    text-align: left;
                }
                label {
                    cursor: pointer;
                    font-size: var(--font-size-15);
                    font-weight: var(--font-weight-600);
                    font-family: var(--font-primary);
                    line-height: 1.6;
                    color: var(--red-color);
                    text-align: left;
                    margin: 0 0 10px 0;
                }
            }
            &-th-label {
                margin: 5px 0px 5px 0;
            }
            &-button-danger {
                background-color: var(--red-color);
                color: var(--white-color);
                border: 1px solid var(--red-color);
                &:hover, &:focus {
                    background-color: var(--white-color);
                    color: var(--red-color);
                    box-shadow: none;
                }
            }
            &-caution-div {
                margin: 0 0 10px 0;
            }
        }
    }
    &-fetch-gmb-auth-url-response, 
    &-disconnect-gmb-auth-response {
        .response {
            width: 100%;
            margin: 0 0 10px 0;
            &.error {
                color: var(--red-color);
                font-size: var(--font-size-body);
            }
            &.success {
                color: var(--green-color);
                font-size: var(--font-size-body);
            }
        }
    }
    
}