/* OKKwork — popup привязки карты для вывода (реферальная программа) */

.okkwork-referral-withdraw-card-popup {
  position: fixed;
  inset: 0;
  z-index: 20330;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.okkwork-referral-withdraw-card-popup.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-referral-withdraw-card-popup.is-open .okkwork-balance-link-card-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.okkwork-referral-withdraw-card-popup .okkwork-balance-link-card-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.okkwork-referral-withdraw-card-popup .okkwork-balance-link-card-popup__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.14);
  box-shadow: 0 24px 56px rgba(6, 88, 162, 0.18);
  padding: 24px 24px 20px;
  box-sizing: border-box;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.28s ease;
  font-family: "Rubik", "Segoe UI", system-ui, sans-serif;
}

.okkwork-referral-withdraw-card-popup__min-amount {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(6, 88, 162, 0.92);
}

.okkwork-referral-withdraw-card-popup__min-amount.is-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: rgba(120, 53, 15, 0.92);
  font-weight: 500;
}

.okkwork-referral-withdraw-card-popup__amount-field {
  margin-top: 2px;
}

.okkwork-referral-withdraw-card-popup__available {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(72, 87, 101, 0.82);
}

.okkwork-referral-withdraw-card-popup__terms {
  margin-top: 4px;
}

body.okkwork-referral-withdraw-card-popup-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .okkwork-referral-withdraw-card-popup {
    transition: none;
  }
}
