/* === KLARO · PHR Custom Styling ===
   Load AFTER klaro.css. Overrides COLORS + TYPOGRAPHY only.
   Layout is left to Klaro defaults to avoid breaking the structure.
   ============================================================ */

/* ===== BANNER · bottom center, narrow ===== */
html body .klaro .cookie-notice,
html body div.klaro div.cookie-notice {
  position: fixed !important;
  bottom: 24px !important;
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(720px, calc(100vw - 32px)) !important;
  max-width: 720px !important;
  background: #0a0a0a !important;
  color: #f1ede4 !important;
  border: 1px solid #f1ede4 !important;
  border-radius: 0 !important;
  padding: 22px 28px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
  z-index: 1100 !important;
  margin: 0 !important;
}
.klaro .cookie-notice.cookie-modal-notice {
  position: static !important;
  transform: none !important;
  width: auto !important;
  max-width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ===== TYPOGRAPHY ===== */
.klaro .cookie-notice,
.klaro .cookie-modal {
  font-family: 'Inter', system-ui, sans-serif !important;
}
.klaro h1, .klaro h2 {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #f1ede4 !important;
}
.klaro p, .klaro .cn-changes {
  color: #b8b1a3 !important;
  line-height: 1.55 !important;
}

/* ===== LINKS — white, no green ===== */
.klaro a {
  color: #f1ede4 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.klaro a:hover { color: #ffffff !important; }

/* ===== BUTTONS — PHR mono style ===== */
.klaro button.cm-btn,
.klaro .cm-btn {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  padding: 12px 18px !important;
  border: 1px solid #f1ede4 !important;
  background: transparent !important;
  color: #f1ede4 !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.klaro .cm-btn.cm-btn-success,
.klaro .cm-btn.cm-btn-accept-all,
.klaro .cm-btn.cm-btn-accept {
  background: #f1ede4 !important;
  color: #0a0a0a !important;
}
.klaro .cm-btn.cm-btn-success:hover,
.klaro .cm-btn.cm-btn-accept-all:hover,
.klaro .cm-btn.cm-btn-accept:hover {
  background: transparent !important;
  color: #f1ede4 !important;
}
.klaro .cm-btn.cm-btn-decline:hover,
.klaro .cm-btn.cm-btn-info:hover {
  background: #f1ede4 !important;
  color: #0a0a0a !important;
}

/* "Manage preferences" inline link button */
.klaro .cookie-notice .cn-learn-more,
.klaro button.cn-learn-more {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #b8b1a3 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  cursor: pointer !important;
}
.klaro .cookie-notice .cn-learn-more:hover {
  color: #f1ede4 !important;
  border-bottom-color: #f1ede4 !important;
}

/* ===== MODAL ===== */
.klaro .cookie-modal {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(8px);
}
.klaro .cookie-modal .cm-modal {
  background: #0a0a0a !important;
  color: #f1ede4 !important;
  border: 1px solid #f1ede4 !important;
  border-radius: 0 !important;
}
.klaro .cookie-modal .cm-header,
.klaro .cookie-modal .cm-body,
.klaro .cookie-modal .cm-footer {
  background: #0a0a0a !important;
  color: #f1ede4 !important;
}

/* Close X button */
.klaro .cookie-modal .hide,
.klaro .cookie-modal .hide:hover {
  color: #f1ede4 !important;
  opacity: 0.7;
}
.klaro .cookie-modal .hide:hover { opacity: 1; }

/* Service / Purpose items — only color, no layout changes */
.klaro .cookie-modal .cm-services .cm-service,
.klaro .cookie-modal .cm-purposes .cm-purpose {
  border-bottom: 1px solid #2a2a2a !important;
}
.klaro .cookie-modal .cm-purpose-title,
.klaro .cookie-modal .cm-service-title,
.klaro .cookie-modal .cm-list-title {
  font-family: 'Archivo', sans-serif !important;
  font-weight: 700 !important;
  color: #f1ede4 !important;
}
.klaro .cookie-modal .cm-purpose-description,
.klaro .cookie-modal .cm-service-description,
.klaro .cookie-modal .cm-service p,
.klaro .cookie-modal .cm-purpose p {
  color: #b8b1a3 !important;
}

/* Toggle switches — only color the slider, don't touch layout */
.klaro .slider {
  background: #2a2a2a !important;
}
.klaro input:checked + .cm-list-label .slider,
.klaro .cm-list-input:checked + .cm-list-label .slider {
  background: #f1ede4 !important;
}
.klaro .slider.round::before,
.klaro .cm-list-label .slider::before {
  background: #f1ede4 !important;
}
.klaro input:checked + .cm-list-label .slider::before,
.klaro .cm-list-input:checked + .cm-list-label .slider::before {
  background: #0a0a0a !important;
}

/* Footer */
.klaro .cookie-modal .cm-footer {
  border-top: 1px solid #2a2a2a !important;
  padding-top: 18px !important;
}
.klaro .cm-powered-by,
.klaro .cm-powered-by a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: #b8b1a3 !important;
  opacity: 0.6 !important;
}

/* Strong / inline emphasis */
.klaro strong { color: #f1ede4 !important; }

/* ===== Embed-blocked fallback box (used when iframes are gated) ===== */
.ph-embed { position: relative; min-height: 200px; }
.ph-embed-fallback {
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
  text-align: center;
}
.ph-embed-fallback p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #b8b1a3;
  margin: 0;
}
.ph-embed-fallback a {
  color: #f1ede4;
  text-decoration: underline;
}
.klaro-consent-loaded .ph-embed-fallback { display: none; }

/* ===== Mobile ===== */
@media (max-width: 700px) {
  html body .klaro .cookie-notice,
  html body div.klaro div.cookie-notice {
    bottom: 12px !important;
    width: calc(100% - 24px) !important;
    padding: 18px 20px !important;
  }
  .klaro .cm-btn {
    padding: 10px 14px !important;
    font-size: 10px !important;
  }
}
