.ctcc-open { overflow: hidden; }
.ctcc-backdrop { position: fixed; inset: 0; z-index: 999998; background: rgba(8, 20, 45, .58); }
.ctcc-panel { --ctcc-accent: #f6244a; position: fixed; z-index: 999999; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 28px; border-radius: 18px; background: #fff; color: #17223b; box-shadow: 0 24px 80px rgba(0,0,0,.28); font-family: inherit; }
.ctcc-panel[hidden], .ctcc-backdrop[hidden], .ctcc-reopen[hidden] { display: none !important; }
.ctcc-panel h2 { margin: 0 42px 10px 0; color: #17223b; font-size: 26px; line-height: 1.2; }
.ctcc-panel p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.ctcc-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #17223b; font-size: 30px; line-height: 32px; cursor: pointer; }
.ctcc-close:hover, .ctcc-close:focus-visible { background: #f1f3f7; outline: 3px solid rgba(246,36,74,.25); }
.ctcc-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.ctcc-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid #dfe3eb; border-radius: 10px; font-weight: 600; }
.ctcc-toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.ctcc-switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; border-radius: 30px; background: #b8bfcb; transition: .2s; }
.ctcc-switch:after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: .2s; }
.ctcc-toggle-row input:checked + .ctcc-switch { background: var(--ctcc-accent); }
.ctcc-toggle-row input:checked + .ctcc-switch:after { transform: translateX(18px); }
.ctcc-toggle-row input:focus-visible + .ctcc-switch { outline: 3px solid rgba(246,36,74,.3); outline-offset: 2px; }
.ctcc-toggle-row input:disabled + .ctcc-switch { opacity: .55; }
.ctcc-policy { display: inline-block; margin: 0 0 20px; color: #17223b; text-decoration: underline; }
.ctcc-actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.ctcc-btn { min-height: 46px; padding: 10px 14px; border: 2px solid var(--ctcc-accent); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.ctcc-save { background: #fff; color: #17223b; }
.ctcc-reject, .ctcc-accept { background: var(--ctcc-accent); color: #fff; }
.ctcc-btn:hover { filter: brightness(.94); }
.ctcc-btn:focus-visible { outline: 3px solid rgba(246,36,74,.3); outline-offset: 2px; }
.ctcc-reopen { position: fixed; z-index: 999990; left: 14px; bottom: 14px; padding: 9px 13px; border: 0; border-radius: 999px; background: #17223b; color: #fff; font: inherit; font-size: 13px; font-weight: 700; box-shadow: 0 4px 18px rgba(0,0,0,.22); cursor: pointer; }
.ctcc-reopen:focus-visible { outline: 3px solid rgba(246,36,74,.45); outline-offset: 2px; }
@media (max-width: 620px) {
  .ctcc-panel { padding: 22px 18px; border-radius: 14px; }
  .ctcc-panel h2 { font-size: 22px; }
  .ctcc-categories, .ctcc-actions { grid-template-columns: 1fr; }
  .ctcc-actions .ctcc-accept { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .ctcc-switch, .ctcc-switch:after { transition: none; }
}
