/* F66.W3 — PaymentModal: premium native <dialog> запроса оплаты.
   Токены slate/amber/emerald/blue из tokens.css. Без эмодзи (Lucide иконки). */

dialog.pay-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100%;
}
dialog.pay-modal::backdrop {
  background: rgba(15, 23, 42, 0.45); /* slate-900 / 45% */
  backdrop-filter: blur(2px);
}

.pay-modal-card {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  animation: pay-modal-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pay-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pay-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 8px;
}
.pay-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.pay-modal-icon-deposit { background: #eff6ff; color: #3b82f6; }  /* blue */
.pay-modal-icon-postpay { background: #ecfdf5; color: #10b981; }  /* emerald */
.pay-modal-icon i { width: 18px; height: 18px; }
.pay-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a; /* slate-900 */
  letter-spacing: -0.01em;
}

.pay-modal-body { padding: 4px 20px 4px; }
.pay-modal-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b; /* slate-500 */
}

.pay-modal-field {
  display: block;
  margin-bottom: 14px;
}
.pay-modal-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #475569; /* slate-600 */
  margin-bottom: 6px;
}
.pay-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pay-modal-input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1; /* slate-300 */
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.pay-modal-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.pay-modal-input:disabled { background: #f8fafc; color: #94a3b8; }
.pay-modal-currency {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: #94a3b8; /* slate-400 */
  pointer-events: none;
}
.pay-modal-select { appearance: none; padding-right: 28px; cursor: pointer; }

.pay-modal-error {
  display: none;
  font-size: 12px;
  color: #e11d48; /* rose-600 */
  margin: -6px 0 8px;
}
.pay-modal-error.is-visible { display: block; }

.pay-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
}
.pay-modal-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155; /* slate-700 */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out;
}
.pay-modal-btn:hover:not(:disabled) { background: #f1f5f9; }
.pay-modal-btn.is-primary {
  background: #0f172a; /* slate-900 */
  border-color: #0f172a;
  color: #fff;
}
.pay-modal-btn.is-primary:hover:not(:disabled) { background: #1e293b; }
.pay-modal-btn:disabled { opacity: 0.55; cursor: default; }
