.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    display: none;
    align-items: stretch;
    pointer-events: none;
}

    .profile-overlay.open, .profile-overlay.closing {
        display: flex;
        pointer-events: auto;
    }

    .profile-overlay.preopen {
        display: flex;
        pointer-events: auto;
    }

.profile-panel {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    height: 100%;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden
}

.profile-overlay.open .profile-panel {
    transform: translateX(0)
}

.profile-overlay.closing .profile-panel {
    transform: translateX(100%)
}

.profile-panel-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 57px 47px 30px 45px;
}

#profileOverlay .profile-panel-header {
    background: url(/Content/images/background/profile-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

#rewardsOverlay .profile-panel-header {
    background: url(/Content/images/background/travel-history-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
}

.profile-panel-content {
    flex: 1 1 auto;
    overflow-y: auto
}

.profile-close {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 700;
    position: static;
    background: #cc944b;
    width: auto;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    display: flex;
    line-height: 1;
}

    .profile-close:hover, .profile-close:focus, .profile-close:active {
        border: none;
        outline: none;
        color: white;
    }

.profile-page .profile-row {
    margin-left: 0;
    margin-right: 0
}

.profile-overlay .panel-title {
    font-family: 'Chesna Grotesk', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: white;
}

@media screen and (min-width: 992px) {
    .profile-panel {
        width: 80%
    }
}

@media screen and (max-width: 991px) {
    .profile-panel {
        width: 100%
    }
}

.profile-page #my-wpdollars .currency {
    font-size: 0.6em;
    color: #7f8c8d;
    font-weight: 500;
}

.profile-page #my-wpdollars .validity {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

.profile-page #my-wpdollars .date {
    color: #2c3e50;
    font-weight: 600;
}
