#sp-consent-title,
#sp-consent-preferences-title,
.sp-consent-category h3,
.sp-consent-banner p,
.sp-consent-preferences p {
  margin: 0;
}

.sp-consent-banner,
.sp-consent-preferences,
.sp-consent-settings-button {
  font-family: Barlow, Arial, sans-serif;
}

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

.sp-consent-banner {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  width: min(70rem, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #ffffff;
  background: #00323d;
  border: 1px solid #005466;
  box-shadow: 0 1.25rem 4rem rgb(0 17 20 / 0.3);
}

.sp-consent-banner__content {
  display: grid;
  gap: 0.75rem;
  max-inline-size: 46rem;
}

.sp-consent-eyebrow {
  color: #b3e6f0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#sp-consent-title {
  max-inline-size: none;
  color: #ffffff;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

#sp-consent-description {
  color: #e6f6fa;
  line-height: 1.55;
}

.sp-consent-policy a {
  color: #b3e6f0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sp-consent-preferences .sp-consent-policy a {
  color: #005466;
}

.sp-consent-policy a:hover {
  text-decoration-thickness: 0.15em;
}

.sp-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.sp-consent-banner__actions {
  justify-content: end;
  max-inline-size: 34rem;
}

.sp-consent-button,
.sp-consent-icon-button,
.sp-consent-settings-button {
  min-block-size: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.sp-consent-button:focus-visible,
.sp-consent-icon-button:focus-visible,
.sp-consent-settings-button:focus-visible,
.sp-consent-policy a:focus-visible,
.sp-consent-toggle input:focus-visible {
  outline: 3px solid #00a7cb;
  outline-offset: 3px;
}

.sp-consent-button--primary {
  color: #00323d;
  background: #ffffff;
  border-color: #ffffff;
}

.sp-consent-button--primary:hover {
  color: #001114;
  background: #e6f6fa;
  border-color: #e6f6fa;
}

.sp-consent-button--secondary,
.sp-consent-button--ghost {
  color: #ffffff;
  background: transparent;
  border-color: #80d1e1;
}

.sp-consent-button--secondary:hover,
.sp-consent-button--ghost:hover {
  background: #005466;
}

.sp-consent-preferences {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  max-height: min(46rem, calc(100% - 2rem));
  margin: 0;
  padding: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  color: #001114;
  background: #ffffff;
  border: 1px solid #00758e;
  border-radius: 0;
  box-shadow: 0 1.25rem 4rem rgb(0 17 20 / 0.35);
}

.sp-consent-preferences::backdrop {
  background: rgb(0 17 20 / 0.72);
}

.sp-consent-preferences__panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.sp-consent-preferences__header,
.sp-consent-category__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

#sp-consent-preferences-title {
  color: #001114;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.15;
}

.sp-consent-icon-button {
  min-block-size: auto;
  padding: 0.45rem;
  color: #005466;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sp-consent-category {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: #e6f6fa;
  border: 1px solid #80d1e1;
}

.sp-consent-category h3 {
  color: #00323d;
  font-size: 1.05rem;
}

.sp-consent-category p,
#sp-consent-preferences-description {
  color: #33474b;
  line-height: 1.5;
}

.sp-consent-status {
  color: #005466;
  font-size: 0.875rem;
  font-weight: 700;
}

.sp-consent-toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: #00323d;
  font-weight: 700;
  cursor: pointer;
}

.sp-consent-toggle input {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: 0;
  accent-color: #00758e;
}

.sp-consent-preferences .sp-consent-button--secondary {
  color: #005466;
  border-color: #00758e;
}

.sp-consent-preferences .sp-consent-button--secondary:hover {
  color: #ffffff;
  background: #005466;
}

.sp-consent-preferences .sp-consent-button--primary {
  color: #ffffff;
  background: #005466;
  border-color: #005466;
}

.sp-consent-preferences .sp-consent-button--primary:hover {
  background: #00323d;
  border-color: #00323d;
}

html[data-theme='spartan'] main :is(.ds-field-help, .ds-checkbox-label) a.sf-form-privacy-link {
  color: inherit !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sf-form-privacy-link:hover {
  text-decoration-thickness: 0.15em;
}

.sf-form-privacy-link:focus-visible {
  outline: 3px solid #00a7cb;
  outline-offset: 3px;
}

.sp-consent-settings {
  margin: 0;
}

.sp-consent-settings-button {
  min-block-size: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sp-consent-settings-button:hover {
  text-decoration-thickness: 0.15em;
}

.sp-consent-settings-button--floating {
  position: fixed;
  z-index: 100;
  inset-inline-start: 1rem;
  inset-block-end: 1rem;
  padding: 0.65rem 0.8rem;
  color: #ffffff;
  background: #00323d;
  border-color: #80d1e1;
}

@media (max-width: 47.999rem) {
  .sp-consent-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    inset-inline: 0.75rem;
    inset-block-end: 0.75rem;
    width: calc(100% - 1.5rem);
    max-block-size: calc(100dvh - 1.5rem);
  }

  .sp-consent-banner__actions,
  .sp-consent-preferences .sp-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-inline-size: none;
  }

  .sp-consent-button {
    width: 100%;
  }

  .sp-consent-preferences__header,
  .sp-consent-category__header {
    align-items: flex-start;
  }
}

@media (max-width: 19.999rem) {
  #sp-consent-title {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-consent-banner,
  .sp-consent-preferences {
    scroll-behavior: auto;
  }
}
