/* ============================================================================
   СПОСОБЫ ОПЛАТЫ
   ==========================================================================*/

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-methods__list {
  display: grid;
  gap: 10px;
}

.payment-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  color: #d9dcdf;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-align: left;
  transition: filter 200ms ease, transform 300ms ease;
}

/* Тонкая «металлическая» рамка по контуру */
.payment-method::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .20) 0%,
    rgba(255, 255, 255, .085) 27%,
    rgba(255, 255, 255, .04) 49%,
    rgba(0, 0, 0, .40) 79%,
    rgba(255, 255, 255, .07) 100%
  );
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Красная подсветка выбранного способа */
.payment-method[aria-checked="true"] {
  background: rgba(255, 59, 48, 0.09);
}

.payment-method[aria-checked="true"]::before {
  background: linear-gradient(
    135deg,
    rgba(255, 82, 71, .75) 0%,
    rgba(255, 59, 48, .35) 40%,
    rgba(0, 0, 0, .40) 78%,
    rgba(255, 82, 71, .45) 100%
  );
}

.payment-method__radio {
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: 0 0 auto;
}

.payment-method:active {
  filter: brightness(0.8);
  transform: scale(0.97);
}

.payment-method__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.payment-method__copy {
  min-width: 0;
}

.payment-method__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.payment-method__title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.payment-method__badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.payment-method__description {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.payment-methods__continue {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: color 200ms ease, transform 300ms ease;
}

.payment-methods__continue:active:not(:disabled) {
  color: rgba(255, 255, 255, 0.8);
  background: color-mix(in srgb, var(--accent) 80%, #000);
  transform: scale(0.97);
}

.payment-methods__continue:disabled {
  color: rgba(255, 255, 255, 0.42);
  background: color-mix(in srgb, var(--accent) 34%, #000);
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .payment-method {
    padding: 11px 15px;
    border-radius: 16px;
  }

  .payment-methods__continue {
    min-height: 48px;
    font-size: 16px;
  }
}
