.couponstar-footer-brand-wall {
  box-sizing: border-box;
  width: min(100% - 40px, 1200px);
  margin: 52px auto 24px;
  padding: 32px 0 0;
  border-top: 1px solid #e2e7ed;
  color: #1d2939;
}

.couponstar-footer-brand-wall *,
.couponstar-footer-brand-wall *::before,
.couponstar-footer-brand-wall *::after {
  box-sizing: border-box;
}

.couponstar-footer-brand-wall__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.couponstar-footer-brand-wall__header h2 {
  margin: 0;
  color: #1d2939;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}

.couponstar-footer-brand-wall__header > a {
  flex: none;
  color: #1974c4;
  font-size: .92rem;
  text-decoration: none;
}

.couponstar-footer-brand-wall__header > a:hover,
.couponstar-footer-brand-wall__header > a:focus-visible {
  text-decoration: underline;
}

.couponstar-footer-brand-wall__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.couponstar-footer-brand-wall__card {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid #e2e7ed;
  border-radius: 14px;
  background: #fff;
  color: #273444;
  box-shadow: 0 3px 12px rgb(27 44 67 / 4%);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.couponstar-footer-brand-wall__card:hover,
.couponstar-footer-brand-wall__card:focus-visible {
  border-color: #8dbde4;
  box-shadow: 0 6px 18px rgb(27 44 67 / 10%);
  color: #1769ae;
  text-decoration: none;
}

.couponstar-footer-brand-wall__logo {
  display: flex;
  width: 88px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #3364bb;
}

.couponstar-footer-brand-wall__logo img {
  display: block;
  width: auto;
  max-width: 88px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .couponstar-footer-brand-wall__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .couponstar-footer-brand-wall {
    margin-top: 38px;
    padding-top: 24px;
  }

  .couponstar-footer-brand-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .couponstar-footer-brand-wall__card {
    min-height: 100px;
    font-size: .88rem;
  }
}
