/**
 * Floating WhatsApp widget — luxury dark red
 */

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-family: var(--font-body);
}

.wa-float-tooltip {
    background: var(--uf-white);
    color: var(--uf-text);
    border: 1px solid rgba(122, 15, 29, 0.12);
    box-shadow: 0 12px 40px rgba(122, 15, 29, 0.18);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transition: 0.28s var(--ease);
    pointer-events: none;
}

.wa-float:hover .wa-float-tooltip,
.wa-float:focus-within .wa-float-tooltip,
.wa-float.is-open .wa-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wa-float-tooltip strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--uf-burgundy);
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.wa-float-tooltip span {
    display: block;
    font-size: 0.75rem;
    color: var(--uf-text-soft);
    line-height: 1.4;
}

.wa-float-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--uf-burgundy-bright) 0%, var(--uf-burgundy) 55%, var(--uf-burgundy-deep) 100%);
    color: var(--uf-white);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(122, 15, 29, 0.42);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.wa-float-btn i {
    font-size: 1.7rem;
    line-height: 1;
}

.wa-float-btn:hover,
.wa-float-btn:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(122, 15, 29, 0.55);
    color: var(--uf-white);
}

.wa-float-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(139, 26, 43, 0.45);
    animation: wa-pulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.65; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 575.98px) {
    .wa-float {
        right: 0.85rem;
        bottom: 0.85rem;
    }
    .wa-float-btn {
        width: 52px;
        height: 52px;
    }
    .wa-float-btn i {
        font-size: 1.5rem;
    }
    .wa-float-tooltip {
        max-width: 180px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float-btn::before {
        animation: none;
    }
}
