.uce-unfold {
  position: relative;
}

.uce-unfold__content {
  overflow: hidden;
  max-height: 220px;
  transition: max-height 250ms ease;
}

.uce-unfold.is-expanded .uce-unfold__content {
  overflow: visible;
}

.uce-unfold--fade:not(.is-expanded) .uce-unfold__content {
  position: relative;
}

.uce-unfold--fade:not(.is-expanded) .uce-unfold__content:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.uce-unfold__toggle-wrap {
  margin-top: 12px;
}

.uce-unfold__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #222;
  border: 1px solid #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 120ms ease, filter 120ms ease;
}

.uce-unfold__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uce-unfold__state--less {
  display: none;
}

.uce-unfold.is-expanded .uce-unfold__state--more {
  display: none;
}

.uce-unfold.is-expanded .uce-unfold__state--less {
  display: inline-flex;
}

.uce-unfold__icon {
  display: inline-flex;
  line-height: 1;
  color: inherit;
}

.uce-unfold__icon i {
  color: inherit;
}

.uce-unfold__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke: currentColor;
}

.uce-unfold--clickable .uce-unfold__content {
  cursor: pointer;
}

.uce-unfold__toggle:hover {
  filter: brightness(1.05);
}

.uce-unfold__toggle:active {
  transform: translateY(1px);
}

.uce-unfold__toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* Icon toggle button (+ / -) */
.uce-unfold__icon-toggle {
  position: absolute;
  right: 0;
  top: 220px; /* JS will override to boundary */
  transform: translate(50%, -50%);
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 999px;
  border: 0;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
}

.uce-unfold__icon-toggle:hover {
  filter: brightness(1.05);
}

.uce-unfold__icon-toggle:active {
  transform: translate(50%, calc(-50% + 1px));
}

.uce-unfold__icon-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
