.gts-ajax-error {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--g-border, #DCE1EA);
  border-radius: 12px;
  background: #fff;
  color: var(--g-text, #1A2233);
  box-shadow: 0 24px 56px rgba(16, 24, 40, .25);
  font: 14px/1.5 var(--g-font, "Inter", "Segoe UI", Arial, sans-serif);
  text-align: left;
}

.gts-ajax-error::backdrop { background: rgba(26, 34, 51, .42); }
.gts-ajax-error:not([open]) { display: none; }
.gts-ajax-error.is-fallback { z-index: 2147483647; box-shadow: 0 0 0 100vmax rgba(26, 34, 51, .42); }
.gts-ajax-error-head { display: flex; align-items: center; gap: 12px; }
.gts-ajax-error-head h2 { margin: 0; color: inherit; font-size: 18px; font-weight: 600; line-height: 1.3; }
.gts-ajax-error-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #FEE4E2;
  color: #B42318;
  font-size: 18px;
  font-weight: 700;
}
.gts-ajax-error p { margin: 14px 0; color: inherit; font-size: 14px; }
.gts-ajax-error-details {
  max-height: 28vh;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--g-border, #DCE1EA);
  border-radius: 6px;
  background: var(--g-head-bg, #F7F8FB);
  color: var(--g-muted, #5B6478);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.gts-ajax-error-details div { margin-top: 3px; white-space: pre-wrap; }
.gts-ajax-error footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.gts-ajax-error button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--g-accent, #0D47A1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.gts-ajax-error button:hover { background: var(--g-accent-dark, #08306E); }
.gts-ajax-error :focus-visible { outline: 2px solid var(--g-accent, #0D47A1); outline-offset: 2px; }
