.cjcb-root[hidden],
.cjcb-content[hidden],
.cjcb-reopen[hidden] {
  display: none !important;
}

.cjcb-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.cjcb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.cjcb-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.cjcb-content {
  width: 100%;
  max-width: 680px;
  background: #fff;
  color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 24px;
  pointer-events: auto;
}

.cjcb-title {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.cjcb-text,
.cjcb-policy {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.cjcb-policy a {
  text-decoration: underline;
}

.cjcb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cjcb-btn {
  appearance: none;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.cjcb-btn:hover {
  opacity: 0.92;
}

.cjcb-btn:active {
  transform: translateY(1px);
}

.cjcb-btn-accept {
  background: #111827;
  color: #fff;
}

.cjcb-btn-reject {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

.cjcb-btn-settings {
  background: #f3f4f6;
  color: #111827;
}

.cjcb-groups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cjcb-group {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.cjcb-group span {
  display: block;
}

.cjcb-group strong {
  display: block;
  margin-bottom: 2px;
}

.cjcb-group small {
  display: block;
  opacity: .8;
  line-height: 1.4;
}

.cjcb-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.cjcb-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999998;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 767px) {
  .cjcb-content {
    padding: 18px;
  }

  .cjcb-title {
    font-size: 20px;
  }

  .cjcb-actions {
    flex-direction: column;
  }

  .cjcb-btn {
    width: 100%;
  }

  .cjcb-group {
    align-items: flex-start;
  }
}
