/* Hide TYPO3 core max length hint */
.form-group:has(.tx-cs_seo) .formengine-field-item .form-hint {
  display: none;
}
.tx-cs_seo {
  /* URL & Description */
}
.tx-cs_seo-wizard-item {
  background: #FFF;
  border-radius: 2px;
  box-sizing: border-box;
  color: #545454;
  container-type: inline-size;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  margin: 20px 0;
  max-width: 640px;
  padding: 10px;
  width: 100%;
}
.tx-cs_seo-title {
  color: #1A0DAB;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tx-cs_seo-title:hover {
  text-decoration: underline;
}
.tx-cs_seo-url {
  color: #006621;
  font-size: 14px;
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
}
.tx-cs_seo-desc {
  display: block;
  overflow: hidden;
  white-space: normal;
  width: 100%;
}
/* Container Query: below 600px allow up to 2 lines */
@container (max-width: 599px) {
  .tx-cs_seo-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: clip;
  }
}
/* Fallback for environments without container queries (JS adds .is-narrow) */
.tx-cs_seo.is-narrow .tx-cs_seo-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: clip;
}
/* Very small screens: shrink title slightly (optional) */
@media (max-width: 420px) {
  .tx-cs_seo-title {
    font-size: 18px;
  }
}
typo3-backend-formengine-char-counter[target*="seo_title"] {
  display: none !important;
}
/* A11y utility */
.tx-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
