.mobile-menu {
  display: none;
}

@media screen and (max-width: 767px) {
  /* .menu-toggle {
    display: block;
  } */

  .menu-toggle {
    border: transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
  }

  .menu-toggle .line {
    width: 16px;
    height: 2px;
    border-radius: 20px;
    background-color: var(--bs-black);
  }

  .mobile-menu {
    display: flex;
    justify-content: stretch;
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity ease 250ms;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.25);
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu>.mobile-menu__container>div {
    padding: 20px;
    border-bottom: 1px solid rgb(220, 220, 220);
  }

  .mobile-menu>.mobile-menu__container>div:last-child {
    border-bottom: none;
  }

  .mobile-menu>.mobile-menu__container>div h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .mobile-menu__container {
    position: relative;
    max-width: 300px;
    height: 100%;
    width: 100%;
    background-color: #fff;
    translate: 100% 0;
    transition: translate ease 250ms, opacity ease 10ms;
    margin-left: auto;
    overflow-y: auto;
  }

  .overlay {
    background-color: rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 100%;
    scale: 20;
  }

  .mobile-menu.open .mobile-menu__container {
    translate: 0 0;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;

    /* Make it sticky if the user can scroll over the menu mobile content */
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
  }

  .mobile-menu-header svg {
    width: 40px
  }

  .mobile-menu-header-text {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .mobile-menu-header-text-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bs-primary);
  }

  .mobile-menu-header-text-icon h2 {
    font-size: 20px;
    font-weight: bold;
  }

  .mobile-menu-header button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 44px;
    height: 44px;
    background-color: var(--bs-white);
    color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    font-family: sans-serif;
    font-weight: 400;
    border-radius: 4px;
  }

  .mobile-menu__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
  }

  .mobile-menu__content img.mobile-logo {
    width: 200px;
  }

  .mobile-menu__content #menu-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu__content #menu-mobile-links a {
    padding: 12px;
    border-radius: 4px;
    transition: background-color ease 150ms, color ease 150ms;
  }

  .mobile-menu__content #menu-mobile-links a:hover {
    background-color: var(--bs-gray-light);
    color: var(--bs-primary-dark)
  }

  .mobile-menu__content #menu-mobile-links .current-menu-item>a {
    background-color: var(--bs-gray-light);
    color: var(--bs-primary-dark);
  }

  /* Styles to add a "Nuevo" badge to a link element */
  .mobile-menu__content #menu-mobile-links .new-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px
  }

  .mobile-menu__content #menu-mobile-links .new-badge::after {
    content: "Nuevo";
    background-color: rgba(0, 225, 0, 0.25);
    padding: 2px 8px;
    border-radius: 8px;
  }

  .mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .icon-item-item {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }

  .icon-item-item svg {
    width: 20px;
  }

}

@media screen and (max-width: 520px) {
  .mobile-menu__container {
    max-width: none;
  }
  
  .overlay {
    display: none;
  }
}