/* TT Utilities Front CSS */
.ttu-collapsed {
  overflow: hidden;
  position: relative;
}
.ttu-fade:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 80%
  );
  pointer-events: none;
}
.ttu-toggle {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  background: #c70504;
}

.ttu-toggle .ttu-icon {
  display: inline-block;
  margin-right: 6px;
}

/* Fade-out effect at bottom of collapsed content */
.ttu-fade-wrap {
  position: relative;
}
.ttu-fade-wrap.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.9)
  );
  pointer-events: none;
}
/* Center the toggle button */
.ttu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  margin: 0.8em auto;
}
.ttu-toggle-wrapper {
  text-align: center;
}

/* Center the toggle button */
.ttu-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Fade overlay when collapsed */
.ttu-collapsed {
  position: relative;
  --ttu-overlay: #fff;
}
.ttu-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--ttu-overlay)
  );
  pointer-events: none;
}
