﻿@-webkit-keyframes cd-fade-in {
  0% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@-moz-keyframes cd-fade-in {
  0% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes cd-fade-in {
  0% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 1;
    visibility: visible;
  }
}

@-webkit-keyframes cd-fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: visible;
  }
}

@-moz-keyframes cd-fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: visible;
  }
}

@keyframes cd-fade-out {
  0% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: visible;
  }
}

.cd-dropdown-content,
.cd-dropdown-content ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-transition: -webkit-transform 0.3s;
  -moz-transition: -moz-transform 0.3s;
  transition: transform 0.3s;
  background: #fff;
}

.cd-dropdown-content a,
.cd-dropdown-content ul a {
  display: block;
  color: #000;
  font-size: 14px;
}

.cd-dropdown-content a {
  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  -moz-transition: opacity 0.3s, -moz-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
}

.cd-dropdown-content.is-hidden,
.cd-dropdown-content ul.is-hidden {
  /* push the secondary dropdown items to the right */
  -webkit-transform: translateX(100%);
  -moz-transform: translateX(100%);
  -ms-transform: translateX(100%);
  -o-transform: translateX(100%);
  transform: translateX(100%);
}

.cd-dropdown-content.is-hidden > li > a,
.cd-dropdown-content.move-out > li > a,
.cd-dropdown-content ul.is-hidden > li > a,
.cd-dropdown-content ul.move-out > li > a {
  /* lower down the dropdown items opacity - when secondary dropdown slides in or for dropdown items hidden on the right */
  opacity: 0;
}

.cd-dropdown-content.move-out > li > a,
.cd-dropdown-content ul.move-out > li > a {
  /* push the dropdown items to the left when secondary dropdown slides in */
  -webkit-transform: translateX(-100%);
  -moz-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  -o-transform: translateX(-100%);
  transform: translateX(-100%);
}
.cd-dropdown.dropdown-is-active {
  visibility: visible;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: -webkit-transform 0.5s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform 0.5s 0s, visibility 0s 0s;
  transition: transform 0.5s 0s, visibility 0s 0s;
}
.dropdown-is-active .cd-dropdown-content,
.dropdown-is-active .cd-dropdown-content ul {
  -webkit-overflow-scrolling: touch;
}

/*#region web*/
@media only screen and (min-width: 992px) {
  .cd-dropdown-content {
    /* reset mobile style */
    position: static;
    height: auto;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
  }
  .cd-dropdown-content,
  .cd-dropdown-content ul {
    top: auto;
  }

  .cd-dropdown-content > li {
    float: left;
  }
  .cd-dropdown-content.move-out > li > a {
    /* reset mobile style */
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }

  .cd-dropdown-content.is-hidden > li > a,
  .cd-dropdown-content.move-out > li > a,
  .cd-dropdown-content ul.is-hidden > li > a,
  .cd-dropdown-content ul.move-out > li > a {
    /* reset mobile style */
    opacity: 1;
  }

  .cd-dropdown-content > .has-children > ul {
    visibility: hidden;
  }

  .cd-dropdown-content > .has-children > ul.is-active {
    /* when hover over .cd-dropdown-content items - show subnavigation */
    visibility: visible;
  }

  .cd-dropdown-content > .has-children > a.is-active {
    /* hover effect for .cd-dropdown-content items with subnavigation */
    text-shadow: 0 0 black;
  }
  .cd-dropdown-content .first-child > a {
    font-weight: 500;
    line-height: 20px;
    color: #000;
    display: inline-flex;
    align-items: center;
    height: 54px;
    padding: 0 9px;
    margin: 0 9px;
    font-size: 15px;
    letter-spacing: 0.5px;
    font-weight: 500;
  }

  .cd-dropdown-content > .first-child > a.is-active:after,
  .cd-dropdown-content > .first-child:hover > a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 1px;
    z-index: 10001;
    background: #000;
  }

  .cd-dropdown-content .cd-secondary-dropdown {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    left: 100%;
    height: auto;
    background-color: #fff;
    overflow: hidden;
    width: 100%;
    left: 0;
    letter-spacing: 0;
  }
  .cd-dropdown-content .cd-secondary-dropdown.default {
    padding: 35px 10% 0 14%;
    min-height: 320px;
    border: 1px solid #efefef;
  }

  .cd-dropdown-content .cd-secondary-dropdown > li {
    float: left;
  }

  .cd-dropdown-content .cd-secondary-dropdown > li > a {
    font-size: 14px;
    font-weight: 500;
    padding: 0 0 10px 0;
    margin-bottom: 10px;
  }

  .cd-dropdown-content .cd-secondary-dropdown a span {
    font-size: 18px;
    padding-top: 18px;
    display: block;
  }
  .cd-dropdown-content .cd-secondary-dropdown::after {
    clear: both;
    content: "";
    display: table;
  }

  .open-to-left .cd-dropdown-content .cd-secondary-dropdown {
    /* use the .open-to-left class if you want to open the dropdown on the left */
    left: auto;
    right: 100%;
  }

  .cd-dropdown-content .cd-secondary-dropdown.is-hidden {
    /* reset mobile style */
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }

  .cd-dropdown-content .cd-secondary-dropdown.fade-in {
    /* animate secondary dropdown items when hovering over of of the .cd-dropdown-content list items */
    -webkit-animation: cd-fade-in 0.2s;
    -moz-animation: cd-fade-in 0.2s;
    animation: cd-fade-in 0.2s;
  }

  .cd-dropdown-content .cd-secondary-dropdown.fade-out {
    /* animate secondary dropdown items when hovering over of of the .cd-dropdown-content list items */
    -webkit-animation: cd-fade-out 0.2s;
    -moz-animation: cd-fade-out 0.2s;
    animation: cd-fade-out 0.2s;
  }

  .cd-dropdown-content .cd-secondary-dropdown > .go-back {
    display: none;
  }

  .cd-dropdown-content .cd-secondary-dropdown > li > a::after,
  .cd-dropdown-content .cd-secondary-dropdown > li > a::before {
    /* hide the arrow */
    display: none;
  }

  .cd-dropdown-content .cd-secondary-dropdown.move-out > li > a {
    /* reset mobile style */
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }

  .cd-dropdown-content .cd-secondary-dropdown > li > ul {
    /* reset mobile style */
    -webkit-transform: translate(0);
    -moz-transform: translate(0);
    -ms-transform: translate(0);
    -o-transform: translate(0);
    transform: translate(0);
    position: relative;
    height: auto;
    padding: 0;
  }

  .cd-dropdown-content .cd-secondary-dropdown > li > ul > .go-back {
    display: none;
  }

  .cd-dropdown-content .cd-secondary-dropdown li {
    margin: 0 0 10px 0;
  }

  .cd-dropdown-content .cd-secondary-dropdown a {
    padding: 0;
    display: inline-block;
  }

  .cd-dropdown-content .cd-secondary-dropdown ul {
    padding-bottom: 0px;
    overflow: hidden;
    height: auto;
  }

  .cd-dropdown-content .cd-secondary-dropdown .go-back a {
    padding-left: 20px;
    color: transparent;
  }

  .cd-dropdown-content .cd-secondary-dropdown .go-back a::before,
  .cd-dropdown-content .cd-secondary-dropdown .go-back a::after {
    left: 0;
  }
}
/*#endregion web*/

