﻿.loyalty_wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loyalty_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.loyalty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loyalty_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loyalty_header_title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loyalty_header_title_text {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.loyalty_header_grouped {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loyalty_header_status {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: var(--grey);
    border-radius: 8px;
}

.loyalty_status_level {
    width: calc(50% - 4px);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--light);
    border-radius: 8px;
}

.loyalty_status_level_text {
    font-size: 14px;
    font-weight: bold;
    line-height: 22px;
    text-align: center;
}

.loyalty_header_actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loyalty_header_actions_link {
    width: 100%;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    text-decoration: none;
    background-color: var(--primary-green);
    border: 2px solid transparent;
    border-radius: 8px;
}

.loyalty_header_filters {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px;
    background-color: var(--dark);
    border-radius: 4px;
}

.loyalty_header_filters_button {
    width: calc(25% - 3px);
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    background-color: var(--light);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

    .loyalty_header_filters_button[data-active="true"] {
        background-color: var(--primary-green);
    }

    .loyalty_header_filters_button:focus,
    .loyalty_header_filters_button:active {
        border-color: var(--primary-green);
        transition: border-color 0.2s ease-out;
    }

.loyalty_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loyalty_body_levels {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.loyalty_level_card {
    width: 100%;
    min-height: 200px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px;
    border-radius: 8px;
}

    .loyalty_level_card[data-level="club"] {
        background-image: url(/Content/images/loyalty/png/club.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .loyalty_level_card[data-level="silver"] {
        background-image: url(/Content/images/loyalty/png/silver.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .loyalty_level_card[data-level="gold"] {
        background-image: url(/Content/images/loyalty/png/gold.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .loyalty_level_card[data-level="platinum"] {
        background-image: url(/Content/images/loyalty/png/platinum.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .loyalty_level_card[data-level="savvy"] {
        background-image: url(/Content/images/loyalty/png/savvy-saver-background.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .loyalty_level_card[data-active="true"] {
        display: flex;
    }

.loyalty_level_card_image {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

    .loyalty_level_card_image img {
        width: 100%;
        max-width: 600px;
        height: auto;
        display: block;
        border-radius: 4px;
    }

.loyalty_level_card_title {
    width: 100%;
    max-width: 480px;
    font-size: 36px;
    font-weight: bold;
    line-height: 30px;
    text-align: left;
}

    .loyalty_level_card_title[data-level="savvy"] {
        color: var(--light);
    }

.loyalty_level_section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loyalty_level_description {
    width: 100%;
    max-width: 480px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark);
    text-align: center;
    background-color: var(--light);
    border-radius: 4px;
}

.loyalty_level_section_title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.loyalty_level_section_description {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.loyalty_level_section_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 36px;
}

    .loyalty_level_section_list li {
        width: 100%;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        text-align: left;
    }

        .loyalty_level_section_list li a {
            font-size: 16px;
            font-weight: bold;
            color: var(--dark);
        }

.table_responsive::-webkit-scrollbar {
    height: 8px;
}

.table_responsive::-webkit-scrollbar-thumb {
    background-color: var(--dark);
    border-radius: 4px;
}

    .table_responsive::-webkit-scrollbar-thumb:hover {
        background-color: var(--dark);
    }

.table_responsive {
    width: 100%;
    margin: 8px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border: 1px solid var(--dark);
    border-collapse: collapse;
}

    table th {
        padding: 12px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        color: var(--dark);
        text-align: left;
        border-right: 1px solid var(--dark);
        border-bottom: 1px solid var(--dark);
    }

    table td {
        padding: 12px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
        text-align: left;
        border-right: 1px solid var(--dark);
        border-bottom: 1px solid var(--dark);
    }

    table tr:nth-child(odd) {
        background-color: var(--grey);
    }

    table tr:hover {
        background-color: var(--grey);
    }

.account_wrapper {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .account_wrapper.full {
        max-width: initial;
    }

.account_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
}

.account_header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account_header_title {
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    color: var(--dark);
}

.account_back_bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background-color: var(--dark);
    border-radius: 4px;
}

.account_back_bar_link {
    min-height: 48px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    text-decoration: none;
}

.account_back_bar_icon {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
}

.account_back_bar_breadcrumb {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--light);
}

.account_back_bar_link:focus .account_back_bar_icon,
.account_back_bar_link:active .account_back_bar_icon,
.account_back_bar_link:hover .account_back_bar_icon {
    border-color: var(--primary-green);
    transition: 0.2s ease-out;
}

.account_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redeem_loyalty {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: var(--grey);
    border: 2px solid transparent;
    border-radius: 4px;
}

.redeem_loyalty_group {
    width: 100%;
    max-width: 599px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
}

.redeem_loyalty_header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.redeem_loyalty_header_info {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.redeem_loyalty_points {
    width: calc(50% - 4px);
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background-color: var(--dark);
    border-radius: 4px;
}

.redeem_loyalty_points_text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--light);
}

.loyalty_points_header_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: var(--light);
    border: 2px solid var(--dark);
    border-radius: 4px;
}

.loyalty_points_header_message_text {
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    text-align: center;
}

.redeem_loyalty_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.redeem_loyalty_points_error {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    margin-bottom: 8px;
    background-color: var(--light);
    border: 2px solid var(--red);
    border-radius: 4px;
}

.redeem_loyalty_points_error_text {
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    color: var(--red);
    text-align: center;
}

.form_control {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form_control_label {
    margin: 0 0 8px 0;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

.form_control_input {
    width: 100%;
    height: 48px;
    display: block;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
    background-color: var(--light);
    border: 2px solid var(--grey);
    border-radius: 4px;
}

.form_control_message {
    display: none;
    padding: 0 8px;
    font-size: 14px;
    font-weight: bold;
    line-height: 22px;
    color: var(--red);
}

.form_control_actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.form_control_action_button {
    width: 100%;
    height: 48px;
    max-width: calc(50% - 4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    background-color: var(--primary-green);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.redeem_loyalty_points_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: var(--light);
    border: 2px solid var(--green);
    border-radius: 4px;
}

.redeem_loyalty_points_message_text {
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
    color: var(--green);
    text-align: center;
}

.redeem_loyalty_points_message_link {
    width: 100%;
    height: 48px;
    max-width: calc(50% - 4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0 auto;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: var(--dark);
    background-color: var(--grey);
    border: 2px solid var(--dark);
    border-radius: 4px;
    cursor: pointer;
}

@media only screen and (min-width: 960px) {
    .loyalty_header_grouped {
        flex-direction: row-reverse;
    }

    .loyalty_header_status {
        width: calc(50% - 8px);
        min-height: 132px;
    }

    .loyalty_header_filters {
        width: calc(50% - 8px);
    }
}

@media only screen and (min-width: 1200px) {
    .loyalty_header_filters_button:hover {
        background-color: var(--primary-green);
        transition: 0.2s ease-in-out;
    }

    .loyalty_level_card {
        padding: 16px;
    }

    table td {
        white-space: pre-line;
    }

    .form_control_action_button:hover {
        background-color: var(--light);
        border-color: var(--primary-green);
        transition: 0.2s ease-in-out;
    }
}
