@import './badge.scss';
@import './space.scss';
@import "../../styles/themes/variable.scss";


@font-face {
  font-family: "xh-iconfont"; /* Project id 4043926 */
  src:
    url('./font/iconfont.woff2?t=1687140360510') format('woff2'),
    url('./font/iconfont.woff?t=1687140360510') format('woff'),
    url('./font/iconfont.ttf?t=1687140360510') format('truetype');
}

#{$xh-prefix}-amount-keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  background-color: #fff;

  &-header {
    border-top: 1PX solid $border-color;
    display: flex;
    justify-content: flex-start;
    &-wrapper {
      width: 100%;
      &-text {
        font-size: 32px;
        font-family: PingFang SC-Regular, PingFang SC;
        font-weight: 400;
        color: #333333;
        white-space: nowrap;
        overflow-x: auto;
        padding: 0 40px;
        height: 122px;
        display: flex;
        align-items: center;
        width: 100%;
      }
    }
  }

  &-close {
    align-self: flex-end;
    border: 0;
    text-align: center;
    font-size: 30px;
    font-family: PingFang SC-Regular, PingFang SC;
    font-weight: 400;
    color: $color-primary-dark;
  }

  &-body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1PX solid var(--border-color);
    &-key {
      width: 25%;
      height: 112px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #ffffff;
      font-size: 42px;
      font-family: DIN Alternate-Bold, DIN Alternate;
      font-weight: bold;
      color: #000000;
      border-right: 1PX solid var(--border-color);
      border-top: 1PX solid var(--border-color);
      &:active {
        background-color: #eee;
      }
      &.delete {
        font-family: 'xh-iconfont';
        font-style: normal;
        font-weight: 400;
        font-variant: normal;
        text-transform: none;
        text-rendering: auto;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        vertical-align: middle;
      }
      &.delete {
        &:before {
          content: "\e61b";
        }
      }
      &.close {
        @extend .delete;
        &:before {
          content: "\e620";
        }
      }
      &.none {
        visibility: hidden;
        pointer-events: none;
      }
      &.confirm-fake {
        background: $btn-color;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 25%;
        height: 336px;
        color: #FFF;
        border-color: 1PX;
        &:active {
          opacity: 0.8;
        }
      }
    }
    .xh-button-webutton {
      background-color: #fff;
    }
  }
}
.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;
  }
}
