.nd-cookie[hidden],
.nd-cookie-manage[hidden] {
  display: none !important;
}

.nd-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nd-cookie__panel {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
  color: #172033;
  pointer-events: auto;
}

.nd-cookie__content strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.nd-cookie__content p {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.5;
}

.nd-cookie__content small {
  display: block;
  color: #64748b;
  line-height: 1.45;
  margin-top: 4px;
}

.nd-cookie__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 800;
}

.nd-cookie__toggle input {
  width: 18px;
  height: 18px;
}

.nd-cookie__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nd-cookie__actions a {
  color: #1d4ed8;
  font-weight: 850;
  text-decoration: none;
}

.nd-cookie__actions button,
.nd-cookie-manage {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.nd-cookie__ghost {
  background: #eef2ff;
  color: #3730a3;
}

.nd-cookie__primary {
  background: #4f46e5;
  color: #fff;
}

.nd-cookie-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
}

@media (max-width: 760px) {
  .nd-cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
    align-items: flex-end;
  }

  .nd-cookie__panel {
    grid-template-columns: 1fr;
    gap: 9px;
    max-height: min(44vh, 330px);
    overflow: auto;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .22);
  }

  .nd-cookie__content strong {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .nd-cookie__content p,
  .nd-cookie__content small {
    font-size: 12px;
    line-height: 1.3;
  }

  .nd-cookie__content p {
    margin-bottom: 7px;
  }

  .nd-cookie__toggle {
    font-size: 12px;
  }

  .nd-cookie__toggle input {
    width: 16px;
    height: 16px;
  }

  .nd-cookie__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: initial;
    gap: 8px;
  }

  .nd-cookie__actions button,
  .nd-cookie__actions a {
    text-align: center;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .nd-cookie__actions a,
  .nd-cookie__primary {
    grid-column: span 2;
  }

  .nd-cookie-manage {
    left: 10px;
    bottom: 10px;
    padding: 9px 10px;
    font-size: 12px;
  }
}
