header .phone-box.grpls-contacts-installed > #phone { display: none !important; }
@media (min-width: 992px) {
    header.grpls-contacts-open {
        z-index: 1050 !important;
        overflow: visible !important;
    }
    header.grpls-contacts-open ~ .menu-header-box {
        z-index: 49 !important;
    }
}
header.grpls-contacts-positioned { position: relative; }
header .phone-box.grpls-contacts-installed {
    overflow: visible;
    align-self: center;
}

.grpls-contact-menu,
.grpls-drawer-contacts {
    --grpls-teal: #4ECDC4;
    --grpls-ink: #2B2D42;
    color: var(--grpls-ink);
    text-align: left;
}

header .phone-box > .grpls-contact-menu { display: inline-block; position: relative; max-width: 100%; }
.grpls-contact-menu[open] { z-index: 100; }
.grpls-contact-menu > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--grpls-teal);
    border-radius: 12px;
    background: #f3fcfb;
    cursor: pointer;
    list-style: none;
}
.grpls-contact-menu > summary::-webkit-details-marker { display: none; }
.grpls-contact-menu[open] > summary { background: #e6f9f7; }
.grpls-contact-menu :focus-visible,
.grpls-drawer-contacts :focus-visible { outline: 2px solid var(--grpls-ink); outline-offset: 2px; }
.grpls-contact-menu__main, .grpls-contact-menu__hours { display: block; white-space: nowrap; }
.grpls-contact-menu__main { font-size: 16px; font-weight: 700; line-height: 1.25; }
.grpls-contact-menu__hours { font-size: 12px; }
.grpls-contact-menu__hours:empty { display: none; }
.grpls-contact-menu__info { margin: 0; padding: 7px 8px; white-space: pre-line; font-size: 13px; line-height: 1.5; }
.grpls-contact-menu__arrow { font-size: 15px; }
.grpls-contact-menu__arrow { display: inline-block; width: 12px; text-align: center; line-height: 1; }
.grpls-contact-menu[open] .grpls-contact-menu__arrow { transform: rotate(180deg); }
.grpls-contact-menu__panel {
    position: absolute;
    top: 100%;
    right: 0;
    box-sizing: border-box;
    width: 284px;
    max-width: calc(100vw - 24px);
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--grpls-teal);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(43, 45, 66, .16);
    font-size: 14px;
    line-height: 1.4;
}
.grpls-contact-menu__item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--grpls-ink);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.grpls-contact-menu__item:hover { background: #e6f9f7; color: var(--grpls-ink); text-decoration: none; }
.grpls-contact-menu__icon {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    color: var(--grpls-ink);
    background: var(--grpls-teal);
}
.grpls-contact-menu__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.grpls-contact-menu__icon--callback { color: #fff; background: var(--grpls-ink); }
.grpls-contact-menu__icon--viber { color: #fff; background: #7360F2; }
.grpls-contact-menu__icon--whatsapp { color: #073a25; background: #25D366; }
.grpls-contact-menu__icon--telegram { color: #fff; background: #229ED9; }
.grpls-contact-menu__icon--signal { color: #fff; background: #3A76F0; }
.grpls-contact-menu__icon--messenger { color: #fff; background: #0866FF; }
.grpls-contact-menu__icon--instagram { color: #fff; background: linear-gradient(40deg, #FCAF45, #E1306C 52%, #833AB4); }
.grpls-contact-menu__icon--map { color: #fff; background: #1A73E8; }
.grpls-contact-menu__icon--facebook { color: #fff; background: #1877F2; }
.grpls-contact-menu__icon--youtube { color: #fff; background: #FF0000; }
.grpls-drawer-contacts { clear: both; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--grpls-teal); }
.grpls-drawer-contacts h3 { margin: 0 8px 6px; font-size: 14px; font-weight: 700; }
.grpls-drawer-contacts .grpls-contact-menu__item { min-height: 42px; }

@media (max-width: 991px) {
    header.grpls-contacts-open {
        z-index: auto !important;
        overflow: visible !important;
    }
    header .phone-box > .grpls-contact-menu[open] { z-index: 50; }
    .grpls-contact-header-row { display: flex; flex-wrap: wrap; align-items: center; }
    .grpls-contact-header-row > .logo-top { order: 0; flex: 0 0 50%; max-width: 50%; }
    .grpls-contact-header-row > .phone-box.grpls-contacts-installed {
        display: block !important;
        order: 1;
        flex: 0 0 50%;
        max-width: 50%;
        margin-left: auto;
        margin-right: 0;
        text-align: right;
    }
    header .phone-box > .grpls-contact-menu { vertical-align: middle; }
    .grpls-contact-menu > summary { gap: 5px; padding: 5px 6px; border-radius: 8px; }
    .grpls-contact-menu__main { font-size: 12px; }
    .grpls-contact-menu__hours { font-size: 10px; }
    .grpls-contact-menu > summary .grpls-contact-menu__icon { flex-basis: 20px; width: 20px; height: 20px; border-radius: 5px; }
    .grpls-contact-menu > summary .grpls-contact-menu__icon svg { width: 13px; height: 13px; }
    .grpls-contact-menu__panel .grpls-contact-menu__item { min-height: 42px; }
}
