.ga4b9ffa-67b6-4652-a4a8-3a31a388346b {
  --navy: #102a43;
  --navy-dark: #081a2a;
  --red: #e63b4d;
  --red-dark: #c92338;
  --yellow: #f6c945;
  --text: #142536;
  --muted: #6a7885;
  --line: #dce3e8;
  --surface: #ffffff;
  --page: #f2f5f7;

  width: 100%;
  margin: 24px 0 32px;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
  container-type: inline-size;
}

.ga4b9ffa-67b6-4652-a4a8-3a31a388346b *,
.ga4b9ffa-67b6-4652-a4a8-3a31a388346b *::before,
.ga4b9ffa-67b6-4652-a4a8-3a31a388346b *::after {
  box-sizing: border-box;
}

/* Базовий мобільний вигляд */
.d4f9d480-377f-44c5-ad3b-afa3812e7975 {
  display: none;
}

.e42bc117-6506-47f9-bca1-b452dd61e1de {
  display: grid;
  grid-template-columns: 32px 74px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.e42bc117-6506-47f9-bca1-b452dd61e1de:first-child {
  border-top: 0;
}

.e42bc117-6506-47f9-bca1-b452dd61e1de:hover {
  background: #fbfcfd;
}

.p4624e8e-601f-47cf-81e2-ac0623c0b5aa {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--navy);
  background: #e8eef2;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.e42bc117-6506-47f9-bca1-b452dd61e1de:nth-child(1) .p4624e8e-601f-47cf-81e2-ac0623c0b5aa {
  color: var(--navy-dark);
  background: var(--yellow);
}

.e42bc117-6506-47f9-bca1-b452dd61e1de:nth-child(2) .p4624e8e-601f-47cf-81e2-ac0623c0b5aa {
  color: #314150;
  background: #dfe5e9;
}

.e42bc117-6506-47f9-bca1-b452dd61e1de:nth-child(3) .p4624e8e-601f-47cf-81e2-ac0623c0b5aa {
  color: #633b16;
  background: #dfab78;
}

.e490b2d3-ad3f-4a0a-8e60-811dad262e71 {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 62px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
}

.e490b2d3-ad3f-4a0a-8e60-811dad262e71 img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.m4a9b22c-6d23-419c-b58d-01936ddcd3a3 {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
}

.ma616e67-c40e-4b8f-a5fa-cf31165793d2,
.ma616e67-c40e-4b8f-a5fa-cf31165793d2:visited {
  display: block;
  overflow-wrap: anywhere;
  color: var(--navy-dark) !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.18;
  text-decoration: none !important;
}

.ma616e67-c40e-4b8f-a5fa-cf31165793d2:hover {
  color: var(--red) !important;
  text-decoration: underline !important;
}

.ned8383d-b8cb-4b58-ba94-1b20a277441f {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.jeae4fc8-80cc-4ff5-87c2-2646ef0012af {
  display: flex;
  grid-column: 3;
  grid-row: 2;
  align-items: baseline;
  justify-content: flex-start;
  gap: 2px;
  color: var(--navy-dark);
  font-size: 13px;
  white-space: nowrap;
}

.ebe290c2-9c13-45be-be83-5182848ca1e3 {
  margin-right: 3px;
  color: var(--yellow);
  font-size: 17px;
}

.jeae4fc8-80cc-4ff5-87c2-2646ef0012af strong {
  font-size: 16px;
}

.jeae4fc8-80cc-4ff5-87c2-2646ef0012af span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.h4935960-ca82-4443-bfe2-8f89ca097109,
.h4935960-ca82-4443-bfe2-8f89ca097109:visited {
  display: inline-flex;
  grid-column: 2 / 4;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 3px;
  padding: 10px 12px;
  color: #ffffff !important;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
}

.h4935960-ca82-4443-bfe2-8f89ca097109:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 {
  padding: 16px 12px;
  text-align: center;
  background: var(--page);
  border-top: 1px solid var(--line);
}

.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 button,
.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 a,
.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 20px;
  color: var(--navy) !important;
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
}

.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 button:hover,
.m7cd393e-4d46-4fb9-aff0-2e6ca35fb108 a:hover {
  color: #ffffff !important;
  background: var(--navy);
}

/* Табличний вигляд з'являється лише у широкому контейнері */
@container (min-width: 760px) {
  .co-brands__header,
  .co-brand {
    display: grid;
    grid-template-columns: 44px 150px minmax(180px, 1fr) 88px 120px;
    gap: 16px;
    align-items: center;
  }

  .co-brands__header {
    min-height: 52px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .co-brands__col-rank,
  .co-brands__col-rating {
    text-align: center;
  }

  .co-brand {
    min-height: 112px;
    padding: 14px 20px;
  }

  .co-brand__rank {
    grid-column: auto;
    grid-row: auto;
    width: 32px;
    height: 32px;
    margin: auto;
    font-size: 14px;
  }

  .co-brand__logo {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: 76px;
    padding: 8px 12px;
  }

  .co-brand__details {
    grid-column: auto;
    grid-row: auto;
    overflow: visible;
  }

  .co-brand__name,
  .co-brand__name:visited {
    font-size: 18px;
  }

  .co-brand__bonus {
    margin-top: 6px;
    font-size: 13px;
  }

  .co-brand__rating {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    font-size: 14px;
  }

  .co-brand__rating strong {
    font-size: 17px;
  }

  .co-brand__cta,
  .co-brand__cta:visited {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    min-height: 42px;
    margin-top: 0;
    padding: 10px 14px;
  }

  .co-brands__more {
    padding: 20px;
  }

  .co-brands__more button,
  .co-brands__more a {
    width: auto;
  }
}