/**
 * The following styles get applied inside the editor only.
 */

@import './styles/variables';
@import 'styles/stars';
@import 'styles/address';

// 👋 Welcome and API Key.
#rby-admin-welcome-wrap {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 30px 30px 60px;

    .rby-admin-yelp-logo {
        margin: 20px auto;
        width: 300px;
    }

    #yelp-block-admin-lottie-api {
        margin: -70px 0 10px;
    }

    .rby-admin-welcome-content-wrap {
        max-width: 380px;
        margin: 0 auto 30px;
    }

    .rby-admin-yelp-welcome-heading {
        font-weight: 600;
        font-size: 24px;
        line-height: 30px;
        margin: 0 0 15px;
        padding: 0;
    }

    .rby-admin-button {
        margin: 20px 0 0;
    }
}


// 🏙 Business Lookup
#rby-admin-business-lookup-wrap {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 30px 30px 60px;

    .rby-admin-business-lookup {
    }

    .rby-admin-yelp-logo {
        margin: 20px auto;
        width: 150px;
    }

    #yelp-block-admin-lottie-search {
        height: 280px;
        margin: -70px 0 -50px;
    }

    .rby-admin-business-lookup-content-wrap {
        max-width: 380px;
        margin: 0 auto 30px;
    }

    .rby-admin-yelp-welcome-heading {
        font-weight: 600;
        font-size: 24px;
        line-height: 30px;
        margin: 0 0 15px;
        padding: 0;
    }

    // 🔎 Search fields
    .rby-admin-search-fields-wrap {
        max-width: 420px;
        margin: 0 auto;
        text-align: left;
        background: #efefef;
        padding: 20px;
        border-radius: 8px;
    }

    .rby-admin-field {
        margin-bottom: 20px;

        &--business-name {

        }

    }
}


// 📍 Business Results Modal
.rby-business-results-modal {
    max-width: 680px;
    min-width: 420px;

}

// Business Results Listings
#yelp-block-business-results {
    .rby-business-result {
        border: 1px solid $border-color;
        border-radius: $border-radius;
        margin: 0 0 25px;
        padding: 20px;
        display: flex;
        column-gap: 20px;

        > .rby-business-result-button {
            margin-left: auto;
        }

        .rby-business-result-meta {
            display: flex;
            column-gap: 20px;
        }
    }

    .rby-business-result-content {
        h3 {
            margin: 0 0 12px;
            padding:0;
            line-height: 1.3;

            a {
                color: #027A97;
                text-decoration: none;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }

    .rby-business-result-image {
        img {
            border-radius: 6px;
            width: 75px;
            height: auto;
        }
    }
}


.rby-admin-subfields-wrap {
    position: relative;
    margin: 0 0 25px;
    padding: 20px 20px 0;
    background: #eee;

    &:after {
        content: "";
        position: absolute;
        left: 10px;
        top: -15px;
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 20px solid #EEE;
    }
}


.rby-change-business {
    margin: 15px 0 0;
    padding: 15px;
    background: #fff0f0;

    p {
        font-size: 12px;
        font-style: normal;
        color: rgb(117, 117, 117);
        margin: 0;
        padding: 15px 0;
    }

    button {
        background: #fff !important;
    }

}
