/* Caseload cookie consent. Kept self-contained for React, static and server-rendered pages. */
#caseload-cookie-root {
  --cc-ink: #33493c;
  --cc-ink-soft: #526557;
  --cc-paper: #fafbf9;
  --cc-paper-deep: #edf2ea;
  --cc-leaf: #527e47;
  --cc-line: rgba(57, 82, 67, 0.2);
  --cc-display: "Fraunces", Georgia, serif;
  --cc-body: "Figtree", system-ui, sans-serif;
  color: var(--cc-ink);
  font-family: var(--cc-body);
  font-size: 14px;
  line-height: 1.55;
}

#caseload-cookie-root *,
#caseload-cookie-root *::before,
#caseload-cookie-root *::after {
  box-sizing: border-box;
}

.cc-banner {
  position: fixed;
  z-index: 2147483000;
  inset: auto 16px 82px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 34px;
  align-items: center;
  max-width: 960px;
  max-height: min(70vh, 600px);
  overflow: auto;
  margin-inline: auto;
  padding: 26px 30px 24px;
  border: 1px solid var(--cc-line);
  border-radius: 5px;
  background: var(--cc-paper);
  box-shadow: 0 12px 38px rgba(42, 62, 48, 0.17);
}

.cc-banner[hidden] {
  display: none;
}

.cc-copy {
  min-width: 0;
}

.cc-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--cc-leaf);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cc-title {
  margin: 0 0 8px;
  color: var(--cc-ink);
  font-family: var(--cc-display);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cc-description {
  max-width: 620px;
  margin: 0;
  color: var(--cc-ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.cc-description + .cc-description {
  margin-top: 6px;
}

.cc-description a {
  color: var(--cc-leaf);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cc-description a:hover {
  color: var(--cc-ink);
}

.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 210px;
}

.cc-button,
.cc-settings {
  min-height: 44px;
  border: 1px solid var(--cc-leaf);
  border-radius: 3px;
  font: 650 13px/1.25 var(--cc-body);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.cc-button {
  width: 100%;
  padding: 11px 14px;
}

.cc-button--primary,
.cc-button--secondary {
  background: var(--cc-leaf);
  color: var(--cc-paper);
}

.cc-button--primary:hover,
.cc-button--secondary:hover {
  border-color: #3f6638;
  background: #3f6638;
}

.cc-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--cc-ink-soft);
  font: 600 12px/1 var(--cc-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cc-close[hidden] {
  display: none;
}

.cc-preferences {
  width: 100%;
  background: #263f34;
}

.cc-settings {
  display: flex;
  align-items: center;
  width: min(1200px, 100%);
  min-height: 44px;
  margin-inline: auto;
  padding: 8px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(248, 248, 241, 0.76);
  font: 500 14px/1.4 var(--cc-body, var(--body, system-ui, sans-serif));
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(248, 248, 241, 0.42);
  text-underline-offset: 3px;
}

.cc-settings:hover {
  background: transparent;
  color: #dcebc9;
  text-decoration-color: currentColor;
}

.cc-status {
  position: fixed;
  z-index: 2147483001;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cc-status:not(:empty) {
  right: 16px;
  bottom: 70px;
  width: min(360px, calc(100vw - 32px));
  height: auto;
  padding: 12px 16px;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 1px solid var(--cc-line);
  background: var(--cc-paper);
  box-shadow: 0 3px 12px rgba(42, 62, 48, 0.12);
}

#caseload-cookie-root :focus-visible {
  outline: 3px solid #a5573f;
  outline-offset: 3px;
}

.cc-preferences .cc-settings:focus-visible,
[data-cookie-settings-slot] .cc-settings:focus-visible {
  outline-color: #dcebc9;
  outline-offset: -3px;
}

[data-cookie-settings-slot] .cc-settings {
  width: auto;
  margin: 0;
  padding: 8px 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .cc-banner {
    inset: auto 12px 76px;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: min(76vh, 620px);
    padding: 23px 20px 19px;
  }

  .cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cc-close {
    top: 7px;
    right: 7px;
  }

  .cc-title {
    padding-right: 54px;
  }

  .cc-settings {
    padding-inline: 18px;
  }
}

@media (max-width: 390px) {
  .cc-banner {
    inset-inline: 8px;
    bottom: 73px;
    padding: 19px 15px 15px;
  }

  .cc-actions {
    grid-template-columns: 1fr;
  }

  .cc-button {
    min-height: 46px;
  }

}

@media (max-height: 520px) and (min-width: 701px) {
  .cc-banner {
    max-height: calc(100dvh - 92px);
    padding-block: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-button,
  .cc-settings {
    transition: none;
  }
}
