.payment-methods:has(+ .payment-bnpl:not(.hidden)) {
  margin-block-end: 10px;
}

.payment-bnpl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 24px;
}

.payment-bnpl.hidden {
  display: none;
}

.payment-bnpl__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--color-gray-200, #e2e5ec);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: #111;
  font-family: inherit;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.payment-bnpl__btn:hover {
  border-color: var(--color-primary, #636eb2);
}

.payment-bnpl__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.payment-bnpl__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.payment-bnpl__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.payment-bnpl__hint {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
}

.payment-bnpl__logo {
  width: auto;
  max-width: 92px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.payment-bnpl__btn--tabby .payment-bnpl__logo {
  height: 26px;
}

.payment-bnpl__btn--tamara .payment-bnpl__logo {
  height: 16px;
}

.payment-bnpl__btn.is-loading {
  position: relative;
}

.payment-bnpl__btn.is-loading .payment-bnpl__copy,
.payment-bnpl__btn.is-loading .payment-bnpl__logo {
  visibility: hidden;
}

.payment-bnpl__btn.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: #111;
  border-radius: 50%;
  animation: payment-bnpl-spin 0.7s linear infinite;
}

@keyframes payment-bnpl-spin {
  to { transform: rotate(360deg); }
}
