/* ─── CarSell — WhatsApp Buttons ─────────────────────────────────────────── */

/* ── Inline block (chat + share together) ────────────────────────────────── */

.cswa-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Shared button base ───────────────────────────────────────────────────── */

.cswa-chat-btn,
.cswa-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1;
}

.cswa-chat-btn:hover,
.cswa-share-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Chat button — solid green ───────────────────────────────────────────── */

.cswa-chat-btn {
    background: #25d366;
    color: #fff;
    border: 2px solid #25d366;
}

.cswa-chat-btn:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

/* ── Share button — outline ──────────────────────────────────────────────── */

.cswa-share-btn {
    background: #fff;
    color: #25d366;
    border: 2px solid #25d366;
}

.cswa-share-btn:hover {
    background: #f0fdf4;
    color: #1ebe5d;
    border-color: #1ebe5d;
}

/* ── Icon ────────────────────────────────────────────────────────────────── */

.cswa-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Floating sticky button (mobile only) ────────────────────────────────── */

.cswa-float {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9990;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .45);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.cswa-float:hover {
    background: #1ebe5d;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .55);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.cswa-float svg {
    flex-shrink: 0;
}

/* Show on mobile */
@media ( max-width: 768px ) {
    .cswa-float {
        display: flex;
    }

    /* Push content up so the float doesn't cover the page bottom */
    body {
        padding-bottom: 80px;
    }
}

/* Pulse animation on load to draw attention */
@keyframes cswa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.cswa-float {
    animation: cswa-pulse 2s ease-out 1s 3;
}
