body {
  font-family: var(--sc-public-font-family, inherit);
  font-size: calc(1rem * var(--sc-public-font-size-scale, 1));
}

.sc-locale-switcher {
  display: none !important;
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: auto;
  bottom: auto;
  z-index: 1080;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(127, 118, 99, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(30, 20, 0, 0.12);
  backdrop-filter: blur(14px);
}

body.admin-bar .sc-locale-switcher {
  top: calc(32px + 1rem);
}

.sc-immersive-body .sc-locale-switcher {
  top: 0.75rem;
  left: 0.75rem;
}

@media (max-width: 782px) {
  body.admin-bar .sc-locale-switcher {
    top: calc(46px + 0.75rem);
  }
}

@media (max-width: 575.98px) {
  .sc-locale-switcher {
    top: 0.75rem;
    left: 0.75rem;
  }
}

.sc-locale-switcher button,
.sc-locale-modal button {
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--sc-primary, #735c00);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
}

.sc-locale-switcher button.active,
.sc-locale-modal button:hover,
.sc-locale-modal button:focus-visible {
  background: var(--sc-primary-container, #d4af37);
  color: var(--sc-on-primary-container, #554300);
}

.sc-locale-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(27, 28, 26, 0.32);
  backdrop-filter: blur(8px);
}

.sc-locale-modal__panel {
  width: min(26rem, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(127, 118, 99, 0.16);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(30, 20, 0, 0.22);
  text-align: center;
}

.sc-locale-modal__panel h2 {
  color: var(--sc-primary, #735c00);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sc-locale-modal__panel div {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
