@keyboardPrefixCls: parking-keyboard;
// 键盘每格的宽高比: height / width
@itemWHPercent: 84 / 64;

.@{keyboardPrefixCls} {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  overflow: hidden;
  box-sizing: border-box;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: all 0.5s;
  background-color: #fff;

  &-container {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: @c162;
  }

  &-content {
    padding: 10px 10px;
  }

  &-flexbox {
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
  }

  &-flexbox-item {
    box-sizing: border-box;
    flex: 1;
    margin-left: 10px;
    min-width: 20px;

    &:first-child {
      margin-left: 0;
    }
  }

  .keyboard-item {
    position: relative;
    width: 100%;
    padding-top: @itemWHPercent * 100%;
    margin: 10px 0;

    &-content {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 36px;
      font-weight: bold;
      color: @c142;
      background-color: #fff;
    }

    &-disabled {
      color: @c106;
      background-color: @c003;
    }
  }

  &-delete {
    box-sizing: border-box;
    flex: 2;
    margin-left: 20px;
    min-width: 20px;

    .keyboard-delete-container {
      position: relative;
      width: 100%;
      padding-top: (@itemWHPercent / 2) * 100%;
      margin: 10px 0;
    }

    .keyboard-delete {
      margin-left: (1 - 106/128) * 100%;

      & > svg {
        width: 44px;
        height: 32px;
      }
    }
  }

  &-item-active {
    .keyboard-item-content {
      background-color: rgba(64, 64, 64, 0.1);
    }
  }
}
