/* =============================================================
   WhatsApp Order Button – Frontend Styles
   ============================================================= */

/* ── Button base ── */
.wob-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;

    background-color: #25d366 !important;
    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;

    padding: 0.65em 1.3em;
    border-radius: 50px;
    border: 2px solid transparent !important;

    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);

    /* prevent WooCommerce themes from overriding button colours */
    background-image: none !important;
}

/* ── Hover / focus ── */
.wob-whatsapp-btn:hover,
.wob-whatsapp-btn:focus {
    background-color: #1ebe5d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    outline: none;
}

/* ── Active (click) ── */
.wob-whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

/* ── SVG icon ── */
.wob-icon {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    /* inherit the white colour from the parent anchor */
    fill: currentColor;
}

/* ── Shop page loop: add spacing around the button ── */
.products .wob-whatsapp-btn {
    margin-top: 0.6em;
    width: 100%;
    justify-content: center;
}

/* ── Single product page: add spacing above the button ── */
.woocommerce-product-details__short-description + .wob-whatsapp-btn,
.product .wob-whatsapp-btn {
    margin-top: 1em;
}

/* ── Fallback "no number" notice ── */
.wob-no-number {
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
}
