.footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays > p > a:is([href="https://yookassa.ru/protection"], [href="https://vk.com/aromat.market"]) {
  display: inline-block;
  line-height: 0;
  text-decoration: none !important;
  vertical-align: middle;
}

@media (min-width: 1360px) {
  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .copy {
    grid-area: 1 / 1;
    min-width: 0;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays {
    grid-area: 1 / 2;
    padding-top: 12px;
    text-align: center;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > #bx-composite-banner {
    grid-column: 1 / -1;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > #bx-composite-banner:empty {
    display: none;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays > i[title] {
    margin-inline: 3px;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays > a[title="Долями"] {
    display: block;
    margin-top: 10px;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays > :is(br, p:has(> br:only-child)) {
    display: none;
  }

  .footer-bottom__items-wrapper:has(> .copy .am-footer-advocate-layout) > .pays > p:has(> a) {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 0;
  }
}

@media (min-width: 900px) {
  .am-footer-advocate-layout {
    display: grid;
    grid-template-columns: minmax(0, auto) 252px;
    column-gap: clamp(24px, 4vw, 64px);
    grid-template-rows: auto 1fr;
    row-gap: 6px;
    align-items: start;
  }

  .am-footer-advocate {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 15px 12px 13px;
    border-radius: 10px;
    background: rgb(255 255 255 / 5%);
    text-align: center;
  }

  .am-footer-advocate .am-footer-advocate__logo {
    width: 160px;
    padding: 6px 10px;
  }

  .am-footer-advocate .am-footer-advocate__details {
    margin-top: 8px;
    line-height: 1.4;
    text-wrap: balance;
  }

  .am-footer-advocate .am-footer-advocate__actions {
    display: flex;
    flex-direction: column;
    margin: 5px 0 0;
  }
}

.am-footer-advocate__logo {
  display: block;
  box-sizing: border-box;
  width: 176px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.am-footer-advocate__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.am-footer-advocate__details {
  color: #ddd;
  font-size: 9pt;
}

.am-footer-advocate__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  margin-inline-start: 6px;
  max-width: 100%;
}

.am-footer-advocate__details .am-footer-advocate__actions a {
  color: #f0c9fb;
  text-decoration: underline;
}

@media (max-width: 899px) {
  .am-footer-advocate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    text-align: center;
  }

  .am-footer-advocate__actions {
    display: flex;
    margin: 3px 0 0;
  }
}
