/**
 * POS Out-of-Stock Products CSS Override
 * 
 * Allows clicking on out-of-stock products in POS search and listing
 * Shows "Out of Stock" badge while allowing add to cart functionality
 */

/* Ensure products are clickable */
.yith-pos-product-list__search .search-result.out-of-stock,
.yith-pos-product-list__list .product.out-of-stock {
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.yith-pos-product-list__search .search-result.out-of-stock *,
.yith-pos-product-list__list .product.out-of-stock * {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Ensure products with was-out-of-stock flag have relative positioning for badge */
.yith-pos-product-list__list .product[data-was-out-of-stock="true"],
.yith-pos-product-list__search .search-result[data-was-out-of-stock="true"],
.yith-pos-product-list__list .product,
.yith-pos-product-list__search .search-result {
    position: relative !important;
}

/* Ensure stock badges are visible for ALL products and positioned at top-right */
.yith-pos-product-list__list .product .stock-badge,
.yith-pos-product-list__search .search-result .stock-badge,
.stock-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
}

/* Style out-of-stock badges - ensure they're at top-right like in-stock badges */
.yith-pos-product-list__list .product[data-was-out-of-stock="true"] .stock-badge,
.yith-pos-product-list__search .search-result[data-was-out-of-stock="true"] .stock-badge {
    background: #d63638 !important;
    background-color: #d63638 !important;
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
}

