/* Nexus cookie consent — bottom-right banner + center preference manager */

.nx-cc-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 100000;
  width: min(380px, calc(100vw - 32px));
  margin: 0;
  padding: 20px 20px 18px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #f8f9fb;
  box-shadow: 0 8px 28px rgba(10, 11, 13, 0.12);
  color: #0a0b0d;
  font-family: inherit;
}

.nx-cc-banner[hidden],
.nx-cc-modal[hidden] {
  display: none !important;
}

.nx-cc-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #5b616e;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.nx-cc-banner__close:hover {
  background: rgba(10, 11, 13, 0.06);
  color: #0a0b0d;
}

.nx-cc-banner__copy {
  margin: 0 28px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b616e;
}

.nx-cc-banner__copy a {
  color: #0052ff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-login .nx-cc-banner__copy a,
.page-login .nx-cc-banner__copy a {
  color: var(--nx-primary, #0052ff);
}

.nx-cc-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.nx-cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.nx-cc-btn:focus-visible {
  outline: 2px solid #0052ff;
  outline-offset: 2px;
}

.nx-cc-btn--solid {
  background: #0a0b0d;
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

.nx-cc-btn--solid:hover {
  opacity: 0.88;
}

.nx-cc-btn--confirm {
  background: #0052ff;
  color: #fff;
  min-height: 40px;
  min-width: 0;
  padding: 8px 18px;
  font-size: 14px;
}

.nx-cc-btn--confirm:hover {
  background: #0041cc;
}

.nx-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 11, 13, 0.45);
}

.nx-cc-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(10, 11, 13, 0.28);
  overflow: auto;
}

.nx-cc-modal__chrome {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.nx-cc-modal__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

#nxCookieModalTitle {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0b0d;
}

.nx-cc-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #5b616e;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.nx-cc-modal__close:hover {
  background: #f3f4f6;
  color: #0a0b0d;
}

.nx-cc-modal__body {
  padding: 12px 22px 8px;
}

.nx-cc-modal__intro {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  color: #5b616e;
}

body.nx-cc-modal-open {
  overflow: hidden;
}

.nx-cc-modal__intro a {
  color: #0052ff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-cc-modal__section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0a0b0d;
}

.nx-cc-cat {
  padding: 14px 0;
  border-bottom: 1px solid #eef0f3;
}

.nx-cc-cat:last-child {
  border-bottom: 0;
}

.nx-cc-cat__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.nx-cc-cat__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0a0b0d;
}

.nx-cc-cat__status {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #5b616e;
  padding-top: 1px;
}

.nx-cc-cat__desc {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #5b616e;
  max-width: 92%;
}

.nx-cc-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  margin-top: 1px;
}

.nx-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.nx-cc-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d8dce3;
  transition: background 0.15s ease;
}

.nx-cc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.nx-cc-switch input:checked + .nx-cc-switch__track {
  background: #0052ff;
}

.nx-cc-switch input:checked ~ .nx-cc-switch__thumb {
  transform: translateX(18px);
}

.nx-cc-switch input:focus-visible + .nx-cc-switch__track {
  outline: 2px solid #0052ff;
  outline-offset: 2px;
}

.nx-cc-modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px 20px;
  border-top: 1px solid #eef0f3;
  background: #fff;
}

@media (max-width: 520px) {
  .nx-cc-banner {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}
