/* Premium digital contact card on public WPResidence adviser pages. */

body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor-contact-buttons
    > :is(.realtor_call, .realtor_whatsapp) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid rgba(15, 42, 68, 0.3);
    border-radius: 7px;
    background: #fff;
    color: #0f2a44 !important;
    box-shadow: none;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor-contact-buttons
    > :is(.realtor_call, .realtor_whatsapp):hover,
body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor-contact-buttons
    > :is(.realtor_call, .realtor_whatsapp):focus {
    border-color: #b89058;
    background: #f7f7f5;
    color: #0f2a44 !important;
}

body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor-contact-buttons
    > :is(.realtor_call, .realtor_whatsapp):focus-visible {
    outline: 3px solid rgba(184, 144, 88, 0.55);
    outline-offset: 2px;
}

body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor-contact-buttons
    > :is(.realtor_call, .realtor_whatsapp)
    i {
    margin-right: 5px;
}

body.single-estate_agent
    .wpestate_single_agent_details_wrapper_type2
    .realtor_call
    .agent_call_no {
    margin-left: 4px;
}

body.single-estate_agent .realtor-contact-buttons .fp-agent-contact-module {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    margin: 3px 0 0;
    overflow: hidden;
    border: 1px solid rgba(184, 144, 88, 0.58);
    border-radius: 12px;
    background: #0f2a44;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.11);
    color: #fff;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__identity {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    width: 34px;
    height: 34px;
    margin: 20px 0 0 18px;
    position: relative;
    border: 1px solid rgba(184, 144, 88, 0.68);
    border-radius: 50%;
    color: #d0ac79;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__identity::before,
body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__identity::after {
    position: absolute;
    content: "";
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__identity::before {
    top: 8px;
    left: 10px;
    width: 12px;
    height: 15px;
    border: 1px solid currentColor;
    border-radius: 2px;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__identity::after {
    top: 12px;
    left: 14px;
    width: 4px;
    height: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 6px 0 -1px #0f2a44, 0 6px 0 0 currentColor;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__badge {
    grid-column: 2;
    margin: 18px 20px 0 14px;
    color: #d0ac79;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.15em;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__title {
    grid-column: 2;
    margin: 6px 20px 0 14px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.18;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__description {
    grid-column: 2;
    margin: 4px 20px 17px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    line-height: 1.45;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-contact-module__actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action-wrap,
body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    margin: 0;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action,
body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent
    .fpcc-public-card-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    box-shadow: none;
    transition: background-color 160ms ease;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action {
    background: rgba(255, 255, 255, 0.08);
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action::before {
    content: "\2193";
    flex: 0 0 auto;
    margin-right: 8px;
    color: #d0ac79;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent
    .fpcc-public-card-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent
    .fpcc-public-card-link::after {
    content: "\203A";
    flex: 0 0 auto;
    margin-left: 8px;
    color: #d0ac79;
    font-size: 20px;
    font-weight: 400;
    line-height: 0;
}

body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action:hover,
body.single-estate_agent
    .realtor-contact-buttons
    .fp-agent-vcard-action:focus,
body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent
    .fpcc-public-card-link:hover,
body.single-estate_agent
    .realtor-contact-buttons
    .fpcc-public-card-link-wrap--agent
    .fpcc-public-card-link:focus {
    background: rgba(255, 255, 255, 0.13);
    color: #fff !important;
}

body.single-estate_agent
    .realtor-contact-buttons
    :is(.fp-agent-vcard-action, .fpcc-public-card-link):focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(184, 144, 88, 0.72);
    outline-offset: -3px;
}

@media (max-width: 430px) {
    body.single-estate_agent
        .wpestate_single_agent_details_wrapper_type2
        .realtor-contact-buttons
        > :is(.realtor_call, .realtor_whatsapp) {
        flex: 1 1 calc(50% - 5px);
        width: auto;
        max-width: none;
    }

    body.single-estate_agent
        .wpestate_single_agent_details_wrapper_type2
        .realtor_call
        .agent_call_no {
        display: none;
    }

    body.single-estate_agent
        .realtor-contact-buttons
        .fp-agent-contact-module__badge {
        margin-right: 15px;
    }

    body.single-estate_agent
        .realtor-contact-buttons
        .fp-agent-contact-module__title {
        margin-right: 15px;
        font-size: 19px;
    }

    body.single-estate_agent
        .realtor-contact-buttons
        .fp-agent-contact-module__description {
        margin-right: 15px;
    }

    body.single-estate_agent
        .realtor-contact-buttons
        :is(.fp-agent-vcard-action, .fpcc-public-card-link-wrap--agent .fpcc-public-card-link) {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 350px) {
    body.single-estate_agent
        .realtor-contact-buttons
        .fp-agent-contact-module__actions {
        grid-template-columns: 1fr;
    }

    body.single-estate_agent
        .realtor-contact-buttons
        .fpcc-public-card-link-wrap--agent {
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        border-left: 0;
    }
}
