.mc-brands-wrap {
    width: 100%;
}

.mc-brands-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    box-sizing: border-box;
}

.mc-brands-grid > .mc-brand-card {
    min-width: 0;
}

.mc-brand-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.mc-brand-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--brand-placeholder-bg, #f5f5f5);
    position: relative;
    flex-shrink: 0;
}

.mc-brand-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background-color 0.25s ease;
}

.mc-brand-name {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    color: #252525;
    background-color: transparent;
    transition: color 0.25s ease, background-color 0.25s ease;
    word-break: break-word;
}

.mc-brands-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.mc-brands-pagination a,
.mc-brands-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mc-brands-pagination a {
    color: #252525;
    background-color: #f0f0f0;
}

.mc-brands-pagination a:hover {
    color: #252525;
    background-color: #d0d0d0;
}

.mc-brands-pagination span.current {
    color: #ffffff;
    background-color: #252525;
    cursor: default;
}
