/* ==========================================================================
   ABM components - Modals
   --------------------------------------------------------------------------
   ABM modal primitives only. Bootstrap .modal is intentionally untouched.
   ========================================================================== */

.abm-modal {
  border: 1px solid var(--abm-border-subtle);
  border-radius: var(--abm-radius-xl);
  background: var(--abm-color-surface);
  box-shadow: var(--abm-shadow-lg);
}

.abm-modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 0;
}

.abm-modal-title {
  margin: 0;
  color: var(--abm-color-text);
  font-weight: 850;
  line-height: 1.2;
}

.abm-modal-body {
  padding: 22px;
}

.abm-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

.abm-modal--compact .abm-modal-header,
.abm-modal--compact .abm-modal-body,
.abm-modal--compact .abm-modal-footer {
  padding-inline: 18px;
}

.abm-modal--wide {
  width: min(100%, 960px);
}

.abm-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--abm-border-subtle);
  border-radius: var(--abm-radius-pill);
  background: var(--abm-color-surface);
  color: var(--abm-color-muted);
  cursor: pointer;
}

.abm-drawer {
  width: min(100%, 420px);
  max-height: 100dvh;
  overflow: auto;
  border: 1px solid var(--abm-border-subtle);
  background: var(--abm-color-surface);
  box-shadow: var(--abm-shadow-lg);
}

.abm-drawer--right {
  margin-left: auto;
}

.abm-drawer-header,
.abm-drawer-body,
.abm-drawer-footer {
  padding: 18px;
}
