.tph-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  background: #fff;
  border-top: 1px solid #eadfce;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
.tph-tabbar a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 6px 2px;
  color: #7a7266;
  text-decoration: none;
  font: 500 12px/1.1 Arial, sans-serif;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.tph-tabbar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tph-tabbar a[aria-current="page"] {
  color: #b86e00;
  font-weight: 700;
}
.tph-tabbar a[aria-current="page"] svg {
  stroke: #f5a31a;
  stroke-width: 2.2;
}
.has-tabbar {
  padding-bottom: calc(58px + env(safe-area-inset-bottom));
}

/* Bàn phím điện thoại đang mở thì thanh tab chỉ chiếm chỗ của ô gõ. */
body:has(input:focus, textarea:focus, [contenteditable="true"]:focus) .tph-tabbar {
  display: none;
}

/* Trang khoá học được bản máy tính nhúng qua iframe — không hiện thanh tab. */
.is-embedded-desktop .tph-tabbar {
  display: none;
}
.is-embedded-desktop .has-tabbar {
  padding-bottom: 0;
}

@media (min-width: 769px) {
  .tph-tabbar {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
    border: 1px solid #eadfce;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }
}
