.ep-profile__contacts > div:has(> [data-ep-phone]) {
    flex: 0 0 100%;
}

.ej-profile-data--public .ej-profile-data__list > div:has(.ep-contact-phone) {
    grid-column: 1 / -1;
}

.ep-contact-phone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    overflow-wrap: anywhere;
}

.ep-contact-phone + .ep-contact-phone {
    margin-top: 7px;
}

.ep-contact-phone > .ep-phone-chat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--ep-phone-chat-bg);
    color: var(--ep-phone-chat-text);
    font-size: 13px;
    text-decoration: none;
}

.ep-contact-phone > .ep-phone-chat:hover,
.ep-contact-phone > .ep-phone-chat:focus-visible {
    color: var(--ep-phone-chat-text);
    text-decoration: underline;
}

.ep-phone-chat::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: currentColor;
    mask: var(--ep-phone-chat-icon) center / contain no-repeat;
}

/* Brand outlines by Fonticons, Inc., Font Awesome Free 6.x (https://fontawesome.com/).
   CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Themed fills. */
.ep-phone-chat--viber {
    --ep-phone-chat-bg: #f1eafd;
    --ep-phone-chat-text: #673daa;
    --ep-phone-chat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22M444%2049.9C431.3%2038.2%20379.9.9%20265.3.4c0%200-135.1-8.1-200.9%2052.3C27.8%2089.3%2014.9%20143%2013.5%20209.5c-1.4%2066.5-3.1%20191.1%20117%20224.9h.1l-.1%2051.6s-.8%2020.9%2013%2025.1c16.6%205.2%2026.4-10.7%2042.3-27.8%208.7-9.4%2020.7-23.2%2029.8-33.7%2082.2%206.9%20145.3-8.9%20152.5-11.2%2016.6-5.4%20110.5-17.4%20125.7-142%2015.8-128.6-7.6-209.8-49.8-246.5zM457.9%20287c-12.9%20104-89%20110.6-103%20115.1-6%201.9-61.5%2015.7-131.2%2011.2%200%200-52%2062.7-68.2%2079-5.3%205.3-11.1%204.8-11-5.7%200-6.9.4-85.7.4-85.7-.1%200-.1%200%200%200-101.8-28.2-95.8-134.3-94.7-189.8%201.1-55.5%2011.6-101%2042.6-131.6%2055.7-50.5%20170.4-43%20170.4-43%2096.9.4%20143.3%2029.6%20154.1%2039.4%2035.7%2030.6%2053.9%20103.8%2040.6%20211.1zm-139-80.8c.4%208.6-12.5%209.2-12.9.6-1.1-22-11.4-32.7-32.6-33.9-8.6-.5-7.8-13.4.7-12.9%2027.9%201.5%2043.4%2017.5%2044.8%2046.2zm20.3%2011.3c1-42.4-25.5-75.6-75.8-79.3-8.5-.6-7.6-13.5.9-12.9%2058%204.2%2088.9%2044.1%2087.8%2092.5-.1%208.6-13.1%208.2-12.9-.3zm47%2013.4c.1%208.6-12.9%208.7-12.9.1-.6-81.5-54.9-125.9-120.8-126.4-8.5-.1-8.5-12.9%200-12.9%2073.7.5%20133%2051.4%20133.7%20139.2zM374.9%20329v.2c-10.8%2019-31%2040-51.8%2033.3l-.2-.3c-21.1-5.9-70.8-31.5-102.2-56.5-16.2-12.8-31-27.9-42.4-42.4-10.3-12.9-20.7-28.2-30.8-46.6-21.3-38.5-26-55.7-26-55.7-6.7-20.8%2014.2-41%2033.3-51.8h.2c9.2-4.8%2018-3.2%2023.9%203.9%200%200%2012.4%2014.8%2017.7%2022.1%205%206.8%2011.7%2017.7%2015.2%2023.8%206.1%2010.9%202.3%2022-3.7%2026.6l-12%209.6c-6.1%204.9-5.3%2014-5.3%2014s17.8%2067.3%2084.3%2084.3c0%200%209.1.8%2014-5.3l9.6-12c4.6-6%2015.7-9.8%2026.6-3.7%2014.7%208.3%2033.4%2021.2%2045.8%2032.9%207%205.7%208.6%2014.4%203.8%2023.6z%22%2F%3E%3C%2Fsvg%3E");
}

.ep-phone-chat--whatsapp {
    --ep-phone-chat-bg: #e9f7ef;
    --ep-phone-chat-text: #136347;
    --ep-phone-chat-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20d%3D%22M380.9%2097.1C339%2055.1%20283.2%2032%20223.9%2032c-122.4%200-222%2099.6-222%20222%200%2039.1%2010.2%2077.3%2029.6%20111L0%20480l117.7-30.9c32.4%2017.7%2068.9%2027%20106.1%2027h.1c122.3%200%20224.1-99.6%20224.1-222%200-59.3-25.2-115-67.1-157zm-157%20341.6c-33.2%200-65.7-8.9-94-25.7l-6.7-4-69.8%2018.3L72%20359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2%200-101.7%2082.8-184.5%20184.6-184.5%2049.3%200%2095.6%2019.2%20130.4%2054.1%2034.8%2034.9%2056.2%2081.2%2056.1%20130.5%200%20101.8-84.9%20184.6-186.6%20184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5%202.8-3.7%205.6-14.3%2018-17.6%2021.8-3.2%203.7-6.5%204.2-12%201.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8%205.7-9.1%2016.3-30.3%201.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7%200-9.7%201.4-14.8%206.9-5.1%205.6-19.4%2019-19.4%2046.3%200%2027.3%2019.9%2053.7%2022.6%2057.4%202.8%203.7%2039.1%2059.7%2094.8%2083.8%2035.2%2015.2%2049%2016.5%2066.6%2013.9%2010.7-1.6%2032.8-13.4%2037.4-26.4%204.6-13%204.6-24.1%203.2-26.4-1.3-2.5-5-3.9-10.5-6.6z%22%2F%3E%3C%2Fsvg%3E");
}

[data-theme="dark"] .ep-phone-chat--viber {
    --ep-phone-chat-bg: #392c4e;
    --ep-phone-chat-text: #dec5ff;
}

[data-theme="dark"] .ep-phone-chat--whatsapp {
    --ep-phone-chat-bg: #233f35;
    --ep-phone-chat-text: #9de3bf;
}

@media (pointer: coarse) {
    .ep-contact-phone > .ep-phone-chat {
        min-height: 44px;
    }
}
