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

#{$xh-prefix}-dialog-ref {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  z-index: 999;
  &.show {
    visibility: visible;
    .xh-dialog-ref-content {
      animation: scaleDialog 0.3s;
    }
  }
  &-content {
    position: absolute;
    background-color: #fff;
    &.tranparent {
      background-color: transparent;
    }
    z-index: 999;
    width: 600px;
    box-sizing: border-box;
    text-align: center;
    touch-action: none;
    color: var(--font-color);
    border-radius: 16px;
    &-header {
      font-size: 32px;
      font-family: PingFang SC;
      font-weight: 500;
      // line-height: 53px;
      line-height: 45px;
      margin-top: 64px;
    }
    &-content {
      // margin: 66px auto 0;
      font-size: 28px;
      font-family: PingFang SC;
      text-align: left;
    }
    &-footer {
      // margin-top: 60px;
      .xh-dialog-ref-content-footer-buttons {
        border-top: 1PX solid #EEE;
        display: flex;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        overflow: hidden;
        &.portrait {
          flex-direction: column-reverse;
        }
        &.fancy {
          flex-direction: column-reverse;
          padding: 0 24px;
          border-top: 0;
          .xh-dialog-ref-content-footer-buttons-confirm {
            background-color: var(--color-primary);
            margin-bottom: 28px;
            border-radius: 48px;
          }
          .xh-dialog-ref-content-footer-buttons-cancel {
            font-size: 28px;
            padding: 28px 0;
            line-height: 1;
            border: 0;
          }
        }


        &-cancel.xh-button {
          color: var(--font-color-tertiary);
          border-right: 1PX solid #EEE;
        }
      }
    }
  }
}

@keyframes scaleDialog {
  from {
    transform: scale(0.6);
    opacity: 0.2;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
