.modal {
  width: var(--as-modal-width, 300px);
  height: var(--as-modal-height, auto);
  padding: 16px;
  background-color: #fff;
  border: 0;
  border-radius: 3px;
  text-align: left;
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.1), 0 4px 16px 10px rgba(0, 0, 0, 0.08);
  outline: 0;
  transition: width 160ms ease, height 160ms ease;
}

.modal-close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  color: rgba(0, 0, 0, 0.8);
  background: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 100%;
  z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  background-color: rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.modal-header .modal-pretitle {
  font-weight: 500;
  margin: 5px 0 10px;
}
.modal-header .modal-title {
  font-family: sans-serif;
  font-size: 20px;
  margin: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  transition: height 160ms ease;
}

:host(.is-scrollable) .modal-content {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 50vh;
}

.modal-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 25px;
}

.modal-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0 60px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  z-index: 5;
}

.modal-extra {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.modal-actions as-button {
  margin-left: 10px;
}

:host(.is-loading) .modal-footer {
  display: none;
}