/* Lightweight floating WhatsApp button. All selectors scoped to the plugin. */
.lfwhatsapp {
    position: fixed;
    bottom: calc(var(--lfwhatsapp-bottom, 24px) + env(safe-area-inset-bottom, 0px));
    z-index: 99998;
    width: max-content;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.lfwhatsapp--left { left: calc(20px + env(safe-area-inset-left, 0px)); }
.lfwhatsapp--right { right: calc(20px + env(safe-area-inset-right, 0px)); }
.lfwhatsapp__link,
.lfwhatsapp__link:hover,
.lfwhatsapp__link:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 58px;
    min-height: 58px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}
.lfwhatsapp__link:hover { background: #16a34a; transform: translateY(-2px); }
.lfwhatsapp__link:focus-visible { outline: 3px solid #0f766e; outline-offset: 4px; }
.lfwhatsapp__icon {
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: #fff;
}
.lfwhatsapp__icon svg { width: 31px; height: 31px; display: block; }
.lfwhatsapp__text { display: none; }
.lfwhatsapp--show-label .lfwhatsapp__link { padding: 0 20px 0 14px; }
.lfwhatsapp--show-label .lfwhatsapp__text {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .01em;
    color: #fff;
}
@media (max-width: 767px) {
    .lfwhatsapp--left { left: calc(14px + env(safe-area-inset-left, 0px)); }
    .lfwhatsapp--right { right: calc(14px + env(safe-area-inset-right, 0px)); }
    .lfwhatsapp__link,
    .lfwhatsapp__link:hover,
    .lfwhatsapp__link:focus { min-height: 52px; min-width: 52px; padding: 0; }
    .lfwhatsapp__icon, .lfwhatsapp__icon svg { width: 28px; height: 28px; }
    .lfwhatsapp--show-label .lfwhatsapp__link { padding: 0; }
    .lfwhatsapp--show-label .lfwhatsapp__text { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .lfwhatsapp__link { transition: transform .16s ease, background-color .16s ease; }
}
