/* OPD Mobile Bottom Nav - phone only */

body.opd-mbn-phone { --opd-mbn-h: 64px; padding-bottom: var(--opd-mbn-h); }

.opd-mbn--hidden { display: none !important; }

body.opd-mbn-phone .opd-mbn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--opd-mbn-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 2147483647;
}

body.opd-mbn-phone .opd-mbn__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  padding: 8px 6px;
  text-decoration: none !important;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.opd-mbn__btn { cursor: pointer; }
.opd-mbn__icon { line-height: 0; }
.opd-mbn__label { font-size: 11px; line-height: 1; white-space: nowrap; }
.opd-mbn__item.is-active .opd-mbn__label { font-weight: 700; }
.opd-mbn__item.is-active .opd-mbn__icon { transform: translateY(-1px); }

body.opd-mbn-phone .opd-mbn__badge {
  position: absolute;
  top: 6px;
  right: 14px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.opd-mbn--hide-header-icons .menu-toggle,
body.opd-mbn--hide-header-icons .opd-header__burger,
body.opd-mbn--hide-header-icons .opd-burger,
body.opd-mbn--hide-header-icons .site-header a[href*="/my-account"],
body.opd-mbn--hide-header-icons .site-header a[href*="/cart"],
body.opd-mbn--hide-header-icons header a[href*="/my-account"],
body.opd-mbn--hide-header-icons header a[href*="/cart"],
body.opd-mbn--hide-header-icons .header-account,
body.opd-mbn--hide-header-icons .header-cart {
  display: none !important;
}

body.opd-mbn--account-endpoint .woocommerce-MyAccount-navigation {
  display: none !important;
}
body.opd-mbn--account-endpoint .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
body.opd-mbn--account-dashboard .woocommerce-MyAccount-navigation {
  display: block !important;
}

body.opd-mbn--account-endpoint.woocommerce-account.woocommerce-orders .opd-temu-top-tabs,
body.opd-mbn--account-endpoint.woocommerce-account.woocommerce-orders .opd-temu-top-tabs-wrap,
body.opd-mbn--account-endpoint.woocommerce-account.woocommerce-orders .opd-temu-tabs,
body.opd-mbn--account-endpoint.woocommerce-account.woocommerce-orders .opd-temu-tabs-wrap,
body.opd-mbn--account-endpoint.woocommerce-account.woocommerce-orders .opd-order-filters,
body.opd-mbn--account-endpoint .opd-temu-orders-tabs,
body.opd-mbn--account-endpoint .opd-orders-tabs,
body.opd-mbn--account-endpoint .opd-myorders-tabs,
body.opd-mbn--account-endpoint .opd-orders-filters {
  display: none !important;
}

body.opd-mbn-phone .opd-mbn-backbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  margin: 8px 0 14px;
  padding: 10px;
}

body.opd-mbn-phone .opd-mbn-backbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

body.opd-mbn-phone .opd-mbn-backbar__icon {
  font-size: 18px;
  line-height: 1;
}
