.tier-status__progress-wrap {
    width: 100%;
    margin: 10px 0 16px;
}

.tier-status__progress {
    width: 100%;

    @media (min-width: 768px) {
        max-width: 72.37834133vw;
    }

    &.sightseer {
        .sightseer-label {
            font-family: Whitney-Bold, sans-serif;
            color: var(--dark-blue);
        }
    }

    &.voyager {
        .voyager-label {
            font-family: Whitney-Bold, sans-serif;
            color: var(--dark-blue);
        }
    }

    &.explorer {
        .explorer-label {
            font-family: Whitney-Bold, sans-serif;
            color: var(--dark-blue);
        }
    }

    &.adventurer {
        .adventurer-label {
            font-family: Whitney-Bold, sans-serif;
            color: var(--dark-blue);
        }
    }

    &.jet-setter {
        .jet-setter-label {
            font-family: Whitney-Bold, sans-serif;
            color: var(--dark-blue);
        }
    }

    .tier-icon {
        > p {
            margin-top: 7px;
            font-size: 16px;
            text-wrap-style: pretty;
        }
    }
}

.user:has(.tier-status),
.user-menu {
    .tier-status,
    tier-status-bar-component {
        width: 100%;
        max-width: 530px !important;
    }

    .tier-status {
        margin-top: 10px;

        .tier-labels {
            height: 12px;
            font-size: 12px;
            line-height: 1;
        }

        &:first-of-type .tier-labels {
            margin-bottom: 2px;
        }

        &:last-of-type .tier-labels {
            margin-top: 2px;
        }
    }

    .tier-icon {
        top: calc(50% - 2px);
        font-size: 18px;
    }

    .tier-message {
        font-size: 11px;
        text-wrap-style: pretty;
        margin-top: 8px;
        line-height: 1.2;
    }
}

.tier-status-container {
    position: relative;
}

.tier-icon {
    position: absolute;
    top: 40%;
    height: 100%;
    transform: translateY(-50%);
    left: 0;
    z-index: 1;
    font-size: 22px;
    color: white;
    transition: left 1s ease-in-out;

    @media (min-width: 768px) {
        top: 50%;
        font-size: 30px;
    }

    &.jet-setter-color {
        color: var(--medium-pink);
    }

    .icon {
        display: inline-block;
        width: 1em;
        height: 1em;
        stroke-width: 0;
        stroke: currentColor;
        fill: currentColor;
    }
    .icon-palm-tree-icon {
        width: 0.8681640625em;
    }
}

.user-menu__content .tier-icon {
    &.jet-setter-color {
        left: calc(100% - 20px) !important;
    }
}

.tier-bar {
    width: 100%;
    height: 20px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.portal.landing-page main .tier-bar {
    height: 36px;
}

/* Not sure this will work on production */
.portal tier-status-bar-component.large .tier-bar {
    height: 24px;

    @media (min-width: 768px) {
        height: 36px;
    }
}

.tier-progress {
    height: 100%;
    width: 0;
    border-radius: 18px 0 0 18px;
    transition: width 1s ease-in-out;
}

.tier-bar-separator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: white;
    z-index: 10;
}

.tier-bar-separator:nth-child(3) {
    left: calc(20% - 1px);
}

.tier-bar-separator:nth-child(4) {
    left: calc(40% - 1px);
}

.tier-bar-separator:nth-child(5) {
    left: calc(60% - 1px);
}

.tier-bar-separator:nth-child(6) {
    left: calc(80% - 1px);
}

.tier-labels {
    position: relative;
    height: 30px;
    height: clamp(0.75rem, 0.376vw + 0.662rem, 1rem);
    font-size: clamp(0.75rem, 0.376vw + 0.662rem, 1rem);
    line-height: 1;
    text-indent: 1px;

    span {
        position: absolute;
    }

    &.top-labels {
        top: -2px;
    }

    &.bottom-labels {
        bottom: -2px;
    }
}

.tier-labels span:nth-child(2) {
    left: 20%;
}

.tier-labels span:nth-child(3) {
    left: 40%;
}

.tier-labels span:nth-child(4) {
    left: 60%;
}

.tier-labels span:nth-child(5) {
    left: 80%;
}

.tier-message {
    margin-top: 10px;
    width: 100%;
    font-size: clamp(0.75rem, 0.376vw + 0.662rem, 1rem);
    line-height: 1.2;
}

.tier-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tier-background {
    position: absolute;
    height: 100%;
}

.tier-background.sightseer {
    background-color: #a0a0a0;
    width: 20%;
}

.tier-background.voyager {
    background-color: #005c96;
    width: 20%;
    left: 20%;
}

.tier-background.explorer {
    background-color: #d51675;
    width: 20%;
    left: 40%;
}

.tier-background.adventurer {
    background-color: #003a70;
    width: 20%;
    left: 60%;
}

.tier-background.jet-setter {
    background-color: #ffffff;
    width: calc(20% - 1px);
    left: 80%;
    border: 1.5px solid lightgray;
    border-radius: 0 16px 16px 0;
}

.tier-cover {
    position: absolute;
    top: 0;
    right: 0; /* Starts from the right */
    height: 100%;
    width: 100%; /* Initially covers the entire bar */
    background-color: lightgray; /* Matches the tier-bar background */
    transition: width 0.5s ease-in-out;
}
