.dropdown-js { position: relative; }
.xchemi-dialog-host .el-dialog__wrapper { z-index: 10000 !important; }
.v-modal { z-index: 9999 !important; }
#xchemiDialogLoading { z-index: 9998; }
.dropdown-js .js-drop {
  display: none;
  position: absolute;
  left: 0;
  top: 42px;
  background: #fff;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  padding: 6px 0;
}
.dropdown-js:hover .js-drop { display: block; }
.dropdown-js .js-drop a,
.dropdown-js .js-drop .el-dropdown-menu__item {
  display: block;
  padding: 8px 16px;
  color: #333;
  line-height: 22px;
  text-decoration: none;
}
.dropdown-js .js-drop a:hover { background: #f5f7fa; color: #246DF4; }
.dropdown_selected { background-color: #f5f7fa; color: #409EFF; font-weight: 700; }

.headerBtn .search-btn {
  height: 40px;
  line-height: 40px;
  padding: 0 18px;
  background: #246DF4;
  color: #fff;
  border: none;
  cursor: pointer;
}
.headerBtn select, .headerBtn input { box-sizing: border-box; }
#siteHeader.sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.containerHeardBox, #siteHeader { position: relative; z-index: 500; pointer-events: auto; }
.deferred-loading, .deferred-skeleton-block, .deferred-spinner { pointer-events: none !important; }

.bannerblock { width: 610px; height: 398px; overflow: hidden; background: #f0f2f5; flex-shrink: 0; }
.bannerblock img,
#homeBanner img { width: 610px; height: 398px; object-fit: cover; display: block; }
#homeBanner.swiper-container { width: 610px; height: 398px; }

.homePagebox .formRight { width: 256px; margin-left: 20px; flex-shrink: 0; box-sizing: border-box; }
.home-rfq-form .el-form-item { margin-bottom: 12px; }
.home-rfq-form .rfq-full { width: 256px !important; box-sizing: border-box; }
.home-rfq-form .rfq-amount { width: 166px !important; box-sizing: border-box; }
.home-rfq-form .rfq-unit { width: 80px !important; box-sizing: border-box; }
.home-rfq-form .rfq-unit-wrap { margin-left: 10px; }
.home-rfq-form .rfq-terms-wrap { margin-right: 10px; }
.home-rfq-form .selCenter { display: flex; align-items: flex-start; }
.home-rfq-form .textareaHig { height: 72px; resize: none; }
.home-rfq-form .QuickButton { width: 256px; }

.imgproductNew, .imgproduct { object-fit: contain; background: #fff; }
.login-container .codeImg { position: absolute; right: 0; top: 28px; height: 36px; cursor: pointer; }

#translate { display: none !important; }

/* Menu top border (SPA loads app.css/extra.css, not site.css) */
.containerHeardBox .MenuBox {
  border-top: 1px solid #eeeeee !important;
  position: relative;
  overflow: visible;
}
.containerHeardBox .MenuBox::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -9999px;
  right: -9999px;
  height: 0;
  width: auto;
  margin: 0;
  border-top: 1px solid #eeeeee;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 1;
}
html {
  overflow-x: hidden;
}

/* Encyclopedia search list: inset hover, keep formula image on white */
.searchresultPagebox .SuppliersListData.EncyclopediaListData {
  width: calc(100% - 52px) !important;
  margin: 0 26px !important;
  padding: 30px 0 20px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #e4e7ed;
  background: transparent;
}
.searchresultPagebox .SuppliersListData.EncyclopediaListData:hover {
  background: #fffcf3 !important;
  border-bottom: 1px solid #fff !important;
  margin: 10px 13px 0 !important;
  padding: 20px 13px 20px !important;
  cursor: pointer;
}
.searchresultPagebox .EncyclopediaListData > a {
  flex-shrink: 0;
  display: block;
  width: 100px;
  height: 100px;
}
.searchresultPagebox .EncyclopediaListData .goodsMainImg {
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.searchresultPagebox .searchresultRight + .paginationBox {
  clear: both !important;
  margin-top: 56px !important;
  background: transparent !important;
}

/* Homepage supplier logos: full image, flex centered in the box */
.ListShopsBox .ListShops {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px;
}
.ListShopsBox .ListShops img,
.ListShopsBox img.ListShopsImg {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.ListSupplierBox .ListSupplier {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  box-sizing: border-box;
  padding: 8px !important;
}
.ListSupplierBox .ListSupplier img,
.ListSupplierBox img.ListSupplier {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  vertical-align: middle !important;
}

/* Add Address modal: keep usable; native selects styled below */
.addAddressTemplate,
.addPaymentAccountTemplate {
  z-index: 3000 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.addAddressTemplate .QuoteNowBig,
.addPaymentAccountTemplate .QuoteNowBig {
  overflow: visible !important;
  transform: none !important;
  position: relative !important;
  margin: 40px auto !important;
}
.addAddressTemplate .oc-native-select,
.addPaymentAccountTemplate .oc-native-select {
  display: inline-block;
  height: 36px;
  line-height: 36px;
  padding: 0 10px;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 13px;
  vertical-align: middle;
  box-sizing: border-box;
  outline: none;
  max-width: 100%;
  cursor: pointer;
}
.addAddressTemplate .oc-native-select:focus {
  border-color: #246DF4;
}
.el-select-dropdown {
  z-index: 4000 !important;
}
.el-picker-panel {
  z-index: 4000 !important;
}
