.mfs-manufacturer-grid-wrap {
    margin: 1.5em 0;
    font-family: inherit;
}

.mfs-mfg-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 1em;
}

.mfs-mfg-search {
    flex: 1 1 240px;
    min-width: 200px;
}

.mfs-mfg-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.mfs-mfg-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mfs-mfg-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mfs-mfg-group-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: background-color .15s, border-color .15s, color .15s;
}

.mfs-mfg-group-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.mfs-mfg-group-btn.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.mfs-mfg-status {
    min-height: 1.4em;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: .5em;
}

.mfs-mfg-status.is-error {
    color: #b91c1c;
}

.mfs-mfg-grid {
    display: grid;
    grid-template-columns: repeat(var(--mfs-mfg-cols, 4), minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .mfs-mfg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mfs-mfg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mfs-mfg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #111827;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.mfs-mfg-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, .12);
    transform: translateY(-1px);
    text-decoration: none;
}

.mfs-mfg-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 110px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.mfs-mfg-card-img img {
    max-width: 180px;
    max-height: 110px;
    width: auto;
    height: auto;
    display: block;
}

.mfs-mfg-card-img-placeholder {
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    font-weight: 600;
    font-size: 36px;
    width: 72px;
    height: 72px;
}

.mfs-mfg-card-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    word-break: break-word;
}

.mfs-mfg-card-count {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.mfs-mfg-empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    margin: 0;
}

.mfs-manufacturer-grid-wrap.is-loading .mfs-mfg-grid {
    opacity: .5;
    pointer-events: none;
}
