.whatsapp-support-top {
    display: none;
    background: #eff8f2;
    border-bottom: 1px solid #dce8e0;
    text-align: center;
}

body:has(#root .afg-home) .whatsapp-support-top {
    display: block;
}

.whatsapp-support-top a {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 10px;
    min-height: 44px;
    padding: 6px 14px;
    color: #145b39;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.whatsapp-support-top a > span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.whatsapp-support-top a:focus-visible {
    outline: 2px solid #147547;
    outline-offset: -3px;
}

.whatsapp-support {
    position: fixed;
    inset-inline-start: max(20px, env(safe-area-inset-left));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 41;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 7px;
    border: 1px solid #dce8e0;
    border-radius: 999px;
    background: #fff;
    color: #14263d;
    box-shadow: 0 6px 22px rgb(20 38 61 / 14%);
    text-decoration: none;
}

.whatsapp-support:hover {
    background: #f3faf5;
    border-color: #9ac6a7;
}

.whatsapp-support:focus-visible {
    outline: 2px solid #147547;
    outline-offset: 3px;
}

.whatsapp-support svg {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    padding: 7px;
    flex: none;
    border-radius: 50%;
    background: #147547;
    color: #fff;
}

.whatsapp-support__copy {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.whatsapp-support__copy strong {
    font-size: 13px;
}

.whatsapp-support__copy span {
    font-size: 11px;
    color: #46576b;
}

.whatsapp-support--inline {
    position: static;
    display: flex;
    width: fit-content;
    margin: 18px auto 0;
    box-shadow: none;
}

@media (max-width: 767px) {
    .whatsapp-support:not(.whatsapp-support--inline) {
        inset-inline-start: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 5px;
    }

    .whatsapp-support:not(.whatsapp-support--inline) .whatsapp-support__copy {
        display: none;
    }

    body:has(#root .fixed.bottom-0.left-0.right-0) .whatsapp-support:not(.whatsapp-support--inline) {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body:has(.site-live-chat-panel) .whatsapp-support:not(.whatsapp-support--inline) {
        visibility: hidden;
    }
}

@media (max-width: 640px) {
    /* The chat shell spans both corners. Only its controls need to receive taps. */
    .site-live-chat-shell {
        pointer-events: none;
    }

    .site-live-chat-shell > * {
        pointer-events: auto;
    }
}
