/*
 * ZuriBet redesign - mobile shell (< 992px).
 * SportPesa-style layout in Zuribet colours: navy header with menu / logo /
 * search / betslip, scrolling product strip, sport icons, listing tabs, white
 * content, slide-in menu drawer and a fixed Login / Register bar.
 * Loaded after zb-theme.css.
 */

.zb-mhead,
.zb-mbottom {
  display: none;
}

.zb-home__mobile-only,
.zb-msports {
  display: none;
}

/* ---------------------------------------------------------------- Search popup (opened by #search in the mobile header) */

.zb-header .search-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
}

.zb-header .search-bg {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 36, 0.6);
}

.zb-header .search-form {
  position: relative;
  right: -100%;
  max-width: 560px;
  margin: 12px 12px 0 auto;
}

.zb-header .site-search-form {
  padding: 16px;
  border-radius: var(--zb-radius-lg);
  background: #fff;
  box-shadow: 0 18px 40px rgba(3, 17, 36, 0.35);
}

.zb-header .site-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.zb-header .site-search-head label {
  margin: 0;
  color: #031124;
  font-size: 17px;
  font-weight: 700;
}

.zb-header .site-search-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #031124;
}

.zb-header .site-search-form .form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.zb-page .zb-header .site-search-form input {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d6dee8;
  border-radius: var(--zb-radius);
  background: #fff;
  color: #031124;
  font-size: 16px;
  outline: 0;
}

.zb-header .site-search-form input:focus {
  border-color: var(--zb-red);
}

.zb-header .site-search-submit {
  flex: 1 1 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--zb-radius);
  background: var(--zb-red);
  color: #fff;
  font-weight: 700;
}

body.zb-page .zb-header .site-search-clear {
  display: inline-block;
  margin-top: 10px;
  color: var(--zb-red);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Drawer */

.zb-drawer {
  position: fixed;
  inset: 0;
  z-index: 1045;
  visibility: hidden;
  pointer-events: none;
}

.zb-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.zb-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 36, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zb-drawer.is-open .zb-drawer__backdrop {
  opacity: 1;
}

.zb-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 340px);
  padding: 0 0 24px;
  background: #0b213e;
  color: #fff;
  overflow-y: auto;
  outline: 0;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
}

.zb-drawer.is-open .zb-drawer__panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .zb-drawer__panel,
  .zb-drawer__backdrop {
    transition: none;
  }
}

.zb-drawer__head {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 14px;
  background: #031124;
}

.zb-drawer__head img {
  height: 30px;
  width: auto;
}

.zb-drawer__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--zb-radius);
  background: none;
  color: #fff;
  font-size: 22px;
}

.zb-drawer__wallet {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 12px 14px 0;
  padding: 12px 14px;
  border-radius: var(--zb-radius-lg);
  background: #173459;
}

.zb-drawer__wallet span {
  color: #b9c6d6;
  font-size: 13px;
  text-transform: uppercase;
}

.zb-drawer__wallet strong {
  color: #fff;
  font-size: 18px;
}

.zb-drawer__group {
  margin: 12px 14px 0;
  padding: 6px;
  border-radius: var(--zb-radius-lg);
  background: #10294b;
}

.zb-drawer__group h2 {
  margin: 8px 10px 4px;
  color: #93a4ba;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zb-drawer__group form {
  margin: 0;
}

body.zb-page .zb-drawer__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--zb-radius);
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.zb-drawer__link i {
  width: 22px;
  color: #93a4ba;
  font-size: 17px;
  text-align: center;
}

.zb-drawer__link small {
  margin-left: auto;
  color: #93a4ba;
  font-size: 12px;
}

body.zb-page .zb-drawer__link:hover,
body.zb-page .zb-drawer__link:focus-visible {
  background: #173459;
  color: #fff;
}

body.zb-page .zb-drawer__link.is-active {
  background: var(--zb-red);
  color: #fff;
}

.zb-drawer__link.is-active i {
  color: #fff;
}

body.zb-page .zb-drawer__link.mobile-low-data-toggle {
  position: static;
  inset: auto;
  box-shadow: none;
}

body.zb-page .zb-drawer__link.mobile-low-data-toggle.is-active i {
  color: var(--zb-green);
}

