/* Arkan Legal mobile bottom bar — preview stylesheet.
   Shown below 768px only. Do not load this on arkancertifiedtranslation.ae. */
.al-mobile-bottom-bar {
  display: none;
}

@media (max-width: 767.98px) {
  .al-mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    padding: 0 6px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    align-items: center;
    justify-content: space-around;
    background: #f4f6f9;
    border-top: 1px solid #e9e9e9;
    box-shadow: 0 -4px 16px rgba(24, 45, 58, 0.08);
    z-index: 1000;
    font-family: Hind, "Arkan Cairo", "Arkan Hind", system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
  }

  html[dir="rtl"] .al-mobile-bottom-bar {
    direction: rtl;
    font-family: "Arkan Cairo", "Arkan Hind", Hind, system-ui, sans-serif;
  }

  body.al-has-mobile-bar {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  body.al-has-mobile-bar .al-site-footer,
  body.al-has-mobile-bar footer {
    padding-bottom: calc(24px + 62px + env(safe-area-inset-bottom, 0px));
  }

  body.al-has-mobile-bar .al-main-navigation {
    max-height: calc(100dvh - 64px - 62px - env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(20px + 8px);
  }

  /* Hide floating WhatsApp (Click to Chat) and Call Now on mobile only,
     while the bar is visible. Desktop floats are unchanged. */
  body.al-has-mobile-bar #ht-ctc-chat,
  body.al-has-mobile-bar .ht-ctc,
  body.al-has-mobile-bar #ht-ctc-chat.ht-ctc,
  body.al-has-mobile-bar #callnowbutton,
  body.al-has-mobile-bar .call-now-button,
  body.al-has-mobile-bar #callnowbutton.call-now-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.al-has-mobile-bar .progress-wrap {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 768px) {
  .al-mobile-bottom-bar,
  .al-mobile-bottom-bar * {
    display: none !important;
  }
}

.al-mobile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  min-width: 56px;
  min-height: 52px;
  color: #515e68;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.al-mobile-bar-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}

.al-mobile-bar-item.is-active,
.al-mobile-bar-item:active {
  color: #0467a2;
  font-weight: 700;
}

.al-mobile-bar-item:focus-visible {
  outline: 3px solid #b27c16;
  outline-offset: 2px;
}

.al-mobile-bar-whatsapp,
.al-mobile-bar-whatsapp span {
  color: #15803d !important;
  font-weight: 700;
}

.al-mobile-bar-whatsapp {
  position: relative;
  border-radius: 12px;
  animation: al-mb-wa-pulse 1.8s ease-out infinite;
}

@keyframes al-mb-wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 11px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .al-mobile-bar-whatsapp {
    animation: none;
  }
}
