﻿.loyalty_wrapper {
    width: 100%;
    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;
}

.loyalty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loyalty_header {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.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;
}

.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(--surface-1);
    border-radius: 8px;
}

.loyalty_status_level_text:nth-child(2) {
    font-weight: 600;
}

.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-weight: 600;
    background-color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 48px;
}

    .loyalty_header_actions_link:focus,
    .loyalty_header_actions_link:active,
    .loyalty_header_actions_link:hover {
        background-color: var(--primary-green-hover);
    }

    .loyalty_header_filters {
        width: 100%;
        display: flex;
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
    }

.loyalty_header_filters_button {
    width: calc(25% - 3px);
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .loyalty_header_filters_button:focus,
    .loyalty_header_filters_button:active,
    .loyalty_header_filters_button:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .loyalty_header_filters_button[data-active="true"] {
        font-weight: 600;
        color: var(--text-state);
        background-color: var(--button-state);
    }

    .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;
    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;
}

    .loyalty_level_card_image img {
        width: 100%;
        max-width: 600px;
        height: auto;
        display: block;
        border-radius: 8px;
    }

.loyalty_level_card_title {
    width: fit-content;
    padding: 4px 16px;
    background-color: var(--surface-1);
    border-radius: 48px;
}

.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-weight: 600;
    text-align: center;
    background-color: var(--surface-1);
    border-radius: 8px;
}

.loyalty_level_section_title {
    width: 100%;
}

.loyalty_level_section_description {
    width: 100%;
}

.loyalty_level_section_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 36px;
    list-style: disc;
}

    .loyalty_level_section_list li {
        width: 100%;
    }

.table_responsive::-webkit-scrollbar {
    height: 8px;
}

.table_responsive {
    width: 100%;
    margin: 8px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

    table th {
        padding: 8px;
        border: 1px solid var(--border-blue);
    }

    table td {
        padding: 8px;
        border: 1px solid var(--border-blue);
    }

.account_wrapper {
    width: 100%;
    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_back_bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 4px;
    background-color: var(--surface-1);
    border-radius: 48px;
}

.account_back_bar_link {
    min-height: 36px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.account_back_bar_icon {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 50%;
}

.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 {
    background-color: var(--button-state);
}

    .account_back_bar_icon svg {
        width: 24px;
        height: 24px;
        display: block;
    }

.account_back_bar_link:focus .global_icon_fill,
.account_back_bar_link:active .global_icon_fill,
.account_back_bar_link:hover .global_icon_fill {
    fill: var(--icon-state);
}

.account_back_bar_breadcrumb {
    font-size: 12px;
    font-weight: 600;
}

.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;
}

.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(--surface-1);
    border-radius: 8px;
}

.redeem_loyalty_points_text:nth-child(2) {
    font-weight: 600;
}

.loyalty_points_header_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.loyalty_points_header_message_text {
    padding: 8px;
    font-weight: 600;
}

.redeem_loyalty_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.redeem_loyalty_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: var(--surface-1);
    border-radius: 8px;
}

.redeem_loyalty_points_error {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: var(--red);
    border-radius: 8px;
}

.redeem_loyalty_points_error_text {
    font-weight: 600;
    text-align: center;
}

.form_control {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form_control_label {
    font-weight: 600;
}

.form_control_input::placeholder {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: var(--text);
    opacity: 0.5;
}

.form_control_input {
    width: 100%;
    height: 36px;
    display: block;
    padding: 0 8px;
    background-color: var(--surface-1);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
    outline: none;
}

.form_control_message {
    display: none;
    font-weight: 600;
    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-weight: 600;
    background-color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 48px;
}

    .form_control_action_button:focus,
    .form_control_action_button:active,
    .form_control_action_button:hover {
        background-color: var(--primary-green-hover);
    }

    .redeem_loyalty_points_message {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

.redeem_loyalty_points_message_text {
    padding: 8px;
}

.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-weight: 600;
    background-color: var(--button-default);
    border: 1px solid var(--border-blue);
    border-radius: 48px;
}

    .redeem_loyalty_points_message_link:focus,
    .redeem_loyalty_points_message_link:active,
    .redeem_loyalty_points_message_link:hover {
        color: var(--text-state);
        background-color: var(--button-state);
    }

    @media only screen and (min-width: 960px) {
        .loyalty_header_grouped {
        flex-direction: row-reverse;
    }

        .loyalty_header_status {
            width: calc(50% - 8px);
            min-height: 135px;
        }

        .loyalty_header_filters_button {
            height: 48px;
        }
}

@media only screen and (min-width: 1200px) {
    .loyalty_level_card {
        padding: 16px;
    }

    table td {
        white-space: pre-line;
    }
}
