.checkout-payment {
  display: grid;
  gap: 1rem;

  &__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 2rem;
    align-items: start;

    @media (max-width: 760px) {
      grid-template-columns: 1fr;
    }
  }

  &__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  &__action-btn {
    width: 100%;
    flex: 1 1 320px;
    max-width: 320px;
    display: block;
  }
}

.payment-methods {
  min-width: 0;

  @media (max-width: 760px) {
    width: min(100%, 300px);
    justify-self: center;
  }

  &__title {
    margin: 0 0 1.75rem;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
  }

  &__list {
    display: grid;
    gap: 1.1rem;
  }
}

.payment-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 300px;
  justify-self: start;
  padding: 0.35rem 0;
  color: #666666;
  cursor: pointer;
  transition: color 0.2s ease;

  &:not(.is-disabled):hover {
    color: #4f4f4f;
  }

  &.is-disabled {
    cursor: default;
  }

  &.is-selected {
    color: var(--tenant-primary, #6376f3);
  }

  &__radio {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--tenant-primary, #6376f3);
    cursor: pointer;
  }

  &.is-disabled &__radio {
    cursor: default;
  }

  &__label {
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  &__chevron {
    color: #9f9f9f;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-4px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  &.is-selected &__chevron,
  &:not(.is-disabled):hover &__chevron {
    opacity: 1;
    transform: translateX(0);
  }
}

.payment-panel {
  display: flex;
  justify-content: flex-end;
  min-width: 0;

  > app-checkout-payment-qr,
  > app-checkout-payment-transfer {
    display: block;
    width: 100%;
    max-width: 320px;
  }

  @media (max-width: 760px) {
    justify-content: center;
  }

  &__card {
    width: 100%;
    max-width: 320px;
    min-height: 269px;
    padding: 1.5rem 1.75rem;
    border-radius: 5px;
    background: #ffffff;
    color: #666666;
    box-shadow: 0 0 0 1px #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  &__title {
    max-width: 18rem;
    margin: 0;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
  }
}
