/* DFADeals Brands — Design 2 logo wall. Page-scoped. */
body.dfa-brands-page,
body.dfa-brands-page #container {
  overflow-x: hidden;
  max-width: 100%;
  background: #fff;
}

body.dfa-brands-page #column-left,
body.dfa-brands-page #column-right {
  display: none !important;
}

body.dfa-brands-page #content {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  background: #fff;
  overflow-x: hidden;
}

body.dfa-brands-page #content > h1,
body.dfa-brands-page .breadcrumb,
body.dfa-brands-page #content > .container > h1 {
  display: none !important;
}

body.dfa-brands-page #content > .container,
body.dfa-brands-page .container:has(.dfa-brands-page-wrap) {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dfa-brands-page-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111;
  max-width: var(--dfa-site-max, 1200px);
  width: 100%;
  margin: 0 auto;
  padding: 4px 16px 48px;
  box-sizing: border-box;
  overflow-x: clip;
}

.dfa-brands-page-wrap *,
.dfa-brands-page-wrap *::before,
.dfa-brands-page-wrap *::after {
  box-sizing: border-box;
}

.dfa-brands-page-wrap .dfa-module-zone {
  display: none !important;
}

.dfa-brands-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dfa-brand-az {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  margin: 4px 0 8px;
  padding: 0;
  border: 0;
}

.dfa-brand-az button {
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #444;
  cursor: pointer;
  flex: 1 1 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  min-height: 36px;
  padding: 8px 2px 6px;
  text-align: center;
  white-space: nowrap;
}

.dfa-brand-az-dot {
  color: #444;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
}

.dfa-brand-az button:hover {
  color: #111;
}

.dfa-brand-az button.is-active {
  color: #111;
  font-weight: 600;
  box-shadow: inset 0 -1px 0 #111;
}

.dfa-brand-az button:focus-visible {
  outline: 2px solid #555;
  outline-offset: 2px;
}

.dfa-logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid #E8E8E8;
  border-left: 1px solid #E8E8E8;
}

.dfa-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 110px;
  height: 110px;
  padding: 12px 10px;
  text-decoration: none;
  color: #111;
  background: #fff;
  border-right: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
  border-radius: 0;
  box-shadow: none;
}

.dfa-logo-cell.is-hidden {
  display: none;
}

.dfa-logo-cell:hover,
.dfa-logo-cell:focus-visible {
  background: #f5f5f5;
}

.dfa-logo-cell:focus-visible {
  outline: 2px solid #555;
  outline-offset: -2px;
}

.dfa-logo-cell img {
  display: block;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
}

.dfa-logo-fallback {
  margin: 0;
  padding: 0 6px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.dfa-brands-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  color: #555;
  font-size: 15px;
  border-right: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
}

.dfa-brands-empty.is-visible {
  display: block;
}

.dfa-brands-none {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #555;
  font-size: 15px;
  border-right: 1px solid #E8E8E8;
  border-bottom: 1px solid #E8E8E8;
}

@media (max-width: 339px) {
  .dfa-logo-wall {
    grid-template-columns: 1fr;
  }

  .dfa-logo-cell {
    min-height: 105px;
    height: 105px;
  }
}

@media (min-width: 640px) {
  .dfa-logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dfa-logo-cell {
    min-height: 120px;
    height: 120px;
  }
}

@media (min-width: 768px) {
  .dfa-brands-page-wrap {
    padding: 8px 24px 56px;
  }

  .dfa-logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dfa-logo-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .dfa-logo-cell {
    min-height: 128px;
    height: 128px;
  }

  .dfa-logo-cell img {
    max-height: 56px;
  }
}

@media (min-width: 1200px) {
  .dfa-brands-page-wrap {
    padding: 8px 32px 64px;
  }

  .dfa-logo-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
