/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--nutui-dialog-width, 295px);
  min-width: var(--nutui-dialog-min-width, 240px);
  /* #ifndef harmony dynamic*/
  max-height: 67%;
  /* #endif */
  min-height: var(--nutui-dialog-min-height, 60px);
  padding: var(--nutui-dialog-padding, var(--nutui-spacing-xxxl) var(--nutui-spacing-xxl));
  box-sizing: border-box;
}
.nut-dialog-outer {
  position: fixed;
  max-height: 100%;
  background-color: var(--nutui-dialog-background, var(--nutui-color-surface-2));
  /* #ifndef dynamic*/
  transition: transform 0.2s, -webkit-transform 0.2s;
  /* #endif */
  -webkit-overflow-scrolling: touch;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-radius: var(--nutui-dialog-border-radius, var(--nutui-radius-base));
  animation-duration: 0.3s;
}
.nut-dialog-close {
  position: absolute !important;
  z-index: 1;
  cursor: pointer;
  width: var(--nutui-dialog-close-width, 18px);
  height: var(--nutui-dialog-close-height, 18px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--nutui-dialog-close-color, var(--nutui-color-title));
}
.nut-dialog-close .nut-icon {
  font-size: var(--nutui-dialog-close-width, 18px);
  width: var(--nutui-dialog-close-width, 18px);
  height: var(--nutui-dialog-close-height, 18px);
}
.nut-dialog-close-top-right {
  top: var(--nutui-dialog-close-top, 16px);
  right: var(--nutui-dialog-close-right, 16px);
}
.nut-dialog-close-top-left {
  top: var(--nutui-dialog-close-top, 16px);
  left: var(--nutui-dialog-close-left, 16px);
}
.nut-dialog-close-bottom {
  bottom: scale-px(-64px);
  width: var(--nutui-dialog-bottom-close-icon-size, 24px);
  height: var(--nutui-dialog-bottom-close-icon-size, 24px);
  left: 50%;
  transform: translateX(-50%);
}
.nut-dialog-close-bottom .nut-icon {
  color: var(--nutui-color-text-disabled);
  background-color: var(--nutui-black-2, rgba(0, 0, 0, 0.05));
  border-radius: 50%;
  width: var(--nutui-dialog-bottom-close-icon-size, 24px);
  height: var(--nutui-dialog-bottom-close-icon-size, 24px);
}
.nut-dialog-close:active {
  opacity: 0.7;
}
.nut-dialog-header {
  display: block;
  text-align: center;
  font-size: var(--nutui-dialog-header-font-size, var(--nutui-font-text-large));
  font-weight: var(--nutui-dialog-header-font-weight, normal);
  color: var(--nutui-color-title);
  margin-bottom: var(--nutui-dialog-title-margin-bottom, 8px);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nut-dialog-content {
  width: 100%;
  margin: var(--nutui-dialog-content-margin, var(--nutui-spacing-base) 0);
  max-height: var(--nutui-dialog-content-max-height, 268px);
  line-height: var(--nutui-dialog-content-line-height, 20px);
  font-size: var(--nutui-font-text);
  color: var(--nutui-color-title);
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
  text-align: var(--nutui-dialog-content-text-align, left);
  overflow-y: auto;
}
.nut-dialog-footer {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
}
.nut-dialog-footer.vertical {
  flex-direction: column;
}
.nut-dialog-footer.vertical .nut-button {
  min-width: 100%;
}
.nut-dialog-footer.vertical .nut-dialog-footer-cancel {
  margin: 0;
  color: var(--nutui-color-text);
  font-size: var(--nutui-font-text);
  display: flex;
  justify-content: center;
  margin-top: var(--nutui-dialog-vertical-footer-ok-margin-top, 5px);
  background: transparent;
}
.nut-dialog-footer .nut-button {
  min-width: var(--nutui-dialog-footer-button-min-width, 117px);
  border-radius: var(--nutui-dialog-footer-button-border, 6px);
  padding: var(--nutui-button-large-padding, 0 scale-px(12px));
}
.nut-dialog-footer-cancel.nut-dialog-footer-cancel {
  margin-right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
  background: var(--nutui-dialog-footer-cancel-bg, var(--nutui-button-default-background-color, var(--nutui-color-default)));
  color: var(--nutui-button-default-color, var(--nutui-color-text));
  border-color: var(--nutui-button-default-border-color, transparent);
}
.nut-dialog-footer-cancel.nut-dialog-footer-cancel .nut-button-children {
  color: var(--nutui-button-default-color, var(--nutui-color-text));
}
.nut-dialog-footer-ok-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
}
.nut-dialog-footer-ok-container .nut-dialog-footer-ok-badge {
  position: absolute;
  right: 0;
  top: var(--nutui-dialog-footer-badge-top, -8px);
  display: flex;
  align-items: center;
  height: var(--nutui-dialog-footer-badge-height, 14px);
  padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
  background: var(--nutui-dialog-footer-badge-bg-ok, var(--nutui-color-danger-light));
  border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
  font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
  color: var(--nutui-dialog-footer-badge-color-ok, var(--nutui-color-primary, #ff6666));
}
.nut-dialog-footer-ok {
  max-width: var(--nutui-dialog-footer-ok-max-width, 128px);
  font-weight: var(--nutui-font-weight-medium, 500);
}
.nut-dialog-footer-ok .nut-button-children {
  font-weight: var(--nutui-font-weight-medium, 500);
}
.nut-dialog-footer-block.nut-button {
  min-width: 100%;
}
.nut-dialog-footer-cancel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
}
.nut-dialog-footer-cancel-container .nut-dialog-footer-cancel-badge {
  position: absolute;
  right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
  top: var(--nutui-dialog-footer-badge-top, -8px);
  display: flex;
  align-items: center;
  height: var(--nutui-dialog-footer-badge-height, 14px);
  padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
  background: var(--nutui-dialog-footer-badge-bg-cancel, var(--nutui-color-danger-light));
  border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
  font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
  color: var(--nutui-dialog-footer-badge-color-cancel, var(--nutui-color-primary, #ff6666));
}

[dir=rtl] .nut-dialog-outer,
.nut-rtl .nut-dialog-outer {
  left: auto;
  right: 50%;
  -webkit-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
}
[dir=rtl] .nut-dialog-close-top-right,
.nut-rtl .nut-dialog-close-top-right {
  right: auto;
  left: var(--nutui-dialog-close-right, 16px);
}
[dir=rtl] .nut-dialog-close-top-left,
.nut-rtl .nut-dialog-close-top-left {
  left: auto;
  right: var(--nutui-dialog-close-left, 16px);
}
[dir=rtl] .nut-dialog-footer-cancel.nut-dialog-footer-cancel,
.nut-rtl .nut-dialog-footer-cancel.nut-dialog-footer-cancel {
  margin-right: 0;
  margin-left: var(--nutui-dialog-footer-cancel-margin-right, 12px);
}
[dir=rtl] .nut-dialog-content,
.nut-rtl .nut-dialog-content {
  text-align: var(--nutui-dialog-content-text-align, right);
}