.riderprofile {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    padding: 48px 48px 80px 48px;
    /* background-image is set dynamically via JavaScript using fundraiser.header_photo */
    background-size: 100vw;
    background-repeat: no-repeat;
}

.riderprofile .fundraiserImageContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.riderprofile .top {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    /* background-image is set dynamically via JavaScript using mainColor and secondaryColor */
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}

.popupmessage .modal-header {
    /* background-color is set dynamically via JavaScript using mainColor */
}

.popupmessage .pitchContainer {
    background: white;
}

.riderprofile .headerWrapper {
    display: flex;
    align-items: center;
    color: white;
    margin-right: auto;
    margin-top: 10px;
    width: 100%;
    padding: 0 10px;
}

.riderprofile .headerWrapper .fundraiserImage {
    min-width: 54px;
    min-height: 54px;
    border-radius: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    align-self: center;
    margin-right: 12px;
}

.riderprofile .headerWrapper .title {
    color: white;
    font-family: "Metropolis bold";
    font-size: 28px;
    line-height: normal;
    letter-spacing: 0.28px;
    margin-right: 24px;
}

.riderprofile .headerWrapper .dateContainer {
    display: flex;
    align-items: center;
}

.riderprofile .headerWrapper .shareIcon {
    min-width: 36px;
    min-height: 36px;
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/charm_forward.svg);
    background-size: 36px 36px;
    background-repeat: no-repeat;
    pointer-events: none;
}

.riderprofile .headerWrapper .dateContainer .dateIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/white_calendar.svg);
    min-width: 36px;
    min-height: 36px;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 50%;
    margin-right: 8px;
}

.riderprofile .headerWrapper .dateContainer .date {
    color: white;
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
}

.riderprofile .metricsInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 24px 42px;
    max-width: 50%;
    min-width: 50%;
    align-self: center;
}

.riderprofile .metricsInfo .metricContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.riderprofile .metricsInfo .metricContainer .distanceIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/distance_icon_DM_m_v1.png);
    min-width: 35px;
    min-height: 35px;
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 50%;
}

.riderprofile .metricsInfo .metricContainer .caloriesIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/calories_icon_m_v1.png);
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/bluegoji_logo_and_text_v1.png);
    min-width: 35px;
    min-height: 35px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 50%;
}

.riderprofile .metricsInfo .metricContainer .scoreIcon {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/points_icon_DM_v1.png);
    min-width: 35px;
    min-height: 35px;
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 50%;
}
.riderprofile .supportMeShare {
    margin-left: auto;
    display: flex;
    width: auto;
    min-width: 210px;
    height: 58px;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid white;
    /* background-color is set dynamically via JavaScript using mainColor */
    color: rgba(255, 255, 255, 0.87);
    font-family: "Metropolis Bold";
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
}

.riderprofile .supportMeShare.hide {
    display: none;
}

.riderprofile .supportMeShare .text {
    color: white;
    font-family: "Metropolis Bold";
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.3px;
}
.riderprofile .metricsInfo .metricContainer .metricText {
    color: #333;
    font-family: "Metropolis Bold";
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    margin-inline: 8px;
}

.riderprofile .metricsInfo .metricContainer .metricValue {
    color: #333;
    font-family: "Metropolis Regular";
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.2px;
}

.riderprofile .bottom .timeline .title {
    /* color and border-bottom-color are set dynamically via JavaScript using mainColor */
    font-family: "Metropolis Bold";
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    border-bottom: 3px solid;
}

.riderprofile .bottom {
    display: flex;
    justify-content: space-between;
}

.riderprofile .bottom .timeline {
    display: flex;
    flex-direction: column;
    width: 70%;
}

.riderprofile .bottom .bottomRight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.riderprofile .bottom .bottomRight .logo-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 80% at center, black 40%, transparent 100%);
}

