
.loyalty{
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    --primary-color: #3385fd;
    --muted-color: #ccc;
    --danger-color: red;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
}
/* loyalty utility classes */
.lu-medium-text {
    font-size: 1.2em;
    font-weight: 700;
}
.lu-strong-text {
    font-size: 1.4em;
    font-weight: 700;
}
.lu-strong-text-2x {
    font-size: 1.7em;
    font-weight: 700;
}
.lu-bold-text {
    font-weight: bold;
}
.lu-text-center {
    text-align: center;
}
.lu-text-left {
    text-align: left;
}
.lu-primary-color {
    color: var(--primary-color) !important;
}
.lu-indent-left {
    padding-left: 15px;
}
.lu-muted-color {
    color: var(--muted-color) !important;
}
.lu-danger-color {
    color: var(--danger-color) !important;
}
/* --- */
.loyalty-header{
    flex: 0;
    display: flex;
    flex-direction: row;
}
.loyalty-header-back{
    flex: 0;
}

.loyalty-header-back i{
    padding: 10px;
    font-size: 26px;
    color: #4aa2ee;
    vertical-align: middle;
    cursor: pointer;
}
.loyalty-header-title{
    flex: 1;
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    padding: 10px;
}


.loyalty-content{
    flex: 1;
    display: flex;
    flex-flow: column;
    overflow: hidden;
}
.loyalty-content-nav{
    display: block;
    text-align: center;
}
.loyalty-content-nav > div{
    display: inline-block;
    vertical-align: bottom;
    text-align: center;
    font-size: 1.2em;
    /* font-weight: 700; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 10px;
    margin: 0 10px;
}
.loyalty-content-nav > div > a {
    color: var(--muted-color);
}
.loyalty-content-nav > div.active{
    border-bottom: 3px solid var(--primary-color);
}
.loyalty-content-nav > div.active > a {
    color: var(--primary-color);
}
.loyalty-page{
    flex: 1;
    background: lavender;
    overflow: hidden;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding-bottom: 15px;
}
.loyalty-page-content{
    height: 100%;
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.loyalty-page-content_spaced{
    padding: 20px 10px;
    overflow: auto;
    gap: 10px;
}
.loyalty-card{
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px 2px rgb(0 0 0 / 8%);
    width: 100%;
}
.loyalty-centered-text{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.loyalty-user-image-container{
    height: 50px;
    width: 50px;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
}
.loyalty-level-container{
    height: 2.5em;
    width: 2.5em;
    border-radius: 50%;
    overflow: hidden;
    background: #00c0ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.4em;
}
.loyalty-progress-subtext{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    padding: 0px 10px;
}
.loyalty-progress-bar {
    width: 100%; 
    height: 30px; 
    background-color: #eee;
    border-radius: 30px;
    box-shadow: 0px 2px 2px 0px rgb(0 0 0 / 14%);
    margin: 10px 3px;
}
.loyalty-progress-bar > div {
    height: 100%; 
    background-color: var(--primary-color);
    border-radius: 30px;
}
.loyalty-rankings-title {
    font-size: 20px;
    text-align: center;
}
.loyalty-close {
    float: right;
    margin-right: 14px;
}

.loyalty-close a {
    color: var(--muted-color);
}

.loyalty-calc-remaining {
    margin: 25px auto;
    font-size: 16px;
}
.loyalty-calc-remaining td {
    padding-bottom: 5px;
}
.loyalty-calc-entry {
    text-align: left;
    color: var(--muted-color);
    padding-left: 15px;
    padding-right: 15px;
}
.loyalty-calc-result {
    padding-top: 5px;
}
.loyalty-coin {
    display: inline;
    height: 1.5em;
}
.loyalty-reward-title {
    font-weight: bold; 
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 8px;
}
.loyalty-reward-cost {
    text-align: center;
    font-size: 1.14em;
    margin-bottom: 16px;
}
.loyalty-reward-description {
    margin-top: 10px;
}
.loyalty-reward-limit {
    margin-top: 10px;
    margin-bottom: 10px;
}
.loyalty-redeem-btn {
    margin-bottom: 15px;
    margin-top: 15px;
}
.loyalty-redeem-btn a {
    font-size: 1.2em;
}
.loyalty-redeem-history-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.loyalty-action-icon{
    display: flex;
    height: 30px;
    width: 30px;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
    text-align: center;
    color: white;
}
.loyalty-action-icon-image{
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}
.loyalty-action-points{
    display: flex;
    background: var(--primary-color);
    height: 25px;
    /* width: 30px; */
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
    text-align: center;
    color: white;
    font-weight: bold;
}
.loyalty-action-points.no-points{
    background: var(--muted-color);
}

.loyalty-leaderboard-entry{
    display: flex;
    flex-flow: row;
    margin-top: 10px;
    margin-bottom: 10px;
}
.loyalty-leaderboard-index{
    flex: 0 0 25px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loyalty-leaderboard-image{
    flex: 0 0 60px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    margin-right: 15px;
}
.loyalty-leaderboard-image img{
    max-width: 100%;
    border-radius: 50%;
}
.loyalty-leaderboard-content{
    flex: 1;
    overflow: hidden;
}
.loyalty-leaderboard-award{
    flex: 0 0 40px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loyalty-leaderboard-award img{
    max-width: 100%;
}

.loyalty-redeem-history th, .loyalty-redeem-history td {
    padding: 0px 10px;
}

.loyalty-redeem-history tr {
    margin: 10px 0px;
}
