/* ==========================================================================
   Acheron CMP — stylesheet
   Dark, cyan-accented theme matching the Acheron brand system
   (bg #0A0303, heading #C9DAF8, accent #38C4D8 / #2A5BD7, Jura/Sora type).
   All colors/sizes are CSS custom properties — override them from your own
   site stylesheet (declare new values on :root after loading this file)
   instead of editing this file, so future updates stay a simple swap.
   ========================================================================== */
 
:root {
  --acmp-bg: #0A0303;
  --acmp-bg-elevated: #140B0B;
  --acmp-border: rgba(201, 218, 248, 0.35);
  --acmp-heading: #C9DAF8;
  --acmp-text: #D7E4E6;
  --acmp-text-muted: #A7B7BE;
  --acmp-accent: #38C4D8;
  --acmp-accent-2: #2A5BD7;
  --acmp-radius: 10px;
  --acmp-radius-sm: 6px;
  --acmp-font-heading: 'Jura', 'Eurostile Extended', 'Arial Narrow', sans-serif;
  --acmp-font-body: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --acmp-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  --acmp-z: 2147483000; /* sit above almost anything on the host page */
}
 
.acmp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
 
/* ---------- Backdrop (used behind the settings dialog only) ---------- */
.acmp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 2, 0.6);
  z-index: var(--acmp-z);
}
 
/* ---------- Banner ---------- */
.acmp-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--acmp-z) + 1);
  box-sizing: border-box;
  width: 100%;
  background: var(--acmp-bg);
  border-top: 1px solid var(--acmp-border);
  box-shadow: var(--acmp-shadow);
  font-family: var(--acmp-font-body);
  color: var(--acmp-text);
  animation: acmp-slide-up 0.35s ease-out;
}
 
@media (min-width: 640px) {
  .acmp-banner {
    left: 20px;
    right: auto;
    bottom: 20px;
    max-width: 440px;
    border: 1px solid var(--acmp-border);
    border-radius: var(--acmp-radius);
  }
}
 
@keyframes acmp-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
 
.acmp-banner__inner {
  padding: 20px 20px 18px;
}
 
.acmp-banner__title {
  margin: 0 0 8px;
  font-family: var(--acmp-font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--acmp-heading);
}
 
.acmp-banner__text {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--acmp-text);
}
 
.acmp-banner__text a {
  color: var(--acmp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
 
.acmp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
 
/* ---------- Buttons ---------- */
.acmp-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--acmp-font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 16px;
  border-radius: var(--acmp-radius-sm);
  border: 1px solid transparent;
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
 
.acmp-btn:active {
  transform: scale(0.98);
}
 
.acmp-btn:focus-visible {
  outline: 2px solid var(--acmp-accent);
  outline-offset: 2px;
}
 
.acmp-btn--primary {
  background: linear-gradient(90deg, var(--acmp-accent-2), var(--acmp-accent));
  color: #060E0D;
  border-color: transparent;
}
 
.acmp-btn--primary:hover {
  opacity: 0.92;
}
 
/* Reject gets the same size/shape as Accept — equally prominent, per
   German supervisory-authority guidance (no "dark pattern" sizing). */
.acmp-btn--secondary {
  background: transparent;
  color: var(--acmp-heading);
  border-color: var(--acmp-border);
}
 
.acmp-btn--secondary:hover {
  background: rgba(201, 218, 248, 0.08);
}
 
.acmp-btn--link {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 11px 4px;
  color: var(--acmp-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
 
.acmp-btn--link:hover {
  color: var(--acmp-heading);
}
 
/* ---------- Preferences dialog ---------- */
.acmp-modal {
  position: fixed;
  z-index: calc(var(--acmp-z) + 2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: min(640px, 86vh);
  display: flex;
  flex-direction: column;
  background: var(--acmp-bg);
  border: 1px solid var(--acmp-border);
  border-radius: var(--acmp-radius);
  box-shadow: var(--acmp-shadow);
  font-family: var(--acmp-font-body);
  color: var(--acmp-text);
  animation: acmp-pop-in 0.2s ease-out;
}
 
@keyframes acmp-pop-in {
  from { transform: translate(-50%, -50%) scale(0.97); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}
 
.acmp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--acmp-border);
  flex: 0 0 auto;
}
 
.acmp-modal__title {
  margin: 0;
  font-family: var(--acmp-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--acmp-heading);
}
 
.acmp-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acmp-text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: var(--acmp-radius-sm);
}
 
.acmp-modal__close:hover {
  color: var(--acmp-heading);
  background: rgba(201, 218, 248, 0.08);
}
 
.acmp-modal__body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}
 
.acmp-modal__intro {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--acmp-text);
}
 
.acmp-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--acmp-border);
  flex: 0 0 auto;
}
 
/* ---------- Category rows ---------- */
.acmp-category {
  border: 1px solid var(--acmp-border);
  border-radius: var(--acmp-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
 
.acmp-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
 
.acmp-category__name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--acmp-heading);
}
 
.acmp-category__desc {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--acmp-text-muted);
}
 
.acmp-category__always-on {
  font-size: 11px;
  font-weight: 600;
  color: var(--acmp-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
 
.acmp-category__details-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acmp-accent);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  margin-top: 8px;
}
 
.acmp-category__details {
  display: none;
  padding: 0 14px 14px;
}
 
.acmp-category__details.is-open {
  display: block;
}
 
.acmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  color: var(--acmp-text-muted);
}
 
.acmp-table th,
.acmp-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--acmp-border);
  vertical-align: top;
}
 
.acmp-table th {
  color: var(--acmp-heading);
  font-weight: 600;
  white-space: nowrap;
}
 
/* ---------- Toggle switch ---------- */
.acmp-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
}
 
.acmp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
 
.acmp-switch__track {
  position: absolute;
  inset: 0;
  background: rgba(215, 228, 230, 0.2);
  border-radius: 999px;
  transition: background 0.15s ease;
  cursor: pointer;
}
 
.acmp-switch__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--acmp-text);
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}
 
.acmp-switch input:checked + .acmp-switch__track {
  background: var(--acmp-accent-2);
}
 
.acmp-switch input:checked + .acmp-switch__track::before {
  transform: translateX(16px);
  background: #fff;
}
 
.acmp-switch input:disabled + .acmp-switch__track {
  opacity: 0.6;
  cursor: not-allowed;
}
 
.acmp-switch input:focus-visible + .acmp-switch__track {
  outline: 2px solid var(--acmp-accent);
  outline-offset: 2px;
}
 
/* ---------- Persistent reopen button ---------- */
.acmp-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: calc(var(--acmp-z) - 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--acmp-bg-elevated);
  color: var(--acmp-text-muted);
  border: 1px solid var(--acmp-border);
  border-radius: 999px;
  padding: 8px 12px 8px 10px;
  font-family: var(--acmp-font-body);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
 
.acmp-reopen:hover {
  color: var(--acmp-heading);
  border-color: var(--acmp-heading);
}
 
.acmp-reopen svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
 
.acmp-reopen[hidden] {
  display: none;
}
 