@media (min-width: 1200px) {
  #manufacturer #wrapper > .container:has(> .row > #content-wrapper > .alfi-brands) {
    width: min(1390px, calc(100% - 32px));
    max-width: none;
  }
}

.alfi-brands {
  padding-bottom: 24px;
  color: var(--alfi-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.alfi-brands > h1 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--alfi-green);
  color: inherit;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  text-transform: none;
}

#manufacturer #main.alfi-brands > .alfi-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alfi-brand-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e1e7dd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  overflow-wrap: anywhere;
}

.alfi-brand-card:is(:hover, :focus-within) {
  border-color: var(--alfi-green-dark);
  background: #f5f8f2;
}

.alfi-brand-card .alfi-brand-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 136px;
  padding: 14px 12px;
  border-radius: inherit;
  color: var(--alfi-ink);
}

.alfi-brand-card .alfi-brand-card-link:focus-visible {
  outline: 2px solid var(--alfi-text-green);
  outline-offset: 2px;
}

.alfi-brand-card-link picture {
  display: grid;
  place-items: center;
  width: min(100%, 132px);
  height: 54px;
  margin-bottom: 4px;
}

.alfi-brand-card-link img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.alfi-brand-name { font-weight: 700; line-height: 1.25; }
.alfi-brand-card-link:is(:hover, :focus-visible) .alfi-brand-name { color: var(--alfi-text-green); }
.alfi-brand-count { color: #4e5a4d; font-size: .82rem; line-height: 1.35; }

.alfi-brand-description {
  margin: 0 12px 12px;
  color: #4e5a4d;
  font-size: .82rem;
}

.alfi-brand-description :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  #manufacturer #main.alfi-brands > .alfi-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .alfi-brand-card .alfi-brand-card-link { min-height: 118px; padding: 10px 8px; }
}
