/* Shared mobile navigation and footer accordions for ToolBajar pages. */
.tb-mobile-generated-menu,
.tb-mobile-toggle {
  display: none;
}

.tb-footer-toggle {
  color: inherit;
  font: inherit;
}

@media (max-width: 767px) {
  body.tb-mobile-menu-open {
    overflow: hidden;
  }

  header,
  nav#mainNav,
  [data-ftb-site-header="true"] {
    position: relative;
  }

  .tb-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.875rem;
    color: inherit;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .tb-mobile-toggle:active {
    transform: scale(0.96);
  }

  .tb-mobile-generated-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1002;
    display: none;
    padding: 0 1rem 1rem;
  }

  .tb-mobile-generated-menu.tb-open {
    display: block;
  }

  .tb-mobile-menu-panel {
    display: grid;
    gap: 0.35rem;
    max-height: calc(100vh - 5.5rem);
    overflow: auto;
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    -webkit-overflow-scrolling: touch;
  }

  .tb-mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.8rem;
    color: #f8fafc !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
  }

  .tb-mobile-menu-link:hover,
  .tb-mobile-menu-link:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
  }

  #mobileMenu.tb-open,
  #mobile-menu.tb-open {
    display: block !important;
  }

  footer .tb-footer-accordion {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding-top: 0.15rem;
  }

  footer .tb-footer-accordion > h3,
  footer .tb-footer-accordion > h4,
  footer .tb-footer-accordion > .ftb-footer-heading {
    margin: 0 !important;
  }

  .tb-footer-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .tb-footer-chevron {
    flex: 0 0 auto;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.75;
    transition: transform 0.2s ease;
  }

  .tb-footer-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .tb-footer-accordion.tb-open .tb-footer-panel {
    max-height: 60rem;
    opacity: 1;
    padding-bottom: 0.85rem;
  }

  .tb-footer-accordion.tb-open .tb-footer-chevron {
    transform: rotate(225deg);
  }

  .tb-footer-panel > :first-child {
    margin-top: 0 !important;
  }

  .tb-footer-panel ul,
  .tb-footer-panel form {
    margin-top: 0 !important;
  }
}

@media (min-width: 768px) {
  .tb-mobile-generated-menu,
  .tb-mobile-toggle {
    display: none !important;
  }

  .tb-footer-panel {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .tb-footer-toggle {
    display: inline;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
    pointer-events: none;
    text-align: inherit;
  }

  .tb-footer-chevron {
    display: none;
  }
}
