[modal-container],
[modal-container] .modal-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  overflow: auto;
  position: fixed;
  top: 0;
  right: 0;
}

[modal-container] {
  bottom: 0;
  z-index: 9999;
}

[modal-container] .modal-screen {
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  width: 100%;
}

[modal-container] .modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 201;
  overflow: hidden;
  outline: 0;
}

[modal-container] .modal div[role="dialog"] {
  max-height: 80vh;
  overflow-y: auto;
}

[modal-container] .modal div[role="dialog"]:focus {
  outline: 1px dashed #fff;
  outline-offset: 3px;
}

[modal-container] .modal header {
  padding: 0.3125rem 0.3125rem 0.3125rem 1.25rem;
}

[modal-container] .modal header button {
  padding: 0.875rem 0.9125rem;
}

[modal-container] .modal header button:before {
  width: 16px;
}

[modal-container] .modal-close-button {
  background: transparent;
  position: absolute;
  right: 16px;
  top: 16px;
  height: auto;
  width: auto;
  padding: 0;
}

[modal-container] .modal-close-button img {
  padding: 1em;
}
