.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 5%;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background-color: var(--white);
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  position: relative;
  padding: var(--spacing-2xl);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
}

.modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-s);
  color: var(--grey-600);
  font-size: 24px;
  line-height: 1;
}

.modal__close:hover {
  color: var(--grey-900);
}

.modal__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.modal__section-title {
  margin-bottom: var(--spacing-m);
}

.modal__list {
  list-style: disc;
  padding-left: var(--spacing-xl);
  margin: var(--spacing-m) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

.modal--compact {
  max-width: 480px;
  height: auto;
  max-height: 90vh;
}
