/*
  Allani child theme: keep teckstore1 structure and logic.
  Only layering and duplicate-artifact fixes.
*/

:root {
  --al-border: #e5e7eb;
}

/* Keep account/search dropdowns above all sections */
#dor-topbar01,
#dor-topbar01 .dor-topbar-inner,
#dor-topbar01 .container,
#dor-topbar01 .row,
#header,
#header .header-top,
#header .header-top-pos,
#header .header-top-pos .container,
#header .head-dorsetting,
#header .header-nav,
#header .right-nav {
  overflow: visible !important;
}

#dor-topbar01 .user-info.selection-options-wrapper,
#dor-topbar01 .user-info,
#dor-topbar01 .line-selected,
#header .user-info,
#header .selection-options-wrapper {
  position: relative !important;
  z-index: 12010 !important;
}

#dor-topbar01 .user-info .toogle_content,
#dor-topbar01 .user-info .dropdown-menu,
#dor-topbar01 .selection-options-wrapper .toogle_content,
#header .user-info .toogle_content,
#header .selection-options-wrapper .toogle_content {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 12020 !important;
  min-width: 260px;
  background: #fff !important;
  border: 1px solid var(--al-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18) !important;
}

/* Hide legacy classic-header row if old template artifact still exists */
@media (min-width: 992px) {
  #header .header-nav .col-md-5,
  #header .header-nav .col-md-7.right-nav {
    display: none !important;
  }
}

/* Mobile safety: avoid floating search overlay */
@media (max-width: 991px) {
  .dorHeaderSearch-Wapper,
  #header.openSearch .dorHeaderSearch-Wapper {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
  }
}