.property_agent_wrapper.legacy-home-office-active {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
    align-items: center;
    gap: 0;
    line-height: normal;
    overflow: hidden;
}

.property_agent_wrapper.legacy-home-office-active .agent-logo {
    display: none !important;
    flex: 0 0 0;
    width: 0;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.property_agent_wrapper.legacy-home-office-active .agent-name-extra-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.property_agent_wrapper.legacy-home-office-active .legacy-home-office-row {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    height: 18px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.property_agent_wrapper.legacy-home-office-active .legacy-home-office-logo {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 14px;
    margin: 0 6px 0 0;
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
}

.property_agent_wrapper.legacy-home-office-active .legacy-home-office-name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property_agent_wrapper.legacy-home-office-active .legacy-home-contact-link,
.property_agent_wrapper.legacy-home-office-active .legacy-home-contact-text {
    display: block;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--wp-estate-main-color-option, var(--wp-estate-main-color, #d25c4d));
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* WPResidence adds margin-bottom: 10px to .agent-bottom-row in generated CSS. */
.property_card_default .property_agent_wrapper.legacy-home-office-active .agent-bottom-row,
.property_listing.property_card_default .property_agent_wrapper.legacy-home-office-active .agent-bottom-row {
    margin: 0 !important;
    padding: 0 !important;
}

.property_card_default .property_agent_wrapper.legacy-home-office-active .legacy-home-office-row,
.property_listing.property_card_default .property_agent_wrapper.legacy-home-office-active .legacy-home-office-row {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.legacy-home-office-generated-wrapper {
    float: left;
}

.property_location .listing_actions {
    flex: 0 0 auto;
}

@media only screen and (max-width: 480px) {
    .property_agent_wrapper.legacy-home-office-active {
        max-width: calc(100% - 100px);
    }
}
