.PdEmhn {
  .button,
  input[type="submit"],
  .mce-button-primary,
  %button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px 0 14px;
    height: 40px;
    border: none;
    font-size: 17px;
    line-height: 25px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    background-color: var(--button-primary-normal-bg-color);
    color: var(--button-primary-normal-text-color);

    -webkit-appearance: none;
    user-select: none;
    appearance: none;
    outline: 0;
    overflow: hidden;
    cursor: pointer;

    span {
      color: var(--button-primary-normal-text-color);
    }

    &.sm {
      font-size: 15px;
      line-height: 23px;
    }

    &.lg {
      min-width: 230px;
    }

    &::before {
      content: "";
      position: absolute;
      bottom: -100%;
      left: 0;
      right: 0;
      top: 0;
      margin: auto;
      z-index: -1;
      width: 30%;
      border-radius: 99999px;
      background: var(--button-primary-hover-bg-color);
      transition: 0.5s ease-in-out;
      transform: translateY(50%);
    }
    &::after {
      content: "\e64b";
      font-family: iconfont !important;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      position: absolute;
      right: 14px;
      font-size: 10px;
      line-height: 1;
    }

    &:hover,
    &:active,
    &.active {
      color: var(--button-primary-hover-text-color);
      span {
        color: var(--button-primary-hover-text-color);
      }
      &::before {
        transform: scale(6);
      }
    }

    &:disabled,
    &.disabled {
      pointer-events: none;
      cursor: not-allowed;
      color: var(--button-primary-disabled-text-color);
      background-color: var(--button-primary-disabled-bg-color);
      border-color: var(--button-primary-disabled-border-color);
    }

    &.loading {
      pointer-events: none;
      cursor: not-allowed;
      &:after {
        content: "";
        position: absolute;
        top: 0;
        right: 10px;
        bottom: 0;
        margin: auto;
        width: 16px;
        height: 16px;
        border: 2px solid var(--button-primary-normal-text-color);
        border-top: 2px solid transparent;
        border-radius: 50%;
        animation: spin-loader 1s linear infinite;
      }
    }

    &.button-white {
      background-color: #fff;
      color: #000;
      &:hover {
        color: #fff;
      }
    }

    &.button-hover-black {
      &::before {
        background: #000;
      }
    }
  }

  .button--secondary {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    padding: 0 32px 0 0;
    color: var(--button-secondary-normal-text-color) !important;
    background: none;
    line-height: 22px;
    white-space: noWrap;
    text-decoration: none;
    transition: all var(--default-transition-params);

    &::before {
      content: none;
      display: none;
    }

    &::after {
      content: "\e64c";
      font-family: iconfont !important;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      position: absolute;
      right: 0;
      font-size: 20px;
      padding: 1px;
      line-height: 1;
      background-color: transparent;
      transition: transform var(--default-transition-params);
    }

    &:hover {
      &:after {
        color: var(--button-secondary-hover-arrow-color);
        background-color: var(--button-secondary-hover-bg-color);
        border-radius: 50%;
        transform: rotate(45deg);
      }
    }
  }

  .button {
    &--slim {
      min-width: 125px;
      min-height: 0;
      padding: 4px 15px;
    }

    &--large {
      max-height: 60px;
      max-width: 290px;
      font-size: 20px;
    }

    &-group {
      display: flex;
      gap: 32px;
      flex-wrap: wrap;
      &.center {
        justify-content: center;
      }
    }
    .icon-github {
      background: url("https://static.pingcap.com/files/2024/04/25211345/github.png")
        no-repeat center/contain;
      height: 24px;
      width: 24px;
      display: inline-block;
      vertical-align: middle;
      margin-right: 6px;
    }
  }

  .button-primary {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px 0 14px;
    height: 40px;
    border: none;
    font-size: 17px;
    line-height: 25px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    background-color: #fff;
    color: #000;
    -webkit-appearance: none;
    user-select: none;
    appearance: none;
    outline: 0;
    overflow: hidden;
    cursor: pointer;

    span {
      color: #000;
    }

    &.sm {
      font-size: 15px;
      line-height: 23px;
    }

    &.lg {
      min-width: 230px;
    }

    &::before {
      content: "";
      position: absolute;
      bottom: -100%;
      left: 0;
      right: 0;
      top: 0;
      margin: auto;
      z-index: -1;
      width: 30%;
      border-radius: 99999px;
      background: var(--button-primary-hover-bg-color);
      transition: 0.5s ease-in-out;
      transform: translateY(50%);
    }
    &::after {
      content: "\e64b";
      font-family: iconfont !important;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      position: absolute;
      right: 14px;
      font-size: 10px;
      line-height: 1;
    }

    &:hover {
      color: #fff;
      span {
        color: #fff;
      }
      &::before {
        transform: scale(6);
      }
    }
  }

  .button-link {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    padding-right: 32px;
    color: var(--button-secondary-normal-text-color);
    line-height: 22px;
    white-space: noWrap;
    text-decoration: none;
    transition: all var(--default-transition-params);

    &::after {
      content: "\e64c";
      font-family: iconfont !important;
      font-style: normal;
      -webkit-font-smoothing: antialiased;
      position: absolute;
      right: 0;
      font-size: 20px;
      padding: 1px;
      line-height: 1;
      background-color: transparent;
      transition: transform var(--default-transition-params);
    }

    &.lg {
      font-size: 21px;
      padding-right: 36px;
      &:after {
        font-size: 24px;
      }
    }

    &:hover {
      &:after {
        color: var(--button-secondary-hover-arrow-color);
        background-color: var(--button-secondary-hover-bg-color);
        border-radius: 50%;
        transform: rotate(45deg);
      }
    }
  }

  .button__arrow {
    display: none;
  }

  .button-text {
    position: relative;
    padding: 0 13px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-align: left;
    text-decoration: none;
    color: #fff !important;
    &::before {
      content: "";
      width: 12px;
      height: 1px;
      background-color: #fff;
      display: block;
      position: absolute;
      right: -6px;
      top: 0;
      bottom: 0;
      margin: auto;
      transition: all var(--default-transition-params);
    }
    &:after {
      content: "";
      font-size: 16px;
      position: absolute;
      right: -5px;
      top: 0;
      bottom: 0;
      margin: auto;
      width: 8px;
      height: 8px;
      display: block;
      border: 1px solid #fff;
      border-left-color: transparent;
      border-bottom-color: transparent;
      transform: rotate(45deg);
      color: #fff;
      pointer-events: none;
      transition: right var(--default-transition-params);
    }
    &:hover {
      color: #fff !important;
      &::before {
        color: #fff;
        width: 20px;
        right: -14px;
      }
      &::after {
        color: #fff;
        right: -13px;
      }
    }
  }
}
