/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-numberkeyboard {
  width: 100%;
  padding: var(--nutui-numberkeyboard-padding, 0 0 22px 0);
  user-select: none;
  background-color: var(--nutui-numberkeyboard-background-color, var(--nutui-color-surface-1));
}
.nut-numberkeyboard-close-icon {
  width: var(--nutui-icon-size-18, 18px);
  height: var(--nutui-icon-size-18, 18px);
}
.nut-numberkeyboard-delete-icon {
  width: scale-px(28px);
  height: scale-px(28px);
}
.nut-numberkeyboard-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* #ifndef dynamic*/
  box-sizing: content-box;
  /* #endif */
  padding: var(--nutui-popup-title-padding, 12px);
  color: var(--nutui-color-title);
  font-size: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
}
.nut-numberkeyboard-header-title {
  color: var(--nutui-color-title);
  display: inline-block;
  font-size: var(--nutui-popup-title-font-size, var(--nutui-font-h1));
}
.nut-numberkeyboard-header-close {
  position: absolute;
  display: block;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: var(--nutui-numberkeyboard-header-close-padding, 0 16px);
  color: var(--nutui-numberkeyboard-header-close-color, var(--nutui-color-text));
  font-size: var(--nutui-numberkeyboard-header-close-font-size, 14px);
  background-color: var(--nutui-numberkeyboard-header-close-background-color, transparent);
  border: none;
  cursor: pointer;
}
.nut-numberkeyboard-body {
  display: flex;
  padding: scale-px(6px) 0 0 scale-px(6px);
}
.nut-numberkeyboard-body-keys {
  display: flex;
  flex: 3;
  flex-wrap: wrap;
}
.nut-numberkeyboard-body-wrapper {
  position: relative;
  flex: 1;
  /* #ifdef harmony dynamic*/
  width: 33%;
  /* #endif */
  /* #ifndef harmony dynamic*/
  flex-basis: 33%;
  /* #endif */
  box-sizing: border-box;
  padding: 0 scale-px(6px) scale-px(6px) 0;
  background-color: var(--nutui-numberkeyboard-wrapper-background-color, var(--nutui-color-surface-1));
}
.nut-numberkeyboard-body-wrapper .key {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nutui-numberkeyboard-key-height, 48px);
  font-size: var(--nutui-numberkeyboard-key-font-size, var(--nutui-font-h2));
  line-height: var(--nutui-numberkeyboard-key-line-height, 1.5);
  background-color: var(--nutui-numberkeyboard-key-background-color, #fff);
  color: var(--nutui-numberkeyboard-key-color, var(--nutui-color-text));
  border-radius: var(--nutui-numberkeyboard-key-border-radius, var(--nutui-radius-base));
  border: var(--nutui-numberkeyboard-key-border, none);
  font-weight: var(--nutui-font-weight-bold);
  cursor: pointer;
}
.nut-numberkeyboard-body-wrapper .key.active {
  background-color: var(--nutui-numberkeyboard-key-active-background-color, #ebedf0);
}
.nut-numberkeyboard-sidebar {
  display: flex;
  flex: 1;
  flex-basis: 33%;
  flex-direction: column;
}
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper {
  width: 100%;
}
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key {
  position: absolute;
  top: 0;
  right: scale-px(6px);
  bottom: scale-px(6px);
  left: 0;
  height: auto;
}
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .confirm {
  font-size: var(--nutui-numberkeyboard-key-confirm-font-size, var(--nutui-font-text-large));
  color: var(--nutui-numberkeyboard-key-confirm-color, #fff);
  background-color: var(--nutui-numberkeyboard-key-confirm-background-color, var(--nutui-color-primary, #ff6666));
}
.nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .confirm.active {
  background-color: rgba(255, 0, 0, 0.7);
}

[dir=rtl] .nut-popup .nut-numberkeyboard-header-close,
.nut-rtl .nut-popup .nut-numberkeyboard-header-close {
  right: auto;
  left: 0;
}
[dir=rtl] .nut-popup .nut-numberkeyboard-body,
.nut-rtl .nut-popup .nut-numberkeyboard-body {
  padding: scale-px(6px) scale-px(6px) 0 0;
}
[dir=rtl] .nut-popup .nut-numberkeyboard-body-wrapper,
.nut-rtl .nut-popup .nut-numberkeyboard-body-wrapper {
  padding: 0 0 scale-px(6px) scale-px(6px);
}
[dir=rtl] .nut-popup .nut-numberkeyboard-body-wrapper .delete,
.nut-rtl .nut-popup .nut-numberkeyboard-body-wrapper .delete {
  transform: rotate(-180deg);
}
[dir=rtl] .nut-popup .nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key,
.nut-rtl .nut-popup .nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key {
  left: scale-px(6px);
  right: 0;
}
[dir=rtl] .nut-popup .nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key.delete,
.nut-rtl .nut-popup .nut-numberkeyboard-sidebar .nut-numberkeyboard-body-wrapper .key.delete {
  transform: rotate(-180deg);
}