/* Base variables will be injected via inline CSS in JS for per-site customization */

#scc-root { all: initial; }

.scc-host {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  z-index: var(--scc-z, 999999);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--scc-fs, 14px);
  color: var(--scc-text, #fff);
  pointer-events: none;
}

.scc-host[data-position="bottom"] { bottom: 0; }
.scc-host[data-position="top"] { top: 0; }

.scc-banner {
  pointer-events: auto;
  width: 100%;
  max-width: var(--scc-maxw, 1200px);
  background: var(--scc-bg, #111);
  border-radius: var(--scc-radius, 14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 14px 14px;
  display: grid;
  gap: 10px;
}

.scc-banner[data-layout="bar"] {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.scc-banner[data-layout="box"] {
  max-width: 520px;
}

.scc-msg {
  line-height: 1.35;
}

.scc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.scc-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.35);
  background: var(--scc-btn-outline, transparent);
  color: var(--scc-btn-outline-tx, #fff);
  border-radius: calc(var(--scc-radius, 14px) - 6px);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .05s ease, opacity .15s ease;
}

.scc-btn:hover { opacity: .92; }
.scc-btn:active { transform: translateY(1px); }

.scc-btn--primary {
  background: var(--scc-btn-primary, #fff);
  color: var(--scc-btn-primary-tx, #111);
  border-color: transparent;
}

.scc-link {
  color: inherit;
  text-decoration: underline;
  opacity: .95;
}

.scc-manage-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--scc-z, 999999);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--scc-bg, #111);
  color: var(--scc-text, #fff);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  cursor: pointer;
  font-weight: 700;
}

.scc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: calc(var(--scc-z, 999999) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.scc-modal {
  width: 100%;
  max-width: 720px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 16px;
}

.scc-modal h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
}

.scc-modal p {
  margin: 0 0 14px 0;
  opacity: .85;
  line-height: 1.4;
}

.scc-cats {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px 0;
}

.scc-cat {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scc-cat small {
  display: block;
  opacity: .65;
  margin-top: 2px;
}

.scc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.scc-switch input[type="checkbox"] {
  width: 42px;
  height: 24px;
  accent-color: #111;
}

.scc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.scc-btn--modal {
  border-color: rgba(0,0,0,.2);
  background: #f4f4f4;
  color: #111;
}

.scc-btn--modal-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

@media (max-width: 720px) {
  .scc-banner[data-layout="bar"] {
    grid-template-columns: 1fr;
  }
  .scc-actions {
    justify-content: flex-start;
  }
}

/* Custom CSS injection support */
.scc-custom-css { display:none; }
