:root {
  --cj-primary: #c45c26;
  --cj-primary-hover: #a84a1a;
  --cj-secondary: #5c4033;
  --cj-secondary-hover: #4a3329;
  --cj-surface: #fffbf5;
  --cj-surface-muted: #f5ebe0;
  --cj-text: #3d2c1e;
  --cj-text-muted: #6b5344;
  --cj-border: #e5d4c0;
  --cj-link: #c45c26;
  --cj-overlay: rgba(61, 44, 30, 0.45);
  --cj-shadow: 0 -8px 32px rgba(61, 44, 30, 0.12);
  --cj-radius: 12px;
  --cj-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#cj-overlay {
  position: fixed;
  inset: 0;
  background: var(--cj-overlay);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#cj-overlay.cj-visible {
  opacity: 1;
  pointer-events: auto;
}

.cj-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background: var(--cj-surface);
  color: var(--cj-text);
  padding: 0;
  z-index: 9999;
  font-family: var(--cj-font);
  box-shadow: var(--cj-shadow);
  border-top: 3px solid var(--cj-primary);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cj-banner.cj-visible {
  transform: translateY(0);
}

.cj-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 28px 28px;
}

.cj-banner h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cj-secondary);
  letter-spacing: -0.02em;
}

.cj-banner p {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--cj-text-muted);
}

.cj-banner a {
  color: var(--cj-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cj-banner a:hover {
  color: var(--cj-primary-hover);
}

.cj-cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.cj-banner label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: var(--cj-surface-muted);
  border: 1px solid var(--cj-border);
  border-radius: var(--cj-radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.cj-banner label:hover {
  border-color: var(--cj-primary);
}

.cj-banner label:has(input:disabled) {
  cursor: default;
  opacity: 0.85;
}

.cj-banner input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cj-primary);
  flex-shrink: 0;
}

.cj-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cj-buttons button {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--cj-font);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cj-buttons button:hover {
  transform: translateY(-1px);
}

.cj-buttons button:active {
  transform: translateY(0);
}

#cj-accept {
  background: var(--cj-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196, 92, 38, 0.35);
}

#cj-accept:hover {
  background: var(--cj-primary-hover);
}

#cj-save {
  background: var(--cj-secondary);
  color: #fff;
}

#cj-save:hover {
  background: var(--cj-secondary-hover);
}

#cj-reject {
  background: transparent;
  color: var(--cj-text-muted);
  border: 1px solid var(--cj-border);
}

#cj-reject:hover {
  background: var(--cj-surface-muted);
  color: var(--cj-text);
  border-color: var(--cj-text-muted);
}

#cj-manage-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9997;
  padding: 10px 16px;
  background: var(--cj-secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--cj-font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(92, 64, 51, 0.3);
  transition: background 0.2s, transform 0.15s;
}

#cj-manage-consent:hover {
  background: var(--cj-primary);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cj-banner-inner {
    padding: 20px 18px 24px;
  }

  .cj-buttons {
    flex-direction: column;
  }

  .cj-buttons button {
    width: 100%;
    text-align: center;
  }

  #cj-manage-consent {
    bottom: 14px;
    right: 14px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
