@font-face {
    font-family: 'Galano Grotesque';
    src: url("https://static.rdc.moveaws.com/fonts/galano-grotesque-alt-regular.woff2") format("woff2");
    font-display: swap;
}

.agent-profile-image-wrapper--plain {
    border: none !important;
    padding: 0 !important;
}

.agent-profile-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    border: 4px solid #d32f2f !important;
    box-sizing: content-box;
    line-height: 0;
}

.agent-profile-image-wrapper .agent-profile-image {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Override agent-picture styles when RPS badge is active */
.agent-picture.rps-active {
    overflow: visible !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-content:has(.agent-picture.rps-active.agent-profile-image-wrapper){
    padding: 5px !important;
}
/* Overwrite hero-content padding-bottom when agent-picture has rps-active class */
.hero-content:has(.agent-picture.rps-active) {
    padding-bottom: 0px !important;
}

@media (max-width: 767px) {
    .hero-content:has(.agent-picture.rps-active) {
        padding-bottom: 10px !important;
    }
}

/* Fallback for browsers that don't support :has() */
.hero-content .agent-picture.rps-active {
    padding-bottom: 0px !important;
}

.agent-picture .agent-profile-image-wrapper .agent-profile-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #f7faff;
}

.agent-profile-image-wrapper .rps-badge-overlay {
    position: absolute !important;
    right: 5px !important;
    bottom: 0px !important;
}

@media (max-width: 480px) {
    .agent-profile-image-wrapper .rps-badge-overlay {
        right: -2px !important;
        bottom: -3px !important;
    }
}

.agent-profile-image-wrapper .rps-badge-overlay img {
    display: block !important;
    width: 34px !important;
    height: 37px !important;
    border-radius: 0 !important;
    object-fit: contain;
    image-rendering: crisp-edges;
    position: relative !important;
    z-index: 999 !important;
}

.rps-tooltip {
    position: absolute;
    bottom: 100%;
    margin-bottom: 8px;
    left: 0;
    right: auto;
    transform: none;
    background-color: #fff;
    color: #2b2b2b;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    padding: 10px 12px;
    border-radius: 12px;
    width: 250px;
    max-width: calc(100vw - 20px);
    z-index: 1000;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    text-align: justify;
    box-sizing: border-box;
    font-family: 'galano grotesque' !important;
}

.rps-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 11px;
    border: 7px solid transparent;
    border-top-color: #e0e0e0;
    margin-top: 1px;
}

.rps-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    border: 6px solid transparent;
    border-top-color: #fff;
}

.rps-tooltip .rps-tooltip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
}

.rps-tooltip .rps-tooltip-heading {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.rps-tooltip .rps-tooltip-heading .rps-tooltip-heading-red {
    color: #D92228 !important;
}

.rps-tooltip .rps-tooltip-heading .rps-tooltip-heading-black {
    color: #1A1816 !important;
}

.rps-tooltip .rps-tooltip-close {
    background: none;
    border: none;
    padding: 0 0 0 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #1A1816 !important;
    flex-shrink: 0;
}

.rps-tooltip .rps-tooltip-close:focus {
    outline: none;
}

.rps-tooltip .rps-tooltip-body {
    font-size: 10px !important;
    font-weight: 200 !important;
    color: #1A1816 !important;
    margin: 0;
    line-height: 11px !important;
    letter-spacing: 0 !important;
    text-align: justify;
}

.rps-label {
    position: relative;
    display: flex;
    justify-content: left;
    max-width: 171px;
    gap: 2px;
    font-family: 'galano grotesque' !important;
}

.rps-label .rps-label-text,
.rps-label .rps-label-red-text {
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.rps-label .rps-label-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.rps-label .rps-label-red-text {
    color: #D92228;
    flex-shrink: 0;
}

.rps-label .rps-label-text-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    align-items: center;
}

.rps-label .rps-info-wrapper {
    display: inline-flex;
    align-items: center;
}

.rps-label .rps-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    flex-shrink: 0;
}

.rps-label .rps-info-btn:focus {
    outline: none;
}

.rps-label .rps-info-btn .rps-info-icon {
    width: 12px !important;
    height: 12px !important;
    border-radius: 0 !important;
}

.rps-label-inline {
    display: block;
    font-family: 'galano grotesque' !important;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rps-label-red-text-sm {
    color: #D92228;
    font-weight: 600;
}

.rps-label-text-sm {
    color: #1A1816 !important;
    font-weight: 400;
}

.rps-label-desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .rps-label-desktop-only {
        display: none !important;
    }

    .agent-profile-image-wrapper .rps-badge-overlay img{
        width: 19px !important;
        height: 21px !important;
        left: 8px !important;
        bottom: 2px !important;
    }

    .rps-label{
        display: inline-flex;
        justify-content: center;
    }
    .rps-label .rps-label-text-btn .rps-label-text{
        color: #1A1816 !important;
    }
    .rps-label .rps-label-text-btn .rps-label-red-text,
    .rps-label .rps-label-text-btn .rps-label-text {
        text-decoration: underline;
        text-decoration-style: dotted;
        text-underline-offset: 2px;
    }

    .rps-label .rps-info-wrapper {
        display: none;
    }
    .profile .agent-picture {
        z-index: 100 !important;
    }
}

@media (max-width: 480px){
    .agent-profile-image-wrapper {
        border: 3px solid #d32f2f !important;
    }
    .agent-profile-image-wrapper .rps-badge-overlay img{
        left: 0px !important;
        bottom: 3px !important;
    }
}

 .agent-details-amp__avatar-wrap .agent-profile-image-wrapper .agent-profile-image{
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    margin-left: auto;
    margin-right: auto;
    z-index: 1001;
}
 .agent-details-amp__header .rps-label {
        display: flex !important;
        justify-content: flex-start !important;
        width: 100%;
        margin: 0 !important;
    }

 .agent-details-amp__header .rps-label .rps-label-text-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

@media (max-width: 480px) {
    .agent-details-amp__header .rps-label .rps-label-text-btn .rps-label-red-text,
    .agent-details-amp__header .rps-label .rps-label-text-btn .rps-label-text {
        text-decoration: underline !important;
        text-decoration-style: dotted !important;
        text-underline-offset: 2px !important;
    }
}
.agent-details-amp__avatar-wrap .agent-profile-image-wrapper {
    border: 5px solid #d32f2f !important;
    padding: 5px !important;
}

.agent-details-amp__avatar-wrap .agent-profile-image-wrapper .agent-profile-image {
    width: 154px !important;
    height: 154px !important;
    flex: 0 0 154px !important;
}

.agent-details-amp__avatar-wrap .agent-profile-image-wrapper .rps-badge-overlay img {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 0 !important;
    object-fit: contain;
    position: relative !important;
    z-index: 999 !important;
}

@media(min-width:768px){
    .agent-details-amp__avatar-wrap .agent-profile-image-wrapper .rps-badge-overlay img {
        margin: -30px !important;
    }
}