/* Shared confirmation pop-up (js/confirm-dialog.js): gallery actions and
   Delete event on the Events page. Moved here from gallery-editor.css (Nov 23)
   so pages without the gallery editor can use it. */
.mm-confirm {
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c1a17;
  overflow: auto;
  z-index: 100;
}
.mm-confirm::backdrop { background: rgba(20, 17, 14, .45); backdrop-filter: blur(4px); }
.mm-confirm--fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  background: rgba(20, 17, 14, .45);
  backdrop-filter: blur(4px);
}
.mm-confirm .mm-confirm__card {
  box-sizing: border-box;
  width: 100%;
  padding: 28px;
  border: 1px solid #e6ddd1;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 20px 60px rgba(20, 17, 14, .18);
  animation: mm-confirm-in 160ms ease-out both;
}
.mm-confirm--fallback .mm-confirm__card { max-width: 400px; }
.mm-confirm .mm-confirm__title { margin: 0 0 10px; font-family: var(--serif, Georgia, serif); font-size: 22px; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.mm-confirm .mm-confirm__message { margin: 0; color: #4a443d; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.mm-confirm .mm-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.mm-confirm .mm-confirm__button {
  box-sizing: border-box;
  min-height: 44px;
  width: auto;
  padding: 9px 16px;
  border: 1px solid #1c1a17;
  border-radius: var(--radius-button, 8px);
  background: transparent;
  color: #1c1a17;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  cursor: pointer;
}
.mm-confirm .mm-confirm__button--confirm { background: #1c1a17; color: #fff; }
.mm-confirm .mm-confirm__button--danger { border-color: #8a3a2a; background: #8a3a2a; }
.mm-confirm .mm-confirm__button:focus-visible { outline: 2px solid #1c1a17; outline-offset: 3px; }
@keyframes mm-confirm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .mm-confirm:not(.mm-confirm--fallback) { position: fixed; top: auto; bottom: 0; width: 100vw; max-height: 100dvh; margin: 0; }
  .mm-confirm--fallback { place-items: end stretch; padding: 0; }
  .mm-confirm .mm-confirm__card { padding: 28px 20px max(28px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .mm-confirm--fallback .mm-confirm__card { max-width: none; }
  .mm-confirm .mm-confirm__actions { justify-content: stretch; }
  .mm-confirm .mm-confirm__button { flex: 1 1 0; min-width: 0; padding-inline: 8px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-confirm .mm-confirm__card { animation: none; }
}