body.zb-drawer-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  :root {
    --zb-topbar-h: 56px;
  }

  body.zb-page {
    padding-bottom: 68px;
  }

  /* ------------------------------------------------------------ Header */

  .zb-topbar__inner {
    padding: 0;
    gap: 0;
  }

  .zb-topbar__inner > :not(.zb-mhead) {
    display: none !important;
  }

  .zb-mhead {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 64px 76px;
    align-items: stretch;
    width: 100%;
    height: var(--zb-topbar-h);
  }

  .zb-mhead__menu,
  .zb-mhead__tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: none;
    color: #fff;
  }

  .zb-mhead__menu {
    font-size: 22px;
  }

  .zb-mhead__tool i {
    font-size: 18px;
  }

  .zb-mhead__tool span,
  .zb-mhead__slip > span:last-child {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .zb-mhead__logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .zb-mhead__logo img {
    height: 42px;
    width: auto;
  }

  body.zb-page .zb-mhead__slip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--zb-red);
    color: #fff;
    text-decoration: none;
  }

  .zb-mhead__slip-icon {
    position: relative;
    font-size: 19px;
    line-height: 1;
  }

  .zb-mhead__slip-icon em {
    position: absolute;
    top: -8px;
    right: -14px;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--zb-red);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
  }

  /* Product strip (the desktop navbar, reflowed) */
  .zb-navbar {
    display: block;
  }

  .zb-navbar__inner {
    height: 46px;
    padding: 0;
  }

  .zb-navbar__mark,
  .zb-header.is-stuck .zb-navbar__mark,
  .zb-navbar__tools {
    display: none !important;
  }

  .zb-navbar__menu {
    width: 100%;
  }

  body.zb-page .zb-navbar__menu a {
    padding: 0 16px;
    font-size: 16px;
  }

  .zb-navbar__menu a i {
    display: none;
  }

  /* ------------------------------------------------------------ Sports strip + tabs */

  .zb-msports {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: #10294b;
    box-shadow: none;
  }

  .zb-msports__sports,
  .zb-msports__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .zb-msports__sports::-webkit-scrollbar,
  .zb-msports__tabs::-webkit-scrollbar {
    display: none;
  }

  body.zb-page .zb-msports__sports a {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 84px;
    padding: 12px 10px 10px;
    color: #b9c6d6;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
  }

  .zb-msports__sports a i {
    color: #93a4ba;
    font-size: 24px;
  }

  body.zb-page .zb-msports__sports a.is-active {
    color: #fff;
    font-weight: 700;
  }

  .zb-msports__sports a.is-active i {
    color: #fff;
  }

  .zb-msports__sports a.is-active::after,
  .zb-msports__tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--zb-red);
  }

  .zb-msports__tabs {
    gap: 4px;
    padding: 0 8px;
    background: #0b213e;
  }

  body.zb-page .zb-msports__tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 13px 12px;
    color: #93a4ba;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
  }

  body.zb-page .zb-msports__tabs a.is-active {
    color: #fff;
  }

  /* ------------------------------------------------------------ Content */

  body.zb-page .main__body__area.zb-shell {
    padding: 10px;
  }

  .zb-home {
    gap: 10px;
  }

  .zb-odds__filters button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .zb-odds__visible {
    display: none;
  }

  .zb-odds__group-head {
    min-height: 46px;
  }

  .zb-odds__row {
    cursor: default;
  }

  .zb-odds__team {
    font-size: 16px;
  }

  .zb-odd {
    height: 48px;
  }

  .zb-odd strong {
    font-size: 17px;
  }

  body.zb-page .zb-odds__more {
    align-self: start;
    height: 32px;
    margin-top: 10px;
    padding: 0 10px;
    border-radius: var(--zb-radius);
    background: var(--zb-surface-2);
    color: var(--zb-text-2);
  }

  /* ------------------------------------------------------------ Bottom action bar */

  .zb-mbottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #031124;
    box-shadow: 0 -6px 18px rgba(3, 17, 36, 0.25);
  }

  body.zb-page .zb-mbottom .zb-btn {
    min-height: 46px;
    font-size: 16px;
  }

  body.zb-page .zb-mbottom .zb-btn--ghost {
    border-color: #1f3a5f;
    background: #173459;
    color: #fff;
  }

  body.zb-page .zb-mbottom__balance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
  }

  .zb-mbottom__balance small {
    color: #93a4ba;
    font-size: 11px;
    text-transform: uppercase;
  }

  .zb-mbottom__balance strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .zb-footer {
    padding-bottom: 0;
  }
}

@media (max-width: 991.98px) and (min-width: 576px) {
  .zb-mhead {
    grid-template-columns: 56px minmax(0, 1fr) 80px 96px;
  }
}
