/* CookieConsent styling — dark-card with orange (#ff6a00) accents.
   Override any of these CSS variables per-site before this stylesheet loads
   (or in a later stylesheet) to retheme without touching the JS. */
:root {
  --cc-bg: #1a1a1a;
  --cc-card: #232323;
  --cc-border: #333333;
  --cc-text: #e8e8e8;
  --cc-text-dim: #a0a0a0;
  --cc-accent: #ff6a00;
  --cc-accent-hover: #ff8324;
  --cc-radius: 10px;
  --cc-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --cc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#cc-root, #cc-root * { box-sizing: border-box; font-family: var(--cc-font); }

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999998;
  max-width: 720px;
  margin: 0 auto;
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 18px 20px;
  color: var(--cc-text);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cc-banner.cc-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.cc-banner-text { flex: 1 1 320px; }
.cc-banner-text p { margin: 0 0 4px 0; font-size: 14px; line-height: 1.45; color: var(--cc-text); }
.cc-link { color: var(--cc-accent); font-size: 13px; text-decoration: none; }
.cc-link:hover { text-decoration: underline; }

.cc-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cc-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cc-btn-primary { background: var(--cc-accent); color: #111; }
.cc-btn-primary:hover { background: var(--cc-accent-hover); }
.cc-btn-outline { background: transparent; border-color: var(--cc-border); color: var(--cc-text); }
.cc-btn-outline:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cc-btn-ghost { background: transparent; color: var(--cc-text-dim); }
.cc-btn-ghost:hover { color: var(--cc-text); }

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
}

.cc-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--cc-card);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  z-index: 1000000;
  color: var(--cc-text);
}

.cc-panel-inner { padding: 20px; }
.cc-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cc-panel-header h2 { margin: 0; font-size: 17px; }
.cc-close { background: none; border: none; color: var(--cc-text-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { color: var(--cc-text); }

.cc-row { padding: 12px 0; border-top: 1px solid var(--cc-border); }
.cc-row:first-child { border-top: none; }
.cc-row-head { display: flex; align-items: center; gap: 10px; }
.cc-row-label { font-size: 14px; font-weight: 600; }
.cc-row-label em { font-style: normal; color: var(--cc-text-dim); font-weight: 400; }
.cc-row-desc { margin: 6px 0 0 46px; font-size: 12.5px; color: var(--cc-text-dim); line-height: 1.4; }

.cc-panel-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* toggle switch */
.cc-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #444; border-radius: 22px; transition: background 0.15s ease;
}
.cc-slider::before {
  content: ''; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
  background: #ddd; border-radius: 50%; transition: transform 0.15s ease;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(16px); background: #111; }
.cc-switch input:disabled + .cc-slider { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 520px) {
  .cc-banner { flex-direction: column; align-items: stretch; }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .cc-btn { flex: 1; }
}

/* Light theme override to match VisitLog/DeskLogix light UI */
:root {
  --cc-bg: #ffffff;
  --cc-card: #f7f8fa;
  --cc-border: #dfe3e8;
  --cc-text: #1a1a1a;
  --cc-text-dim: #6b7280;
  --cc-accent: #1B4DB8;
  --cc-accent-hover: #163e94;
  --cc-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
