.recent-payments {
  width: min(760px, calc(100% - 20px));
  margin: 0 0 38px 20px;
}

.recent-payments-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.recent-payments-head > span {
  width: 2px;
  height: 18px;
  background: #2db4e8;
}

.recent-payments-head > i {
  color: #2db4e8;
  font-size: 14px;
}

.recent-payments-head h2 {
  color: #eef8ff;
  font: 600 20px/1 Rajdhani, sans-serif;
}

.recent-payments-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 180, 232, .35) transparent;
}

.recent-payment {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(45, 180, 232, .14);
  border-radius: 8px;
  background: #0b1721;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.recent-payment::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #2db4e8;
  transform: scaleX(.55);
  transform-origin: left;
  transition: transform .18s ease;
}

.recent-payment:hover,
.recent-payment:focus-visible {
  border-color: rgba(45, 180, 232, .72);
  transform: translateY(-2px);
  outline: none;
}

.recent-payment:hover::after,
.recent-payment:focus-visible::after {
  transform: scaleX(1);
}

.recent-payment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-payment-detail {
  min-height: 28px;
  margin-top: 4px;
  color: #708897;
  font-size: 13px;
}

.recent-payment-detail strong {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  color: #d8e9f3;
  font: 600 14px Rajdhani, sans-serif;
}

.recent-payment-detail span {
  color: #718a9b;
}

.payment-skeleton {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(255,255,255,.04) 35%, rgba(45,180,232,.12) 50%, rgba(255,255,255,.04) 65%);
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .recent-payments-strip.is-loading .payment-skeleton {
    animation: payment-loading 1.4s linear infinite;
  }
}

@keyframes payment-loading {
  to { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .recent-payments {
    width: min(620px, calc(100% - 20px));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .recent-payments {
    width: 100%;
    margin: 0 0 30px;
  }

  .recent-payments-head h2 {
    font-size: 18px;
  }

  .recent-payment,
  .payment-skeleton {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .recent-payment-detail span {
    display: block;
    margin-top: 5px;
  }
}
