.vlp {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.vlp:has(.vlp-pop:not([hidden])) {
  z-index: 100;
}

.vlp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #111;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.vlp-trigger:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 17, 17, 0.12);
}

.vlp-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.14);
  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.08);
}

.vlp-trigger svg {
  width: 15px;
  height: 15px;
  opacity: 0.5;
  flex-shrink: 0;
}

.vlp-trigger-codes {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #5c5c68;
  font-size: 11.5px;
}

.vlp-trigger-codes b {
  color: #111;
  font-weight: 800;
}

.vlp-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 44px rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  z-index: 1000;
}

.vlp-pop--up {
  top: auto;
  bottom: calc(100% + 8px);
}

.vlp-pop[hidden] {
  display: none !important;
}

.vlp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vlp-row + .vlp-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.vlp-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #8a8a96;
  white-space: nowrap;
}

.vlp-seg {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: #f3f3f5;
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.vlp-seg button {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  color: #5c5c68;
  transition: background 0.12s, color 0.12s;
}

.vlp-seg button.on {
  background: #111;
  color: #fff;
}

/* ---- pretraživ picker jezika sadržaja ---- */
.vlp-row-col {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.vlp-clang {
  position: relative;
}

.vlp-clang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #f7f8fa;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  padding: 8px 11px;
  cursor: pointer;
}

.vlp-clang-btn i {
  font-style: normal;
  color: #8a8a96;
  font-size: 10px;
}

.vlp-clang-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(17, 17, 17, 0.16);
  padding: 8px;
  z-index: 1001;
}

.onboarding-page #langPicker .vlp-clang-pop {
  top: calc(100% + 6px);
  bottom: auto;
}

.vlp-clang-pop[hidden] {
  display: none !important;
}

.vlp-clang-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 10px;
  margin-bottom: 6px;
  outline: none;
}

.vlp-clang-search:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.vlp-clang-items {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vlp-clang-items button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  color: #111;
  text-align: left;
}

.vlp-clang-items button:hover {
  background: #f3f4f8;
}

.vlp-clang-items button.on {
  background: #eef0fe;
  color: #4338ca;
}

.vlp-clang-items button small {
  color: #8a8a96;
  font-size: 10px;
  font-weight: 700;
}

.vlp-clang-none {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: #8a8a96;
}

.side .vlp {
  width: 100%;
  margin-bottom: 10px;
}

.side .vlp-trigger {
  width: 100%;
  justify-content: center;
}

@media (max-width: 620px) {
  .vlp-trigger {
    padding: 6px 10px 6px 8px;
  }

  .vlp-pop {
    right: -8px;
    min-width: 210px;
  }
}
