.bcc-root { font-family: inherit; position: relative; }

.bcc-h1 { margin: 0 0 8px; }
.bcc-lede { margin: 0 0 14px; opacity: 0.85; }

/* Loading */
.bcc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}

.bcc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #000;
  border-radius: 999px;
  animation: bccspin 0.9s linear infinite;
}

@keyframes bccspin { to { transform: rotate(360deg); } }
.bcc-loading-text { color: #111; opacity: 0.85; }

/* Search */
.bcc-search-wrap { position: relative; margin-top: 10px; }

.bcc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: #111;
}
.bcc-input::placeholder { color: #666; }

/* Dropdown suggestions */
.bcc-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 8px;
  display: none;
  z-index: 9999;

  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  overflow: hidden;
}

.bcc-suggestion {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #f1f1f1;
  background: #fff;
  color: #111 !important;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.2;
}
.bcc-suggestion:last-child { border-bottom: none; }

.bcc-suggestion:hover,
.bcc-suggestion:focus {
  background: #f5f5f5;
  outline: none;
  color: #111 !important;
}

.bcc-suggestion.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chips */
.bcc-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bcc-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: #fafafa;
  color: #111;
  font-weight: 500;
}

.bcc-chip-name { color: #111; }

/* Black buttons + green hover (buttons + X) */
.bcc-chip-x,
.bcc-copy-btn,
.bcc-cta {
  border: none;
  background: #000;
  color: #fff !important;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.05s ease;
}

.bcc-chip-x:hover,
.bcc-copy-btn:hover,
.bcc-cta:hover,
.bcc-chip-x:focus,
.bcc-copy-btn:focus,
.bcc-cta:focus {
  background: #00a86b;
  outline: none;
}

.bcc-chip-x:active,
.bcc-copy-btn:active,
.bcc-cta:active {
  transform: translateY(1px);
}

.bcc-chip-x {
  font-size: 16px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

.bcc-cta { padding: 10px 12px; text-align: center; display: inline-block; text-decoration: none; }

/* Share row */
.bcc-share-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.bcc-share-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111;
}

.bcc-copy-btn {
  padding: 10px 14px;
  white-space: nowrap;
  border-radius: 10px;
}

/* Tip */
.bcc-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;
  color: #111;
  opacity: 0.9;
}

/* Authority blocks */
.bcc-banner {
  margin: 12px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  color: #111;
}
.bcc-banner strong { font-weight: 700; }

.bcc-summary {
  margin: 12px 0 12px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}
.bcc-summary h3 { margin: 0 0 6px; font-size: 16px; }
.bcc-summary ul { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Table */
.bcc-table-wrap { margin-top: 18px; overflow-x: auto; }
.bcc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  color: #111;
}
.bcc-th, .bcc-td {
  border-bottom: 1px solid #eee;
  padding: 12px 14px;
  vertical-align: top;
  color: #111;
}
.bcc-dimension { font-weight: 600; width: 260px; }
.bcc-link { text-decoration: underline; font-weight: 600; color: inherit; }

/* Differences block */
.bcc-diff > div { margin: 4px 0; }

/* Complexity bar (kept for future use) */
.bcc-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bcc-score-bar {
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: #eaeaea;
  overflow: hidden;
}
.bcc-score-fill {
  height: 100%;
  width: 0%;
  background: #111;
}
.bcc-score-num { font-weight: 700; }