/* Попапы выбора способа оплаты — тарифы */

body.payment-modal-open {
  overflow: hidden;
}

button.tariff-slide__buy {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.payment-modal.is-open {
  display: flex;
}

.payment-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.payment-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2rem);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.payment-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
  color: #6b6560;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.payment-modal__close:hover {
  color: #1a1714;
  background: rgba(0, 0, 0, 0.06);
}

.payment-modal__close:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.payment-modal__title {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #1a1714;
}

.payment-modal__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-modal__option {
  text-align: center;
  text-decoration: none;
}

@media (max-width: 767px) {
  .payment-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .payment-modal__option {
    padding: 0.85rem 1.25rem;
    font-size: 0.875rem;
  }
}
