/*!
 * Loaded CMP styles - grey+blue base, orange accent.
 * Scoped under #lcmp-root. No external deps.
 */
#lcmp-root {
  --lcmp-bg: #1b2330;
  --lcmp-bg-2: #232d3d;
  --lcmp-panel: #ffffff;
  --lcmp-ink: #1b2330;
  --lcmp-ink-soft: #51607a;
  --lcmp-line: #d8dee9;
  --lcmp-blue: #2f6fed;
  --lcmp-blue-dk: #2456c4;
  --lcmp-orange: #ff7a18;
  --lcmp-orange-dk: #e9690b;
  --lcmp-text-on-dark: #eaf0fb;
  --lcmp-radius: 12px;
  --lcmp-shadow: 0 12px 40px rgba(10, 18, 32, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
#lcmp-root *, #lcmp-root *::before, #lcmp-root *::after { box-sizing: border-box; }
html.lcmp-locked, html.lcmp-locked body { overflow: hidden; }

#lcmp-footer {
  position: fixed;
  left: 0; bottom: 0;
  z-index: 2147483000;
  display: flex; gap: 16px;
  padding: 6px 14px;
  pointer-events: none;
}
#lcmp-footer .lcmp-footer-link {
  pointer-events: auto;
  background: rgba(27, 35, 48, 0.82);
  color: var(--lcmp-text-on-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
#lcmp-footer .lcmp-footer-link:hover { border-color: var(--lcmp-orange); color: #fff; }

/* ---- bottom banner ---- */
#lcmp-banner {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(960px, calc(100vw - 32px));
  z-index: 2147483400;
  background: var(--lcmp-bg);
  color: var(--lcmp-text-on-dark);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid var(--lcmp-orange);
  border-radius: var(--lcmp-radius);
  box-shadow: var(--lcmp-shadow);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
}
#lcmp-banner.lcmp-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.lcmp-banner-inner {
  display: flex; gap: 22px; align-items: center;
  padding: 18px 22px; flex-wrap: wrap;
}
.lcmp-banner-text { flex: 1 1 380px; min-width: 280px; }
.lcmp-banner-text p { margin: 6px 0 0; color: #c3cee0; font-size: 13.5px; }
.lcmp-title { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
#lcmp-banner a { color: var(--lcmp-orange); text-decoration: none; }
#lcmp-banner a:hover { text-decoration: underline; }
.lcmp-banner-actions {
  display: flex; gap: 10px; align-items: center;
  flex: 0 0 auto; flex-wrap: wrap;
}
@media (max-width: 620px) {
  .lcmp-banner-actions { width: 100%; }
  .lcmp-banner-actions .lcmp-btn { flex: 1 1 auto; }
}

/* ---- buttons ---- */
.lcmp-btn {
  font: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: 8px; padding: 10px 16px;
  cursor: pointer; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.lcmp-btn-primary {
  background: var(--lcmp-orange); color: #1b2330; border-color: var(--lcmp-orange);
}
.lcmp-btn-primary:hover { background: var(--lcmp-orange-dk); border-color: var(--lcmp-orange-dk); }
.lcmp-btn-ghost {
  background: transparent; color: var(--lcmp-text-on-dark);
  border-color: rgba(255,255,255,0.28);
}
.lcmp-btn-ghost:hover { border-color: var(--lcmp-blue); color: #fff; }

/* ghost buttons inside the light modal need dark ink */
.lcmp-modal .lcmp-btn-ghost { color: var(--lcmp-ink); border-color: var(--lcmp-line); }
.lcmp-modal .lcmp-btn-ghost:hover { border-color: var(--lcmp-blue); color: var(--lcmp-blue); }

/* ---- modal ---- */
#lcmp-modal-wrap[hidden] { display: none; }
#lcmp-modal-wrap {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lcmp-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 16, 28, 0.62);
  backdrop-filter: blur(2px);
}
.lcmp-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--lcmp-panel);
  color: var(--lcmp-ink);
  border-radius: 16px;
  border-top: 4px solid var(--lcmp-orange);
  box-shadow: var(--lcmp-shadow);
  padding: 24px 26px;
}
.lcmp-modal-head { display: flex; align-items: center; justify-content: space-between; }
.lcmp-modal-head .lcmp-title { color: var(--lcmp-ink); font-size: 20px; }
.lcmp-close {
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--lcmp-ink-soft); cursor: pointer; padding: 0 4px;
}
.lcmp-close:hover { color: var(--lcmp-orange); }
.lcmp-modal-intro { color: var(--lcmp-ink-soft); font-size: 13.5px; margin: 6px 0 16px; }

/* ---- gpc notice ---- */
.lcmp-gpc-notice {
  background: #eef3ff; border: 1px solid #cfe0ff;
  color: var(--lcmp-blue-dk);
  border-radius: 8px; padding: 10px 12px;
  font-size: 12.5px; margin-bottom: 16px;
}
.lcmp-gpc-notice[hidden] { display: none; }

/* ---- categories ---- */
.lcmp-cat { padding: 14px 0; border-top: 1px solid var(--lcmp-line); }
.lcmp-cat:first-child { border-top: none; }
.lcmp-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lcmp-cat-label { font-weight: 700; color: var(--lcmp-ink); }
.lcmp-cat-desc { margin: 6px 0 0; color: var(--lcmp-ink-soft); font-size: 13px; }
.lcmp-lock-tag, .lcmp-gpc-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; margin-left: 4px;
  vertical-align: middle;
}
.lcmp-lock-tag { background: #e8edf6; color: var(--lcmp-ink-soft); }
.lcmp-gpc-tag { background: #fff0e6; color: var(--lcmp-orange-dk); }

/* ---- modal footer ---- */
.lcmp-modal-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--lcmp-line); flex-wrap: wrap;
}
.lcmp-spacer { flex: 1 1 auto; }
.lcmp-policy-link { color: var(--lcmp-blue); font-size: 12.5px; text-decoration: none; }
.lcmp-policy-link:hover { text-decoration: underline; }

/* ---- toggle switch ---- */
.lcmp-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.lcmp-switch input { opacity: 0; width: 0; height: 0; }
.lcmp-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #c2cad8; border-radius: 999px; transition: background .2s ease;
}
.lcmp-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.lcmp-switch input:checked + .lcmp-slider { background: var(--lcmp-blue); }
.lcmp-switch input:checked + .lcmp-slider::before { transform: translateX(20px); }
.lcmp-switch input:disabled + .lcmp-slider { opacity: .55; cursor: not-allowed; }
.lcmp-switch input:focus-visible + .lcmp-slider { outline: 2px solid var(--lcmp-orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  #lcmp-banner, .lcmp-slider, .lcmp-slider::before, .lcmp-btn { transition: none !important; }
}
