/* Copyright (c) 2017-2019 BMW Financial Services Mexico*/
/***** Mobile Menu *****/

/* Mobile button*/
  #bmw-btn {
    cursor: pointer;
    height: 22px;
    padding-top: 8px;
    position: fixed;
    right: 22px;
    top: 20px;
    width: 26px;
    z-index: 10000;
  }
  #bmw-btn div {
    background-color: #666;
    height: 2px;
    margin-bottom: 4px;
    width: 26px;
  }
  #bmw-btn.active {
    padding-top:4px;
    right: 22px;
  }
  #bmw-btn.active div {
    background-color: #444;
  }
  #bmw-btn.active #bmw-top {
    -webkit-transform: translateY(10px) rotate(-135deg);
    transform: translateY(10px) rotate(-135deg);
  }
  #bmw-btn.active #bmw-middle {
    opacity: 0;
  }
  #bmw-btn.active #bmw-bottom {
    -webkit-transform: translateY(-10px) rotate(-45deg);
    transform: translateY(-2px) rotate(-45deg);
  }
  #bmw-btn, #bmw-btn * {
    will-change: transform;
  }

/* Menu container */
  #bmw-box {
    align-items: flex-start;
    align-content:flex-start;
    background: #fff  url('../images/icons/bmw-brd.png') left top repeat-y;
    color: #444 !important;
    display: flex;
    list-style-type: none;
    font-family: 'BMWGroupCondensed-Regular', sans-serif !important;
    font-size: 16px !important;
    flex-direction: column;
    height: 100vh;
    max-width: 320px;
    margin-top: 32px;
    opacity: 0;
    overflow-x:hidden;
    overflow-y: scroll;
    padding: 0;
    position: fixed;
    right: -100vw;
    top: 0;
    z-index: 800;
    width: 100vw;
    -webkit-transition: all 350ms cubic-bezier(0.6, 0.05, 0.28, 0.91);
    transition: all 350ms cubic-bezier(0.6, 0.05, 0.28, 0.91);
  }
  #bmw-box.active {
    right: 0px;
    opacity: 1;
  }
  #bmw-box {
    will-change: transform, opacity;
  }
  #bmw-box a{
    color: #444 !important;
    font-family: 'BMWGroupCondensed-Regular', sans-serif !important;
    font-size: 15px !important;
    text-decoration: none;
  }
  
/* Menu options */
  #bmw-items {
    align-self:flex-start;
    background-color: transparent;
    display: block;
    list-style-type: none;
    position: relative;
    top: 0;
    width: 100%;
  }
  #bmw-items .bmw-item {
    border-left: 3px #999 solid;
    border-bottom: 1px #f3f3f3 solid; 
    font-family: 'BMWGroupCondensed-Regular', sans-serif !important;
    font-size: 16px !important;
    position: relative;
    cursor: pointer;
    padding: 14px 30px;
    -webkit-transition: all 250ms;
    transition: all 250ms;
  }
  #bmw-items .bmw-item:hover {
    border-left: 3px #000 solid;  
    background-color: rgba(52, 56, 56, 0.2);
  }

/* Fixed */
  #bmw-box .bmw-fixed-nav{
    color: #444 !important;
    display: block !important;
    margin: 50px auto 0 auto;
    max-width: 100%;
  }
  #bmw-box .bmw-fixed-nav .bmw-fixed-nav-opt{
    border-left: 3px #999 solid;
    border-bottom: 1px #f3f3f3 solid; 
    display: list-item;
    list-style: none;
    padding: 14px 30px;
    width: 100%;
  }
  #bmw-box .bmw-fixed-nav .bmw-fixed-nav-opt:hover{
    background-color: rgba(52, 56, 56, 0.2);
    border-left: 3px #000 solid;
    text-decoration: none;
  }

/* Drop down */
  #bmw-box .bmw-dropdown{
    display: list-item !important;
  }
  .bmw-drop-mbl{
    background: url('../images/icons/bmw-down.png') no-repeat top right;
    background-size: 16px;
  }
  .bmw-drop-mbl:hover{
    /*background: url('../images/icons/bmw-up.png') no-repeat top right;*/
    background-color:rgba(52, 56, 56, 0.2) !important;
    background-size: 16px;
  }

/* Drop down option */
  ul.bmw-dropul{
    display: none;
    padding: 0;
    margin: 0;
  }
  ul.bmw-dropul li{
    /*display: list-item;*/
    list-style: none;
    padding: 14px 30px;
    width: 100%;
  }
  ul.bmw-dropul li:hover{
    text-decoration: none;
  }  
  .bmw-item:hover ul.bmw-dropul, .bmw-item:active ul.bmw-dropul{
    /*display: list-item;*/
    padding: 0;
    margin: 0;
    list-style-type: none;
  }

  /* Active */
.active {
    display: block;
    opacity: 1;
}
.active-mobile {
    display: list-item !important;
    opacity: 1;
}