﻿
.username_ok,
.email_ok,
.mc_number_ok,
.mc_type_ok {
    color: #359746;
}

.username_bad,
.email_bad,
.mc_number_bad,
.mc_type_bad {
    color: #cc3300;
}

.tb_username_addon,
.tb_email_addon,
.mc_number_addon,
.mc_type_addon {
    visibility: hidden;
}

/*---------------------------------------------------------------*/

#content .addresses .expandable_body {
    padding-top: 0px;
    padding-bottom: 0px;
}

#content .address {
    position: relative;
    padding: 15px;
    background: #EFEFEF;
}

a.remove_address {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #666666 !important;
    z-index: 10;
}

/*---------------------------------------------------------------*/

.medical_student_show,
.trainee_show {
    display: none;
}

body.medical_student .medical_student_show,
body.trainee .trainee_show {
    display: initial;
}

body.medical_student .medical_student_hide,
body.trainee .trainee_hide {
    display: none;
}

.payment_method_descriptions,
.payment_frequency_descriptions {
    font-size: 0.9em;
    line-height: 1.4em;
}

/*---------------------------------------------------------------*/

.gift_aid {
    margin: 20px 0px 30px 0px;
    padding: 14px;
    background-color: #F5F5F7;
    border: 1px solid #CCCCCC;
}

    .gift_aid img {
        float: right;
        margin-left: 30px;
        width: 200px;
    }

@media screen and (max-width: 767px) {

    .gift_aid img {
        display: block;
        float: none;
        margin-left: 0px;
        margin-bottom: 14px;
    }
}

/*---------------------------------------------------------------*/

.certificate_btn,
.alert_btn {
    display: block;
    margin-bottom: 15px;
    padding: 7px 10px;
    color: #FFFFFF !important;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    -webkit-transition: background-color 0.3s ease;
    -ms-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
}

.certificate_btn {
    background-color: var(--mauve-1);
    line-height: 1.3em;
}

    .certificate_btn:hover {
        background-color: var(--mauve-3);
    }

.alert_btn {
    background-color: #CE2029;
}

    .alert_btn:hover {
        background-color: #AE0009;
    }

@media screen and (max-width: 991px) {

    .certificate_btn,
    .alert_btn {
        margin-top: 20px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {

    .certificate_btn,
    .alert_btn {
        display: inline-block;
    }
}

/*---------------------------------------------------------------*/

.membership_number {
    float: right;
    margin: 4px 0px 15px 15px;
    padding: 6px 15px;
    color: #FFFFFF;
    background-color: #646464;
}

/*---------------------------------------------------------------*/

.page_subscription .payment_result,
.page_payment_history .payment_result {
    margin: 20px 0px;
    padding: 14px;
    background-color: #EEEEEE;
    border: 1px solid #CCCCCC;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

    .page_subscription .payment_result p:last-child,
    .page_payment_history .payment_result p:last-child {
        margin-bottom: 0px;
    }

.page_subscription .membership_status {
    margin: 20px 0px;
    padding: 15px;
    color: #FFFFFF;
    font-size: 1.2em;
    line-height: 1.3em;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
}

    .page_subscription .membership_status strong {
        white-space: nowrap;
    }

.page_subscription .membership_active {
    background-color: #5CB85C;
}

.page_subscription .membership_pending_cancellation {
    background-color: #4E90AF;
}

.page_subscription .membership_expiring {
    background-color: #F0AD4E;
}

.page_subscription .membership_overdue {
    background-color: #D9534F;
}

.page_subscription .membership_suspended {
    background-color: #CA2824;
}

.page_subscription .membership_ended {
    background-color: #4E90AF;
}

.page_subscription .membership_terminated {
    background-color: #222222;
}

.page_subscription .gift_aid {
    margin-top: 40px;
}

/*---------------------------------------------------------------*/

.members_intro {
    margin-top: 10px;
    color: #000000;
    background-color: #E4F2FA;
}

    .members_intro h2 {
        margin-bottom: 20px;
        color: #0C265D;
    }

    .members_intro .row {
        margin-left: 0px;
        margin-right: 0px;
    }

        .members_intro .row > div {
            padding: 20px;
            min-height: 240px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

/*---------------------------------------------------------------*/

.member_blocks {
    --cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: 20px;
    margin: 30px 0 50px;
}

    .member_blocks a {
        display: flex;
        height: 75px;
        background: var(--color);
        align-items: center;
        color: var(--white);
        border-radius: 10px;
        font-family: var(--heading-font);
        font-weight: 400;
        font-size: 1.2em;
        padding: 20px;
    }

        .member_blocks a:hover {
            background: var(--color-hover);
        }

    .member_blocks img {
        display: block;
        width: 50px;
        height: 50px;
        object-fit: contain;
        margin-right: 20px;
    }

.membership_details {
    padding: 15px 25px;
    margin-bottom: 0;
}

    .membership_details p {
        margin-top: 0;
        font-weight: 600;
    }

.subscription_link {
    background: var(--black);
    padding: 13px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 20px;
}

    .subscription_link p {
        line-height: 1.3em;
    }

.members_inline {
    padding: 20px;
    border-radius: 10px;
}

    .members_inline h3:first-of-type {
        color: var(--brown);
    }

    .members_inline hr {
        margin: 15px 0 !important;
    }

    .members_inline h5 {
        opacity: .5;
        margin-bottom: 0;
    }

        .members_inline h5 + h3 {
            margin-top: .8rem;
        }

            .members_inline h5 + h3 a {
                font-weight: 300;
                text-transform: initial;
            }

    .members_inline.events {
        background-color: var(--blush-2);
    }


        .members_inline.events h5 + h3 a {
            color: var(--blush-3);
        }

            .members_inline.events h5 + h3 a:hover {
                color: var(--brown);
            }

        .members_inline.events.alt {
            background-color: var(--mauve-2);
        }

            .members_inline.events.alt h5 + h3 a {
                color: var(--mauve-3);
            }


                .members_inline.events.alt h5 + h3 a:hover {
                    color: var(--grape-3);
                }

/*---------------------------------------------------------------*/
