/* Styles for src/components/modal.js and nothing else. A Windows dialog box. */

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  z-index: 50;
}

.modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: auto;
  background: var(--c-window);
  border: 1px solid var(--c-win-border);
  box-shadow: var(--shadow-pop);
}
.modal--wide { max-width: 800px; }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding-left: var(--s-2);
  background: var(--c-title-bar);
  border-bottom: 1px solid var(--c-etched);
}
.modal__head h2 { margin: 0; font-size: var(--t-base); font-weight: 400; }
.modal__close { border: none; background: none; min-height: 0; height: 100%; width: 40px; font-size: 10px; }
.modal__close:hover { background: #e81123; color: #ffffff; border: none; }

.modal__body { padding: var(--s-4) var(--s-4) var(--s-3); }

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--c-control);
  border-top: 1px solid var(--c-etched);
}
.modal__actions button { min-width: 75px; }