.riderprofile .bottom .bottomRight .logo {
    background-image: url(https://d1gq9jzbezk7fw.cloudfront.net/p/en_US/gv/i/logo_bluegoji_rider_profile_v1.png);
    min-width: 164px;
    min-height: 31px;
    background-size: 164px 31px;
    background-repeat: no-repeat;
    background-position: center;
}

/* .riderprofile .bottom .timeline .activities {
    height: 200px;
    overflow-y: scroll;
} */

/* Pitch Popup */
.modal {
    top: -200px;
}

.infopopup .modal-header {
    border-top-right-radius: 6px !important;
    border-top-left-radius: 6px !important;
}

.modal.userProfilePopup {
    top: 0px;
}

.modal.supportPopup {
    top: 0px;
}
.modal-body {
    padding: 0;
}
.modal.userProfilePopup .modal-body {
    padding: 1rem;
}
.popupmessage .modalContainer .pitchContainer {
    padding: 30px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.popupmessage .modalContainer .pitchContainer .title {
    font-family: "Metropolis Bold";
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    /* color is set dynamically via JavaScript using mainColor */
    text-align: left;
    padding-block: 0;
    margin-bottom: 0;
    width: 100%;
}
.popupmessage .modalContainer .pitchContainer .info {
    text-align: center;
    font-family: "Metropolis Regular";
    font-size: 18px;
    line-height: normal;
    letter-spacing: 0.18px;
    color: #333;
    padding-bottom: 0;
    margin-block: 37px;
}
.popupmessage .modalContainer .pitchContainer .maxCharacters {
    font-family: "Metropolis Regular";
    font-size: 17px;
    line-height: 24px;
    letter-spacing: 0.17px;
    position: absolute;
    bottom: 135px;
    color: #333;
}
.popupmessage .modalContainer .pitchContainer .pitchText {
    width: 100%;
}
.popupmessage .modalContainer .pitchContainer .pitchText .gvinput .inputContainer {
    margin: 0;
    margin-top: 0;
    width: 100%;
}
.popupmessage .modalContainer .pitchContainer .pitchText .gvinput .inputContainer .input-title {
    display: none;
}
.popupmessage
    .modalContainer
    .pitchContainer
    .pitchText
    .gvinput
    .inputContainer
    .editable-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Metropolis Regular";
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0.24px;
    height: 310px;
    background-color: #f3f3f3;
    border-radius: 8px;
    color: #333;
    padding-inline: 30px;
    margin-bottom: 0;
}
.popupmessage .modalContainer .pitchContainer .confirmPitchButton {
    font-family: "Metropolis Bold";
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 58px;
    color: white;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    /* background-color is set dynamically via JavaScript using mainColor */
    border-radius: 8px;
    cursor: pointer;
    margin-top: 37px;
    padding-inline: 20px;
}
.list .table th {
    /* background-color is set dynamically via JavaScript using mainColor */
}

.riderprofile .messageContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 100px;
}
.riderprofile .messageContainer.hide {
    display: none;
}

.riderprofile .messageContainer .messagePrimary {
    /* color is set dynamically via JavaScript using mainColor */
    font-family: "Metropolis Bold";
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.3px;
    text-align: center;
}

/* .riderprofile .messageContainer .messageSecondary {
    color: #4e47ea;
    font-family: "Metropolis Regular";
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.16px;
    text-align: center;
} */

/* iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .admin .main-container {
        padding-left: 0;
    }
    .riderprofile .metricsInfo {
        min-width: 100%;
        max-width: 100%;
    }
    .riderprofile .bottom {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 100px;
    }
    .riderprofile .bottom .pledgerstotals {
        margin-bottom: 42px;
    }
    .riderprofile .bottom .timeline {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .riderprofile .headerWrapper .fundraiserImage {
        min-width: 60px;
        min-height: 60px;
    }
    .admin .main-container {
        padding-left: 0;
    }
    .riderprofile {
        padding: 8px;
    }
    .riderprofile .headerWrapper {
        flex-direction: column;
    }
    .riderprofile .headerWrapper .title {
        font-size: 24px;
        line-height: normal;
        letter-spacing: 0.22px;
    }
    .riderprofile .supportMeShare {
        margin: 0;
        margin-top: 16px;
    }
    .riderprofile .headerWrapper .dateContainer {
        display: none;
    }
    .riderprofile .riderInfo {
        padding: 16px 20px;
    }
    .riderprofile .riderInfo .image {
        min-width: 100px;
        min-height: 100px;
    }
    .riderprofile .riderInfo .name {
        font-size: 18px;
        line-height: 20px;
        letter-spacing: 0.27px;
        margin-block: 18px;
    }
    .riderprofile .riderInfo .teamName {
        font-size: 17px;
        line-height: normal;
        letter-spacing: 0.17px;
        text-align: center;
    }
    .riderprofile .riderInfo .pitch {
        font-size: 17px;
        line-height: normal;
        letter-spacing: 0.17px;
        margin-block: 18px;
    }
    .riderprofile .riderInfo .button {
        font-size: 17px;
        line-height: normal;
        letter-spacing: 0.221px;
    }
    .riderprofile .totalsInfo {
        flex-direction: column;
        margin-top: 24px;
    }
    .riderprofile .totalsInfo .infoCard {
        margin: 0 0 8px 0;
    }
    .riderprofile .totalsInfo .infoCard .rankIcon,
    .riderprofile .totalsInfo .infoCard .raisedIcon {
        min-height: 40px;
        min-width: 40px;
        background-size: 32px 32px;
    }
    .riderprofile .totalsInfo .infoCard .raisedIcon {
        background-size: 28px 28px;
    }
    .riderprofile .totalsInfo .infoCard .totalText {
        font-size: 17px;
        line-height: 32px;
        letter-spacing: 0.17px;
    }
    .riderprofile .metricsInfo {
        min-width: 100%;
        max-width: 100%;
        margin-block: 16px 24px;
    }
    .riderprofile .metricsInfo .metricContainer {
        margin: 0 0 0 5px;
    }
    .riderprofile .metricsInfo .metricContainer .distanceIcon,
    .riderprofile .metricsInfo .metricContainer .caloriesIcon,
    .riderprofile .metricsInfo .metricContainer .scoreIcon {
        min-height: 23px;
        min-width: 23px;
        background-size: 18px 18px;
    }
    .riderprofile .metricsInfo .metricContainer .metricText,
    .riderprofile .metricsInfo .metricContainer .metricValue {
        font-size: 17px;
        line-height: 24px;
        letter-spacing: 0.17px;
    }
    .riderprofile .metricsInfo .metricContainer .metricText {
        margin-inline: 2px;
    }
    .riderprofile .bottom {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    .riderprofile .bottom .pledgerstotals {
        margin-bottom: 24px;
        width: 360px;
    }
    .riderprofile .bottom .timeline {
        width: 100%;
    }
    .riderprofile .bottom .timeline .title {
        font-size: 20px;
        line-height: normal;
        letter-spacing: 0.22px;
    }
    .riderprofile .bottom .timeline .dailyrides {
        margin-top: 15px;
    }
    .riderprofile .bottom .timeline .dailyrides .headerRow {
        flex-direction: column;
        align-items: inherit;
        justify-content: inherit;
        margin-bottom: 18px;
    }
    .riderprofile
        .bottom
        .timeline
        .dailyrides
        .headerRow
        .metricsContainer
        .totalMetric {
        font-size: 16px;
        line-height: 14px;
        letter-spacing: 0.16px;
        margin-top: 8px;
        padding-left: 0;
    }
    .riderprofile .bottom .timeline .dailyrides .list .table th:nth-last-child(1) {
        padding-right: 8px;
    }

    /* Pitch popup */
    .popupmessage .modalContainer .pitchContainer {
        padding: 15px 20px;
    }
    .tab {
        height: 45px;
    }
    .tab .content {
        font-size: 16px;
        padding-inline: 5px;
    }
}

.copy-popup {
    position: fixed;
    top: 20px;
    left: 80%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    animation: fadeInOut 2s ease-in-out;
    width: min-content;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
