/* Restore CrossSell detail typography after the generated Estate styles. */
.com-spproperty.view-property .spproperty-feature-item .title-wrapper h3.spproperty-title,
.spproperty-view-property .spproperty-call-us-widget .spproperty-price-title,
.spproperty-view-property .spproperty-agent-widget-wrap .spproperty-agent-title,
.spproperty-view-property .spproperty-contact-us-widget h3 span {
    font-size: 21px;
}

.spproperty-view-property .spproperty-agent-widget-wrap .agent-details-wrap .agent-title {
    font-size: clamp(26px, 8vw, 36px);
}

/* Restore the production broker and contact layout on property details. */
.spproperty-view-property .spproperty-agent-widget-wrap {
    border: 0;
    text-align: start;
}

.spproperty-view-property .spproperty-agent-widget-wrap .agent-img-wrap img {
    max-width: 150px;
    border-radius: 25px;
}

.spproperty-view-property .spproperty-agent-widget-wrap .spproperty-agent-mailing {
    flex-direction: column;
}

.spproperty-view-property .spproperty-agent-widget-wrap .spproperty-agent-mailing > li {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
}

.spproperty-view-property .spproperty-agent-widget-wrap .spproperty-agent-mailing > li > a {
    color: #de9d62 !important;
    font-size: clamp(18px, 5.6vw, 28px);
    overflow-wrap: anywhere;
}

.spproperty-view-property .spproperty-agent-widget-wrap .spproperty-agent-mailing > li > i.fa {
    color: inherit;
    margin-bottom: 0;
}

.spproperty-view-property .spproperty-agent-widget-wrap .fa-phone-square::before {
    content: "\f095";
    display: inline-block;
    transform: scaleX(-1);
}

.spproperty-view-property .spproperty-agent-widget-wrap .fa-envelope-square::before {
    content: "\f0e0";
}

.spproperty-view-property .spproperty-contact-us-widget .spproperty-contact-us-form button[type="submit"] {
    line-height: 1;
}

/* Keep the chart and number inputs inside the calculator at narrow widths. */
.spproperty-emi-calculation > .second-child,
.sp-property-emi-calculator .spec-graph > div {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .spproperty-view-property .spproperty-agent-widget-wrap {
        padding-inline: 15px;
    }

    .spproperty-emi-calculation > .second-child {
        max-width: 100%;
    }

    .sp-property-emi-calculator .spec-display-graph {
        width: min(100%, 300px);
    }

    .sp-property-emi-calculator .spec-display-info {
        width: 100%;
    }

    .sp-property-emi-calculator .spec-input-container .sppb-row {
        margin-inline: 0;
    }

    .sp-property-emi-calculator .spec-input-container input[type="number"] {
        width: 100%;
        box-sizing: border-box;
    }
}
