@use "./variables" as *;

.#{$component-prefix}number-keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: $number-keyboard-z-index;
  width: 100%;
  padding-bottom: 22px * $hd;
  user-select: none;
  background-color: $number-keyboard-background-color;

  &--with-title {
    border-radius: $number-keyboard-with-title-border-radius;
  }

  &__header {
    position: relative;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: $number-keyboard-header-height;
    padding-top: $number-keyboard-header-padding-top;
    font-size: $number-keyboard-header-font-size;
    color: $number-keyboard-header-color;
  }

  &__title {
    display: inline-block;
    font-weight: normal;

    &-left {
      position: absolute;
      left: 0;
    }
  }

  &__body {
    display: flex;
    padding: 6px * $hd 0 0 6px * $hd;
  }

  &__keys {
    display: flex;
    flex: 3;
    flex-wrap: wrap;
  }

  &__hide {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    height: 100%;
    padding: $number-keyboard-hide-padding;
    font-size: $number-keyboard-hide-font-size;
    color: $number-keyboard-hide-color;
    cursor: pointer;
    background-color: transparent;
    border: 0 none;

    &:active {
      opacity: $number-keyboard-hide-active-opacity;
    }
  }

  &__sidebar {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  &--unfit {
    padding-bottom: 0;
  }
}
