.x-alert {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 99996;
  background: rgba(0,34,54,0.2);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  &__inner {
    width: 580px;
    background: #fff;
    box-shadow: 0 0 16px rgba(0,39,61,0.05);
    border-radius: 6px;
    opacity: 0;
    transform-origin: 50%;
  }
  &__body {
    padding: 60px 40px 20px 40px;
    h1 {
      display: block;
      margin-bottom: 15px;
      font-size: 34px;
      line-height: 1.5;
      margin-top: -10px;
      color: #333;
    }
    p {
      font-size: 28px;
      line-height: 1.2;
      color: #999;
      &.no-title {
        color: #333;
      }
    }
  }
  &__btns {
    display: flex;
    padding: 40px;

    a {
      display: block;
      flex: 1;
      width: 100%;
      text-align: center;
      line-height: 88px;
      font-size: 28px;
      color: #999;
      border-radius: 5px;
      background: rgb(245,245,245);

      &:not(:last-child) {
        margin-right: 20px;
      }
      &.x-alert__btn-y {
        background: #00bb55;
        color: #fff;
        &:active {
          background: #00bb55 - 10;
        }
      }
      &:active {
        opacity: 1;
        background: rgb(235,235,235);
      }

    }
  }
  &--show {
    opacity: 1;
    .x-alert__inner {
      transform: scale(1,1);
      opacity: 1;
      animation: __x_alert_show 0.2s ease-out;
    }
    @at-root {
      @keyframes __x_alert_show {
        0% { transform: scale(1.4,1.4); opacity: 0;}
        75% { transform: scale(0.95,0.95); opacity: 1;}
        100% { transform: scale(1,1); opacity: 1;}
      }
    }
  }
  &--hide {
    opacity: 0;
    transition: opacity 0.15s ease-out;
    pointer-events: none;
    .x-alert__inner {
      transform: scale(0.95,0.95);
      transition: all 0.15s ease-out;
    }
  }
}



