/* Floating WhatsApp contact — bottom-left, every public page.
   Colours and sizes follow the widget on vinnisoft.com. */

.vs-wa {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 980;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* ------------------------------- Launcher ------------------------------ */
.vs-wa-launch {
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s var(--vs-ease, ease), background-color 0.25s var(--vs-ease, ease);
}
.vs-wa-launch:hover { background: #1ebe5d; transform: translateY(-2px); }
.vs-wa-launch:active { transform: scale(0.96); }
.vs-wa-launch .fa { position: relative; z-index: 1; }

.vs-wa-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.25;
    animation: vs-wa-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes vs-wa-ping {
    75%, 100% { transform: scale(1.9); opacity: 0; }
}

/* The launcher turns into a close affordance while the card is open. */
.vs-wa.is-open .vs-wa-ping { display: none; }

/* --------------------------------- Card -------------------------------- */
.vs-wa-panel {
    width: calc(100vw - 48px);
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    color: #111;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-origin: bottom left;
    animation: vs-wa-in 0.22s var(--vs-ease, ease);
}
.vs-wa-panel[hidden] { display: none; }
@keyframes vs-wa-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

.vs-wa-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: #25d366;
}
.vs-wa-title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 600;
    color: #fff;
}
.vs-wa-note {
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.78);
}
.vs-wa-close {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: color 0.2s ease;
}
.vs-wa-close:hover { color: #fff; }

.vs-wa-body { padding: 18px 16px 12px; }
.vs-wa-bubble {
    margin: 0;
    width: fit-content;
    max-width: 90%;
    padding: 12px 15px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    background: #f1f0f0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #111;
}

.vs-wa-foot { padding: 8px 16px 18px; }
.vs-wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.vs-wa-cta:hover { background: #1ebe5d; color: #fff; }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 767px) {
    .vs-wa { left: 12px; bottom: 16px; gap: 10px; }
    .vs-wa-launch { width: 48px; height: 48px; font-size: 1.4rem; }
    .vs-wa-panel { width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
    .vs-wa-ping { animation: none; }
    .vs-wa-panel { animation: none; }
    .vs-wa-launch { transition: none; }
    .vs-wa-launch:hover { transform: none; }
}
