/* WhatsApp Floating Action Button */
.whatsapp-fab-wrapper {
    position: fixed;
    left: calc(24px + var(--safe-left));
    bottom: calc(24px + var(--safe-bottom));
    z-index: 950;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

.whatsapp-fab {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 999px;
    border: none;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.whatsapp-fab:hover:not(:disabled) {
    transform: translateY(-1px);
}

.whatsapp-fab:disabled {
    opacity: 0.6;
    cursor: default;
}

.whatsapp-fab-icon {
    width: 28px;
    height: 28px;
}

.whatsapp-fab-error {
    pointer-events: auto;
    max-width: 240px;
    background: var(--bg);
    color: var(--t1);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: var(--shadow);
}

/* Responsive breakpoints mirror .fab-launch in app.css */
@media (max-width: 900px) {
    .whatsapp-fab-wrapper {
        left: calc(16px + var(--safe-left));
        bottom: calc(16px + var(--safe-bottom));
    }
}

@media (max-width: 600px) {
    .whatsapp-fab-wrapper {
        left: calc(12px + var(--safe-left));
        bottom: calc(12px + var(--safe-bottom));
    }

    .whatsapp-fab {
        width: 50px;
        height: 50px;
    }

    .whatsapp-fab-icon {
        width: 24px;
        height: 24px;
    }
}
