.rs-cookieconsent {
  position: fixed;
  inset: 0;
  z-index: 2500;
}

.rs-cookieconsent[hidden] {
  display: none;
}

.rs-cookieconsent__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-heading, #1c1f21) 52%, transparent);
  backdrop-filter: blur(6px);
}

.rs-cookieconsent__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(42rem, calc(100vw - 2rem));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--color-heading, #1c1f21);
  box-shadow: 0 0.5rem 2rem color-mix(in srgb, var(--color-heading, #1c1f21) 20%, transparent);
  color: rgba(255, 255, 255, 0.94);
  padding: 1.5rem;
  box-sizing: border-box;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.rs-cookieconsent__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.rs-cookieconsent__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.rs-cookieconsent__view[hidden] {
  display: none;
}

.rs-cookieconsent__eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rs-cookieconsent__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
}

.rs-cookieconsent__text {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
}

.rs-cookieconsent__categories {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.rs-cookieconsent__category {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.1rem;
}

.rs-cookieconsent__category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.rs-cookieconsent__category-head--button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.rs-cookieconsent__category-head--button:focus-visible {
  border-radius: 0.55rem;
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 0.35rem;
}

.rs-cookieconsent__category-actions {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.rs-cookieconsent__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(255, 255, 255, 0.74);
  border-bottom: 2px solid rgba(255, 255, 255, 0.74);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 140ms ease;
}

.rs-cookieconsent__chevron-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

.rs-cookieconsent__chevron-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
}

.rs-cookieconsent__chevron-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 0.2rem;
}

.rs-cookieconsent__category-head--button[aria-expanded="true"] .rs-cookieconsent__chevron {
  transform: rotate(225deg);
}

.rs-cookieconsent__chevron-button[aria-expanded="true"] .rs-cookieconsent__chevron {
  transform: rotate(225deg);
}

.rs-cookieconsent__category-title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.rs-cookieconsent__category-text {
  display: block;
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
  line-height: 1.55;
}

.rs-cookieconsent__essential-services,
.rs-cookieconsent__optional-services {
  margin-top: 1rem;
}

.rs-cookieconsent__optional-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.rs-cookieconsent__optional-list[hidden] {
  display: none;
}

.rs-cookieconsent__optional-list {
  display: grid;
  gap: 0.75rem;
}

.rs-cookieconsent__service {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
}

.rs-cookieconsent__service:first-child {
  border-top: 0;
  padding-top: 0;
}

.rs-cookieconsent__service-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.rs-cookieconsent__service-title {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.rs-cookieconsent__service-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.rs-cookieconsent__service-meta-item {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.rs-cookieconsent__service-meta-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.rs-cookieconsent__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 0.8rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 500;
}

.rs-cookieconsent__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.rs-cookieconsent__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rs-cookieconsent__toggle input:focus-visible + .rs-cookieconsent__toggle-ui {
  outline: 2px solid var(--color-surface, #ffffff);
  outline-offset: 3px;
}

.rs-cookieconsent__toggle input:disabled + .rs-cookieconsent__toggle-ui {
  opacity: 0.5;
}

.rs-cookieconsent__toggle-ui {
  position: relative;
  display: inline-block;
  width: 3.25rem;
  height: 1.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 140ms ease;
}

.rs-cookieconsent__toggle-ui::after {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.2rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.24);
  transition: transform 140ms ease;
}

.rs-cookieconsent__toggle input:checked + .rs-cookieconsent__toggle-ui {
  background: var(--color-accent, #d47519);
}

.rs-cookieconsent__toggle input:checked + .rs-cookieconsent__toggle-ui::after {
  transform: translateX(1.3rem);
}

.rs-cookieconsent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.rs-cookieconsent__actions--summary .rs-cookieconsent__button--primary {
  margin-left: auto;
}

.rs-cookieconsent__actions--details {
  position: sticky;
  bottom: -1.5rem;
  z-index: 1;
  margin-top: 1.25rem;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  margin-left: -1.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-heading, #1c1f21);
}

.rs-cookieconsent__actions--details .rs-cookieconsent__button--primary {
  margin-left: auto;
}

.rs-cookieconsent__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.82rem 1.1rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.rs-cookieconsent__button:hover {
  transform: translateY(-1px);
}

.rs-cookieconsent__button--primary {
  background: var(--color-heading, #1c1f21);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent, #d47519) 55%, var(--color-heading, #1c1f21));
  color: #fff;
}

.rs-cookieconsent__button--primary:hover {
  background: color-mix(in srgb, var(--color-heading, #1c1f21) 80%, var(--color-accent, #d47519));
}

.rs-cookieconsent__button--secondary {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.92);
}

.rs-cookieconsent__button--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rs-cookieconsent__button--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
}

.rs-cookieconsent__button--ghost:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body.rs-cookieconsent-open {
  overflow: hidden;
}

.site-footer__nav button[data-rs-cookieconsent-open] {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-text-soft, #5e656a);
  font: inherit;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease;
}

.site-footer__nav button[data-rs-cookieconsent-open]:hover {
  color: var(--color-heading, #1c1f21);
}

@media (max-width: 640px) {
  .rs-cookieconsent__dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 1.15rem;
    border-radius: 8px;
  }

  .rs-cookieconsent__category-head {
    grid-template-columns: 1fr;
  }

  .rs-cookieconsent__category-actions {
    justify-content: flex-start;
  }

  .rs-cookieconsent__actions {
    flex-direction: column;
  }

  .rs-cookieconsent__actions--details {
    bottom: -1.15rem;
    margin-right: -1.15rem;
    margin-bottom: -1.15rem;
    margin-left: -1.15rem;
    padding: 0.9rem 1.15rem 1.15rem;
  }

  .rs-cookieconsent__actions--details .rs-cookieconsent__button--primary {
    margin-left: 0;
  }

  .rs-cookieconsent__actions--summary .rs-cookieconsent__button--primary {
    margin-left: 0;
  }

  .rs-cookieconsent__button {
    width: 100%;
  }
}
