/** 
 * CSS Style: Theme nav 
 * 
 * @since 1.0
 */

nav ul {
    display:flex;
    line-height: 1.5;
}

nav ul, .menu, .menu ul {
    list-style: none;
}

/*nav.theme-menu-header > ul > li.current-menu-item, 
nav.theme-menu-header > ul > li:hover {
    background-color: var( --theme-color-black );
}*/

nav ul li.current-menu-item.menu-item-highlight > a {
    text-decoration: none;
}

/**
 * Header menu
 * 
 * @since 1.0
 */
nav.theme-menu-header ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    /*justify-content: center;*/
    white-space: nowrap;
    font-weight: 300;
    font-size: 15px;
    line-height: 30px;
}

nav.theme-menu-header > ul > li {
    margin-left: 30px;
    /*max-width: 140px;*/
    white-space: wrap;
}

nav.theme-menu-header ul li a {
    color: #ffffff;
}

nav.theme-menu-header ul li a:hover {
    opacity: 0.9;
}

nav.theme-menu-header > ul > li.menu-item-has-children {
    position: relative;
}

/*nav.theme-menu-header > ul > li.menu-item-has-children:after {
  position: absolute;
  top: 0;
  content: '';
  background-image: url('../images/icons/icon-down.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 13px;
  width: 22px;
  height: 100%;
  border: 1px solid #fff;
}*/

nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    background-color: var( --theme-color );
    z-index: 999;
    text-transform: none;
    left: 0;
    width: 300px;
    /*margin-top: calc( var( --theme-margin ) / 2 );
    padding: calc(var(--theme-padding) / 2) 0;*/
}

nav.theme-menu-header > ul > li.menu-item-has-children:hover > ul.sub-menu {
  display: flex;
}

nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu li {
  width: 100%;
}

nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu li.current-menu-item {
  background-color: var( --theme-color );
}

nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu li a {
    display: block;
    padding: calc( var(--theme-padding) / 2 ) var( --theme-padding );
    width: 100%;
    color: var( --theme-color-background );
    white-space: wrap;
}

nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu li ul.sub-menu {
  padding: 0 20px;
  white-space: normal;
}


nav.theme-menu-header > ul > li.menu-item-has-children > ul.sub-menu li a:hover {
    background-color: var(--theme-color-background);
    color: #ffffff;
    opacity: 1;
}

/** 
 * Primary menu (modal)
 * 
 * @since 1.0
 */
nav.theme-menu-modal ul {
    flex-direction: column;
    flex-wrap: wrap;
}

nav.theme-menu-modal a {
    color: #ffffff;
}

nav.theme-menu-modal a:hover {
    opacity: 0.8;
}

nav.theme-menu-modal ul li {
    padding: 5px 0;
    font-size: 18px;
}

nav.theme-menu-modal ul li ul li {
    font-size: 17px;
}

nav.theme-menu-modal ul li.menu-item-has-children {
    padding-bottom: 0;
    position: relative;
}

nav.theme-menu-modal > ul > li > a {
    /*padding-right: 24px!important;
    background-image: url('../images/icons/icon-down.svg');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 22px 13px;*/
    padding: 6px 0;
    color: #ffffff;
}

nav.theme-menu-modal > ul > li > a:hover {
    color: #ffffff;
}

nav.theme-menu-modal ul li.menu-item-has-children ul.sub-menu {
    padding-top: 10px;
    margin-left: calc( var( --theme-margin ) * 2 );
}


/**
 * Menu item highlight
 * 
 * @since 1.0
 */
/*nav.theme-menu-header ul li.menu-item-highlight > a, 
nav.theme-menu-modal ul li.menu-item-highlight > a {
  border: 2px solid var(--theme-color );
  padding: 5px 15px;
}*/

/**
 * Menu language 
 * 
 * @since 1.0
 */
nav.theme-menu-language ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

nav.theme-menu-language ul li {
    padding: 0;
    text-transform: uppercase;
    line-height: 0;
    font-size: 0;
    width: 50px;
    height: 28px;
    text-align: center;  
}

nav.theme-menu-language ul li:not(:last-child) {
    border-right: 1px solid #ffffff;
}

nav.theme-menu-language ul li a {
    position: relative;
    display: block;
    color: #ffffff;
    width: 100%;
    height: 100%;
}

nav.theme-menu-language ul li a:before {
    position: absolute;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    line-height: 28px;
    width: 100%;
    left: 0;
    /*padding: 7px 10px;*/
}

nav.theme-menu-language ul li.lang-item-be a:before {
    content: 'by';
}

nav.theme-menu-language ul li.lang-item-en a:before {
    content: 'en';
}

nav.theme-menu-language ul li.lang-item-pl a:before {
    content: 'pl';
}

/**
 * Menu social 
 * 
 * @since 1.0
 */


nav.theme-menu-social ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

nav.theme-menu-social ul li:not(:last-child) {
  margin-right: 5px;
}

nav.theme-menu-social ul li a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

nav.theme-menu-social svg {
  width: auto;
  height: 20px;
}

nav.theme-menu-social svg path {
  fill: #ffffff;
}

nav.theme-menu-social.theme-menu-social-footer svg path {
  fill: var( --theme-color );
}

nav.theme-menu-social.theme-menu-social-fixed {
  position: fixed;
  left: 1px;
  top: 40%;
  z-index: 9998;
}

@media only screen and (max-width: 560px) {
  nav.theme-menu-social.theme-menu-social-fixed {
    display: none;
  }
}

nav.theme-menu-social.theme-menu-social-fixed ul {
  flex-direction: column;
}

nav.theme-menu-social.theme-menu-social-fixed ul li {
  margin-right: 0;  
}

nav.theme-menu-social.theme-menu-social-modal ul li a, 
nav.theme-menu-social.theme-menu-social-fixed ul li a {
  background-color: var( --theme-color );
}

/*nav.theme-menu-social.theme-menu-social-fixed ul li a {
  background-color: #000000;
}*/

nav.theme-menu-social.theme-menu-social-footer ul li a {
  background-color: #ffffff;
}

nav.theme-menu-social.theme-menu-social-fixed ul li:not(:last-child) {
  border-bottom: 1px solid #ffffff;
}