/* Keep the Webform error summary available to screen readers and on focus. */
body:has(.webform-submission-form .form-item--error-message)
  .messages--error:has(> [role="alert"] > .item-list--comma-list a[href^="#edit-"]):not(:focus-within),
body:has(.webform-submission-form .form-item--error-message)
  .messages--error > [role="alert"] > .messages__list >
  .messages__item:has(> .item-list--comma-list a[href^="#edit-"]):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.webform-submission-form .form-item--error-message {
  margin-block-start: 0.375rem;
  color: #b3261e;
}
