:root {
  --ccc-blue: #1557D6;
  --ccc-deep: #09245C;
  --ccc-ink: #11224A;
  --ccc-line: #E7EEFB;
  --ccc-soft: #F4F8FF;
  --ccc-text: #3F4F6D;
  --ccc-red: #D92C2C;
  --ccc-green: #12A65A;
}

.ccc-root {
  font-family: Poppins, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ccc-ink);
}

.ccc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  margin: 0;
  max-width: none;
  background: rgba(255, 255, 255, 0.97);
  border: 0;
  border-top: 1px solid var(--ccc-line);
  border-radius: 0;
  box-shadow: 0 -4px 14px rgba(9, 36, 92, 0.07);
  padding: 7px 12px;
  display: none;
  backdrop-filter: blur(6px);
}

.ccc-banner.is-visible {
  display: block;
}

.ccc-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.ccc-banner h2 {
  display: none;
}

.ccc-banner-text {
  margin: 0;
  flex: 1 1 220px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--ccc-text);
}

.ccc-banner-text strong {
  color: var(--ccc-deep);
  font-weight: 600;
}

.ccc-banner a {
  color: var(--ccc-blue);
  font-weight: 600;
  text-decoration: none;
}

.ccc-banner a:hover {
  text-decoration: underline;
}

.ccc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ccc-actions--banner {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.ccc-btn {
  border: 1px solid var(--ccc-blue);
  border-radius: 8px;
  padding: 5px 10px;
  background: #fff;
  color: var(--ccc-blue);
  font: 600 9px Poppins, Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.ccc-btn.primary {
  background: var(--ccc-blue);
  color: #fff;
}

.ccc-btn.muted {
  border-color: #cddaf1;
  color: var(--ccc-text);
}

.ccc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(9, 36, 92, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ccc-modal-backdrop.is-visible {
  display: flex;
}

.ccc-modal {
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ccc-line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(9, 36, 92, 0.18);
  padding: 18px 20px;
}

.ccc-modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ccc-deep);
}

.ccc-modal > p {
  margin: 0 0 14px;
  font-size: 10px;
  color: var(--ccc-text);
}

.ccc-category {
  border: 1px solid var(--ccc-line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--ccc-soft);
}

.ccc-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ccc-category h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ccc-deep);
}

.ccc-category p {
  margin: 0;
  font-size: 10px;
  color: var(--ccc-text);
}

.ccc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #9fd8b6;
  background: #f0fff6;
  color: #17623c;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ccc-switch {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 24px;
}

.ccc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ccc-switch span {
  position: absolute;
  inset: 0;
  background: #cddaf1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ccc-switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(9, 36, 92, 0.18);
}

.ccc-switch input:checked + span {
  background: var(--ccc-blue);
}

.ccc-switch input:checked + span::before {
  transform: translateX(18px);
}

.ccc-switch input:disabled + span {
  opacity: 0.65;
  cursor: not-allowed;
}

.ccc-fab {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 10040;
  border: 1px solid var(--ccc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ccc-deep);
  box-shadow: 0 4px 12px rgba(9, 36, 92, 0.08);
  padding: 6px 10px;
  font: 600 9px Poppins, Arial, sans-serif;
  cursor: pointer;
  display: none;
}

.ccc-fab.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ccc-banner.is-visible + .ccc-fab,
.ccc-modal-backdrop.is-visible ~ .ccc-fab {
  bottom: 46px;
}

@media (max-width: 640px) {
  .ccc-banner {
    padding: 8px 10px;
  }

  .ccc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ccc-actions--banner {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .ccc-actions--banner .ccc-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .ccc-actions:not(.ccc-actions--banner) {
    flex-direction: column;
  }

  .ccc-actions:not(.ccc-actions--banner) .ccc-btn {
    width: 100%;
  }

  .ccc-category h3 {
    font-size: 16px;
  }
}