/*#region mobile*/
@media (max-width: 991px) {
  .cd-dropdown {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #000;
    visibility: hidden;
    /* Force Hardware Acceleration */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition: -webkit-transform 0.5s 0s, visibility 0s 0.5s;
    -moz-transition: -moz-transform 0.5s 0s, visibility 0s 0.5s;
    transition: transform 0.5s 0s, visibility 0s 0.5s;
  }

  .cd-dropdown .cd-close {
    /* 'X' close icon - mobile version only */
    position: absolute;
    z-index: 3;
    right: 0;
    top: 0;
    height: 50px;
    width: 42px;
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: white;
    background: #fff;
  }

  .cd-dropdown .cd-close::after,
  .cd-dropdown .cd-close::before {
    /* this is the 'X' icon */
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    height: 16px;
    width: 2px;
    background-color: #000;
  }

  .cd-dropdown .cd-close::after {
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    -o-transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }

  .cd-dropdown .cd-close::before {
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -moz-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    -o-transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }

  .cd-dropdown-content a {
    margin: 0 20px;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 0;
    border-bottom: 1px solid #efefef;
  }

  .cd-dropdown-content ul li.third-child a {
    margin: 0 20px;
    font-size: 14px;
    font-weight: 400;
    padding: 9px 0;
    border-bottom: none;
    line-height: 18px;
  }

  .cd-dropdown-content .cd-menu-title a {
    padding: 14px 0 14px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border-bottom: 1px solid #efefef;
    margin: 0;
  }

  .has-children > a,
  .go-back a {
    position: relative;
  }

  .has-children > a::before,
  .has-children > a::after,
  .go-back a::before,
  .go-back a::after {
    /* arrow icon in CSS - for element with nested unordered lists */
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -1px;
    display: inline-block;
    height: 2px;
    width: 8px;
    background: #000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .has-children > a::before,
  .go-back a::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .has-children > a::after,
  .go-back a::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .has-children > a::before,
  .has-children > a::after {
    /* arrow goes on the right side - children navigation */
    right: 12px;
    -webkit-transform-origin: 7px 50%;
    -moz-transform-origin: 7px 50%;
    -ms-transform-origin: 7px 50%;
    -o-transform-origin: 7px 50%;
    transform-origin: 7px 50%;
  }

  .cd-dropdown-content .go-back a {
    font-size: 16px;
    font-weight: 500;
    padding: 14px 40px;
    line-height: 24px;
    margin: 0 0 21px;
    border-bottom: 1px solid #efefef;
  }

  .cd-dropdown-content .go-back a::before,
  .cd-dropdown-content .go-back a::after {
    /* arrow goes on the left side - go back button */
    left: 20px;
    -webkit-transform-origin: 1px 50%;
    -moz-transform-origin: 1px 50%;
    -ms-transform-origin: 1px 50%;
    -o-transform-origin: 1px 50%;
    transform-origin: 1px 50%;
  }

  .has-children {
    position: initial;
    padding: 0;
  }

  .cd-dropdown-content .cd-user {
    background: #f2f2f2;
    padding: 26px 0;
    display: flex;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    -moz-transition: opacity 0.3s, -moz-transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
  }

  .cd-dropdown-content .cd-user .btn-dark {
    color: #fff;
    border: none;
  }

  .cd-dropdown-content .cd-user .btn {
    margin: 0 10px;
    min-width: 160px;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
  }
}
/*#endregion mobile*/

/*#region trigger*/
@media (min-width: 992px) {
  .cd-dropdown-trigger,
  .cd-close {
    display: none;
  }
}

.cd-dropdown-trigger.arrow {
  position: relative;
  cursor: pointer;
  padding: 12px 50px 12px 0px;
  float: left;
  margin-top: 20px;
}

.cd-dropdown-trigger.arrow span {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 24px;
  background: #000;
  left: 10px;
}

.cd-dropdown-trigger.arrow span:nth-child(1) {
  top: 0px;
}

.cd-dropdown-trigger.arrow span:nth-child(2) {
  top: 8px;
  width: 16px;
}
.cd-dropdown-trigger.arrow span:nth-child(3) {
  top: 16px;
}

/*#endregion trigger*/
