.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #005a9c;
  outline-offset: 3px;
}

.spinner-div {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(244, 248, 252, 0.97);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  padding: 0;
}

.court-loader {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #0b1f3a;
  font-family: var(--kc-font-family-base, Calibri, Arial, sans-serif);
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 820px);
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.court-loader .wait-scale {
  display: inline-block;
  color: #4f6078;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 1;
  transform-origin: 50% 16%;
  animation: courtScaleBalance 1.35s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(11, 31, 58, 0.18));
  will-change: transform;
}

@keyframes courtScaleBalance {
  0%,
  100% {
    transform: rotate(-8deg);
  }

  25% {
    transform: rotate(6deg);
  }

  50% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .court-loader .wait-scale {
    animation: none;
    transform: none;
  }
}

.court-loader__svg {
  width: min(100%, 520px);
  height: auto;
  margin-bottom: 24px;
}

.courthouse {
  fill: none;
  stroke: #4f6078;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-lines {
  fill: #8fb6df;
  stroke: #8fb6df;
  stroke-width: 2;
  opacity: 0.45;
  animation: dataSweep 7s linear infinite;
}

@keyframes dataSweep {
  0% {
    transform: translateX(-24px);
    opacity: 0.15;
  }

  35% {
    opacity: 0.5;
  }

  70% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(24px);
    opacity: 0.15;
  }
}

.court-loader h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0;
}

.court-loader p {
  margin: 0 auto 24px;
  max-width: 440px;
  color: #4c5d73;
  font-size: 16px;
  line-height: 1.5;
}

.court-loader__steps {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #7b8797;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.court-loader__steps span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.court-loader__steps .active {
  color: #0b1f3a;
}

.court-loader__steps .active::before {
  opacity: 1;
  animation: statusPulse 1.6s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-lines,
  .court-loader__steps .active::before {
    animation: none;
  }
}

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.u-width-full {
  width: 100%;
}

.u-hidden {
  display: none;
}

.u-m-1 {
  margin: 1rem;
}

.u-my-1 {
  margin: 1rem 0;
}

.u-mt-quarter {
  margin-top: .25rem;
}

.u-mt-half {
  margin-top: .5rem;
}

.u-mt-1 {
  margin-top: 1rem;
}

.u-mt-1-5 {
  margin-top: 1.5rem;
}

.u-mb-0 {
  margin-bottom: 0;
}

.u-mb-1 {
  margin-bottom: 1rem;
}

.u-mb-half {
  margin-bottom: .5rem;
}

.u-mb-three-quarter {
  margin-bottom: .75rem;
}

.u-text-left {
  text-align: left;
}

.u-text-right {
  text-align: right;
}

.u-money-nowrap {
  white-space: nowrap;
}

td.u-text-right,
th.u-text-right,
td.text-right,
th.text-right,
td[data-label="Amount"],
td[data-label="Filing Amount"] {
  white-space: nowrap;
}

.u-text-center {
  text-align: center;
}

.u-word-break {
  word-break: break-word;
}

.u-flex-center {
  display: flex;
  justify-content: center;
}

.u-flex-between-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-position-relative {
  position: relative;
}

.u-block {
  display: block;
}

.u-inline-offset {
  margin-left: 1rem;
}

.u-row-gap {
  margin-bottom: 1rem;
}

