/* Element UI Message 风格 */
#custom-alert {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

#custom-alert[style*="display: block"] {
  display: flex !important;
}

#custom-alert * {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  box-sizing: border-box;
}

#custom-alert .alert-popup {
  display: inline-flex;
  align-items: center;
  min-width: 380px;
  max-width: 90vw;
  padding: 15px 15px 15px 20px;
  border-radius: 4px;
  border: 1px solid;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: elMessageFadeIn 0.3s ease;
}

@keyframes elMessageFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#custom-alert .alert-icon {
  width: auto;
  height: auto;
  margin: 0 10px 0 0;
  flex-shrink: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-alert .alert-icon svg {
  width: 16px;
  height: 16px;
}

#custom-alert .alert-title {
  display: none;
}

#custom-alert .alert-message {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

#custom-alert .alert-btn {
  display: none;
}

#custom-alert .alert-icon-error,
#custom-alert .alert-icon-success,
#custom-alert .alert-icon-warning {
  display: none;
}

#custom-alert.alert-error .alert-icon-error {
  display: block;
}

#custom-alert.alert-success .alert-icon-success {
  display: block;
}

#custom-alert.alert-warning .alert-icon-warning {
  display: block;
}

/* error */
#custom-alert.alert-error .alert-popup {
  background-color: #fef0f0;
  border-color: #fde2e2;
}

#custom-alert.alert-error .alert-icon,
#custom-alert.alert-error .alert-message {
  color: #f56c6c;
}

/* success */
#custom-alert.alert-success .alert-popup {
  background-color: #f0f9eb;
  border-color: #e1f3d8;
}

#custom-alert.alert-success .alert-icon,
#custom-alert.alert-success .alert-message {
  color: #67c23a;
}

/* warning */
#custom-alert.alert-warning .alert-popup {
  background-color: #fdf6ec;
  border-color: #faecd8;
}

#custom-alert.alert-warning .alert-icon,
#custom-alert.alert-warning .alert-message {
  color: #e6a23c;
}
