/* Sell That Cell preview mobile header corrective fix v2.
   Hides the old/mobile header artifacts and uses one preview brandbar. */
#stc-preview-mobile-brandbar,
#stc-preview-mobile-scrim,
#stc-preview-mobile-panel {
  display: none;
}

@media (max-width: 991.98px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body.stc-redesign-test,
  html body.stc-page-redesign-test,
  html body.stc-cart-preview-header,
  html body.stc-track-order-redesign-test,
  html body.stc-contact-redesign-test,
  html body.stc-privacy-redesign-test,
  html body.stc-terms-redesign-test {
    padding-top: 126px !important;
  }

  body.stc-preview-mobile-open {
    overflow: hidden !important;
  }

  body.stc-redesign-test > header,
  body.stc-page-redesign-test > header,
  body.stc-cart-preview-header > header,
  header#stc-preview-header,
  header.stc-preview-header,
  body.stc-redesign-test header,
  body.stc-page-redesign-test header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  /* Remove older preview/off-canvas header attempts that were being left behind. */
  #stc-temp-mobile-brandbar,
  #stc-test-mobile-scrim,
  #stc-test-mobile-panel,
  #stc-inner-mobile-brandbar,
  #stc-inner-mobile-scrim,
  #stc-inner-mobile-panel,
  .stc-temp-brandbar-menu,
  .stc-mobile-drawer-head,
  .stc-mobile-drawer-brand {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  #stc-preview-mobile-brandbar {
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    z-index: 2147483000 !important;
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid rgba(16,24,40,.10) !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 44px rgba(16,24,40,.14) !important;
  }

  #stc-preview-mobile-brandbar .stc-preview-brand-logo {
    position: absolute !important;
    left: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 58px !important;
    height: auto !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    display: block !important;
  }

  #stc-preview-mobile-brandbar .stc-preview-wordmark {
    color: #071225 !important;
    font-size: clamp(24px, 6.6vw, 30px) !important;
    line-height: .95 !important;
    font-weight: 950 !important;
    letter-spacing: -0.045em !important;
    white-space: nowrap !important;
    font-family: inherit !important;
  }

  #stc-preview-mobile-brandbar .stc-preview-wordmark strong {
    color: #0a8f35 !important;
    font-weight: 950 !important;
  }

  #stc-preview-mobile-menu-button {
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 44px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 4px !important;
    margin: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  #stc-preview-mobile-menu-button span {
    width: 38px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: #0a8f35 !important;
    display: block !important;
  }

  #stc-preview-mobile-scrim {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147482998 !important;
    background: rgba(7,18,37,.42) !important;
  }

  #stc-preview-mobile-scrim.is-open {
    display: block !important;
  }

  #stc-preview-mobile-panel {
    position: fixed !important;
    top: 104px !important;
    right: 14px !important;
    left: 14px !important;
    z-index: 2147482999 !important;
    display: block !important;
    background: #fff !important;
    border: 1px solid rgba(16,24,40,.10) !important;
    border-radius: 22px !important;
    box-shadow: 0 22px 60px rgba(16,24,40,.20) !important;
    padding: 8px 0 !important;
    transform: translateX(110%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform .22s ease, opacity .22s ease !important;
    max-height: calc(100vh - 124px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  #stc-preview-mobile-panel.is-open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #stc-preview-mobile-panel a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 22px !important;
    border-radius: 0 !important;
    color: #071225 !important;
    background: #fff !important;
    text-decoration: none !important;
    font-size: 18px !important;
    font-weight: 850 !important;
    border-bottom: 1px solid #eef2f6 !important;
  }

  #stc-preview-mobile-panel a:last-child {
    border-bottom: 0 !important;
  }

  #stc-preview-mobile-panel a:hover,
  #stc-preview-mobile-panel a:focus {
    background: #eef8f1 !important;
    color: #0a8f35 !important;
    text-decoration: none !important;
  }

  body.modal-open #stc-preview-mobile-brandbar {
    z-index: 2147483000 !important;
    display: flex !important;
  }

  body.modal-open #SignInRegistration.modal {
    padding-top: 104px !important;
    z-index: 2147482500 !important;
  }

  body.modal-open .modal-backdrop {
    z-index: 2147482000 !important;
  }

  #SignInRegistration .modal-dialog {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    width: calc(100% - 28px) !important;
    max-width: 760px !important;
  }

  #SignInRegistration .modal-content {
    max-height: calc(100vh - 124px) !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
  }

}
