/*
 * Best-WhatsApp Button — Frontend CSS
 * Sized to sit inline with body text (~14-15px), matching Georgia 12pt theme font.
 */

/* ── Reset link styles for our button ── */
a.best-wa-link,
a.best-wa-link:visited,
a.best-wa-link:hover,
a.best-wa-link:focus {
    text-decoration: none !important;
    color: inherit;
    outline: none;
}

/* ── The pill button ── */
.best-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #25D366;
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
    padding: 6px 8px 6px 8px;
    border-radius: 50px;
    box-shadow: 0 1px 4px rgba(37, 211, 102, 0.40),
                0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease,
                box-shadow  0.2s ease,
                transform   0.15s ease;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Subtle shine overlay */
.best-wa-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0)    60%
    );
    border-radius: inherit;
    pointer-events: none;
}

/* ── Hover state ── */
a.best-wa-link:hover .best-wa-btn {
    background: #20BA5A;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.50),
                0 1px 3px  rgba(0, 0, 0, 0.10);
    transform: translateY(-1px);
}

/* ── Active / click state ── */
a.best-wa-link:active .best-wa-btn {
    background: #1DA851;
    box-shadow: 0 1px 4px rgba(37, 211, 102, 0.30);
    transform: translateY(0);
}

/* ── WhatsApp icon ── */
.best-wa-icon {
    font-size: 13px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    flex-shrink: 0;
}

/* ── Phone number text ── */
.best-wa-number {
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

/* ── Accessibility: keyboard focus ring ── */
a.best-wa-link:focus-visible .best-wa-btn {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

/* ── Responsive tweak for very small screens ── */
@media (max-width: 400px) {
    .best-wa-btn {
        font-size: 12px;
        padding: 5px 6px 5px 4px;
    }
    .best-wa-icon {
        font-size: 12px !important;
    }
    .best-wa-number {
        font-size: 12px;
    }
}
