﻿/* User Control: LoyaltyPanel */
.loyalty-panel {
    background-color: #fcfcfc;
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
}

.loyalty-panel-inner {
    margin: 0 0 1rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.loyalty-panel a:hover {
    text-decoration: none;
}

.loyalty-spend {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
}

.loyalty-spend > div:first-child {
    max-height: 4rem;
    display: flex;
    align-items: center;
}

.loyalty-spend > div:first-child > div:nth-child(1) {
    width: 18rem;
}

.loyalty-spend > div:first-child > div > img {
    width: 100%;
    max-width: 250px;
}

.loyalty-spend > div:first-child > div:nth-child(2) {
    flex-grow: 4;
    font-size: 1.25rem;
    text-align: center;
    padding: 0 1rem 0 1rem;
}

/* Maximum width */
@media (max-width: 62rem) {
    .loyalty-spend > div:first-child > div:nth-child(2) {
        font-size: 1rem;
    }
}

.loyalty-spend > div:first-child > div:nth-child(3) {
    flex-grow: 1;
    font-size: 2rem;
    font-weight: bold;
    text-align: right;
}

.loyalty-spend > div:last-child {
    display: flex;
    justify-content: space-between;
}

.loyalty-spend > div:last-child > div:last-child {
    flex-grow: 24;
}

.loyalty-progress > div:nth-child(2n+1) {
    width: 100%;
    display: flex;
    text-align: right;
}

.loyalty-progress > div:nth-child(2n+1) > div > div {
    position: relative;
    display: inline-block;
}

.loyalty-progress > div:nth-child(2n+1) > div:not(:last-child) > div {
    transform: translateX(50%);
}

.loyalty-check {
    color: var(--anglia-red);
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(calc(-100% - 0.25rem));
}

.loyalty-progress > div:first-child {
    font-size: 1.5rem;
}

.loyalty-progress > div:nth-child(2) {
    width: 100%;
    border: 2px solid var(--anglia-red);
    background-color: #fff;
    position: relative;
}

@keyframes loyalty-slide-in {
    0% {
        width: 0;
    }
}

.loyalty-progress > div:nth-child(2) > div:first-child {
    background-color: var(--anglia-red);
    height: 3rem;
    position: relative;
    animation: 1s ease-out 0s 1 loyalty-slide-in;
}

.loyalty-progress > div:nth-child(2) > div:first-child > div:nth-child(1) {
    position: absolute;
    right: 0.5rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--anglia-red);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.loyalty-progress > div:nth-child(2) > div:first-child > div:nth-child(2) {
    position: absolute;
    left: calc(100% + 0.5rem);
    color: #000;
    font-weight: bold;
    background-color: #fff;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.loyalty-progress > div:nth-child(2) > div.dark {
    position: absolute;
    top: 0;
    border-right: 3px dashed black;
    width: 3px;
    height: 3rem;
}

.loyalty-progress > div:nth-child(2) > div.light {
    position: absolute;
    top: 0;
    border-right: 3px dashed white;
    width: 3px;
    height: 3rem;
}

.loyalty-reward {
    text-align: center;
    padding: 2rem;
    border: 4px solid var(--anglia-red);
    background-color: #fff;
    box-shadow: 0 0 1.5rem #ccc;
}

.loyalty-reward > div:first-child {
    font-size: 1.5rem;
    color: #333;
}

.loyalty-reward > div:last-child {
    color: #000;
    font-size: 2.5rem;
}

.loyalty-message {
    font-size: 0.8rem;
    text-align: left;
}
