/* TitoEffectCheck — Stil des Federungs-Häkchens. Farben/Größen kommen aus den Optionen (titoeffect-check.js);
   "--fit": langer Text bleibt einzeilig und wird mit "…" gekürzt. */
.titoeffect-check {
  --te-check-ink: #ffffff;
  --te-check-fill: #ffffff;
  --te-check-check: #0b0b0f;
  --te-check-box: 28px;
  --te-check-radius: 9px;
  --te-check-font: 18px;
  --te-check-ring: 2px;
  --te-check-gap: 12px;
  --te-check-row: 44px;
  --te-check-rule: 1.5px;
  --te-check-origin: left center;
  --te-check-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  display: inline-flex;
  align-items: center;
  gap: var(--te-check-gap);
  min-height: var(--te-check-row);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--te-check-ink);
  font-family: inherit;
  font-size: var(--te-check-font);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
}

.titoeffect-check:disabled { opacity: 0.5; cursor: not-allowed; }

.titoeffect-check__press {
  flex: none;
  width: var(--te-check-box);
  height: var(--te-check-box);
  border-radius: var(--te-check-radius);
  transition: transform 160ms var(--te-check-ease-out);
}

.titoeffect-check[data-pressed] .titoeffect-check__press { transform: scale(0.95); }

.titoeffect-check:focus-visible .titoeffect-check__press {
  outline: 2px solid color-mix(in srgb, var(--te-check-ink) 45%, transparent);
  outline-offset: 3px;
}

.titoeffect-check__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transform-origin: center;
}

.titoeffect-check__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--te-check-ring) var(--te-check-ink);
  opacity: 0.28;
  transition: opacity 120ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .titoeffect-check:not(:disabled):hover .titoeffect-check__ring { opacity: 0.5; }
}

.titoeffect-check__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--te-check-fill);
  transform-origin: center;
  transform: scale(0);
}

.titoeffect-check__tick {
  position: relative;
  width: 68%;
  height: 68%;
  overflow: visible;
  fill: none;
  stroke: var(--te-check-check);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.titoeffect-check__tick path { stroke-dashoffset: 1; }

.titoeffect-check__label { position: relative; display: inline-block; }
.titoeffect-check__word { display: inline-block; }

.titoeffect-check__rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: var(--te-check-rule);
  border-radius: 2px;
  background: currentColor;
  transform-origin: var(--te-check-origin);
  transform: scaleX(0);
  pointer-events: none;
}

/* Einzeilig mit Auslassungspunkten; die Linie deckt genau die sichtbare Breite ab */
.titoeffect-check--fit { max-width: 100%; min-width: 0; }
.titoeffect-check--fit .titoeffect-check__label { display: block; min-width: 0; max-width: 100%; }
.titoeffect-check--fit .titoeffect-check__word {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .titoeffect-check__press { transition: none; }
}
