/* Paint the same symmetric mark in the center of each close button. */
:where(button[data-sorty-close]) { position:relative; cursor:pointer; }
button[data-sorty-close]::before,
button[data-sorty-close]::after { position:absolute; inset:0; pointer-events:none; }
button[data-sorty-close]::before {
  content:"";
  inset:50% auto auto 50%;
  width:var(--sorty-close-size,16px); height:var(--sorty-close-size,16px);
  transform:translate(-50%,-50%) rotate(45deg);
  background:currentColor; forced-color-adjust:none;
  mask:linear-gradient(black,black) center / 100% 2px no-repeat,
       linear-gradient(black,black) center / 2px 100% no-repeat;
}
button[data-sorty-close]:hover:not(:disabled)::after {
  content:""; border-radius:inherit;
  background:color-mix(in srgb,currentColor 13%,transparent);
}
button[data-sorty-close]:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
