/* BestChange review promotion on the exchange page. */
.fm-exchange-page__review-promo {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr) 166px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  margin: 50px auto 0;
  padding: 16px 20px;
  border-radius: 24px;
  background: linear-gradient(110deg, #853df2 0%, #6821d4 100%);
  color: #fff;
  font-family: var(--fm-font, 'Golos Text', sans-serif);
}

.fm-exchange-page__review-promo-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.fm-exchange-page__review-promo-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fm-exchange-page__review-promo-copy {
  min-width: 0;
}

.fm-exchange-page__review-promo-title {
  margin: 0;
  color: #fff;
  font: 400 18px/24px 'Golos Text', sans-serif;
}

.fm-exchange-page__review-promo-trx {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  border-radius: 6px;
  background: #fff;
  transform: rotate(15deg);
  vertical-align: -5px;
}

.fm-exchange-page__review-promo-trx img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: fill;
  padding: 2px;
}

.fm-exchange-page__review-promo-description {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font: 400 13px/18px 'Golos Text', sans-serif;
}

.fm-exchange-page__review-promo-button {
  display: inline-flex;
  min-width: 166px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 16px;
  background: #fff;
  color: #6929de;
  font: 500 15px/20px 'Golos Text', sans-serif;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.fm-exchange-page__review-promo-button:hover,
.fm-exchange-page__review-promo-button:focus-visible,
.fm-exchange-page__review-promo-button:active {
  background: #f4edff;
  color: #531bc0;
}

.fm-exchange-page__review-promo-button--mobile {
  display: none;
}

.fm-exchange-page__review-promo[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .fm-exchange-page__review-promo {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 16px;
    min-height: 144px;
    margin-top: 50px;
    padding: 16px 23px;
    border-radius: 24px;
  }

  .fm-exchange-page__review-promo-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .fm-exchange-page__review-promo-icon img {
    width: 24px;
    height: 24px;
  }

  .fm-exchange-page__review-promo-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
  }

  .fm-exchange-page__review-promo-trx,
  .fm-exchange-page__review-promo-description,
  .fm-exchange-page__review-promo-button--desktop {
    display: none;
  }

  .fm-exchange-page__review-promo-button--mobile {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
  }

  .fm-exchange-page__review-promo-button--mobile:hover,
  .fm-exchange-page__review-promo-button--mobile:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
  }

}
