:root {
  --modal-padding-horizontal: var(--space-4);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  z-index: 10;
}

.modal-content {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 90%;
  overflow-y: auto;

  h2 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
  }

  header, section, footer {
    padding: var(--space-2) var(--space-4);
  }

  header, footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header {
    border-bottom: 1px solid var(--color-border);

    h1 {
      font-size: var(--font-size-base);
      font-weight: var(--font-weight-semibold);
    }
  }

  /* footer {
    button {
      padding: var(--space-1) var(--space-3);
      background-color: var(--color-accent);
      font-weight: var(--font-weight-semibold);
      border-radius: var(--radius-md);

      &:hover {
        background-color: var(--color-accent-hover);
      }
    }
  } */
}

.close-button {
  background: none;
  border: none;
  font-size: 11px;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  margin-right: -4px;

  &:hover {
    background-color: var(--gray-1);
  }
}