/* .json-translator-switcher {
  position: absolute;
  right: 20px;
  top: 10px;
  display: inline-flex;
  white-space: nowrap;
} */

/* .json-translator-switcher {
  display: inline-flex;
  white-space: nowrap;
  margin-left: auto;
     padding-right: 15px;
} */
.json-translator-switcher {
  /* position: relative; */
  
  display: flex; 
  justify-content: flex-end; 
}

/* current button */
.lang-current {
  background: none;
  /* border: none; */
  font-size: 14px;
  cursor: pointer;
  color: #000;
  display: flex; 
  justify-content: flex-end; 
  border: 1px solid #ccc;  
  border-radius: 4px;       
  padding: 1px 2px;       
  background: transparent;  
  cursor: pointer;
}

/* menu */
.lang-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  padding: 6px 0;
  min-width: 60px;
  display: none;
}

/* drop down*/
.json-translator-switcher.open .lang-dropdown {
  display: block;
}

/* each item */
.lang-item {
  width: 100%;
  padding: 4px 6px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

/* hover */
.lang-item:hover {
  background: #eaeaea;
}

/* current lang */
.lang-item.active {
  font-weight: bold;
}

.json-translator-switcher.floating {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 99999;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.right-area {
  width: 100%;
  text-align: right;
}


.json-translator-switcher .lang-btn {
  display: inline-flex;
  padding: 0 3px;
  margin: 0;  
  background: none;
  border: none;
  align-items: center;
  line-height: 1;
  font-family: system-ui, -apple-system, sans-serif;
}
.json-translator-switcher .lang-btn:last-child {
  border-right: none;
}
.json-translator-switcher .lang-btn:not(:last-child)::after {
  content: "|";
  margin-left: 6px;
  color: #999;
}
.lang-btn.active {
  font-weight: bold;
  text-decoration: underline;
}

/* .json-translator-switcher .lang-btn.active {
  border-color: #000;
  font-weight: bold;
} */

.json-translator-switcher .lang-btn:focus {
  outline: none;
}