/* Overlay do menu inferior clonado.
   Só altera o visual quando html[data-cloned-tabbar] existe.
   Temas antigos sem clonagem de menu continuam com o CSS original. */

html[data-cloned-tabbar] .van-tabbar {
  border-top: var(--cloned-tabbar-border, none);
  border-radius: var(--cloned-tabbar-radius, 0);
  box-shadow: var(--cloned-tabbar-shadow, none);
  gap: var(--cloned-tabbar-gap, 0px);
  padding-bottom: env(safe-area-inset-bottom);
}

html[data-cloned-tabbar] .van-tabbar-item {
  padding: var(--cloned-tabbar-item-padding, inherit);
}

html[data-cloned-tabbar] .van-tabbar-item img,
html[data-cloned-tabbar] .van-tabbar-item .new-img,
html[data-cloned-tabbar] .van-tabbar-item .tabbar-img {
  width: var(--cloned-tabbar-icon-size, 2.125rem);
  height: var(--cloned-tabbar-icon-size, 2.125rem);
  object-fit: contain;
}

html[data-cloned-tabbar] .van-tabbar-item span {
  font-size: var(--cloned-tabbar-font-size, inherit);
  font-weight: var(--cloned-tabbar-font-weight, inherit);
  line-height: var(--cloned-tabbar-line-height, inherit);
  margin-top: var(--cloned-tabbar-icon-text-gap, inherit);
}

html[data-cloned-tabbar] .van-tabbar-item--active .new-img,
html[data-cloned-tabbar] .van-tabbar-item--active img,
html[data-cloned-tabbar] .van-tabbar-item--active .tabbar-img {
  background: var(--cloned-tabbar-active-bg, transparent);
  border-radius: var(--cloned-tabbar-active-radius, 0);
  padding: var(--cloned-tabbar-active-icon-padding, 0);
  color: var(--cloned-tabbar-active-color, inherit);
  transform: var(--cloned-tabbar-active-translate, none);
}

html[data-cloned-tabbar="flat"] .myTabbarC .tabbar-bg,
html[data-cloned-tabbar="flat"] .myTabbarB .tabbar-bg,
html[data-cloned-tabbar="flat"] .myTabbarA .tabbar-bg {
  display: none !important;
}

html[data-cloned-tabbar="flat"] .van-tabbar {
  background: var(--cloned-tabbar-bg, var(--theme-btm-bg-color-2, var(--theme-main-bg-color))) !important;
}

html.cloned-tabbar-has-height[data-cloned-tabbar] .van-tabbar {
  height: auto !important;
  min-height: var(--cloned-tabbar-height);
}

html[data-cloned-tabbar] .van-tabbar {
  max-width: 100%;
  overflow: hidden;
}

html[data-cloned-tabbar] .van-tabbar-item {
  flex: 1 1 0;
  min-width: 0;
}

html[data-cloned-tabbar] .van-tabbar-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
