.ccc-root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.ccc-root *,
.ccc-root *::before,
.ccc-root *::after {
  box-sizing: border-box;
}

.ccc-banner,
.ccc-modal {
  position: fixed;
  z-index: 2147483000;
  color: #17202a;
}

.ccc-banner {
  right: 16px;
  bottom: 16px;
  width: min(640px, calc(100vw - 32px));
  border: 1px solid #c8d0d9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.ccc-banner__body,
.ccc-modal__body {
  padding: 22px;
}

.ccc-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ccc-text {
  margin: 0;
  color: #405060;
  font-size: 0.95rem;
}

.ccc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 22px 22px;
}

.ccc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.ccc-link {
  color: #0f5f8f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ccc-button {
  min-height: 42px;
  border: 1px solid #aeb8c2;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 9px 14px;
}

.ccc-button:hover,
.ccc-button:focus-visible {
  border-color: #0f5f8f;
  outline: 2px solid transparent;
}

.ccc-button--primary {
  border-color: #136f63;
  background: #136f63;
  color: #ffffff;
}

.ccc-button--quiet {
  background: #f4f6f8;
}

.ccc-button--icon {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482999;
  display: none;
  min-width: 42px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.ccc-button--icon.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ccc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482998;
  background: rgba(15, 23, 42, 0.48);
}

.ccc-modal {
  inset: 50% auto auto 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #c8d0d9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.ccc-category-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.ccc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  padding: 14px;
}

.ccc-category__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 700;
}

.ccc-badge {
  border-radius: 999px;
  background: #e7f4f1;
  color: #0e655c;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
}

.ccc-services {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.ccc-service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #edf0f3;
  padding-top: 10px;
}

.ccc-service__name {
  margin: 0;
  font-weight: 650;
}

.ccc-service__meta {
  margin: 2px 0 0;
  color: #5b6875;
  font-size: 0.86rem;
}

.ccc-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.ccc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ccc-switch span {
  width: 100%;
  border-radius: 999px;
  background: #b8c1cb;
  transition: background 0.16s ease;
}

.ccc-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.26);
  transition: transform 0.16s ease;
}

.ccc-switch input:checked + span {
  background: #136f63;
}

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

.ccc-switch input:focus-visible + span {
  outline: 2px solid #0f5f8f;
  outline-offset: 3px;
}

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

.ccc-embed-placeholder {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 180px;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  background: #f4f6f8;
  color: #263441;
  padding: 24px;
  text-align: center;
}

.ccc-embed-placeholder strong {
  display: block;
  font-size: 1rem;
}

.ccc-hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .ccc-banner {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .ccc-banner__body,
  .ccc-modal__body {
    padding: 18px;
  }

  .ccc-actions {
    padding: 0 18px 18px;
  }

  .ccc-actions,
  .ccc-button {
    width: 100%;
  }

  .ccc-category,
  .ccc-service {
    grid-template-columns: 1fr;
  }
}
