.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9998;
}

.custom-modal-window {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: calc(100% - 32px);
  height: calc(100vh - 56px);
  background: #fff;
  z-index: 9999;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}

.custom-modal-header {
  padding: 18px 20px 12px 20px;
  border-bottom: 1px solid #e5e5e5;
  flex: 0 0 auto;
}

.custom-modal-header h3 {
  color: #4b1f68;
  font-size: 21px;
  font-weight: 400;
  margin: 0;
}

.custom-modal-close {
  border: 0;
  background: transparent;
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  opacity: .6;
}

.custom-modal-close:hover,
.custom-modal-close:focus {
  opacity: 1;
  background: transparent;
  border: 0;
  outline: none;
}

.custom-modal-search-input {
  height: 39px;
  border: 1px solid #8a8a8a;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  box-shadow: none;
}

.custom-modal-search-button {
  height: 39px;
  min-width: 48px;
  border: 1px solid #4b1f68 !important;
  background: #fff !important;
  color: #4b1f68 !important;
  border-radius: 0 2px 2px 0 !important;
  box-shadow: none;
}

.custom-modal-search-button:hover,
.custom-modal-search-button:focus {
  background: #f7f2fa !important;
  color: #4b1f68 !important;
  border-color: #4b1f68 !important;
  outline: none;
}

.custom-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 16px;
}

.custom-modal-body table {
  margin: 0;
}

.custom-modal-body thead {
  background: #f3f5f9;
}

.custom-modal-footer {
  flex: 0 0 auto;
  padding: 14px 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.custom-modal-confirm {
  background: #4b1f68 !important;
  border-color: #4b1f68 !important;
  color: #fff !important;
}

.custom-modal-confirm:hover,
.custom-modal-confirm:focus {
  background: #3b1554 !important;
  border-color: #3b1554 !important;
  color: #fff !important;
}

.custom-modal-cancel {
  background: #fff !important;
  border: 1px solid #4b1f68 !important;
  color: #4b1f68 !important;
}

.custom-modal-cancel:hover,
.custom-modal-cancel:focus {
  background: #f7f2fa !important;
  border-color: #4b1f68 !important;
  color: #4b1f68 !important;
}