/* ===== Cookie Consent Banner Styles — Colorful accent, matches Sipply Consulting theme ===== */
#site-consent {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 28px 28px 26px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  display: none;
  overflow: hidden;
  isolation: isolate;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  transition: background var(--transition), border-color var(--transition);
}

#site-consent.is-visible {
  display: block;
  animation: cc-fade-in 0.4s ease;
}

@keyframes cc-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Colorful top accent bar, same gradient as .hero-highlight */
#site-consent:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff3b8c, #ff6a00);
}

#site-consent p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

#site-consent a {
  background: linear-gradient(90deg, #ff3b8c, #ff6a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
  text-decoration-color: rgba(255,106,0,0.4);
}

.cc-options {
  display: none;
  margin: 0 0 18px;
}

.cc-options.is-open {
  display: block;
}

.cc-option-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cc-option-row:first-child {
  border-top: none;
  padding-top: 0;
}

.cc-option-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.cc-option-text span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.cc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background var(--transition);
}

.cc-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--bg);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.cc-switch input:checked + .cc-slider {
  background: linear-gradient(90deg, #ff3b8c, #ff6a00);
}

.cc-switch input:checked + .cc-slider:before {
  transform: translateX(18px);
}

.cc-switch input:disabled + .cc-slider {
  opacity: 0.4;
  cursor: not-allowed;
}

.cc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cc-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 12px 22px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  transition: all var(--transition);
}

.cc-btn:hover {
  background: var(--card-hover);
  border-color: var(--text);
}

.cc-btn.primary {
  background: linear-gradient(90deg, #ff3b8c, #ff6a00);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(255,59,140,0.28);
}

.cc-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255,106,0,0.35);
}

.cc-btn.link {
  background: none;
  border: none;
  text-decoration: underline;
  padding: 12px 4px;
  color: var(--muted);
}

.cc-btn.link:hover {
  background: none;
  color: var(--text);
  transform: none;
}

@media (max-width: 480px) {
  #site-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 22px 20px;
  }

  .cc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
  }
}