/* RA99 payment logos — compact horizontal strip (home + delivery) */

.ra99-payment-logos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  max-height: 32px;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ra99-payment-logos__item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  line-height: 0;
}

/* Beat homepage `img { max-width:100%; height:auto }` and Bootstrap responsive imgs */
.ra99-payment-logos img.ra99-payment-logos__img,
img.ra99-payment-logos__img {
  display: block !important;
  flex: 0 0 auto;
  width: auto !important;
  height: 28px !important;
  max-height: 28px !important;
  max-width: 110px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  object-position: center;
}

/* Dark site-footer — one centered group: copy + payment logos (viewport center) */
.site-footer__bottom {
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 0;
  padding: 8px 14px;
  min-height: 45px;
  max-height: 50px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.ra99-footer-bottom-group {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 28px);
}

.ra99-footer-bottom-group .foot-copy {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(240, 246, 252, 0.92);
  text-align: center;
  flex: 0 0 auto;
}

.ra99-footer-bottom-group .ra99-payment-logos {
  justify-content: center;
  width: auto !important;
  max-width: none;
  flex: 0 0 auto;
  gap: 14px;
  min-height: 24px;
  max-height: 26px;
}

.ra99-footer-bottom-group .ra99-payment-logos__img {
  height: 24px !important;
  max-height: 26px !important;
}

/* Delivery: inside «Онлайн-оплата» card */
.ra99-payment__item--online .ra99-payment-logos {
  justify-content: flex-start;
  margin-top: 12px;
  max-height: 32px;
  width: auto !important;
  max-width: 100%;
}

.article_description .ra99-payment-logos img.ra99-payment-logos__img,
.ra99-payment--page .ra99-payment-logos img.ra99-payment-logos__img {
  height: 28px !important;
  max-height: 28px !important;
  max-width: 110px !important;
  width: auto !important;
}

.ra99-payment--page {
  margin-top: 8px;
}

.ra99-payment--page .ra99-payment__title {
  margin-top: 28px;
}

.ra99-payment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}

.ra99-payment__item {
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ra99-payment__item-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a3a5c;
}

.ra99-payment__item p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
}

.ra99-payment__item p:last-child {
  margin-bottom: 0;
}

.ra99-payment__card-num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .site-footer__bottom {
    max-height: none;
    padding: 10px 14px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .ra99-footer-bottom-group {
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    max-width: calc(100% - 20px);
    gap: 8px 14px;
  }

  .ra99-footer-bottom-group .foot-copy {
    white-space: normal;
  }

  .ra99-footer-bottom-group .ra99-payment-logos {
    overflow-x: auto;
    max-width: 100%;
  }

  .ra99-payment__item--online .ra99-payment-logos {
    justify-content: flex-start;
  }
}
