/* ── WhatsApp Floating Button – Frontend Styles ─────────────────────── */

/* Floating button base */
.wfb-float {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: wfb-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.wfb-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.wfb-float svg {
    width: 58%;
    height: 58%;
    fill: #ffffff;
    display: block;
}

/* Sizes */
.wfb-size-small  { width: 50px; height: 50px; }
.wfb-size-medium { width: 60px; height: 60px; }
.wfb-size-large  { width: 70px; height: 70px; }

/* Positions */
.wfb-pos-bottom-right { bottom: 28px; right: 28px; }
.wfb-pos-bottom-left  { bottom: 28px; left: 28px; }
.wfb-pos-top-right    { top: 28px;    right: 28px; }
.wfb-pos-top-left     { top: 28px;    left: 28px; }

/* Tooltip */
.wfb-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tooltip positioning based on button corner */
.wfb-pos-bottom-right .wfb-tooltip,
.wfb-pos-top-right    .wfb-tooltip {
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}
.wfb-pos-bottom-left .wfb-tooltip,
.wfb-pos-top-left    .wfb-tooltip {
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
}

.wfb-float:hover .wfb-tooltip { opacity: 1; }

/* Inline shortcode button */
.wfb-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wfb-inline-btn:hover {
    background: #1da851;
    color: #fff;
}

/* Entry animation */
@keyframes wfb-pop-in {
    0%   { transform: scale(0); opacity: 0; }
    80%  { transform: scale(1.08); }
    100% { transform: scale(1);    opacity: 1; }
}

/* Pulse ring (subtle) */
.wfb-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.5);
    animation: wfb-pulse 2.5s ease-out infinite;
}
@keyframes wfb-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Accessibility */
.wfb-float:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
