/* Country and currency controls belong to the European multi-market view. */
[data-simple-salary-page] .salary-table-card { margin-bottom: 0; }

.simple-salary-country-switch,
.simple-salary-currency-switch {
  display: flex;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.025);
}

.simple-salary-country-switch {
  margin: 0 0 1rem auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.simple-salary-country-switch button,
.simple-salary-currency-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.simple-salary-country-switch button[aria-checked="true"],
.simple-salary-currency-switch button[aria-checked="true"] {
  background: rgba(255, 193, 40, 0.12);
  color: var(--accent);
}

.simple-salary-country-switch button:hover,
.simple-salary-currency-switch button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--paper);
}

.simple-salary-country-switch button:focus-visible,
.simple-salary-currency-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.simple-salary-country-switch img { width: 1.5rem; height: 1.5rem; }
.simple-salary-country-switch button:not([aria-checked="true"]) span { display: none; }
.simple-salary-currency-row { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.simple-salary-currency-row[hidden] { display: none; }

@media (max-width: 480px) {
  .simple-salary-country-switch { gap: 0.1rem; }
  .simple-salary-country-switch button { padding: 0.4rem; font-size: 0.75rem; }
  .simple-salary-country-switch img { width: 1.25rem; height: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .simple-salary-country-switch button,
  .simple-salary-currency-switch button { transition: none; }
}
