/* =======================
   Shared WhatsApp CTA button
   Used by inc/buttons/whatsapp-cta.php everywhere: header,
   product page, category archive, and every landing page fragment.
======================= */

.qe-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--qe-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    padding: 14px 28px;
    border: 2px solid var(--qe-black);
    border-radius: var(--qe-radius);
    background: var(--qe-black);
    color: var(--qe-white);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.qe-whatsapp-cta:hover,
.qe-whatsapp-cta:focus-visible {
    background: var(--qe-red);
    border-color: var(--qe-red);
    color: var(--qe-white);
}

/* Primary CTA variant: one per page (hero, final closing CTA, get-a-quote) */
.qe-whatsapp-cta--red {
    background: var(--qe-red);
    border-color: var(--qe-red);
}

.qe-whatsapp-cta--red:hover,
.qe-whatsapp-cta--red:focus-visible {
    background: var(--qe-black);
    border-color: var(--qe-black);
}

.qe-whatsapp-cta__icon {
    display: inline-flex;
    line-height: 0;
}

.qe-whatsapp-cta__icon svg {
    display: block;
}

/* Compact variant: header, inline mentions — anywhere the full-size
   14px/28px padded button would be too tall for the surrounding row. */
.qe-whatsapp-cta--sm {
    padding: 9px 16px;
    font-size: 12px;
    gap: 7px;
}

.qe-whatsapp-cta--sm .qe-whatsapp-cta__icon svg {
    width: 14px;
    height: 14px;
}

/* Sticky mobile bar for landing pages (optional wrapper: <div class="qe-sticky-cta">…</div>) */
.qe-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
    justify-content: center;
    padding: 10px 16px;
    background: var(--qe-white);
    border-top: 1px solid var(--qe-gray-border);
}

@media (max-width: 768px) {
    .qe-sticky-cta {
        display: flex;
    }
    .qe-sticky-cta .qe-whatsapp-cta {
        width: 100%;
    }
}
