/**
 * 1. Make the dialog container, and its child overlay spread across
 *    the entire window.
 */
.simple-modal {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.simple-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.8;
  background: var(--grey-01, #ccc);
  width: 100%;
  height: 100%;
}

.simple-modal__container {
  position: relative;
  border-radius: 5px;
  background: var(--white, #fff);
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.2);
  padding: 40px;
  margin: 20px;
  max-height: calc(100% - 40px);
  overflow: auto;
}

.simple-modal__container--400 {
  max-width: 400px;
}

/**
 * 1. Make sure the dialog container and all its descendants are not
 *    visible and not focusable when it is hidden.
 */
.simple-modal[aria-hidden='true'] {
  display: none; /* 1 */
}

.simple-modal__title {
  color: #000;
  font-family: Inter;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.44px;
  margin-bottom: 20px;
}

.simple-modal__close {
  position: absolute;
  top: 16px;
  right: 10px;
  cursor: pointer;
  padding: 0 5px;
  background: none;
  border: none;
  color: #000;
}

button.simple-modal__close .feather {
  font-size: 2em;
  line-height: 1em;
}

.simple-modal__buttons {
  margin-top: 20px;
  display: grid;
  gap: 14px;

  @media only screen and (min-width: 550px) {
    grid-template-columns: repeat(2, 1fr);
  }
}
