/* TLens v1.0.5 mobile header — standalone touch-safe surface outside native #header. */
.tlens-mobile-header { display: none; }

@media (max-width: 850px) {
  /* The standalone TLens mobile surface replaces the native Flatsome header completely. */
  body.tlens-approved-header #header {
    display: none !important;
  }

  body.tlens-approved-header .tlens-mobile-header {
    position: relative;
    z-index: 1090;
    display: block !important;
    width: 100%;
    color: var(--tlens-brand-ink, #202020);
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    pointer-events: auto;
  }
  body.tlens-approved-header .tlens-mobile-header,
  body.tlens-approved-header .tlens-mobile-header * { box-sizing: border-box; }

  body.tlens-approved-header .tlens-mobile-header {
    isolation: isolate;
    -webkit-user-select: auto;
    user-select: auto;
  }

  /* Never let inherited decorative pseudo-elements become a touch hit-target. */
  body.tlens-approved-header .tlens-mobile-header__logo::before,
  body.tlens-approved-header .tlens-mobile-header__logo::after,
  body.tlens-approved-header .tlens-mobile-header__link::before,
  body.tlens-approved-header .tlens-mobile-header__link::after,
  body.tlens-approved-header .tlens-mobile-header__toggle::before,
  body.tlens-approved-header .tlens-mobile-header__toggle::after {
    pointer-events: none !important;
  }

  body.tlens-approved-header .tlens-mobile-header__main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 7px 14px;
    background: #fff;
    box-shadow: 0 4px 9px rgb(0 0 0 / 20%);
    pointer-events: auto;
  }

  body.tlens-approved-header .tlens-mobile-header__logo {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 72vw;
    min-width: 0;
    min-height: 62px;
    color: var(--tlens-brand-blue, #204173);
    text-decoration: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(32,65,115,.12);
    -webkit-touch-callout: default;
    cursor: pointer;
  }
  body.tlens-approved-header .tlens-mobile-header__logo-image {
    display: block;
    width: min(190px, 67vw);
    height: auto;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
  }

  body.tlens-approved-header .tlens-mobile-header__toggle {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid #c8cdd3;
    border-radius: 3px;
    background: #fff;
    color: #7d8389;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(32,65,115,.12);
  }
  body.tlens-approved-header .tlens-mobile-header__toggle-icon {
    display: grid;
    gap: 4px;
    width: 22px;
    pointer-events: none;
  }
  body.tlens-approved-header .tlens-mobile-header__toggle-icon > span {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 1px;
    background: #858b91;
  }
  body.tlens-approved-header .tlens-mobile-header__toggle[aria-expanded="true"] {
    border-color: var(--tlens-brand-blue, #204173);
    color: var(--tlens-brand-blue, #204173);
  }
  body.tlens-approved-header .tlens-mobile-header__toggle[aria-expanded="true"] .tlens-mobile-header__toggle-icon > span {
    background: var(--tlens-brand-blue, #204173);
  }

  body.tlens-approved-header .tlens-mobile-header__menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1095;
    width: 100%;
    border: 1px solid #e3e6e9;
    border-top: 4px solid var(--tlens-brand-blue, #204173);
    background: #fff;
    box-shadow: 0 9px 22px rgb(0 0 0 / 16%);
    pointer-events: auto;
  }
  body.tlens-approved-header .tlens-mobile-header__menu[hidden] { display: none !important; }
  body.tlens-approved-header .tlens-mobile-header__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  body.tlens-approved-header .tlens-mobile-header__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf0f2;
    list-style: none;
  }
  body.tlens-approved-header .tlens-mobile-header__item:last-child { border-bottom: 0; }
  body.tlens-approved-header .tlens-mobile-header__link {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    color: #222;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(32,65,115,.12);
    -webkit-touch-callout: default;
    cursor: pointer;
  }
  body.tlens-approved-header .tlens-mobile-header__link:active {
    background: var(--tlens-brand-blue-soft, #edf3f9);
    color: var(--tlens-brand-blue, #204173);
  }
  body.tlens-approved-header .tlens-mobile-header__logo:focus-visible,
  body.tlens-approved-header .tlens-mobile-header__toggle:focus-visible,
  body.tlens-approved-header .tlens-mobile-header__link:focus-visible {
    outline: 2px solid var(--tlens-brand-blue, #204173);
    outline-offset: -3px;
  }
}

/* Hover styling is restricted to real mouse/trackpad devices so iOS does not consume first tap as hover. */
@media (max-width: 850px) and (hover: hover) and (pointer: fine) {
  body.tlens-approved-header .tlens-mobile-header__link:hover {
    background: var(--tlens-brand-blue-soft, #edf3f9);
    color: var(--tlens-brand-blue, #204173);
    text-decoration: none;
  }
}

@media (min-width: 851px) {
  body.tlens-approved-header .tlens-mobile-header { display: none !important; }
}
