
.cc, .cc-modal, .cc-fab { font-family: var(--font-main, system-ui, sans-serif); box-sizing: border-box; }
.cc *, .cc-modal * { box-sizing: border-box; }

.cc {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  max-width: 400px;
}
.cc[hidden] { display: none; }
.cc__card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  color: #111;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 20px;
}
.cc__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.cc__link { color: #0079a8; text-decoration: underline; }
.cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cc__btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.cc__btn--primary { background: #111; color: #fff; }
.cc__btn--primary:hover { opacity: .85; }
.cc__btn--ghost { background: #fff; color: #111; border-color: #cbd5e1; }
.cc__btn--ghost:hover { background: #f5f5f5; }

.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-modal[hidden] { display: none; }
.cc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.cc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.cc-modal__title { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.cc-modal__desc { font-size: 14px; line-height: 1.55; margin: 0 0 20px; color: #333; }

.cc-cats { list-style: none; margin: 0 0 20px; padding: 0; }
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eee;
}
.cc-cat:last-child { border-bottom: 1px solid #eee; }
.cc-cat strong { display: block; font-size: 15px; }
.cc-cat span.cc-cat__desc { display: block; font-size: 13px; color: #555; margin-top: 2px; }
.cc-badge { font-size: 12px; font-weight: 600; color: #0079a8; white-space: nowrap; padding-top: 2px; }

.cc-switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch .cc-slider {
  position: absolute; inset: 0;
  background: #cbd5e1; border-radius: 999px; transition: background .2s ease;
}
.cc-switch .cc-slider::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cc-switch input:checked + .cc-slider { background: #00bffe; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid #0079a8; outline-offset: 2px; }

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cc-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-fab[hidden] { display: none; }
.cc-fab:hover { background: #f5f5f5; }

@media (max-width: 520px) {
  .cc {
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .cc__card { max-width: none; }
  .cc__actions, .cc-modal__actions { justify-content: stretch; }
  .cc__btn { flex: 1 1 auto; }
}
