/* Shared controls also override the older child-theme comparison legend/filter. */
.abpc-page.abpc-controls-ready {
  --abpc-control-color: var(--abpc-ink, var(--ab-ink, var(--bs-primary, #183d40)));
  --abpc-control-line: var(--abpc-line, var(--bs-border-color, #dce5e2));
  --abpc-control-soft: var(--abpc-soft, var(--bs-tertiary-bg, #edf3f1));
}
.abpc-page.abpc-controls-ready .abpc-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 20px 0 16px;
  min-width: 0;
  max-width: 100%;
}
.abpc-page.abpc-controls-ready .abpc-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--abpc-control-color);
  border-radius: 8px;
  background: var(--bs-body-bg, #fff);
  color: var(--abpc-control-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.abpc-page.abpc-controls-ready .abpc-control-button[aria-pressed="true"] {
  background: var(--abpc-control-color);
  color: #fff;
}
.abpc-page.abpc-controls-ready .abpc-control-button:not(:disabled):hover {
  box-shadow: 0 0 0 2px var(--abpc-control-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.abpc-page.abpc-controls-ready .abpc-control-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.abpc-page.abpc-controls-ready .abpc-control-button:focus-visible,
.abpc-page.abpc-controls-ready .abpc-group-nav a:focus-visible {
  outline: 3px solid var(--abpc-control-color);
  outline-offset: 3px;
}
.abpc-page.abpc-controls-ready .abpc-tools .abpc-feature-status {
  flex: 1 1 220px;
  margin: 0;
  color: var(--abpc-control-color);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.abpc-page.abpc-controls-ready .abpc-group-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 16px;
  border: 0;
  overflow: visible;
}
.abpc-page.abpc-controls-ready .abpc-group-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--abpc-control-line);
  border-radius: 999px;
  background: var(--abpc-control-soft);
  color: var(--abpc-control-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  text-decoration: none;
}
.abpc-page.abpc-controls-ready .abpc-group-nav a:hover {
  border-color: var(--abpc-control-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.abpc-page.abpc-controls-ready .abpc-group-nav a[aria-current="location"] {
  border-color: var(--abpc-control-color);
  background: var(--abpc-control-color);
  color: #fff;
}
.abpc-page.abpc-controls-ready:not(.abpc-highlight-off) [data-abpc-feature-row].abpc-feature-row--different > * {
  --bs-table-bg: var(--abpc-difference, #fff5e7);
  --bs-table-accent-bg: transparent;
  --bs-table-bg-state: transparent;
  --bs-tertiary-bg-rgb: 255, 245, 231;
  background-color: var(--abpc-difference, #fff5e7);
  box-shadow: none;
}
.abpc-page.abpc-controls-ready.abpc-highlight-off [data-abpc-feature-row].abpc-feature-row--different > * {
  --bs-table-bg: var(--bs-body-bg, #fff);
  --bs-table-accent-bg: transparent;
  --bs-table-bg-state: transparent;
  background-color: var(--bs-body-bg, #fff);
  box-shadow: none;
}
.abpc-page.abpc-controls-ready.abpc-highlight-off .abpc-values .abpc-value--different {
  padding-inline-start: 0;
  border-inline-start: 0;
  font-weight: inherit;
}
.abpc-page.abpc-controls-ready.abpc-highlight-off .abpc-difference-label,
.abpc-page.abpc-controls-ready [data-abpc-feature-row][hidden],
.abpc-page.abpc-controls-ready [data-abpc-feature-group][hidden],
.abpc-page.abpc-controls-ready .abpc-group-nav a[hidden] {
  display: none;
}
@media (max-width: 575.98px) {
  .abpc-page.abpc-controls-ready .abpc-control-button { flex: 1 1 160px; }
  .abpc-page.abpc-controls-ready .abpc-tools .abpc-feature-status { flex-basis: 100%; }
}
