/* Small UI overrides for public site */

/* Premium language dropdown */
.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-dropdown__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 24, 27, 0.15);
  background: var(--rr-common-white, #ffffff);
  color: var(--rr-menu-primary, #15181b);
  border-radius: 999px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 38px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.lang-dropdown__button:hover {
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.lang-dropdown__button:focus {
  outline: none;
  border-color: var(--rr-theme-primary, #007aff);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.18);
}

.lang-dropdown[data-open="true"] .lang-dropdown__button {
  border-color: var(--rr-theme-primary, #007aff);
}

.lang-dropdown__icon,
.lang-dropdown__chevron {
  color: rgba(21, 24, 27, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-dropdown__flag,
.lang-dropdown__item-flag {
  display: inline-flex;
  align-items: center;
}

.lang-dropdown__flag svg,
.lang-dropdown__item-flag svg {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(21, 24, 27, 0.12);
}

.lang-dropdown__label {
  letter-spacing: 0.5px;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(21, 24, 27, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  z-index: 9999;
}

.lang-dropdown__form {
  margin: 0;
}

.lang-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--rr-menu-primary, #15181b);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dropdown__item:hover {
  background: rgba(0, 122, 255, 0.08);
}

.lang-dropdown__item:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.lang-dropdown__item[aria-checked="true"] {
  background: rgba(0, 122, 255, 0.12);
}

.lang-dropdown__item-text {
  flex: 1;
  font-weight: 700;
}

.lang-dropdown__item-code {
  font-weight: 800;
  font-size: 12px;
  color: rgba(21, 24, 27, 0.65);
}

/* Compact variant (mobile header) */
.lang-dropdown--compact .lang-dropdown__button {
  height: 34px;
  line-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  gap: 6px;
}

.lang-dropdown--compact .lang-dropdown__menu {
  min-width: 200px;
}

/* Offcanvas variant (full width) */
.lang-dropdown--offcanvas {
  width: 100%;
}

.lang-dropdown--offcanvas .lang-dropdown__button {
  width: 100%;
  justify-content: center;
}

.lang-dropdown--offcanvas .lang-dropdown__menu {
  left: 0;
  right: 0;
}
