.modal {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0px 4px 9px rgba(var(--black-rgb), 0.16);
  display: none;
  left: 0;
  margin: 0 15px;
  max-width: 700px;
  overflow: hidden;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 30px);
  z-index: 31;
}

@media (min-width: 760px) {
  .modal {
    left: 50%;
    margin: auto;
    max-width: 700px;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  align-items: center;
  background-color: var(--cyan);
  color: var(--light-blue);
  display: flex;
  padding: 15px;
}

@media (min-width: 760px) {
  .modal-header {
    padding: 15px 30px;
  }
}

.modal-close {
  height: 32px;
  width: 32px;
}

@media (min-width: 760px) {
  .modal-close {
    height: auto;
    width: auto;
  }
}

.modal-content {
  padding: 15px;
}

@media (min-width: 760px) {
  .modal-content {
    padding: 30px 60px;
  }
}

.modal-title {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.modal-footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: -10px;
  padding: 0 15px 20px 15px;
}

@media (min-width: 760px) {
  .modal-footer {
    padding: 0 80px 30px 80px;
  }
}

.modal-shadow {
  background-color: rgba(var(--white-rgb), 0.8);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
}

.modal-shadow.active {
  display: block;
}


/** cstm **/

.modal-content {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.crmEntityFormView, .entitylist, .modal-content, .popover-content {
  border: 0px !important;
}

.modal-footer button.button.button-primary {
  z-index: 100 !important;
}
