:root,
page {
  --nut-scale-f: 1;
  --nut-scale-font: var(--nut-scale-f, 1);
  --nut-scale-icon: var(--nut-scale-f, 1);
  --nut-icon-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
  --nut-icon-width: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
  --nut-icon-line-height: calc(16px * var(--nut-scale-icon, var(--nut-scale-f, 1))) !important;
}

/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-collapse-item {
  position: relative;
}
.nut-collapse-item::after {
  position: absolute;
  box-sizing: border-box;
  content: " ";
  pointer-events: none;
  right: calc(16px * var(--nut-scale-f, 1));
  left: calc(16px * var(--nut-scale-f, 1));
  bottom: 0;
  border-bottom: var(--nutui-collapse-item-border-bottom, none);
  -webkit-transform: scaleY(0.5);
  transform: scaleY(0.5);
}
.nut-collapse-item:last-child::after {
  display: none;
}
.nut-collapse-item-header {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: var(--nutui-collapse-item-padding, calc(13px * var(--nut-scale-f, 1)) calc(26px * var(--nut-scale-f, 1)));
  font-size: var(--nutui-collapse-item-font-size, var(--nutui-font-size-base, calc(14px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  line-height: var(--nutui-collapse-item-line-height, calc(24px * var(--nut-scale-f, 1)));
  background-color: var(--nutui-color-background-overlay, #ffffff);
  box-sizing: border-box;
}
.nut-collapse-item-header::after {
  position: absolute;
  box-sizing: border-box;
  content: " ";
  pointer-events: none;
  right: calc(16px * var(--nut-scale-f, 1));
  left: calc(16px * var(--nut-scale-f, 1));
  bottom: 0;
  border-bottom: var(--nutui-collapse-item-header-border-bottom, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
  /* #ifdef harmony dynamic*/
  transform: scale(1, 1);
  /* #endif */
  /* #ifndef harmony dynamic*/
  transform: scale(1, 0.5);
  /* #endif */
}
.nut-collapse-item-title {
  color: var(--nutui-collapse-item-color, var(--nutui-color-title, #1a1a1a));
  display: flex;
  align-items: center;
}
.nut-collapse-item-extra {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0 calc(20px * var(--nut-scale-f, 1));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--nutui-collapse-item-extra-color, var(--nutui-color-text, #505259));
}
.nut-collapse-item-icon-box {
  display: flex;
  width: calc(24px * var(--nut-scale-f, 1));
  position: relative;
  color: var(--nutui-color-text, #505259);
}
.nut-collapse-item-icon {
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  left: calc(5px * var(--nut-scale-f, 1));
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 0.3s;
}
.nut-collapse-item-header-disabled {
  color: var(--nutui-collapse-item-disabled-color, var(--nutui-color-text-disabled, #c2c4cc));
}
.nut-collapse-item-header-disabled .nut-collapse-item-title {
  color: var(--nutui-collapse-item-disabled-color, var(--nutui-color-text-disabled, #c2c4cc));
}
.nut-collapse-item-header-disabled .nut-collapse-item-icon {
  color: var(--nutui-collapse-item-disabled-color, var(--nutui-color-text-disabled, #c2c4cc));
}
.nut-collapse-item-content-wrapper {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.nut-collapse-item-content-wrapper-tran {
  transition: all 0.3s linear;
}
.nut-collapse-item-content {
  display: block;
  position: absolute;
  height: auto;
  width: 100%;
  box-sizing: border-box;
  color: var(--nutui-collapse-wrapper-content-color, var(--nutui-color-text, #505259));
  font-size: var(--nutui-collapse-wrapper-content-font-size, var(--nutui-font-size-base, calc(14px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
  line-height: var(--nutui-collapse-wrapper-content-line-height, 1.5);
  background-color: var(--nutui-collapse-wrapper-content-background-color, var(--nutui-color-background-overlay, #ffffff));
}
.nut-collapse-item-content-text {
  color: var(--nutui-collapse-wrapper-content-color, var(--nutui-color-text, #505259));
  padding: var(--nutui-collapse-wrapper-content-padding, calc(12px * var(--nut-scale-f, 1)) calc(26px * var(--nut-scale-f, 1)));
}

[dir=rtl] .nut-collapse-item-icon,
.nut-rtl .nut-collapse-item-icon {
  left: auto;
  right: calc(5px * var(--nut-scale-f, 1));
}