/* Isolated styles for BD IT HOME Matrimony's optional mobile bottom navigation. */
#bdhm-bottom-nav { display: none; }

@media screen and (max-width: 767px) {
  body.bdhm-bottom-menu-ready {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  #bdhm-bottom-nav {
    --bdhm-accent: #dc1377;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    width: 100%;
    height: calc(80px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 4px 4px env(safe-area-inset-bottom, 0px);
    border: 0;
    border-top: 1px solid #f0edf0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(33, 27, 36, .10);
    -webkit-tap-highlight-color: transparent;
    font-family: "Noto Sans Bengali", "Inter", system-ui, sans-serif;
  }
  #bdhm-bottom-nav *,
  #bdhm-bottom-nav *::before,
  #bdhm-bottom-nav *::after { box-sizing: border-box; }
  #bdhm-bottom-nav .bdhm-menu-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #77777e;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  #bdhm-bottom-nav .bdhm-menu-link:visited { color: #77777e; }
  #bdhm-bottom-nav .bdhm-menu-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }
  #bdhm-bottom-nav .bdhm-menu-icon svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #bdhm-bottom-nav .bdhm-menu-label { white-space: nowrap; }
  #bdhm-bottom-nav .bdhm-menu-link.is-active,
  #bdhm-bottom-nav .bdhm-menu-link.is-active:visited {
    color: var(--bdhm-accent);
    font-weight: 700;
  }
  #bdhm-bottom-nav .bdhm-menu-link.is-active::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: var(--bdhm-accent);
  }
  #bdhm-bottom-nav .bdhm-menu-link.is-active .bdhm-menu-icon {
    background: #fde8f2;
  }
  #bdhm-bottom-nav .bdhm-menu-link:focus-visible {
    outline: 2px solid var(--bdhm-accent);
    outline-offset: -3px;
    border-radius: 8px;
  }
  body.bdhm-bottom-menu-ready .bdh-home-cta {
    scroll-margin-top: 76px;
  }
}
@media screen and (max-width: 350px) {
  #bdhm-bottom-nav .bdhm-menu-link { font-size: 11px; }
  #bdhm-bottom-nav .bdhm-menu-icon { width: 38px; height: 38px; }
  #bdhm-bottom-nav .bdhm-menu-icon svg { width: 24px; height: 24px; }
}
