/* Small overrides on top of the migrated theme CSS. */

/* Expanded hamburger menu: render as a clean dropdown panel under the header
   (Thrive's JS used to position this; we do it in CSS). */
.thrv_widget_menu { position: relative; }
#thrive-header { position: relative; z-index: 1000; }
.thrv_widget_menu ul.tve_w_menu.tve-m-expanded {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 12px);
  left: auto !important;
  right: 0 !important;
  min-width: 280px;
  max-width: 92vw;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 9999;
}
.thrv_widget_menu ul.tve_w_menu.tve-m-expanded > li { width: 100%; }
.thrv_widget_menu ul.tve_w_menu.tve-m-expanded li > a {
  display: block;
  padding: 10px 22px;
  white-space: normal;
}
.thrv_widget_menu ul.tve_w_menu.tve-m-expanded .sub-menu {
  position: static !important;
  display: none;
  box-shadow: none;
  padding-left: 14px;
}
ul.tve_w_menu.tve-m-expanded li.bs-sub-open > ul.sub-menu { display: block !important; }
/* Hide dead dynamic widgets (search/comments) if any slipped through. */
.widget_search, .comment-respond { display: none !important; }
