[data-cw-preference-source] { display: none !important; }

.cw-public-controls {
  --cw-preference-surface: #fff;
  --cw-preference-text: #182335;
  --cw-preference-border: #76879e;
  --cw-preference-hover: #eef2f7;
  --cw-preference-focus: #2563eb;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .375rem;
  color-scheme: light;
}

.cw-public-controls[data-appearance="dark"] {
  --cw-preference-surface: #1d1d1d;
  --cw-preference-text: #f2f2f2;
  --cw-preference-border: #7a7a7a;
  --cw-preference-hover: #292929;
  --cw-preference-focus: #8ab4ff;
  color-scheme: dark;
}

.cw-public-controls--legal {
  display: flex;
  margin-block-end: .75rem;
}

.cw-public-controls > [hidden] { display: none !important; }

.cw-public-controls > .cw-public-control {
  appearance: none;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cw-preference-border);
  border-radius: 8px;
  background: var(--cw-preference-surface);
  color: var(--cw-preference-text);
  font: 700 .875rem/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.cw-public-controls > .cw-public-control:hover { background: var(--cw-preference-hover); }
.cw-public-controls > .cw-public-control:focus-visible {
  outline: 2px solid var(--cw-preference-focus);
  outline-offset: 2px;
}

.cw-public-theme svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
