/** -- variables --- */
:root {
    --merchone-primary-color: #6F52F5;
    --merchone-secondary-color: #3A4468;
    --merchone-error-color: #FC516C;
    --merchone-success-color: #5DDE43;
}

/* --- helper classes --- */
.flex {
    display: flex;
}

/* --- merchone styles ---*/
.merchone {
    font-size: 14px;
    height: calc(100vh - 107px);
    display: flex;
    flex-direction: column;
    text-align: center;

    * { font-size: 14px; }

    > div:nth-child(2) {
        margin: auto 0;

        > p {
            color: var(--merchone-secondary-color);
            margin-bottom: 20px;
            margin-top: auto;
        }

        img {
            min-width: 250px;
            max-width: 500px;
            margin: 0 auto 25px;
        }

        .merchone-status-error {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: var(--merchone-error-color);
            max-width: 90%;

            @media (min-width: 768px) {
                max-width: 60%;
            }

            @media (min-width: 1024px) {
                max-width: 40%;
            }

            img {
                min-width: 24px;
                margin: 0;
            }
        }
    }

    .nav-tab-wrapper {
        margin-bottom: 20px !important;
    }

    .button {
        border-radius: 6px; padding: 2px 20px; font-weight: 500
    }

    .button-remove-connection {
        background-color: #ffffff;
        color: var(--merchone-secondary-color);
        border: 1px solid #CED0E2;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 6px;
    }

    .button-connect {
        background-color: var(--merchone-primary-color);
        color: #ffffff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 6px;
    }

    .merchone-status-message-connected,
    .merchone-status-not-connected {
        margin: 20px 0 40px;
        color: #5DDE43;
        font-weight: bold;
        text-align: center;
    }

    .merchone-status-not-connected {
        color: #FC516C;
    }

    .settings-table {
        background-color: #ffffff;
        padding: 20px 30px;
        border-radius: 12px;
        text-align: left;

        section {
            display: flex;
            color: #101B47;
            border-top: 1px solid #ECEDF4;
        }

        section:first-child {
            color: #B1B5D1; font-weight: 500;
            border-top: 0;
        }

        p {
            padding: 5px;
        }

        p:first-child {
            display: none;
            width: 150px;
            text-align: left;

            @media (min-width: 768px) {
                display: block;
            }
        }

        p:last-child {
            margin-left: auto;
        }
    }

    .footer {
        flex-direction: column;
        color: #6F52F5;
        align-items: center;
        align-self: center;
        margin-top: auto;

        @media (min-width: 768px) {
            flex-direction: row;
        }

        > img {
            width: 24px;
            margin-right: 0;

            @media (min-width: 768px) {
                margin-right: 5px;
            }
        }

        a {
            color: var(--merchone-primary-color);
            font-weight: bold;
            text-decoration: none;
        }
    }
}

