.right-buttons {
  --pfcp-menu-icon-size: 1.45rem;

  align-items: center;
  display: flex;
  height: var(--menu-bar-height);
}

.pfcp-language-switcher {
  margin: 0 0.35rem 0 0;
  position: relative;
}

.pfcp-language-switcher summary {
  align-items: center;
  border: 1px solid var(--table-border-color);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  gap: 0.7rem;
  height: calc(var(--menu-bar-height) - 0.6rem);
  line-height: 1;
  list-style: none;
  padding: 0 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.pfcp-language-switcher summary > * {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
}

.pfcp-language-icon {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: var(--pfcp-menu-icon-size);
}

.pfcp-fa-icon {
  background: currentColor;
  display: inline-block;
  height: var(--pfcp-menu-icon-size);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: var(--pfcp-menu-icon-size);
}

.pfcp-fa-globe {
  -webkit-mask-image: url("fontawesome-globe.svg");
  mask-image: url("fontawesome-globe.svg");
}

.pfcp-fa-caretDown {
  height: 0.8rem;
  -webkit-mask-image: url("fontawesome-caret-down.svg");
  mask-image: url("fontawesome-caret-down.svg");
  width: 0.8rem;
}

.right-buttons #print-button svg {
  height: var(--pfcp-menu-icon-size);
  width: var(--pfcp-menu-icon-size);
}

.pfcp-language-switcher summary::-webkit-details-marker {
  display: none;
}

.pfcp-language-switcher[open] summary,
.pfcp-language-switcher summary:hover {
  background: var(--theme-popup-bg);
}

.pfcp-language-current {
  align-items: center;
  display: flex;
  font-size: 1.35rem;
  height: var(--pfcp-menu-icon-size);
  line-height: var(--pfcp-menu-icon-size);
}

.right-buttons > a {
  align-items: center;
  display: flex;
  height: var(--menu-bar-height);
}

.pfcp-language-menu {
  background: var(--theme-popup-bg);
  border: 1px solid var(--table-border-color);
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px var(--sidebar-bg);
  display: grid;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  width: 100%;
  z-index: 10;
}

.pfcp-language-menu a {
  color: var(--fg);
  display: block;
  float: none;
  font-size: 1.35rem;
  height: auto;
  line-height: 1.25;
  padding: 0.8rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.pfcp-language-menu a:hover,
html[lang="ja"] .pfcp-language-menu a[lang="ja"],
html[lang="en"] .pfcp-language-menu a[lang="en"] {
  background: var(--quote-bg);
  font-weight: 600;
}
