.ypay-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 4px 0 0;
  min-height: 0;
  width: 100%;
  line-height: 1;
}
.ypay-badges yandex-pay-badge {
  display: inline-flex;
  max-width: 100%;
  vertical-align: middle;
}
.pcard .ypay-badges:not(.ypay-badges--cashback-float) {
  margin: 2px 0 0;
  min-height: 22px;
}
.ypay-badges:empty {
  display: none;
}
.pcard__price-row {
  margin-bottom: 0 !important;
}
.pcard__actions {
  padding-top: 8px !important;
}

/*
  Компактный cashback (+N) — правый верх фото, внахлёст.
  Под сердцем, не пересекается с «В наличии».
*/
.pcard {
  position: relative;
}
.ypay-badges--cashback-float {
  position: absolute !important;
  top: 56px;
  right: 12px;
  left: auto !important;
  bottom: auto;
  z-index: 6;
  display: flex !important;
  justify-content: flex-end;
  width: auto !important;
  max-width: 56px !important;
  overflow: visible;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  filter: drop-shadow(0 4px 10px rgba(33, 40, 43, 0.32));
  pointer-events: none;
  line-height: 0;
  font-size: 0;
}
.ypay-badges--cashback-float yandex-pay-badge {
  pointer-events: auto;
  display: block;
  line-height: 0;
  transform: scale(1.2);
  transform-origin: top right;
}
.pcard__wish {
  z-index: 7;
}
.pcard__badge {
  z-index: 5;
}

.ypay-widget {
  width: 100%;
  min-height: 280px;
  margin: 10px 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #2e2e2e;
}
.ypay-widget[hidden] {
  display: none !important;
}
.ypay-widget iframe,
.ypay-widget > * {
  max-width: 100%;
}

@media (max-width: 900px) {
  .ypay-badges--cashback-float {
    top: 50px;
    right: 10px;
    max-width: 52px !important;
  }
  .ypay-badges--cashback-float yandex-pay-badge {
    transform: scale(1.12);
  }
}
