/**
 * Cannagrowth Weight Stock - Frontend Styles
 */

.cgws-remaining-weight {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cgws-remaining-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.cgws-remaining-value {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.cgws-remaining-value.cgws-low {
    color: #ffc107;
}

.cgws-remaining-value.cgws-out {
    color: #dc3545;
}

/* Variation out of stock */
.cgws-variation-unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.cgws-variation-unavailable::after {
    content: " (Unavailable)";
    color: #dc3545;
    font-size: 12px;
}

/* Stock badge on variation */
.cgws-stock-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.cgws-stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.cgws-stock-badge.low-stock {
    background: #fff3cd;
    color: #856404;
}

.cgws-stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}