/* Multi-Warehouse Inventory Manager - Frontend Styles (Geo Warehouse Selector) */
/* Enqueued on single product pages via MWIM_Product_Display */

.mwim-stock-info {
    margin: 15px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.mwim-stock-info > strong {
    display: block;
    margin-bottom: 8px;
}

/* AJAX 加载占位符（v1.9.0） */
.mwim-stock-loading {
    color: #6b7280;
    font-size: 13px;
}

/* 变量产品未选变体时的中性提示（v1.9.13） */
.mwim-stock-prompt {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.mwim-wh-row {
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.mwim-wh-row:hover {
    background: rgba(37, 99, 235, 0.05);
}

.mwim-wh-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.mwim-wh-radio {
    flex-shrink: 0;
    accent-color: #2563eb;
}

/* Disabled warehouse row (out of stock) */
.mwim-wh-row:has(.mwim-wh-radio:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.mwim-wh-row:has(.mwim-wh-radio:disabled) label {
    cursor: not-allowed;
}

/* 库存状态圆点（v1.10.2，替代 emoji，跨平台渲染一致） */
.mwim-stock-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.mwim-stock-dot--in-stock {
    background-color: #16a34a;
}

.mwim-stock-dot--out-of-stock {
    background-color: #9ca3af;
}
