/* Shared language list: the same spacing, flags and colors as the country list. */
.rb-final-lang-picker {
  position: relative;
  display: inline-block;
  z-index: 10001;
  font: inherit;
}
.rb-final-lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 96px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  background: #102820;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
}
.rb-final-lang-flag {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
}
.rb-final-lang-arrow {
  margin-left: auto;
  font-size: 12px;
}
#rb-language-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  display: none;
}
#rb-language-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
#rb-language-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}
.rb-language-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border-radius: 18px;
  background: #0b1c17;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
#rb-language-title {
  flex-shrink: 0;
  margin: 0 0 16px;
  font-size: 1.55rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.rb-language-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  background: #102820;
  color: #fff;
  text-align: start;
  font: inherit;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}
.rb-language-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rb-final-lang-menu {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  max-height: min(280px, 40dvh);
  margin-top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  background: #102820;
}
#rb-language-dialog [hidden] {
  display: none !important;
}
.rb-final-lang-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  text-align: start;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.rb-final-lang-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rb-final-lang-code {
  color: #c9d7d1;
  white-space: nowrap;
}
.rb-final-lang-item:hover,
.rb-final-lang-item:focus,
.rb-final-lang-item[aria-selected='true'] {
  background: #23563f;
}
.rb-final-lang-picker button:focus-visible,
#rb-language-dialog button:focus-visible {
  outline: 2px solid #86efb7;
  outline-offset: -2px;
}
.rb-language-actions {
  flex-shrink: 0;
  display: flex;
  margin-top: 16px;
}
.rb-language-close {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 480px) {
  .rb-language-card {
    padding: 20px;
  }
  #rb-language-dialog {
    padding: 16px;
  }
}
/* A single released language needs no customer-facing selector. */
.shop-language[hidden],
.lang-wrap[hidden] {
  display: none !important;
}
/* Hide unfinished language menus before JavaScript and during DE-only sales. */
html:not([data-rb-multilingual]) .shop-language,
html:not([data-rb-multilingual]) .lang-wrap {
  display: none !important;
}
