/* V1.1.6: luxury charcoal/gold mobile navigation with midnight-navy featured offers. No external assets. */
@media screen and (max-width: 782px) {
  /* Preserve the original page padding; JS measures the bar INCLUDING safe area. */
  body.hthmbb-mobile-active {
    padding-bottom: calc(var(--hthmbb-base-padding, 0px) + var(--hthmbb-bar-height, 0px)) !important;
  }

  /* HTH Training alone owns --hth-wa-fab-bottom. This rule only establishes the
     minimum clearance required by the toolbar, preserving higher HTH offsets. */
  body.hthmbb-mobile-active.hthmbb-whatsapp-avoid #hajer-th-support-whatsapp-fab {
    bottom: max(
      calc(var(--hth-wa-fab-bottom, 16px) + env(safe-area-inset-bottom, 0px)),
      calc(var(--hthmbb-bar-height, 0px) + 12px)
    ) !important;
  }

  #hthmbb-nav,
  #hthmbb-nav * { box-sizing: border-box; }

  #hthmbb-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10010;
    width: 100%;
    background: var(--hthmbb-bg, #0F0F10);
    color: var(--hthmbb-ink, #FFFFFF);
    border-top: 1px solid var(--hthmbb-gold, #B99A4A);
    box-shadow: 0 -7px 26px rgba(0, 0, 0, .27);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    direction: rtl;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
  }
  #hthmbb-nav .hthmbb-items {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    min-height: 75px;
    margin: 0 auto;
    padding: 7px 8px 7px;
    gap: 6px;
  }
  #hthmbb-nav .hthmbb-link {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 144px;
    min-height: 61px;
    margin: 0;
    padding: 6px 3px 5px;
    gap: 4px;
    border: 1px solid rgba(185, 154, 74, .72);
    border-color: var(--hthmbb-gold, #B99A4A);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
    color: var(--hthmbb-ink, #FFFFFF) !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  #hthmbb-nav .hthmbb-link:visited,
  #hthmbb-nav .hthmbb-link:hover {
    color: var(--hthmbb-ink, #FFFFFF) !important;
    text-decoration: none !important;
  }
  #hthmbb-nav .hthmbb-link:hover,
  #hthmbb-nav .hthmbb-link:active { background: rgba(185, 154, 74, .13); }
  #hthmbb-nav .hthmbb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 25px;
    height: 24px;
    line-height: 0;
    color: var(--hthmbb-ink, #FFFFFF);
  }
  #hthmbb-nav .hthmbb-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
  }
  #hthmbb-nav .hthmbb-image {
    width: 25px;
    height: 25px;
    max-width: 25px;
    max-height: 25px;
    object-fit: contain;
    border: 0;
  }
  #hthmbb-nav .hthmbb-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    max-height: 28px;
    line-height: 1.27;
    font-size: 11px;
    font-weight: 600;
    color: inherit;
    overflow-wrap: anywhere;
  }

  /* Multiple featured offers can stay highlighted independently.
     Nearly-black midnight blue #101522, not bright blue; gold keeps the visual
     priority, and white labels maintain clear contrast on small devices. */
  #hthmbb-nav .hthmbb-highlight {
    border: 1.5px solid var(--hthmbb-gold, #B99A4A);
    background: linear-gradient(160deg, #121A29 0%, #101522 58%, #0D121D 100%);
    box-shadow: inset 0 1px 0 rgba(218, 226, 245, .09),
                0 0 0 1px rgba(185, 154, 74, .22),
                0 0 13px rgba(185, 154, 74, .14);
  }
  /* Keep the same navy identity on touch/hover, rather than switching the
     featured offer back to the generic warm hover fill. */
  #hthmbb-nav .hthmbb-highlight:hover,
  #hthmbb-nav .hthmbb-highlight:active {
    background: linear-gradient(160deg, #172235 0%, #121A2A 58%, #101522 100%);
  }
  #hthmbb-nav .hthmbb-highlight .hthmbb-icon {
    color: var(--hthmbb-gold, #B99A4A);
  }
  #hthmbb-nav .hthmbb-highlight .hthmbb-label {
    color: var(--hthmbb-ink, #FFFFFF);
    font-weight: 700;
  }
  #hthmbb-nav .hthmbb-link:focus-visible {
    outline: 2px solid var(--hthmbb-gold, #B99A4A);
    outline-offset: 2px;
  }
}
@media screen and (max-width: 350px) {
  #hthmbb-nav .hthmbb-items { padding-inline: 5px; gap: 4px; }
  #hthmbb-nav .hthmbb-link { padding-inline: 2px; border-radius: 9px; }
  #hthmbb-nav .hthmbb-label { font-size: 10px; }
}
@media screen and (min-width: 783px), print {
  #hthmbb-nav { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #hthmbb-nav *, #hthmbb-nav *:before { transition: none !important; animation: none !important; }
}
