/* Caelus Studio · Cookie 使用提示（可分类选择）
   供使用 Cookie / 本地存储的站点共用。 */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 200;
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--bg-card, #111);
  border: 1px solid var(--border-card, var(--border-color, rgba(127, 127, 127, .15)));
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card, 0 4px 16px rgba(0, 0, 0, .3));
}
.cookie-bar[hidden] { display: none !important; }
.cookie-bar .ck-title {
  margin: 0 0 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary, #f5f5f5);
}
.cookie-bar .ck-text {
  margin: 0 0 12px;
  font-size: .8rem;
  line-height: 1.65;
  color: var(--text-secondary, #c8c8c8);
}
.cookie-bar a { color: var(--accent, #0a84ff); text-decoration: underline; }

.cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color, rgba(127, 127, 127, .15));
}
.cookie-cat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
  font-size: .8rem;
  transition: background .15s;
}
.cookie-cat:hover { background: var(--tag-bg, rgba(127, 127, 127, .1)); }
.cookie-cat input[type="checkbox"] {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--accent, #0a84ff);
  cursor: pointer;
}
.cookie-cat input[type="checkbox"]:disabled { cursor: not-allowed; }
.cookie-cat b {
  display: block;
  font-weight: 500;
  color: var(--text-primary, #f0f0f0);
}
.cookie-cat i {
  display: block;
  font-style: normal;
  font-size: .74rem;
  line-height: 1.5;
  margin-top: 2px;
  color: var(--text-muted, #999);
}
.cookie-cat.is-locked { cursor: default; }
.cat-tag {
  flex: none;
  margin-left: auto;
  font-size: .7rem;
  color: var(--text-muted, #999);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-actions button {
  font-family: inherit;
  font-size: .8rem;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-color, rgba(127, 127, 127, .2));
  background: transparent;
  color: var(--text-primary, #f0f0f0);
  cursor: pointer;
  transition: background .15s, filter .15s;
}
.cookie-actions button:hover { background: var(--tag-bg, rgba(127, 127, 127, .12)); }
.cookie-actions button.is-primary {
  background: var(--accent, #0a84ff);
  border-color: var(--accent, #0a84ff);
  color: #fff;
}
.cookie-actions button.is-primary:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  .cookie-bar { bottom: 14px; padding: 15px 14px 13px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}
