.pcsoft-max-launcher {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(max(20px, env(safe-area-inset-bottom)) + 56px);
    z-index: 2147483644;
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #471aff;
}

body:has(> button[aria-label="Открыть чат поддержки"]:not([style*="display: none"])) > .pcsoft-max-launcher {
    display: grid;
}

.pcsoft-max-launcher img {
    display: block;
    width: 28px;
    height: 28px;
}

.pcsoft-max-launcher:hover {
    background: #3f16e6;
}

.pcsoft-max-launcher:focus-visible {
    outline: 2px solid #2456f0;
    outline-offset: 3px;
}

a.pcsoft-max-contact {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    gap: 7px;
    min-height: 36px;
    margin-inline-start: 6px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #dbe2f3;
    border-radius: 10px;
    background: #fff;
    color: #17203c;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none;
}

a.pcsoft-max-contact:hover {
    border-color: #2456f0;
    color: #2456f0;
    text-decoration: none;
}

a.pcsoft-max-contact:focus-visible {
    outline: 2px solid #2456f0;
    outline-offset: 2px;
}

.pcsoft-max-contact__mark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 7px;
    background: #471aff;
}

.pcsoft-max-contact__mark img {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
}

a.pcsoft-max-contact--compact {
    min-width: 36px;
    padding: 5px;
}

.pcsoft-max-contact--compact .pcsoft-max-contact__label {
    display: none;
}

.pcsoft-max-pair {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.pcsoft-menu__top-inner > .pcsoft-max-pair {
    margin-inline-start: auto;
}

.pcsoft-menu__support + a.pcsoft-max-contact {
    min-width: 28px;
    min-height: 28px;
    padding: 3px;
    border-radius: 8px;
}

.pcsoft-menu__support + a.pcsoft-max-contact .pcsoft-max-contact__mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.pcsoft-max-pair--card {
    display: grid;
    position: relative;
    align-items: stretch;
}

.pcsoft-max-pair--card > :is(.pc-trust__item, .pcsoft-f2-tb) {
    padding-inline-end: 52px;
}

.pcsoft-max-pair--card > .pcsoft-max-contact {
    position: absolute;
    inset: 50% 9px auto auto;
    margin: 0;
    transform: translateY(-50%);
}

@media (max-width: 359px), (min-width: 901px) {
    a.pcsoft-max-contact--mobile-header {
        display: none;
    }
}
