.site-whatsapp-widget {
    position: fixed;
    z-index: 9810;
    right: 25px;
    bottom: 88px;
    font-family: inherit;
}

.site-whatsapp-float {
    position: relative;
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #20c866;
    box-shadow: 0 12px 28px rgba(5, 101, 53, .24);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.site-whatsapp-float::before {
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(32, 200, 102, .24);
    border-radius: 50%;
    content: '';
}

.site-whatsapp-float:hover,
.site-whatsapp-float:focus-visible {
    transform: translateY(-3px);
    background: #19b85b;
    box-shadow: 0 15px 30px rgba(5, 101, 53, .3);
    color: #fff;
}

.site-whatsapp-float:focus-visible,
.site-whatsapp-panel :focus-visible {
    outline: 3px solid rgba(33, 90, 218, .38);
    outline-offset: 3px;
}

.site-whatsapp-float__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    display: flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ee3c45;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.site-whatsapp-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    width: min(396px, calc(100vw - 32px));
    max-height: calc(100vh - 175px);
    max-height: calc(100dvh - 175px);
    border: 1px solid #e6eceb;
    border-radius: 20px;
    background: #f7f9f8;
    box-shadow: 0 24px 64px rgba(17, 49, 42, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.94);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity .25s ease, transform .32s cubic-bezier(.2, .75, .25, 1), visibility .25s;
}

.site-whatsapp-widget.is-open .site-whatsapp-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-whatsapp-panel__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(120deg, #0f7168, #0d8b7e);
    color: #fff;
}

.site-whatsapp-panel__brand {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 25px;
}

.site-whatsapp-panel__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.site-whatsapp-panel__heading h2,
.site-whatsapp-panel__heading p {
    margin: 0;
    color: #fff;
}

.site-whatsapp-panel__heading h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.site-whatsapp-panel__heading p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
}

.site-whatsapp-panel__close {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.site-whatsapp-panel__close:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.site-whatsapp-panel__body {
    overflow-y: auto;
    padding: 20px;
}

.site-whatsapp-panel__greeting {
    max-width: 96%;
    margin: 0 0 20px;
    padding: 15px 16px;
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(30, 56, 51, .08);
    color: #354357;
    font-size: 14px;
    line-height: 1.5;
}

.site-whatsapp-panel__label {
    display: block;
    margin-bottom: 7px;
    color: #354357;
    font-size: 13px;
    font-weight: 600;
}

.site-whatsapp-panel textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid #bac9c5;
    border-radius: 11px;
    background: #fff;
    color: #263448;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
}

.site-whatsapp-panel textarea:focus {
    border-color: #20c866;
    outline: 3px solid rgba(32, 200, 102, .18);
}

.site-whatsapp-panel__send {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
    border-radius: 10px;
    background: #20c866;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.site-whatsapp-panel__send:hover,
.site-whatsapp-panel__send:focus-visible {
    transform: translateY(-1px);
    background: #18b65a;
    color: #fff;
}

.site-whatsapp-panel__note {
    margin: 10px 0 0;
    color: #7b8984;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

body.offcanvas-menu-active .site-whatsapp-widget {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .site-whatsapp-widget {
        bottom: 114px;
    }

    .site-whatsapp-panel {
        max-height: calc(100vh - 200px);
        max-height: calc(100dvh - 200px);
    }
}

@media (max-width: 767px) {
    .site-whatsapp-widget {
        right: 20px;
        bottom: calc(138px + env(safe-area-inset-bottom, 0px));
    }

    .site-whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }

    .site-whatsapp-panel {
        width: min(396px, calc(100vw - 48px));
        max-height: calc(100vh - 220px);
        max-height: calc(100dvh - 220px - env(safe-area-inset-bottom, 0px));
    }

    .site-whatsapp-panel__header,
    .site-whatsapp-panel__body {
        padding: 17px;
    }

    .recaptcha-corner-mode .site-whatsapp-widget {
        bottom: calc(142px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-whatsapp-panel,
    .site-whatsapp-float,
    .site-whatsapp-panel__send {
        transition-duration: .01ms;
    }
}
