/* ============================================
   WooCommerce WhatsApp Button v2 — Styles
   ============================================ */

/* ── Make product card wrapper relative so icon can position inside it ── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative !important;
}

/* ── Small floating icon — top right of product card ── */
.wwb-float-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    line-height: 1;
}

.wwb-float-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    display: block;
}

.wwb-float-icon:hover {
    background: #1aad52;
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(37,211,102,0.45);
}

/* Tooltip */
.wwb-float-icon::after {
    content: "Buy via WhatsApp";
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-family: sans-serif;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.wwb-float-icon:hover::after {
    opacity: 1;
}

/* ── Single product page full button ── */
.wwb-btn-single {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    padding: 12px 22px;
    border-radius: 50px;
    margin-top: 12px;
    box-shadow: 0 3px 12px rgba(37,211,102,0.35);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
    line-height: 1;
}

.wwb-btn-single svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    flex-shrink: 0;
}

.wwb-btn-single:hover {
    background: #1aad52;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.45);
    color: #fff !important;
}

.wwb-btn-single:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .wwb-btn-single {
        width: 100%;
        justify-content: center;
    }
}
