.wng-warehouses {

    padding: 18px 20px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
}

.wng-warehouses .wng-warehouses__title {
    margin: 0 0 14px;
    color: inherit;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.wng-warehouses__body {
    min-height: 48px;
}

.wng-warehouses__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: #6b7280;
}

.wng-warehouses__spinner {
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid #e5e7eb;
    border-top-color: #374151;
    border-radius: 50%;
    animation: wng-warehouse-spin 0.75s linear infinite;
}

.wng-warehouses .wng-warehouses__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.wng-warehouses .wng-warehouses__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #f0f1f3;
    list-style: none;
}

.wng-warehouses .wng-warehouses__row:last-child {
    border-bottom: 0;
}

.wng-warehouses__name {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.wng-warehouses__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.wng-warehouses__badge--in_stock {
    background: #ecfdf3;
    color: #157347;
}

.wng-warehouses__badge--out_of_stock {
    background: #fef2f2;
    color: #b42318;
}

.wng-warehouses__badge--unknown {
    background: #f3f4f6;
    color: #6b7280;
}

.wng-warehouses__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

.wng-warehouses .wng-warehouses__note {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.wng-warehouses .wng-warehouses__empty,
.wng-warehouses .wng-warehouses__error p {
    margin: 0 0 10px;
    color: #6b7280;
}

.wng-warehouses .wng-warehouses__retry {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font: inherit;
    cursor: pointer;
}

.wng-warehouses .wng-warehouses__retry:hover {
    background: #EF5434;
}

.wng-warehouses .wng-warehouses__retry:focus-visible {
    outline: 2px solid #EF5434;
    outline-offset: 3px;
}

@keyframes wng-warehouse-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .wng-warehouses {
        padding: 15px;
    }

    .wng-warehouses .wng-warehouses__row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wng-warehouses__spinner {
        animation: none;
    }
}