:root {
  --close-button-size: 24px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.75);
}

.window {
  position: relative;
  flex: 0 1 32em;
  max-width: 100%;
  padding-top: 0;
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
  outline: currentcolor none medium;
  background: rgb(255, 255, 255) none repeat scroll 0% 0%;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;

  @media (--tablet) {
    padding: 24px 32px;
  }
}

.close {
  flex: none;
  appearance: none;
  margin: 0;
  padding: 0;
  margin-top: 2px;
  margin-left: 1em;
  font: inherit;
  border: 0;
  outline: 0;
  width: var(--close-button-size);
  height: var(--close-button-size);
  background: transparent;
  white-space: nowrap;
  text-indent: 100%;
  overflow: hidden;
  background-image: url('./resources/cross.svg');
  background-size: var(--close-button-size);
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.close:focus {
  box-shadow: var(--control-shadow-focus);
}

.content {
  padding: 0 24px 24px;

  @media (--tablet) {
    padding: 0 32px 40px;
  }
}
