/**
 * Stock Status Restrictions CSS
 * Styles for disabled buttons and tooltips
 */

/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Non-table disabled buttons - general properties */
.button.disabled:not(table.wc-product-table tbody td .button),
.single_add_to_cart_button[disabled]:not(table.wc-product-table tbody td .button),
.qty[disabled]:not(table.wc-product-table tbody td .input-text) {
    background-color: transparent !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    opacity: 0.6 !important;
}

/* Disabled button */
.button.disabled {
    pointer-events: none;
}

/* Tooltip text */
.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    
    /* Effects */
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #222;
}

/* Tooltip arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show the tooltip when hovering over the container */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Make tooltip click-toggleable for mobile */
.tooltip-container.active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Stock status indicators */
.stock-status-ready {
    color: #28a745;
    font-weight: 600;
}

.stock-status-on-demand {
    color: #fd7e14;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tooltip-text {
        width: 200px;
        margin-left: -100px;
        font-size: 12px;
        padding: 8px;
    }
}
