/* Shopro Marketplace Mobile Header v1.0.0
 * Front-end only. Nothing in the active theme is edited.
 */

:root {
  --shopro-mmh-blue: #011c65;
  --shopro-mmh-blue-2: #102f70;
  --shopro-mmh-yellow: #fdc603;
  --shopro-mmh-text: #ffffff;
  --shopro-mmh-ink: #0f1111;
  --shopro-mmh-border: rgba(255,255,255,.10);
  --shopro-mmh-search-radius: 9px;
}

.shopro-mmh,
.shopro-mmh * {
  box-sizing: border-box;
}

.shopro-mmh {
  display: none;
}

@media (max-width: 782px) {
  html.shopro-mmh-drawer-open,
  body.shopro-mmh-drawer-open {
    overflow: hidden !important;
    touch-action: none;
  }

  /* Hide the theme's header only while this plugin is active and only on mobile.
     These selectors cover Machic/KLB plus common WordPress mobile-header variants. */
  body.shopro-market-mobile-header-active > header.site-header,
  body.shopro-market-mobile-header-active header#masthead,
  body.shopro-market-mobile-header-active .site-header:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-wrapper:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-mobile:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .mobile-header:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-type1:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-type2:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-type3:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-type4:not(.shopro-mmh *),
  body.shopro-market-mobile-header-active .header-type5:not(.shopro-mmh *) {
    display: none !important;
  }

  body.shopro-market-mobile-header-active {
    --shopro-mmh-admin-offset: 0px;
  }

  body.admin-bar.shopro-market-mobile-header-active {
    --shopro-mmh-admin-offset: 46px;
  }

  .shopro-mmh {
    display: block;
    width: 100%;
    position: relative;
    z-index: 9995;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--shopro-mmh-text);
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
  }

  .shopro-mmh a,
  .shopro-mmh button,
  .shopro-mmh input {
    font-family: inherit;
  }

  .shopro-mmh a {
    text-decoration: none !important;
  }

  .shopro-mmh-shell {
    width: 100%;
    background: var(--shopro-mmh-blue);
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 0 rgba(0,0,0,.12);
  }

  .shopro-mmh-topbar {
    min-height: 62px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 13px 4px 12px;
    background: linear-gradient(180deg, #102b58 0%, var(--shopro-mmh-blue) 100%);
  }

  .shopro-mmh-menu-button,
  .shopro-mmh-drawer-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    margin: 0;
    padding: 0;
    color: #fff;
    cursor: pointer;
    box-shadow: none !important;
  }

  .shopro-mmh-menu-button {
    width: 45px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 45px;
  }

  .shopro-mmh-menu-button svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
  }

  .shopro-mmh-logo {
    height: 44px;
    min-width: 92px;
    max-width: 139px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff !important;
    flex: 0 1 139px;
    overflow: hidden;
  }

  .shopro-mmh-logo-img {
    display: block;
    max-width: 132px !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  .shopro-mmh-wordmark {
    display: inline-block;
    position: relative;
    font-size: 31px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -1.8px;
    color: #fff;
    padding-bottom: 4px;
  }

  .shopro-mmh-wordmark-swoosh {
    position: absolute;
    left: 25px;
    bottom: 2px;
    width: 48px;
    height: 7px;
    border-bottom: 3px solid var(--shopro-mmh-yellow);
    border-radius: 0 0 65% 65%;
    transform: rotate(-3deg);
  }

  .shopro-mmh-top-spacer {
    flex: 1 1 auto;
    min-width: 3px;
  }

  .shopro-mmh-account {
    min-width: 90px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #fff !important;
    white-space: nowrap;
    flex: 0 1 auto;
  }

  .shopro-mmh-account-text {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shopro-mmh-account-icon {
    width: 36px;
    height: 38px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shopro-mmh-account-icon svg {
    width: 33px;
    height: 33px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shopro-mmh-cart {
    width: 49px;
    height: 48px;
    margin-left: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 49px;
    color: #fff !important;
  }

  .shopro-mmh-cart svg {
    width: 39px;
    height: 35px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 4px;
  }

  .shopro-mmh-cart-count {
    position: absolute;
    top: 0px;
    right: 8px;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--shopro-mmh-yellow);
  }

  .shopro-mmh-searchrow {
    position: relative;
    z-index: 8;
    padding: 3px 16px 10px 16px;
    background: var(--shopro-mmh-blue);
  }

  .shopro-mmh-search {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: 47px;
    position: relative;
    background: #fff;
    border-radius: var(--shopro-mmh-search-radius);
    box-shadow: 0 1px 1px rgba(0,0,0,.08) inset;
    overflow: visible;
  }

  .shopro-mmh-search-input {
    appearance: none;
    -webkit-appearance: none;
    width: calc(100% - 58px) !important;
    max-width: none !important;
    height: 47px !important;
    min-height: 47px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--shopro-mmh-search-radius) 0 0 var(--shopro-mmh-search-radius) !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 17px !important;
    line-height: 47px !important;
    font-weight: 400 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .shopro-mmh-search-input::placeholder {
    color: #777 !important;
    opacity: 1;
  }

  .shopro-mmh-search-input::-webkit-search-cancel-button {
    margin-right: 6px;
  }

  .shopro-mmh-search-button {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 47px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 var(--shopro-mmh-search-radius) var(--shopro-mmh-search-radius) 0;
    background: var(--shopro-mmh-yellow);
    color: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
  }

  .shopro-mmh-search-button svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
  }

  .shopro-mmh-search:focus-within {
    box-shadow: 0 0 0 3px rgba(253,198,3,.45);
  }

  .shopro-mmh-suggestions {
    position: absolute;
    top: 51px;
    left: 0;
    width: 100%;
    max-height: min(64vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    color: var(--shopro-mmh-ink);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 9px 24px rgba(0,0,0,.25);
    border: 1px solid #ddd;
    z-index: 30;
  }

  .shopro-mmh-suggestions[hidden] {
    display: none !important;
  }

  .shopro-mmh-suggestion-status {
    padding: 14px 15px;
    color: #555;
    font-size: 14px;
  }

  .shopro-mmh-suggestion-item {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    color: #111 !important;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  .shopro-mmh-suggestion-item:active,
  .shopro-mmh-suggestion-item:focus {
    background: #f5f5f5;
    outline: none;
  }

  .shopro-mmh-suggestion-image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
  }

  .shopro-mmh-suggestion-copy {
    min-width: 0;
    flex: 1 1 auto;
  }

  .shopro-mmh-suggestion-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
  }

  .shopro-mmh-suggestion-price {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    color: #b12704;
  }

  .shopro-mmh-suggestion-all {
    display: block;
    padding: 12px 14px;
    color: var(--shopro-mmh-blue) !important;
    font-size: 14px;
    font-weight: 700;
    background: #fafafa;
  }

  .shopro-mmh-quicknav {
    height: 50px;
    overflow: hidden;
    background: var(--shopro-mmh-blue);
    border-top: 1px solid rgba(255,255,255,.02);
  }

  .shopro-mmh-quicknav-track {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 24px;
    white-space: nowrap;
  }

  .shopro-mmh-quicknav-track::-webkit-scrollbar {
    display: none;
  }

  .shopro-mmh-quicknav a {
    flex: 0 0 auto;
    color: #fff !important;
    font-size: 15px;
    line-height: 50px;
    font-weight: 400;
  }

  .shopro-mmh-deliverybar {
    min-height: 58px;
    width: 100%;
    padding: 0 15px 0 18px;
    background: var(--shopro-mmh-blue-2);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--shopro-mmh-border);
  }

  .shopro-mmh-delivery {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    color: #fff !important;
  }

  .shopro-mmh-pin {
    width: 31px;
    height: 36px;
    margin-right: 4px;
    flex: 0 0 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shopro-mmh-pin svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shopro-mmh-delivery-copy {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
  }

  .shopro-mmh-delivery-copy > span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
  }

  .shopro-mmh-delivery-copy strong {
    font-weight: 500;
  }

  .shopro-mmh-update {
    opacity: .95;
  }

  .shopro-mmh-delivery-chevron {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
  }

  .shopro-mmh-delivery-chevron svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shopro-mmh-pickup {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--shopro-mmh-blue) !important;
    background: var(--shopro-mmh-yellow);
    font-size: 13px;
    line-height: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  .shopro-mmh-overlay {
    position: fixed;
    z-index: 999997;
    left: 0;
    right: 0;
    top: var(--shopro-mmh-admin-offset);
    bottom: 0;
    background: rgba(0,0,0,.62);
    opacity: 0;
    transition: opacity .23s ease;
  }

  .shopro-mmh-overlay[hidden] {
    display: none !important;
  }

  .shopro-mmh-overlay.is-visible {
    opacity: 1;
  }

  .shopro-mmh-drawer {
    position: fixed;
    z-index: 999998;
    top: var(--shopro-mmh-admin-offset);
    bottom: 0;
    left: 0;
    width: min(86vw, 365px);
    background: #fff;
    color: #111;
    transform: translate3d(-102%,0,0);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
    box-shadow: 8px 0 30px rgba(0,0,0,.28);
    overflow: hidden;
    outline: none;
  }

  .shopro-mmh-drawer.is-open {
    transform: translate3d(0,0,0);
  }

  .shopro-mmh-drawer-head {
    min-height: 74px;
    background: var(--shopro-mmh-blue);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 12px 10px 11px 16px;
  }

  .shopro-mmh-drawer-account {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
  }

  .shopro-mmh-drawer-account-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .shopro-mmh-drawer-account-icon svg {
    width: 37px;
    height: 37px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shopro-mmh-drawer-account small,
  .shopro-mmh-drawer-account strong {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shopro-mmh-drawer-account small {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    opacity: .9;
  }

  .shopro-mmh-drawer-account strong {
    margin-top: 1px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
  }

  .shopro-mmh-drawer-close {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shopro-mmh-drawer-close svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
  }

  .shopro-mmh-drawer-body {
    height: calc(100% - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
  }

  .shopro-mmh-drawer-section {
    padding: 20px 0 10px;
    border-bottom: 5px solid #e7e7e7;
  }

  .shopro-mmh-drawer-section h2 {
    margin: 0 20px 10px !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 18px !important;
    line-height: 23px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  .shopro-mmh-drawer-links a,
  .shopro-mmh-drawer-secondary > a {
    min-height: 48px;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #111 !important;
    background: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: 400;
  }

  .shopro-mmh-drawer-links a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #777;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .shopro-mmh-drawer-links a:active,
  .shopro-mmh-drawer-secondary > a:active {
    background: #f1f1f1;
  }

  .shopro-mmh-drawer-all {
    display: inline-block;
    margin: 6px 20px 11px;
    color: var(--shopro-mmh-blue) !important;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
  }

  .shopro-mmh-drawer-secondary {
    border-bottom: 0;
    padding-bottom: 25px;
  }

  @media (max-width: 390px) {
    .shopro-mmh-topbar {
      padding-left: 9px;
      padding-right: 9px;
    }
    .shopro-mmh-menu-button {
      width: 40px;
      flex-basis: 40px;
    }
    .shopro-mmh-logo {
      max-width: 112px;
      min-width: 82px;
      flex-basis: 112px;
    }
    .shopro-mmh-logo-img {
      max-width: 108px !important;
    }
    .shopro-mmh-account {
      min-width: 72px;
    }
    .shopro-mmh-account-text {
      max-width: 65px;
      font-size: 13px;
    }
    .shopro-mmh-account-icon {
      width: 31px;
      flex-basis: 31px;
    }
    .shopro-mmh-cart {
      width: 44px;
      flex-basis: 44px;
      margin-left: 0;
    }
    .shopro-mmh-searchrow {
      padding-left: 12px;
      padding-right: 12px;
    }
    .shopro-mmh-quicknav-track {
      gap: 23px;
      padding-left: 18px;
      padding-right: 18px;
    }
    .shopro-mmh-deliverybar {
      padding-left: 12px;
      padding-right: 10px;
    }
    .shopro-mmh-pickup {
      padding-left: 11px;
      padding-right: 11px;
      font-size: 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .shopro-mmh-overlay,
    .shopro-mmh-drawer {
      transition: none !important;
    }
  }
}

@media (min-width: 783px) {
  .shopro-mmh,
  .shopro-mmh-overlay,
  .shopro-mmh-drawer {
    display: none !important;
  }
}
