.lbnktrnsltn-switcher {
  position: fixed;
  display: flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  top: 10px;
  right: 10px; /* positioned left of social icons */
  z-index: 9999;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--lubinik-border-radius-lg);
  padding: 8px 16px;
  font-size: var(--lubinik-font-size-xl);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.lbnktrnsltn-switcher__link {
  color: var(--lubinik-theme-primary-color);
  text-decoration: none;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--lubinik-border-radius-md);
  transition: all 0.3s ease;
  text-transform: none;
}

.lbnktrnsltn-switcher__label {
  display: none;
}

.lbnktrnsltn-switcher__link:hover {
  color: var(--lubinik-theme-primary-color);
  background: rgba(var(--lubinik-primary-color-rgb), 0.1);
}

.lbnktrnsltn-switcher__link.is-active {
  color: var(--lubinik-theme-primary-color);
  background: rgba(var(--lubinik-primary-color-rgb), 1.0);
  font-weight: 600;
}

.lbnktrnsltn-switcher__flag {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
}

/* Focus style for accessibility */
.lbnktrnsltn-switcher__link:focus-visible {
  outline: 2px solid var(--lubinik-theme-primary-color);
  outline-offset: 2px;
  border-radius: var(--lubinik-border-radius-md);
}

/* Reveal text label on hover/focus */
/* Remove the hover label so the flag buttons sit flush */
.lbnktrnsltn-switcher__link::after {
  display: none;
}



/* tablets & below – keep top-right but shrink */
@media (max-width: 1440px) {
  .lbnktrnsltn-switcher {
    position: absolute;
    top: 2px;
    right: 20px;
    padding: 4px 10px;
    font-size: var(--lubinik-font-size-md);
    transform: scale(0.9);
  }
  .lbnktrnsltn-switcher__flag { font-size: var(--lubinik-font-size-md); }
}

@media (min-width: 1200px) and (max-width: 1280px) and (orientation: landscape) {
  .lbnktrnsltn-switcher {
    position: absolute;
    top: 12px;
    left: 0;
    right: auto;
  }
}

/* tablets & below – keep top-right but shrink */
@media (max-width: 1080px) and (orientation: portrait) {
  .lbnktrnsltn-switcher {
    position: absolute;
    top: 15px;
    left: 0;        /* ← your new anchor */
    right: auto;       /* ← cancel any right from previous rules */
    padding: 3px 8px;
    font-size: var(--lubinik-font-size-lg);
    transform: scale(0.8);
  }
  .lbnktrnsltn-switcher__flag { font-size: var(--lubinik-font-size-md); }
}



@media (max-width: 1080px) and (orientation: landscape) {
  .lbnktrnsltn-switcher {
    position: absolute;
    top: 20px;
    right: 600px;
    padding: 4px 10px;
    font-size: var(--lubinik-font-size-md);
    transform: scale(0.9);
  }
  .lbnktrnsltn-switcher__flag { font-size: var(--lubinik-font-size-md); }
}



/* phones in landscape (low height) */
@media (max-height: 500px) and (orientation: landscape) {
  .lbnktrnsltn-switcher {
    position: absolute;
    top: 6px;
    right: 300px;        /* or wherever fits */
    padding: 3px 8px;
    font-size: var(--lubinik-font-size-md);
    transform: scale(.8);
  }
  .lbnktrnsltn-switcher__flag { font-size: var(--lubinik-font-size-md); }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .lbnktrnsltn-switcher { position: static; transform: none; }
  .site-header-mobile { display:flex; justify-content: space-between; align-items:center; }
  .lbnktrnsltn-switcher {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 8px;           /* use right:auto if you prefer left */
    right: auto;
    transform: none;
    z-index: 99999 !important;
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    padding: 4px 10px;
    margin: 0;           /* margins don’t affect fixed positioning */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--lubinik-border-radius-lg);
  }
}



@media (max-width: 768px) {
  .lbnktrnsltn-switcher { position: static; transform: none; }
  .site-header-mobile { display:flex; justify-content: space-between; align-items:center; }
  .lbnktrnsltn-switcher {
    display: inline-flex;
    flex: 0 0 auto;      /* prevent flex stretching */
    width: auto;         /* shrink-wrap */
    padding: 4px 10px;
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--lubinik-border-radius-lg);
    z-index: 9999 !important;
  }
}


