#talks {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 80;
    display: flex;
    width: 52px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    isolation: isolate;
}

/* Override the legacy CustomerChat rail skin while keeping that plugin installed. */
html body #talks {
    width: 52px !important;
    gap: 9px !important;
}

#talks .servicecus-contact-link {
    position: relative;
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(8, 32, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

html body #talks > a.servicecus-contact-link {
    box-sizing: border-box !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

html body #talks > a.servicecus-contact-link::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

#talks .servicecus-contact-link:hover,
#talks .servicecus-contact-link:focus-visible {
    z-index: 2;
    color: #fff;
    filter: saturate(1.08) brightness(1.04);
    outline: none;
    transform: translateX(-3px) scale(1.08);
    box-shadow: 0 12px 28px rgba(8, 32, 42, .28), 0 0 0 3px rgba(255, 255, 255, .72);
}

#talks .servicecus-channel-icon {
    font-size: 23px;
    line-height: 1;
}

#talks .servicecus-channel-label {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    width: max-content;
    max-width: 190px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    background: rgba(8, 29, 38, .94);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

#talks .servicecus-channel-label::after {
    position: absolute;
    top: 50%;
    left: 100%;
    border: 5px solid transparent;
    border-left-color: rgba(8, 29, 38, .94);
    content: '';
    transform: translateY(-50%);
}

#talks .servicecus-contact-link:hover .servicecus-channel-label,
#talks .servicecus-contact-link:focus-visible .servicecus-channel-label {
    opacity: 1;
    transform: translate(0, -50%);
}

html body #talks > a.servicecus-channel-whatsapp { background: #20bd5a !important; }
html body #talks > a.servicecus-channel-messenger { background: linear-gradient(145deg, #00b2ff 0%, #006aff 62%, #7b37ff 100%) !important; }
html body #talks > a.servicecus-channel-instagram { background: radial-gradient(circle at 31% 102%, #ffd600 0 22%, #ff7a00 35%, #ff0169 59%, #d300c5 78%, #7638fa 100%) !important; }
html body #talks > a.servicecus-channel-telegram { background: linear-gradient(145deg, #35b9f1, #168ac7) !important; }
html body #talks > a.servicecus-channel-tiktok { background: #111 !important; }
html body #talks > a.servicecus-channel-email { background: linear-gradient(145deg, #37cfc6, #0c7788) !important; }

#talks .servicecus-channel-tiktok .servicecus-channel-icon {
    text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55;
}

/* The live-chat service remains installed; only its launcher is temporarily hidden. */
.airevo-chat__launcher,
html body #talks .airevo-chat__launcher,
html body.page-home #talks .airevo-chat__launcher,
html body.page-product #talks .airevo-chat__launcher {
    display: none !important;
}

/* Back to top */
#back-top {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 80;
    display: none;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    background: linear-gradient(145deg, #37cfc6, #0c7788);
    box-shadow: 0 8px 22px rgba(8, 32, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#back-top:hover {
    filter: saturate(1.08) brightness(1.04);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 12px 28px rgba(8, 32, 42, .28), 0 0 0 3px rgba(255, 255, 255, .72);
}

#back-top > a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    color: #fff;
    text-decoration: none;
}

#back-top > a:focus-visible {
    border-radius: inherit;
    outline: 3px solid rgba(32, 207, 192, .32);
    outline-offset: 3px;
}

#back-top span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

#back-top span i { font-size: 23px; }
#back-top span svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

@media (max-width: 768px) {
    html body #talks { display: none !important; }
}

@media (min-width: 769px) and (max-height: 780px) {
    #talks { gap: 7px; }
    #talks .servicecus-contact-link {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #talks .servicecus-contact-link,
    #talks .servicecus-channel-label,
    #back-top { transition: none; }
}
