@import "../../styles/themes/variable.scss";

@font-face {
  font-family: "iconfont";
  src: url("./font/iconfont.ttf?t=1656570936378") format("woff2"),
    url("./font/iconfont.woff?t=1656570936378") format("woff"),
    url("./font/iconfont.woff2?t=1656570936378") format("truetype");
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 32PX;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-alert_toast:before {
  content: "\e632";
}

.icon-failure_toast:before {
  content: "\e636";
}

.icon-success_toast:before {
  content: "\e63a";
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.icon-loading_toast {
  animation: rotate 3s linear infinite;
}
.icon-loading_toast:before {
  content: "\e676";
}

#{$xh-prefix}-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14PX;
  z-index: 1000;
  &-content {
    position: absolute;
    min-width: 250px;
    box-sizing: border-box;
    max-width: 50vw;
    border-radius: 10px;
    text-align: center;
    padding: 24px;
    background-color: var(--toast-bg-color);
    color: var(--dialog-color);
  }
}

.xh-confirm-footer {
  display: flex;
  justify-content: space-between;
}

.alert-button {
  width: 44%;
  height: 80px;
  line-height: 1;
}
