@import './button.scss';
@import './mask.scss';
@import "../../styles/themes/variable.scss";
@import "../../styles/themes/animation.scss";

#{$xh-prefix}-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 999;
  align-items: center;
  justify-content: center;
  &-content {
    position: absolute;
    background-color: #fff;
    z-index: 999;
    width: 560px;
    // width: 600px;
    padding-top: 64px;
    box-sizing: border-box;
    border-radius: 16px;
    text-align: center;
    &-header {
      font-size: 32px;
      line-height: 45px;
      margin-bottom: 24px;
      padding: 0 32px;

      // font-size: 38px;
      font-family: PingFang SC;
      font-weight: 500;
      // line-height: 53px;
      color: #333333;
      // padding: 0 60px;
    }
    &-content {
      font-size: 28px;
      line-height: 40px;
      margin: 0 auto;

      // margin: 40px auto 0;
      // font-size: 30px;
      font-family: PingFang SC;
      color: var(--font-color);
      padding: 0 64px;
      &.headless {
        color: #333;
        // font-size: 34px;
      }
    }
    &-footer {
      margin-top: 64px;

      // margin-top: 60px;
      .xh-alert-button.xh-button {
        width: 100%;
        height: 88px;
        font-size: 30px;
        
        // line-height: 88px;
        // padding: 8px 0;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        border-top: 1PX solid #EEE;
      }

      .xh-confirm-footer {
        display: flex;
        justify-content: space-between;
        border-top: 1PX solid #EEE;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        overflow: hidden;
        &-button {
          height: 88px;
          font-size: 30px;

          flex: 1;
          // font-size: 32px;
          // padding: 8px 0;
        }
        &-cancel-button.xh-button {
          color: var(--font-color-secondary);
          border-right: 1PX solid #EEE;
        }
      }
    }
  }
}

.fade {
  &-enter,
  &-appear {
    opacity: 0;
  }

  &-enter-active {
    opacity: 1;
    transition: opacity 0.3s;
  }

  &-exit {
    opacity: 1;
  }

  &-exit-active {
    opacity: 0;
    transition: opacity 0.3s;
  }
}

.scale {
  &-enter,
  &-appear {
    opacity: 0;
    transform: scale(0.8);
  }

  &-enter-active,
  &-appear-active {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s, opacity 0.3s;
  }

  &-exit {
    opacity: 1;
    transform: scale(1);
  }

  &-exit-active {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.3s, opacity 0.3s;
  }
}

.slide-up {
  &-enter,
  &-appear {
    opacity: 0;
    transform: translateY(100%);
  }

  &-enter-active,
  &-appear-active {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s, opacity 0.3s;
  }

  &-exit {
    opacity: 1;
    transform: translateY(0);
  }

  &-exit-active {
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s, opacity 0.3s;
  }
}

.slide-down {
  &-enter,
  &-appear {
    opacity: 0;
    transform: translateY(-100%);
  }

  &-enter-active,
  &-appear-active {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s, opacity 0.3s;
  }

  &-exit {
    opacity: 1;
    transform: translateY(0);
  }

  &-exit-active {
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s, opacity 0.3s;
  }
}

.slide-left {
  &-enter,
  &-appear {
    opacity: 0;
    transform: translateX(100%);
  }

  &-enter-active,
  &-appear-active {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s, opacity 0.3s;
  }

  &-exit {
    opacity: 1;
    transform: translateX(0);
  }

  &-exit-active {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s, opacity 0.3s;
  }
}

.slide-right {
  &-enter,
  &-appear {
    opacity: 0;
    transform: translateX(-100%);
  }

  &-enter-active,
  &-appear-active {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s, opacity 0.3s;
  }

  &-exit {
    opacity: 1;
    transform: translateX(0);
  }

  &-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.3s, opacity 0.3s;
  }
}
