/* Atalho compartilhado do WhatsApp institucional. */
.abba-whatsapp-contact {
    --abba-whatsapp-size: 60px;
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 1038;
    display: inline-grid;
    place-items: center;
    width: var(--abba-whatsapp-size);
    height: var(--abba-whatsapp-size);
    color: #fff;
    background: #168c46;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    box-shadow: 0 .65rem 1.6rem rgba(4, 40, 22, .3);
    text-decoration: none;
    isolation: isolate;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.abba-whatsapp-contact--portal {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.abba-whatsapp-contact i,
.abba-whatsapp-contact i::before {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
    color: #fff !important;
    fill: #fff !important;
    stroke: none !important;
    font-size: 1.85rem;
    line-height: 1;
}

.abba-whatsapp-contact i {
    font-family: "bootstrap-icons" !important;
    font-style: normal !important;
}

.abba-whatsapp-contact:hover {
    color: #fff;
    background: #117a3b;
    box-shadow: 0 .85rem 2rem rgba(4, 40, 22, .38);
    transform: translateY(-3px) scale(1.03);
}

.abba-whatsapp-contact:focus-visible {
    color: #fff;
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(22, 140, 70, .42), 0 .85rem 2rem rgba(4, 40, 22, .38);
}

.abba-whatsapp-contact::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + .75rem);
    top: 50%;
    width: max-content;
    max-width: min(15rem, calc(100vw - 6.5rem));
    padding: .45rem .65rem;
    color: #fff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .5rem;
    box-shadow: 0 .45rem 1.2rem rgba(0, 0, 0, .24);
    font: 600 .8rem/1.25 "Segoe UI", sans-serif;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(.35rem, -50%);
    transition: opacity .16s ease, transform .16s ease;
}

.abba-whatsapp-contact:hover::after,
.abba-whatsapp-contact:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.abba-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 575.98px) {
    .abba-whatsapp-contact {
        --abba-whatsapp-size: 54px;
        right: max(.8rem, env(safe-area-inset-right));
        bottom: max(.8rem, env(safe-area-inset-bottom));
    }

    .abba-whatsapp-contact--portal {
        bottom: max(.8rem, env(safe-area-inset-bottom));
    }

    .abba-whatsapp-contact::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .abba-whatsapp-contact,
    .abba-whatsapp-contact::after {
        transition: none;
    }

    .abba-whatsapp-contact:hover { transform: none; }
}
