.redan-chat-panel {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    box-sizing: border-box;
}

.redan-chat-panel *, .redan-chat-panel *::before, .redan-chat-panel *::after {
    box-sizing: border-box;
}

.redan-chat-panel__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #2d85ff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.redan-chat-panel__toggle:hover { background: #1874f1; }
.redan-chat-panel__toggle:focus-visible, .redan-chat-panel__link:focus-visible { outline: 3px solid #1e5fae; outline-offset: 3px; }
.redan-chat-panel__close-icon, .redan-chat-panel.is-open .redan-chat-panel__toggle-icon { display: none; }
.redan-chat-panel.is-open .redan-chat-panel__close-icon { display: block; }

.redan-chat-panel__links {
    position: absolute;
    right: 6px;
    bottom: 65px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
}

.redan-chat-panel.is-open .redan-chat-panel__links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.redan-chat-panel__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.redan-chat-panel__link:hover { color: #fff; filter: brightness(1.08); }
.redan-chat-panel__link--telegram { background: #29aee3; }
.redan-chat-panel__link--max { background: #2081f2; }
.redan-chat-panel__link--b24 { background: #00aeef; }
.redan-chat-panel__max-mark { font: 700 12px/1 Arial, sans-serif; letter-spacing: -.5px; }

.redan-chat-panel__hint {
    position: absolute;
    top: 50%;
    right: 57px;
    padding: 5px 10px;
    border-radius: 3px;
    color: #fff;
    background: #292929;
    font: 15px/20px Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.redan-chat-panel__link:hover .redan-chat-panel__hint,
.redan-chat-panel__link:focus-visible .redan-chat-panel__hint { opacity: .95; }

@media (max-width: 768px) {
    .redan-chat-panel { right: 20px; bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .redan-chat-panel__links { transition: none; }
}

.redan-b24-launcher-hidden { display: none !important; }
