/* -------------------------------------------------------------------------- */
/*                                   button                                   */
/* -------------------------------------------------------------------------- */
.referral-button {
    padding: 4px 8px;
    width: 100%;

    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -0.03px;
    line-height: 1;
    font-size: 12px;

    background-color: #292929;
    border-radius: 2px;
}

.referral-button:hover {
    background-color: #888888;
}

@media (min-width: 768px) {
    .referral-button {
        width: 60px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                  container                                 */
/* -------------------------------------------------------------------------- */
#container {
    display: flex;
    justify-content: center;

    padding-left: 20px;
    padding-right: 20px;
    padding-top: 140px;
    padding-bottom: 120px;
}

#container-inner {
    width: 100%;
    max-width: 800px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    font-weight: 400;
    line-height: 24px;
    font-size: 14px;
}

@media (min-width: 768px) {
    #container-inner {
        font-size: 16px;
        line-height: 32px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                     faq                                    */
/* -------------------------------------------------------------------------- */
#rows-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
}

@media (min-width: 768px) {
    #rows-container {
        gap: 0px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                   header                                   */
/* -------------------------------------------------------------------------- */
#referral-title {
    margin-bottom: 32px;

    font-size: 24px;
}

#condition-title {
    margin-top: 60px;
    margin-bottom: 10px;

    font-size: 16px;
}

@media (min-width: 768px) {
    #referral-title {
        margin-bottom: 32px;

        font-size: 24px;
    }

    #condition-title {
        font-size: 18px;
    }
}

/* -------------------------------------------------------------------------- */
/*                                    modal                                   */
/* -------------------------------------------------------------------------- */
.modal {
    margin-top: 20px;

    padding: 20px 20px;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 20px;

    border: 1px solid #989898;
    line-height: 20px;
}

.modal-padding {
    margin-top: 40px;
}

.modal-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

#manage-partner-row {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#manage-partner-input {
    width: 100%;
    height: 20px;

    background-color: #292929;
    border-radius: 2px;
}

#referral-copy-link {
    width: 100%;

    padding: 4px 8px;
    background-color: #292929;
}

@media (min-width: 768px) {
    .modal {
        gap: 10px;
    }

    .modal-padding {
        margin-top: 40px;
    }

    .modal-row {
        flex-direction: row;
        align-items: center;
        gap: 0px;
    }

    #manage-partner-row {
        width: auto;

        flex-direction: row;
    }

    #manage-partner-input {
        width: auto;
    }
}

/* --------------------------------- balance -------------------------------- */
#balance-grid {
    margin-top: 20px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
}

.balance-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
}

 .balance-row>*:not(:last-child) {
     /* styles for all children except the last */
    /* color: #a0a0a0; */
    color: #989898;
 }

.balance-row>*:last-child {
    margin-right: 20px;
    text-align: right;
}

#balance-link {
    margin-top: 20px;
}

#balance-link>a {
    color: inherit;
}

@media (min-width: 768px) {
    #balance-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
