#nicealertPortal {
  position: absolute;
  top: 0;
  left: 0;
}

.nicealert_wrapper {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 60, 95, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

/* Стили, применяемые к заднему фону (оверлэй) при открытии модального окна */
.nicealert_wrapper.open {
  background: rgba(54, 60, 95, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background ease-in-out, blur ease-in-out;
}

/* Стили, применяемые к заднему фону (оверлэй) при закрытии модального окна */
.nicealert_wrapper.exit {
  background: rgba(54, 60, 95, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background ease-in-out, blur ease-in-out;
}

.nicealert_container {
  background-color: white;
  padding: 16px;
  border-radius: 16px;
  max-width: 350px;
  width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition-duration: inherit;
  transform: translateY(-20px);
  opacity: 0;
}

/* Стили, применяемые к модальному окну при открытии */
.nicealert_wrapper.open .nicealert_container {
  transform: translateY(0);
  opacity: 1;
}

/* Стили, применяемые к модальному окну при закрытии */
.nicealert_wrapper.exit .nicealert_container {
  transform: translateY(20px);
  opacity: 0;
}

.nicealert_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.nicealert_header_section {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nicealert_header_section svg {
  width: 18px;
  height: auto;
}

.nicealert_header_section-error .nicealert_header_title {
  color: var(--danger, #EC6363);
}

.nicealert_header_section-notification .nicealert_header_title {
  color: var(--accent, #5B4CCF);
}

.nicealert_header_section-success .nicealert_header_title {
  color: #66C4A3;
}

.nicealert_header_title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.nicealert_header_button-close {
  background: none;
  border: none;
  width: 18px;
  height: 18px;
  display: flex;
  position: relative;
  padding: 0;
  transition: .15s ease-in-out;
}

.nicealert_header_button-close:hover {
  cursor: pointer;
}

.nicealert_header_button-close::before,
.nicealert_header_button-close::after {
  content: "";
  width: calc(23px);
  height: 1px;
  background: #787878;
  position: absolute;
  top: 50%;
  left: 50%;
}

.nicealert_header_button-close:hover::before,
.nicealert_header_button-close:hover::after {
  background: var(--primary, #3D3D3D);
}

.nicealert_header_button-close::before {
  transform: translate(-50%) rotate(45deg);
}

.nicealert_header_button-close::after {
  transform: translate(-50%) rotate(-45deg);
}

.nicealert_message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.nicealert_message_text {
  font-size: 14px;
  color: var(--primary, #3D3D3D);
  width: 100%;
  margin: 0;
}

.nicealert_button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.nicealert_button {
  padding: 10px 25px;
  font-size: 16px;
  width: 100%;
}