@import "../../styles/index.scss";

.ia-styles.ia-alert {
  position: relative;
  font-family: $fontFamily !important;
  border: 1px solid #c4e8d5;
  min-height: 36px;
  box-sizing: border-box;
  font-size: 12px !important;
  font-weight: $normalFontWeight;
  border-radius: $borderRadius;
  min-width: 385px;
  box-shadow: 0px 0px 16px 5px #0000001f;
  padding: 8px 16px !important;
  display: flex;
  align-items: flex-start;

  .description {
    color: $textButtonFontColor;
    font-size: 12px;
    word-break: break-word;
  }

  .MuiAlert-message {
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 4px;
    overflow: initial;

    button {
      text-transform: none;
      min-width: 0;
      padding: 0px;
      height: 16px;
      color: $secondaryColor;
      font-weight: 500;
      font-size: 12px;
      &:not(:last-child) {
        margin-right: 6px;
      }

      .MuiTouchRipple-root {
        visibility: hidden;
      }
    }
    .close_btn_alert {
      color: $textButtonFontColor;
      background: transparent;
      &:hover svg {
        color: $textButtonFontColor !important;
        path {
          fill: $textButtonFontColor !important;
        }
      }
    }
    .ia-alert-body {
      padding: 0px;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;

      & > .MuiTypography-root {
        flex-grow: 1;
        margin-bottom: 0px;
        font-size: 14px;
        font-weight: 500;
        color: $darkColor;
        font-family: $fontFamily;
      }
    }
  }
}

.ia-styles.ia-alert.ia-subtleBackground {
  box-shadow: none !important;
  border: none !important;
}

.ia-styles.ia-alert .MuiButtonBase-root:hover {
  background-color: transparent;
  color: $buttonHoverColor;
}

.ia-styles.ia-alert .MuiAlert-icon {
  margin-right: 12px;
  font-size: 18px;
  opacity: 1;
  align-items: flex-start;
  margin-top: -2px;
  padding: 0;
}

.ia-styles.ia-alert.MuiAlert-standardSuccess {
  background: $successBackground;
  border: 1px solid $successStroke;

  .MuiAlert-icon {
    color: $successIconColor;
  }
}
.ia-styles.ia-alert.MuiAlert-standardInfo {
  background: $infoBackground;
  border: 1px solid $infoStroke;

  .MuiAlert-icon {
    color: $primaryColor;
  }
}
.ia-styles.ia-alert.MuiAlert-standardWarning {
  background: $warningBackground;
  border: 1px solid $warningStroke;

  .MuiAlert-icon {
    color: $warningAlertIcon;
  }
}
.ia-styles.ia-alert.MuiAlert-standardError {
  background: $errorBackground;
  border: 1px solid $errorStroke;

  .MuiAlert-icon {
    color: $destructiveBg;
  }
}
