@media (max-width: 1024px) {

/* Hide ElementsKit popup panel only — keep hamburger */
.elementskit-menu-container,
.elementskit-menu-overlay,
.ekit-menu-overlay {
  display: none !important;
}

/* Overlay */
#thr-ov {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  pointer-events: none;
}
#thr-ov.on {
  display: block;
  pointer-events: all;
}

/* Bottom sheet */
#thr-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
#thr-box.on { transform: translateY(0); }

/* Pill */
#thr-pill {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Sheet body */
#thr-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
}

/* Logo row */
#thr-logo-row {
  display: flex;
  align-items: center;
  padding: 18px 0 14px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
  text-decoration: none;
}
#thr-logo-row img {
  height: 36px;
  width: auto;
}

/* Nav */
#thr-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#thr-ul > li {
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  padding: 0;
}
#thr-ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}
.thr-arr {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.thr-arr svg {
  width: 13px;
  height: 13px;
}
#thr-ul li.so > a .thr-arr { transform: rotate(90deg); }
.thr-sub {
  display: none;
  list-style: none;
  margin: 0;
  padding: 2px 0 10px;
}
#thr-ul li.so > .thr-sub { display: block; }
.thr-sub li a {
  display: block;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
}

/* Footer CTA */
#thr-foot {
  padding: 14px 24px 32px;
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
}
#thr-cta {
  display: block;
  background: #0f1f3d;
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* Search panel */
#thr-srch {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  padding: 14px 24px 48px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
}
#thr-srch.on { transform: translateY(0); }
#thr-srch h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 16px;
  color: #1a1a1a;
}
#thr-srch-row {
  display: flex;
  gap: 10px;
}
#thr-srch-in {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
}
#thr-srch-in:focus { border-color: #0f1f3d; }
#thr-srch-go {
  background: #0f1f3d;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Scroll bar */
#thr-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  height: 58px;
  z-index: 9999;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#thr-bar.on { transform: translateY(0); }
#thr-bar.hide { transform: translateY(100%); }

.tb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #1a1a1a;
  height: 100%;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.tb svg {
  width: 20px;
  height: 20px;
  stroke: #444;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb span { font-size: 10px; font-weight: 500; color: #666; }

.tb-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5px;
  gap: 3px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tb-mid-c {
  width: 46px;
  height: 46px;
  background: #0f1f3d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 14px rgba(15,31,61,0.3);
}
.tb-mid-c svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tb-mid span { font-size: 10px; font-weight: 500; color: #666; }

}

@@media (max-width: 1024px) {
  body:not(.thr-show-bar) #thr-bar,
  body:not(.thr-show-bar) #thr-box,
  body:not(.thr-show-bar) #thr-srch {
    display: none !important;
  }

  body:not(.thr-show-bar) #thr-ov {
    display: none !important;
    pointer-events: none !important;
  }

  body.thr-show-bar #thr-bar {
    display: flex !important;
  }

  body.thr-show-bar #thr-box {
    display: flex !important;
  }

  body.thr-show-bar #thr-srch,
  body.thr-show-bar #thr-ov {
    display: block !important;
  }
}