/* Confirmation popups, shared by the public site and the staff area (see dialog.js) */
dialog.popup { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 24px; border: 0; border-radius: 18px;
  background: #fff; color: #1C1A2E; box-shadow: 0 24px 60px rgba(28, 12, 48, .32); }
dialog.popup::backdrop { background: rgba(28, 12, 48, .5); }
dialog.popup[open] { animation: popup-in .16s ease-out; }
@keyframes popup-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { dialog.popup[open] { animation: none; } }
.popup-head { display: flex; gap: 14px; align-items: flex-start; }
.popup-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #F3ECFA; color: #5B2A86; }
.popup.is-danger .popup-icon { background: #FDECEA; color: #B3261E; }
.popup-title { margin: 0; min-height: 44px; display: flex; align-items: center; font-size: 17px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.popup-text { margin: 10px 0 0 58px; color: #57526B; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.popup-input { width: 100%; height: 44px; margin: 14px 0 0; padding: 0 12px; border: 1px solid #D9D3E3; border-radius: 10px; font: inherit; font-size: 16px; }
.popup-input:focus { outline: 2px solid #5B2A86; outline-offset: 1px; }
.popup-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 22px 0 0; }
.popup-actions button { min-height: 44px; padding: 8px 18px; border-radius: 11px; border: 1px solid #D9D3E3; background: #fff; color: #1C1A2E; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.popup-actions button:hover { background: #F7F5FA; }
.popup-actions .popup-ok { background: #5B2A86; border-color: #5B2A86; color: #fff; }
.popup-actions .popup-ok:hover { background: #3E1A5E; }
.popup.is-danger .popup-ok { background: #B3261E; border-color: #B3261E; }
.popup.is-danger .popup-ok:hover { background: #8F1D17; }
.popup-actions button:focus-visible { outline: 3px solid #F2B53A; outline-offset: 2px; }
@media (max-width: 480px) {
  dialog.popup { padding: 20px; }
  .popup-text { margin-left: 0; }
  .popup-actions { flex-direction: column-reverse; } .popup-actions button { width: 100%; }
}
