/* mobile-action-bar.css — sticky Call / WhatsApp / Enquire bar for the main Morris layout (_Layout).
   Markup: Themes/Morris/Views/Shared/_MobileActionBar.cshtml (shared with _LandingLayout, which styles
   it in landing.css). Shown below 992px, the same breakpoint where the theme switches to .header_mobile. */

.mobile-action-bar { display: none; }

@media (max-width: 991px) {
  :root { --mab-height: 58px; }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    background: rgba(13, 13, 13, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-action-bar-item {
    flex: 1 1 0;
    min-height: var(--mab-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-action-bar-item:first-child { border-inline-start: 0; }
  .mobile-action-bar-item:hover,
  .mobile-action-bar-item:focus,
  .mobile-action-bar-item:visited { color: #fff; text-decoration: none; }
  .mobile-action-bar-item:active { background: rgba(255, 255, 255, .06); }
  .mobile-action-bar-item svg { width: 20px; height: 20px; flex: none; }

  .mobile-action-bar-item.is-primary,
  .mobile-action-bar-item.is-primary:hover,
  .mobile-action-bar-item.is-primary:focus,
  .mobile-action-bar-item.is-primary:visited {
    background: linear-gradient(135deg, #e8d5a8, var(--theme-accent-color, #c9a14a));
    color: #1b2a4a;
  }

  /* Keep the footer clear of the fixed bar. */
  body { padding-bottom: calc(var(--mab-height) + env(safe-area-inset-bottom, 0px)); }

  /* The bar's WhatsApp button replaces the floating bubble + popup, which covered content on mobile. */
  #whatsapp-widget { display: none !important; }

  /* Lift back-to-top above the bar. */
  #back-to-top {
    right: 16px;
    bottom: calc(var(--mab-height) + 16px + env(safe-area-inset-bottom, 0px));
  }
  html[dir="rtl"] #back-to-top { left: 16px; right: auto; }
}
