/* Cookie consent bar -- scoped bk-cc-* classes, deliberately plain CSS
   (not framework utilities) so it renders correctly on any site.
   Colors read the host site's CSS custom properties when present
   (LarniPC styles.css: --bg-card / --text / --orange ... which also flip
   in dark mode), and fall back to the original standalone palette. */

.bk-cc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  justify-content: space-between;
  gap: 0.6rem 0.9rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card, #ffffff);
  color: var(--text, #1e293b);
  border-top: 3px solid var(--orange, #f97316);
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.22);
}

.bk-cc-bar[hidden] {
  display: none;
}

.bk-cc-text {
  flex: 1 1 240px;
  margin: 0;
  color: inherit;
}

.bk-cc-text a {
  color: var(--navy-600, #0c4a6e);
  text-decoration: underline;
  font-weight: 600;
}

[data-theme="dark"] .bk-cc-text a {
  color: #6fb0ff;
}

.bk-cc-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bk-cc-btn {
  border: none;
  border-radius: 0.4rem;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bk-cc-btn-accept {
  background: var(--orange, #f97316);
  color: var(--on-accent, #fff);
}

.bk-cc-btn-accept:hover {
  background: var(--orange-600, #ea6a0f);
}

.bk-cc-btn-decline {
  background: transparent;
  color: var(--text, #1e293b);
  border: 1px solid var(--border, #cbd5e1);
}

.bk-cc-btn-decline:hover {
  background: var(--bg-soft, #f1f5f9);
}

@media (max-width: 480px) {
  .bk-cc-bar {
    padding: 0.55rem 0.8rem;
    font-size: 0.78rem;
    gap: 0.4rem;
  }
  .bk-cc-text {
    flex-basis: 100%;
  }
  .bk-cc-actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .bk-cc-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
  }
}
