:root {
  --nk-consent-bg: #f7f4ef;
  --nk-consent-text: #141414;
  --nk-consent-muted: #5e5a54;
  --nk-consent-border: rgba(20, 20, 20, 0.18);
  --nk-consent-dark: #141414;
  --nk-consent-light: #ffffff;
}

.nk-consent-banner,
.nk-consent-modal,
.nk-cookie-settings-button {
  box-sizing: border-box;
  font-family: inherit;
}

.nk-consent-banner *,
.nk-consent-modal *,
.nk-cookie-settings-button {
  box-sizing: border-box;
}

.nk-consent-banner[hidden],
.nk-consent-modal[hidden],
.nk-cookie-settings-button[hidden] {
  display: none !important;
}

.nk-consent-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.nk-consent-card {
  width: min(760px, 100%);
  padding: 28px;
  color: var(--nk-consent-text);
  background: var(--nk-consent-bg);
  border: 1px solid var(--nk-consent-border);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.nk-consent-copy h2,
.nk-consent-panel h2,
.nk-consent-category h3 {
  margin: 0;
  color: var(--nk-consent-text);
  line-height: 1.15;
}

.nk-consent-copy h2,
.nk-consent-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
}

.nk-consent-copy p,
.nk-consent-panel p {
  margin: 12px 0 0;
  color: var(--nk-consent-muted);
  font-size: 15px;
  line-height: 1.55;
}

.nk-consent-eyebrow {
  margin: 0 0 8px !important;
  color: var(--nk-consent-text) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nk-consent-actions,
.nk-consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.nk-consent-button,
.nk-consent-close,
.nk-cookie-settings-button {
  appearance: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.nk-consent-button {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.nk-consent-button--primary {
  color: var(--nk-consent-light);
  background: var(--nk-consent-dark);
}

.nk-consent-button--secondary {
  color: var(--nk-consent-text);
  background: transparent;
  border: 1px solid var(--nk-consent-text);
}

.nk-consent-button--quiet {
  padding-right: 8px;
  padding-left: 8px;
  color: var(--nk-consent-text);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nk-consent-button:hover,
.nk-consent-close:hover,
.nk-cookie-settings-button:hover {
  opacity: 0.76;
}

.nk-consent-button:focus-visible,
.nk-consent-close:focus-visible,
.nk-cookie-settings-button:focus-visible,
.nk-consent-switch input:focus-visible + span,
.nk-consent-category a:focus-visible {
  outline: 3px solid #3d74ff;
  outline-offset: 3px;
}

.nk-cookie-settings-button {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 99997;
  padding: 9px 12px;
  color: var(--nk-consent-light);
  background: rgba(20, 20, 20, 0.9);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.nk-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.nk-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}

.nk-consent-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 30px;
  color: var(--nk-consent-text);
  background: var(--nk-consent-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.nk-consent-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nk-consent-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--nk-consent-text);
  background: transparent;
  font-size: 34px;
  line-height: 1;
}

.nk-consent-intro {
  max-width: 62ch;
  margin-bottom: 24px !important;
}

.nk-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--nk-consent-border);
}

.nk-consent-category:last-of-type {
  border-bottom: 1px solid var(--nk-consent-border);
}

.nk-consent-category h3 {
  font-size: 18px;
  font-weight: 600;
}

.nk-consent-category p {
  max-width: 54ch;
  margin-top: 7px;
  font-size: 14px;
}

.nk-consent-category a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nk-consent-category code {
  padding: 1px 4px;
  color: inherit;
  background: rgba(20, 20, 20, 0.08);
}

.nk-consent-status {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--nk-consent-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nk-consent-category--toggle {
  cursor: pointer;
}

.nk-consent-switch {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
}

.nk-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nk-consent-switch span {
  position: absolute;
  inset: 0;
  background: #8a8780;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.nk-consent-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  content: '';
  transition: transform 160ms ease;
}

.nk-consent-switch input:checked + span {
  background: var(--nk-consent-dark);
}

.nk-consent-switch input:checked + span::after {
  transform: translateX(22px);
}

.nk-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .nk-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .nk-consent-card,
  .nk-consent-panel {
    padding: 22px;
  }

  .nk-consent-actions,
  .nk-consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .nk-consent-modal {
    align-items: end;
    padding: 10px;
  }

  .nk-consent-panel {
    max-height: calc(100vh - 20px);
  }

  .nk-consent-category {
    gap: 14px;
  }

  .nk-cookie-settings-button {
    bottom: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nk-consent-switch span,
  .nk-consent-switch span::after {
    transition: none;
  }
}
