/* Mobile menu UX override */

/* Keep only legacy top hot-links block; hide duplicate hot-links in collapsible menu */
.wrapper-mobile .mob-menu-cta,
.wrapper-mobile > .add-btn-mobile {
  display: none !important;
}

/* Remove excessive gap between logo block and contacts/menu blocks */
.topmenu.bootstrap.visible-sm.visible-xs {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
}

.topmenu.bootstrap.visible-sm.visible-xs .flex-wrapper-mobile {
  margin-top: 0 !important;
  padding-top: 8px !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
}

.topmenu.bootstrap.visible-sm.visible-xs .phone-mobile {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: flex-start !important;
}

/* If legacy scripts leave shifted classes after close, neutralize visual gap */
.topmenu.bootstrap.visible-sm.visible-xs .flex-wrapper-mobile.is-shifted,
.topmenu.bootstrap.visible-sm.visible-xs .phone-mobile.is-shifted,
.topmenu.bootstrap.visible-sm.visible-xs .add-btn-mobile.is-shifted {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: none !important;
  top: auto !important;
}

.mobile-menu-open .topmenu.bootstrap.visible-sm.visible-xs .flex-wrapper-mobile {
  padding-top: 8px !important;
}

.topmenu.bootstrap.visible-sm.visible-xs .flex-wrapper-mobile:first-child {
  padding-top: 8px !important;
}

.wrapper-mobile .mob-menu-custom > li > .top-mob-head {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.wrapper-mobile .top-mob-head .mob-primary-link,
.wrapper-mobile .top-mob-head .top_link {
  flex: 1 1 auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
}

.wrapper-mobile .top-mob-head .mob-submenu-toggle,
.wrapper-mobile .top-mob-head > button {
  flex: 0 0 46px;
  width: 46px;
  min-height: 46px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.wrapper-mobile .top-mob-head .mob-submenu-toggle:hover,
.wrapper-mobile .top-mob-head > button:hover,
.wrapper-mobile .top-mob-head .mob-submenu-toggle:focus-visible,
.wrapper-mobile .top-mob-head > button:focus-visible {
  background: rgba(239, 109, 0, 0.14);
  outline: none;
}

.wrapper-mobile .top-mob-head .mob-caret {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #4d4d4d;
  border-bottom: 2px solid #4d4d4d;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

.wrapper-mobile .top-mob.is-open > .top-mob-head .mob-caret {
  transform: rotate(-135deg);
}

.wrapper-mobile .top-mob.no-children .mob-submenu-toggle,
.wrapper-mobile .top-mob.no-children .top-mob-head > button {
  visibility: hidden;
  pointer-events: none;
}

.wrapper-mobile .sub-menu[hidden] {
  display: none !important;
}

/* Force 2x3 grid for hot links in both blocks:
   1) inside wrapper-mobile
   2) legacy top block (.add-btn-mobile) */
.wrapper-mobile .mob-hot-grid,
.add-btn-mobile ul {
  list-style: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  gap: 8px !important;
}

.wrapper-mobile .mob-hot-grid > li,
.add-btn-mobile ul > li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

.wrapper-mobile .mob-hot-grid > li > a,
.add-btn-mobile ul > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 56px !important;
  min-height: 56px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  border-radius: 12px !important;
  border: 1px solid #f4b074 !important;
  background: linear-gradient(180deg, #fffdfa 0%, #fff7ef 100%) !important;
  color: #2f2f2f !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.wrapper-mobile .mob-hot-grid > li > a:hover,
.add-btn-mobile ul > li > a:hover,
.wrapper-mobile .mob-hot-grid > li > a:focus-visible,
.add-btn-mobile ul > li > a:focus-visible {
  border-color: #ef6d00 !important;
  background: linear-gradient(180deg, #fff3e6 0%, #ffe9d4 100%) !important;
  box-shadow: 0 6px 14px rgba(239, 109, 0, 0.18) !important;
  transform: translateY(-1px);
  outline: none !important;
}

.wrapper-mobile .mob-hot-grid > li > a.mob-hot-first-deal,
.add-btn-mobile ul > li > a.mob-hot-first-deal {
  border-color: #ef6d00 !important;
  background: linear-gradient(180deg, #fff0df 0%, #ffdcb8 100%) !important;
  color: #8a2d00 !important;
}

@media (max-width: 380px) {
  .wrapper-mobile .mob-hot-grid,
  .add-btn-mobile ul {
    gap: 6px !important;
  }

  .wrapper-mobile .mob-hot-grid > li > a,
  .add-btn-mobile ul > li > a {
    font-size: 12px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 6px 6px !important;
  }
}


body.mobile-menu-open .b24-widget-button-popup {
  visibility: hidden !important;
  pointer-events: none !important;
}

.avgl-bonds-labelled .avgl-bond-value-label { display: none; }
@media screen and (min-width: 320px) and (max-width: 560px),
       screen and (min-width: 561px) and (max-width: 920px) {
  .avgl-bonds-labelled .avgl-bond-value-label {
    display: block;
    font-weight: 600 !important;
    color: inherit;
    margin-bottom: .15em;
  }
  .avgl-bonds-labelled .avgl-bond-value-label::before { content: attr(data-label); }
}
