/* Dialogs & modals (MEGA-RECODE phase 3) */
/* Base .dialog / .toast — layout.css */

.dialog .btn-danger {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dialog .btn-danger:hover {
  background: #ef4444;
  border-color: #f87171;
}

.fs-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fs-pay-modal[hidden] {
  display: none;
}

.fs-pay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.fs-pay-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  z-index: 1;
}

.fs-pay-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.fs-pay-modal-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.fs-pay-modal-sum {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-2);
  margin-bottom: 16px;
}

.fs-pay-modal-label {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
}

.fs-pay-gateways {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  min-height: 48px;
}

.fs-pay-gw {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: block;
}

.fs-pay-gw:has(input:checked) {
  border-color: var(--orange);
}

.fs-pay-gw input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fs-pay-gw img {
  height: 32px;
  width: auto;
  display: block;
}

.admin-dialog .dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
