.ccpanel-root,
.ccpanel-root * {
  box-sizing: border-box;
}

.ccpanel-root {
  position: fixed;
  z-index: 2147483000;
  inset: auto 18px 18px 18px;
  display: flex;
  justify-content: center;
  font-family: inherit;
  color: var(--ccpanel-text, #1f2937);
  pointer-events: none;
}

.ccpanel-root.ccpanel-position-center {
  inset: 0;
  align-items: center;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

.ccpanel-root.ccpanel-position-bottom-left {
  right: auto;
  justify-content: flex-start;
}

.ccpanel-root.ccpanel-position-bottom-right {
  left: auto;
  justify-content: flex-end;
}

.ccpanel-card {
  width: min(880px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border-radius: var(--ccpanel-radius, 22px);
  background: color-mix(in srgb, var(--ccpanel-card, #fff) 92%, transparent);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.3);
  pointer-events: auto;
}

.ccpanel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ccpanel-logo {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
  border-radius: 14px;
}

.ccpanel-head strong {
  display: block;
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.ccpanel-head p {
  margin: 0;
  color: var(--ccpanel-muted, #667085);
  font-size: 14px;
  line-height: 1.55;
}

.ccpanel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.ccpanel-btn,
.ccpanel-shortcode-button,
.ccpanel-load-once {
  appearance: none;
  border: 1px solid transparent;
  border-radius: calc(var(--ccpanel-radius, 22px) * 0.65);
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.ccpanel-btn:hover,
.ccpanel-shortcode-button:hover,
.ccpanel-load-once:hover {
  transform: translateY(-1px);
}

.ccpanel-btn-primary,
.ccpanel-load-once {
  color: #fff;
  background: var(--ccpanel-primary, #23b8c7);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ccpanel-primary, #23b8c7) 26%, transparent);
}

.ccpanel-btn-secondary {
  color: var(--ccpanel-text, #1f2937);
  background: #fff;
  border-color: rgba(148, 163, 184, 0.55);
}

.ccpanel-btn-ghost,
.ccpanel-shortcode-button {
  color: var(--ccpanel-primary, #23b8c7);
  background: color-mix(in srgb, var(--ccpanel-primary, #23b8c7) 9%, #fff);
  border-color: color-mix(in srgb, var(--ccpanel-primary, #23b8c7) 25%, transparent);
}

.ccpanel-settings {
  display: none;
  margin-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 16px;
}

.ccpanel-settings.is-open {
  display: block;
}

.ccpanel-category {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ccpanel-category strong {
  display: block;
  font-size: 15px;
}

.ccpanel-category small {
  display: block;
  margin-top: 4px;
  color: var(--ccpanel-muted, #667085);
  line-height: 1.45;
}

.ccpanel-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ccpanel-toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.ccpanel-toggle::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2);
  transition: transform .18s ease;
}

.ccpanel-category input:checked + .ccpanel-toggle {
  background: var(--ccpanel-primary, #23b8c7);
}

.ccpanel-category input:checked + .ccpanel-toggle::after {
  transform: translateX(20px);
}

.ccpanel-save-selection {
  margin-top: 16px;
  width: 100%;
}

.ccpanel-privacy-link,
.ccpanel-branding {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ccpanel-muted, #667085);
}

.ccpanel-privacy-link {
  margin-right: 14px;
  color: var(--ccpanel-primary, #23b8c7);
  text-decoration: none;
}

.ccpanel-blocked-content.is-visible {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .42);
  background: linear-gradient(135deg, rgba(248,250,252,.92), rgba(241,245,249,.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  text-align: center;
  color: #1f2937;
}

.ccpanel-blocked-inner {
  max-width: 520px;
}

.ccpanel-blocked-inner strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.ccpanel-blocked-inner p {
  margin: 0 0 8px;
  color: #64748b;
  line-height: 1.55;
}

.ccpanel-blocked-inner small {
  display: block;
  color: #64748b;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .ccpanel-root {
    inset: auto 10px 10px 10px;
  }
  .ccpanel-card {
    padding: 18px;
  }
  .ccpanel-head {
    display: block;
  }
  .ccpanel-logo {
    margin-bottom: 10px;
  }
  .ccpanel-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ccpanel-btn {
    width: 100%;
  }
}
