body:not(.wb-is-mobile) .header > .inner {
  align-items: center;
  display: flex;
  gap: 0;
  height: 72px;
}

/* Responsive controls are rendered for every request to keep cached pages consistent. */
.header-desktop-ui {
  display: contents;
}

.header-mobile-ui {
  display: none;
}

.nav-top-m {
  visibility: hidden;
}

@media (max-width: 768px) {
  body .header {
    height: 44px;
  }

  body .header > .inner {
    box-sizing: border-box;
    height: 44px;
    padding-left: 20px;
    padding-right: 20px;
  }

  body .header .logo {
    margin-right: 10px;
    min-width: 0;
  }

  body .header .logo a,
  body .header .logo strong,
  body .header .logo img {
    height: 44px;
    line-height: 44px;
  }

  body .header .logo img {
    display: inline-block;
    vertical-align: middle;
  }

  .header-desktop-ui {
    display: none;
  }

  .header-mobile-ui {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 4px;
    height: 44px;
    margin-left: auto;
    min-width: 0;
    white-space: nowrap;
  }

  .header-mobile-ui .m-ctrl-item,
  .header-mobile-ui .btn-nav-m {
    appearance: none;
    background: transparent;
    border: 0;
    box-sizing: content-box;
    color: var(--wb-fcs, #3e4045);
    cursor: pointer;
    margin: 0;
  }

  .header-mobile-ui .dm-switch {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 44px;
    line-height: 44px;
    padding: 0 10px;
  }

  .header-mobile-ui .dm-switch .item-btn {
    align-items: center;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
  }

  .header-mobile-ui .dm-switch svg {
    display: block;
    height: 18px;
    width: 18px;
  }

  .header-mobile-ui .user-cover {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    margin: 0 8px;
    width: 26px;
  }

  .header-mobile-ui .user-cover img {
    display: block;
  }

  .header-mobile-ui .user-login {
    align-items: center;
    box-sizing: border-box;
    font-size: 14px;
    display: inline-flex;
    height: 30px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .header-mobile-ui .btn-nav-m {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 40px;
    height: 44px;
    justify-content: center;
    overflow: visible;
    padding: 0;
    position: relative;
    width: 40px;
  }

  .header-mobile-ui .btn-nav-m:before,
  .header-mobile-ui .btn-nav-m:after {
    left: 10px;
    width: 20px;
  }

  .header-mobile-ui .btn-nav-m:before {
    top: 16px;
  }

  .header-mobile-ui .btn-nav-m:after {
    bottom: 16px;
  }

  .header-mobile-ui .btn-nav-m .icon-menu {
    margin: 0;
    position: absolute;
    top: 21px;
    width: 20px;
  }

  .nav-top-m {
    display: block;
    visibility: visible;
  }

  #J_navTopResponsive > .search-form {
    box-sizing: border-box;
    display: block;
    flex: none;
    margin: 0;
    width: 100%;
  }

  body.display-nav-m .nav-top-m {
    transform: translate3d(0, 0, 0);
  }

  .triple-responsive-nav-mask {
    background: rgba(0, 0, 0, .58);
    inset: 0;
    position: fixed;
    /* Category/archive filter bars use z-index: 999. Keep the mask above
       page-level sticky controls and below the open header/tool bar. */
    z-index: 1000;
  }

  .wbsl-content .wbsl-info {
    box-sizing: border-box;
    max-width: none;
    padding: 4px 16px;
    width: 100%;
  }

  .wbsl-content .wbsl-title {
    font-size: 26px !important;
    line-height: 1.08;
    margin: 4px 0;
    overflow-wrap: anywhere;
  }

  .wbsl-content .wbsl-desc {
    font-size: 15px !important;
    line-height: 1.4;
    margin: 6px 0;
    overflow-wrap: anywhere;
  }

  .wbsl-content .wbsl-btn-detail {
    font-size: 14px !important;
    line-height: 18px;
    margin-top: 4px;
    min-width: 112px;
    padding: 7px 18px;
    white-space: nowrap;
  }

  .tool-bar,
  .wb-is-mobile .tool-bar {
    bottom: 64px;
    right: 12px;
    width: 45px;
  }

  .tool-bar .tb-item {
    display: block;
  }

  /* The legacy mobile rule targets every .dm-switch and adds 10px horizontal
     padding. The toolbar switch shares that class, so its icon can jump to the
     right depending on which cached stylesheet finishes last. */
  .wb-is-mobile .tool-bar .tb-item.dm-switch {
    box-sizing: border-box;
    display: block;
    height: 45px;
    line-height: 45px;
    padding: 0;
    width: 45px;
  }

  .wb-is-mobile .tool-bar .tb-item .item-btn {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    border-radius: 0;
    height: 43px;
    justify-content: center;
    line-height: 43px;
    margin: 0;
    padding: 0;
    width: 43px;
  }

  .wb-is-mobile .tool-bar .tb-item .item-btn svg {
    height: 16px;
    width: 16px;
  }

  /* The legacy stylesheet moves toolbar buttons 90% to the right while
     * scrolling on touch devices. Keep the floating actions and the header
     * mode switch anchored so they do not flash or jump during a swipe. */
  body.wb-is-mobile.wb-scrolling .tool-bar .item-btn,
  body.wb-is-mobile.wb-scrolling .header-mobile-ui .dm-switch .item-btn {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Keep the page in place while the left navigation drawer is open. The
     * legacy mobile stylesheet translated the entire body, which exposed a
     * black/empty slice on the right side of the viewport. */
  body.wb-is-mobile.display-nav-m {
    overflow-x: hidden;
    position: static !important;
    transform: none !important;
  }

  body.display-nav-m .header {
    z-index: 1002;
  }

  body.display-nav-m .tool-bar {
    z-index: 1001;
  }

  body.display-nav-m .ctrl-panel-m {
    z-index: 998;
  }

  body.wb-is-mobile.display-nav-m .nav-top-m {
    left: 0;
    right: auto;
    transform: translate3d(0, 0, 0);
    width: min(290px, 86vw);
  }

  body .nav-top-m .nav-m a {
    color: #c3c3c3;
  }

  body .nav-top-m .nav-m > li > .sub-menu-m a {
    color: #999;
  }

  .nav-top-m .btn-close {
    appearance: none;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    height: 36px;
    padding: 8px;
    right: 8px;
    top: 8px;
    width: 36px;
  }

  .nav-top-m .btn-close:before {
    display: none;
  }

  .nav-top-m .btn-close svg {
    display: block;
    height: 20px;
    width: 20px;
  }

  /* The toolbar is rendered once for both breakpoints. Keep its three
     * controls stacked and place the work-order panel above them. */
  .wb-is-mobile .tool-bar .tb-item {
    display: block;
    position: relative;
  }

  .wb-is-mobile .tool-bar .need-click.active .popover-enquire,
  .wb-is-mobile .tool-bar .j-enquire-online.active .popover-enquire {
    bottom: calc(64px + 45px + 5px);
    display: block;
    left: auto;
    opacity: 1;
    padding-right: 0;
    position: fixed;
    right: calc(45px + 12px + 20px);
    top: auto;
    transform: none;
    visibility: visible;
    width: min(300px, calc(100vw - 77px));
    z-index: 1005;
  }

  .wb-is-mobile .tool-bar .popover-enquire .ppo-inner {
    box-sizing: border-box;
    height: auto;
    max-height: calc(100vh - 128px);
    max-width: 100%;
    overflow: auto;
    width: 100%;
  }

  .wb-is-mobile .tool-bar .popover-enquire .contact-form {
    box-sizing: border-box;
    padding: 22px 18px;
  }

  .wb-is-mobile .tool-bar .popover-enquire textarea.form-control {
    height: 132px;
    min-height: 132px;
  }
}

@media (max-width: 390px) {
  .wbsl-content .wbsl-title {
    font-size: 24px !important;
  }
}

body:not(.wb-is-mobile) .header .logo {
  flex: 0 0 auto;
  margin-right: 0;
  min-width: 0;
}

body:not(.wb-is-mobile) .header .logo a,
body:not(.wb-is-mobile) .header .logo strong {
  height: 72px;
  line-height: 72px;
}

body:not(.wb-is-mobile) .header .logo strong {
  font-size: 24px;
  max-width: 8em;
}

body:not(.wb-is-mobile) .header-nav {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

body:not(.wb-is-mobile) .header-nav .nav {
  align-items: center;
  display: flex;
  padding-right: 0;
}

body:not(.wb-is-mobile) .header-nav .nav > li {
  flex: 0 0 auto;
  line-height: 72px;
  margin-left: 24px;
}

body:not(.wb-is-mobile) .header-nav .nav > li > a {
  font-size: 15px;
}

body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form {
  flex: 0 1 360px;
  margin-left: auto;
  margin-right: 20px;
  min-width: 180px;
  width: clamp(180px, 22vw, 360px);
}

body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form .form-control {
  padding-left: 94px;
  padding-right: 42px;
  text-overflow: ellipsis;
}

body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form .ux-drop-value {
  align-items: center;
  display: flex;
  gap: 5px;
  height: 34px;
  padding-left: 14px;
}

body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form .ux-drop-value span {
  max-width: 5em;
  text-overflow: ellipsis;
}

body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form .ux-select {
  top: 44px;
}

body:not(.wb-is-mobile) .header .top-links {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  position: static;
  right: auto;
  top: auto;
  white-space: nowrap;
}

body:not(.wb-is-mobile) .header .top-links .link {
  height: 72px;
  line-height: 72px;
}

body:not(.wb-is-mobile) .header .top-links .link-login {
  align-items: center;
  background-color: var(--wb-theme-color, #c8ff00);
  border: 1px solid var(--wb-theme-color, #c8ff00);
  border-radius: 0;
  box-sizing: border-box;
  color: #050505;
  display: inline-flex;
  flex: 0 0 82px;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  line-height: 30px;
  margin: 0;
  padding: 0;
  width: 82px;
}

body:not(.wb-is-mobile) .header .top-links .link-login:hover,
body:not(.wb-is-mobile) .header .top-links .link-login:active,
body:not(.wb-is-mobile) .header .top-links .link-login:focus {
  background-color: var(--wb-theme-hover-color, #ddff59);
  border-color: var(--wb-theme-hover-color, #ddff59);
  color: #050505;
}

body:not(.wb-is-mobile) .header .top-links .btn-join-vip + .link-login {
  margin-left: 8px;
}

body:not(.wb-is-mobile) .header .top-links .info-box,
body:not(.wb-is-mobile) .header .top-links .btn-join-vip {
  flex: 0 0 auto;
}

.header .user-cover {
  background: transparent;
  border: 0;
  position: relative;
}

.header .user-cover img {
  height: 140% !important;
  left: 50%;
  max-width: none;
  object-fit: contain;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140% !important;
}

body:not(.wb-is-mobile) .header .top-links .btn-join-vip {
  margin-left: 0;
}

@media (max-width: 1200px) {
  body:not(.wb-is-mobile) .header .logo {
    flex: 0 0 auto;
    margin-right: 0;
    min-width: 0;
  }

  body:not(.wb-is-mobile) .header .logo strong {
    font-size: 21px;
  }

  body:not(.wb-is-mobile) .header-nav .nav > li {
    margin-left: 15px;
  }

  body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form {
    flex-basis: 220px;
    margin-right: 14px;
    min-width: 160px;
    width: clamp(160px, 18vw, 220px);
  }
}

@media (max-width: 1020px) {
  body:not(.wb-is-mobile) .header .logo {
    flex: 1 1 auto;
    margin-right: 12px;
    min-width: 0;
  }

  body:not(.wb-is-mobile) .header-nav {
    display: none;
  }

  body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form {
    flex-basis: 210px;
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  body:not(.wb-is-mobile) .header > .inner {
    box-sizing: border-box;
    height: 56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body:not(.wb-is-mobile) .header .logo a,
  body:not(.wb-is-mobile) .header .logo strong {
    height: 56px;
    line-height: 56px;
  }

  body:not(.wb-is-mobile) .header .header-desktop-ui > .search-form {
    display: none;
  }

  body:not(.wb-is-mobile) .header .top-links .user-name,
  body:not(.wb-is-mobile) .header .top-links .user-tag:not(.btn-join-vip) {
    display: none;
  }

  body:not(.wb-is-mobile) .header .top-links .link {
    height: 56px;
    line-height: 56px;
  }
}

@media (max-width: 768px) {
  body:not(.wb-is-mobile) .header,
  body:not(.wb-is-mobile) .header > .inner {
    height: 44px;
  }

  body:not(.wb-is-mobile) .header .logo a,
  body:not(.wb-is-mobile) .header .logo strong {
    height: 44px;
    line-height: 44px;
  }
}