.u-label-reset {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.u-pill-note {
  display: block;
  margin-top: 2px;
}

.u-hidden-mt-half {
  display: none;
  margin-top: .5rem;
}

.u-hidden-mt-1 {
  display: none;
  margin-top: 1rem;
}

.u-disabled-gray {
  color: gray;
}

.u-info-note {
  margin-top: 10px;
  color: var(--kc-color-link, #1F71D6);
  font-weight: bold;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.icon-btn {
  background: none;
  border: 0;
  padding: 0;
  margin-left: .25rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.info-icon {
  flex-shrink: 0;
  line-height: 1;
}

.info-icon i {
  font-size: .85em;
  position: relative;
  top: 1px;
}

.case-type-wrapper {
  position: relative;
  overflow: visible;
}

.dropdown-pane {
  z-index: 10000;
  max-width: 28rem;
  width: max-content;
  white-space: normal;
  line-height: 1.35;
  font-size: .95rem;
  color: #111;
}

@supports not (width: max-content) {
  .dropdown-pane {
    width: 28rem;
    max-width: 90vw;
  }
}

.dropdown-pane p {
  margin: 0 0 .75rem 0;
}

.dropdown-pane p:last-child {
  margin-bottom: 0;
}

.reveal {
  border: 1px solid #d7e0ea !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(15, 42, 95, 0.16) !important;
  padding: 1.5rem 1.75rem !important;
}

.reveal .close-button,
.popup-content .close-button {
  top: 1rem;
  right: 1rem;
  color: #34506f;
  font-size: 1.35rem;
}

.reveal .close-button:hover,
.reveal .close-button:focus,
.popup-content .close-button:hover,
.popup-content .close-button:focus {
  color: #17324d;
}

.reveal h1,
.reveal h2,
.reveal h3,
.popup-content h1,
.popup-content h2,
.popup-content h3 {
  color: #173f6b;
}

.reveal .callout.primary,
.popup-content .callout.primary {
  background: #f4f8fc;
  border: 1px solid #d7e0ea;
  border-left: 4px solid var(--kc-accent-blue);
  border-radius: 14px;
}

.popup-overlay {
  background: rgba(15, 42, 95, 0.38);
  backdrop-filter: blur(3px);
}

.popup-content {
  width: min(36rem, 92vw) !important;
  padding: 1.5rem 1.75rem !important;
  border: 1px solid #d7e0ea !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(15, 42, 95, 0.18) !important;
}

.popup-content .text-center {
  gap: 12px;
}

.test-mode-banner {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 3px solid #a61b1b;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff4d6 0%, #ffd8a8 100%);
  box-shadow: 0 4px 14px rgba(102, 36, 0, .18);
  color: #561b00;
}

.test-mode-banner-shell {
  max-width: 74rem;
  margin: 0 auto;
  padding-left: .9375rem;
  padding-right: .9375rem;
  box-sizing: border-box;
}

.test-mode-banner__eyebrow {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a1500;
}

.test-mode-banner__message {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.test-mode-badge {
  margin: .5rem 0 1rem;
  padding: .85rem 1rem;
  border-left: 6px solid #a61b1b;
  border-radius: 6px;
  background: #fff1cc;
  color: #6b1800;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(102, 36, 0, .12);
}

.refund-modal__summary {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.refund-modal__fieldset {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fbff;
}

.refund-modal__legend {
  padding: 0 .35rem;
  font-weight: 700;
}

.refund-modal__option {
  display: block;
  margin-bottom: .6rem;
}

.refund-modal__option:last-child {
  margin-bottom: 0;
}

.refund-modal__custom {
  margin-bottom: 1rem;
}

.party-select {
  position: relative;
  cursor: pointer;
  border: 1px solid #d9dee5 !important;
  transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
  padding: 20px;
  border-radius: 6px;
  background-color: #fff !important;
  box-shadow: none !important;
}

.party-checkbox {
  position: absolute;
  opacity: .01;
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
}

.party-checkbox:focus-visible + .party-card {
  outline: 3px solid #005a9c;
  outline-offset: 4px;
}

.party-card {
  display: block;
  width: 100%;
}

.party-select:hover {
  border-color: var(--kc-accent-blue) !important;
  background-color: rgba(31, 116, 219, 0.04) !important;
}

.party-select.selected {
  border-color: var(--kc-accent-blue) !important;
  background-color: rgba(31, 116, 219, .08) !important;
  outline: 3px solid var(--kc-accent-blue);
  outline-offset: 2px;
}

.card-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--kc-accent-blue);
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-indicator i {
  font-size: 16px;
  color: transparent;
  transition: color .2s ease-in-out;
}

.party-select.selected .card-indicator i {
  color: var(--kc-accent-blue);
}

.case-card-heading {
  font-size: 1rem;
  margin-bottom: .25rem;
}

.checkout-warning {
  background-color: #fff4d6;
  border: 2px solid #c97a00;
  color: #4f3200;
  padding: 1rem 1.25rem;
}

.checkout-warning-title {
  margin-bottom: .5rem;
  color: #8a4b00;
}

.active-filters-banner {
  background-color: #fef3c7;
  border-left: 5px solid #f59e0b;
  padding: 1rem;
}

.active-filters-label {
  color: #92400e;
}

.admin-title-offset {
  padding-left: 115px !important;
}

.selection-modal-title {
  text-align: center;
}

.testing-banner {
  color: #a00;
  border: 1px solid #a00;
  margin: 3px;
  padding: 3px;
  text-align: center;
}

.icon-action {
  margin-right: 6px;
}

.icon-flag-pending {
  color: #daa520;
}

.icon-flag-approved,
.icon-paid {
  color: #28a745;
}

.icon-flag-judicial,
.icon-review {
  color: #4e342e;
}

.icon-flag-denied,
.icon-delete {
  color: #dc3545;
}

.icon-flag-emailed {
  color: #6f42c1;
}

.icon-email {
  color: purple;
}

.flag-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.flag-legend {
  font-size: .9rem;
}

.flag-legend-item {
  margin-left: 1rem;
}

.button-stack-center {
  text-align: center;
}

.radio-alert {
  display: none;
  margin-top: .5rem;
}
