/* GROOKFIT Product Share — monochrome icon-only control. */
.woocommerce div.product form.cart .gfse-purchase-actions > .gfse-product-share-btn,
.gfse-product-share-btn{
    appearance:none !important;
    -webkit-appearance:none !important;
    box-sizing:border-box !important;
    float:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:48px !important;
    min-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.30) !important;
    border-radius:11px !important;
    background:#111 !important;
    color:#fff !important;
    text-decoration:none !important;
    line-height:1 !important;
    box-shadow:none !important;
    cursor:pointer !important;
    transition:background .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease !important;
}
.gfse-product-share-btn i{
    display:block !important;
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    font-size:var(--gfse-share-icon-size,20px) !important;
    line-height:1 !important;
    font-style:normal !important;
}
.gfse-product-share-btn:hover{
    background:#1c1c1c !important;
    border-color:rgba(255,255,255,.55) !important;
    color:#fff !important;
}
.gfse-product-share-btn:focus-visible{
    outline:2px solid rgba(255,255,255,.7) !important;
    outline-offset:2px !important;
}
.gfse-product-share-btn.is-loading{
    opacity:.55 !important;
    pointer-events:none !important;
}

/* Keep the product purchase row compact: Wishlist, then Share. */
.woocommerce div.product form.cart .gfse-purchase-actions > .gfse-product-share-btn{
    grid-column:5 !important;
    grid-row:1 !important;
}

/* The existing product controls have 4 logical controls after quantity:
   Add to cart, Buy, Wishlist, Share. This override only adds the share slot;
   WooCommerce variation/swatches are untouched. */
@media(min-width:768px){
    .woocommerce div.product form.cart .gfse-purchase-actions{
        grid-template-columns:150px minmax(0,1fr) minmax(0,1fr) 48px 48px !important;
        gap:8px !important;
    }
}

@media(max-width:767px){
    .woocommerce div.product form.cart .gfse-purchase-actions{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px !important;
        gap:6px !important;
    }
    .woocommerce div.product form.cart .gfse-purchase-actions > .gfse-product-share-btn{
        grid-column:4 !important;
        grid-row:1 !important;
        width:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        height:46px !important;
        min-height:46px !important;
        border-radius:9px !important;
    }
}

@media(max-width:360px){
    .woocommerce div.product form.cart .gfse-purchase-actions{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px 42px !important;
        gap:5px !important;
    }
    .woocommerce div.product form.cart .gfse-purchase-actions > .gfse-product-share-btn{
        width:42px !important;
        min-width:42px !important;
        max-width:42px !important;
    }
}

/* Optional standalone shortcode placement. */
.gfse-product-share-shortcode-wrap{display:inline-flex !important;align-items:center !important;}
