/* WP WhatsApp Button — frontend */
:root {
    --wpwa-color: #25D366;
    --wpwa-shadow: 0 4px 20px rgba(0,0,0,.25);
    --wpwa-z: 99999;
}

.wpwa-wrap {
    position: fixed;
    z-index: var(--wpwa-z);
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.wpwa-bottom-right { bottom: 24px; right: 24px; flex-direction: row-reverse; }
.wpwa-bottom-left  { bottom: 24px; left:  24px; flex-direction: row; }

/* Ascuns până JS îl afișează */
.wpwa-hidden { opacity: 0; pointer-events: none; transform: scale(.7); transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.wpwa-visible { opacity: 1; pointer-events: all; transform: scale(1); }

/* ── Buton ──────────────────────────────────────────── */
.wpwa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wpwa-color);
    color: #fff;
    box-shadow: var(--wpwa-shadow);
    text-decoration: none;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wpwa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,.32);
    color: #fff;
}

.wpwa-btn:focus-visible {
    outline: 3px solid var(--wpwa-color);
    outline-offset: 4px;
}

.wpwa-icon {
    width: 34px;
    height: 34px;
    color: var(--wpwa-color);
}

/* ── Puls animație ──────────────────────────────────── */
.wpwa-pulse::before,
.wpwa-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wpwa-color);
    opacity: .4;
    animation: wpwa-pulse 2.2s ease-out infinite;
    z-index: -1;
}
.wpwa-pulse::after { animation-delay: 1.1s; }

@keyframes wpwa-pulse {
    0%   { transform: scale(1);   opacity: .4; }
    100% { transform: scale(1.9); opacity: 0;  }
}

/* ── Badge ──────────────────────────────────────────── */
.wpwa-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: -apple-system, sans-serif;
    animation: wpwa-badge-in .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes wpwa-badge-in {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── Tooltip ────────────────────────────────────────── */
.wpwa-tooltip {
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 8px 13px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    position: relative;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.wpwa-wrap:hover .wpwa-tooltip,
.wpwa-wrap:focus-within .wpwa-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.wpwa-tooltip-arrow {
    position: absolute;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #1f2937;
    transform: rotate(45deg);
    border-radius: 2px;
}

.wpwa-bottom-right .wpwa-tooltip-arrow { right: 22px; }
.wpwa-bottom-left  .wpwa-tooltip-arrow { left:  22px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .wpwa-bottom-right { bottom: 16px; right: 16px; }
    .wpwa-bottom-left  { bottom: 16px; left:  16px; }
    .wpwa-btn          { width: 54px; height: 54px; }
    .wpwa-icon         { width: 30px; height: 30px; }
}
