.qr-menu-title {
  max-width: 36rem;
  margin: 0 auto;
  color: #1a130f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: none;
}

.qr-language-tools {
  position: relative;
  z-index: 7;
  border-bottom: 1px solid rgba(167, 122, 56, 0.24);
  background: rgba(255, 250, 240, 0.94);
}

.qr-language-tools__inner {
  display: flex;
  width: min(620px, calc(100% - 20px));
  justify-content: flex-end;
  margin: 0 auto;
  padding: 5px 0;
}

.qr-language-picker {
  position: relative;
  direction: ltr;
}

.qr-language-picker__trigger {
  display: inline-flex;
  min-width: 78px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(67, 27, 23, 0.22);
  border-radius: 999px;
  background: #fffaf0;
  color: #281d16;
  cursor: pointer;
  font: inherit;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.qr-language-picker__trigger:hover,
.qr-language-picker.is-open .qr-language-picker__trigger {
  border-color: rgba(67, 27, 23, 0.46);
  background: #f5e8d4;
}

.qr-language-picker__trigger:focus-visible,
.qr-language-picker__option:focus-visible {
  outline: 3px solid #7b5423;
  outline-offset: 2px;
}

.qr-language-flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(67, 27, 23, 0.2);
}

.qr-language-code {
  min-width: 20px;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: left;
}

.qr-language-picker__arrow {
  width: 7px;
  height: 7px;
  margin: -3px 1px 0 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease, margin 150ms ease;
}

.qr-language-picker.is-open .qr-language-picker__arrow {
  margin-top: 3px;
  transform: rotate(225deg);
}

.qr-language-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(224px, calc(100vw - 16px));
  max-height: min(70vh, 390px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border: 1px solid rgba(67, 27, 23, 0.24);
  border-radius: 15px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 16px 36px rgba(42, 30, 16, 0.24);
  backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
}

.qr-language-picker__menu[hidden] {
  display: none;
}

.qr-language-picker__option {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(67, 27, 23, 0.14);
  border-radius: 10px;
  background: #fffaf0;
  color: #30261f;
  direction: ltr;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.qr-language-picker__option:hover {
  border-color: rgba(67, 27, 23, 0.42);
  background: #f3e4cc;
}

.qr-language-picker__option.is-current {
  border-color: #1b1510;
  background: #1b1510;
  color: #fff4df;
}

.qr-language-picker__option.is-current::after {
  content: "✓";
  margin-left: auto;
  font-size: 11px;
  font-weight: 900;
}

html[dir="rtl"] .price,
html[dir="rtl"] .wine-row strong,
html[dir="rtl"] .coffee-card__price {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 380px) {
  .qr-language-tools__inner {
    width: calc(100% - 14px);
  }

  .qr-language-picker__menu {
    width: min(216px, calc(100vw - 14px));
  }
}

@media print {
  .qr-language-tools {
    display: none;
  }
}
