/*
Copyright © 2013 Adobe Systems Incorporated.

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

    .nav-menu {
        display: block;
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
        z-index: 15;
    }

    /* a top level navigation item in the mega menu */
    .nav-item {
        list-style: none;
        display: inline-block;
        padding: 0;
        margin: 0;
    }

    /* first descendant link within a top level navigation item */
    .nav-item > a {
        position: relative;
        display: inline-block;
        padding: 0.5em 1em;
        margin: 0 0 -1px 0;
        border: 1px solid transparent;
    }

    /* focus/open states of first descendant link within a top level 
       navigation item */
    .nav-item > a:focus,
    .nav-item > a.open {
        border: 1px solid #dedede;
    }

    /* open state of first descendant link within a top level 
       navigation item */
    .nav-item > a.open {
        background-color: #fff;
        border-bottom: none;
        z-index: 1;
    }

    /* sub-navigation panel */
    .sub-nav {
        position: absolute;
        display: none;
        top: 2.6em;
        margin-top: -1px;
        padding: 0.5em 1em;
        border: 1px solid #dedede;
        background-color: #fff;
    }

    /* sub-navigation panel open state */
    .sub-nav.open {
        display: block;
    }

    /* list of items within sub-navigation panel */
    .sub-nav ul {
        display: inline-block;
        vertical-align: top;
        margin: 0 1em 0 0;
        padding: 0;
    }

    /* list item within sub-navigation panel */
    .sub-nav li {
        display: block;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }


.accessible-megamenu h2,
.accessible-megamenu h3,
.accessible-megamenu h4 {
    
    display: inline;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

.accessible-megamenu .accessible-megamenu-top-nav-item {
    display: block;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 3.077em;
    float: left;
    color: #454545;
    /*text-shadow: 0 1px 0 #fff;*/
    -moz-text-shadow: 0 1px 0 #fff;
    border-right: 1px solid #b3b3b3;
    border-right-color: rgba(0, 0, 0, 0.3);
}


.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup] {
    position: relative;
    display: block;
    padding-left: 0.769em;
    padding-right: 0.769em;
    color: #FFF; /*!important;*/ /*kolor menu*/
	/*color: #454545;*/ /*!important;*/ /*kolor menu*/ /*stara wersja*/
    text-decoration: none;
    box-shadow: inset 1px 1px 0 #fff;
    z-index: inherit;
}


.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup]:hover, 
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup]:focus {
    color: #fff !important; /*tytuł menu*/
	/*color: #333 !important;*/ /*tytuł menu*/ /*stara wersja*/
    outline-offset: -1px;
}

.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup]:hover, 
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup]:focus,
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup].open {
    margin-left: 0;
    background: #15551f none;
    background: -webkit-gradient(linear,left top,left bottom,from(#15551f),to(#006543));
    background: -moz-linear-gradient(top,#15551f,#006543);
    background: -ms-linear-gradient(top,#15551f,#006543);
    background: -o-linear-gradient(top,#15551f,#006543);
    z-index: 1002;
}

.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-haspopup].open {
    background: #15551f none; /*kolor tła tytułu menu*/
	/*background: #f5f8fa none;*/ /*kolor tła tytułu menu*//*stara wersja*/	
    padding-bottom: 2px;
}



.accessible-megamenu .accessible-megamenu-panel {
    position: absolute;
    display: block;
    left: -1px;
    color: #454545;
    padding: 0 0.769em 0.769em;
    line-height: normal;
    background-color: #15551f;    
    background-image: -webkit-gradient(linear,left top,left bottom,from(#15551f),to(#006543));
    background-image: -moz-linear-gradient(top,#15551f,#006543);
    background-image: -ms-linear-gradient(top,#15551f,#006543);
    background-image: -o-linear-gradient(top,#15551f,#006543);
	

    cursor: default;
    -webkit-box-shadow: 0 4px 6px -2px rgba(0,0,0,.5), inset 1px 1px 0 #fff;
       -moz-box-shadow: 0 4px 6px -2px -moz-rgba(0,0,0,.5), inset 1px 1px 0 #fff;
            box-shadow: 0 4px 6px -2px rgba(0,0,0,.5), inset 1px 1px 0 #fff;
    
    visibility: hidden;
    top: -9999em;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: opacity 250ms ease 250ms, max-height 500ms ease, visibility 0s linear 500ms, top 0s linear 500ms;
       -moz-transition: opacity 250ms ease 250ms, max-height 500ms ease, visibility 0s linear 500ms, top 0s linear 500ms;
        -ms-transition: opacity 250ms ease 250ms, max-height 500ms ease, visibility 0s linear 500ms, top 0s linear 500ms;
         -o-transition: opacity 250ms ease 250ms, max-height 500ms ease, visibility 0s linear 500ms, top 0s linear 500ms;
            transition: opacity 250ms ease 250ms, max-height 500ms ease, visibility 0s linear 500ms, top 0s linear 500ms;
    
    border: 1px solid #b3b3b3;
    border-color: rgba(0,0,0,0.3);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.accessible-megamenu .accessible-megamenu-panel.open {
    visibility: visible;
    top: 3em;
    max-height: 600px;
    opacity: 1;
    z-index: 1001;
    -webkit-transition: opacity 250ms ease, max-height 500ms ease, visibility 0s linear 0s, top 0s linear 0s;
       -moz-transition: opacity 250ms ease, max-height 500ms ease, visibility 0s linear 0s, top 0s linear 0s;
        -ms-transition: opacity 250ms ease, max-height 500ms ease, visibility 0s linear 0s, top 0s linear 0s;
         -o-transition: opacity 250ms ease, max-height 500ms ease, visibility 0s linear 0s, top 0s linear 0s;
            transition: opacity 250ms ease, max-height 500ms ease, visibility 0s linear 0s, top 0s linear 0s;
}

.accessible-megamenu .accessible-megamenu-panel a {
    display: inline-block;
    text-decoration: none;
    color: #f1f3f5; /*kolor elementu menu*/
	/*color: #006543;*/ /*stara wersja*/ /*kolor elementu menu*/
    /*font-weight: bold;*/ /*stara wersja*/
    text-decoration: none;
    margin-bottom: 0.5em;
}




.accessible-megamenu .accessible-megamenu-panel ol {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.accessible-megamenu .accessible-megamenu-panel ol > li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.accessible-megamenu .accessible-megamenu-panel > ol > li {
    float: left;
    display: block;
    margin-right: 1em;
    margin-bottom: 1em;
    padding-left: 1em;
    border-left: 1px solid rgba(0,0,0, 0.3);
    box-shadow: inset 1px 0 0 #fff;
}

.accessible-megamenu .accessible-megamenu-panel > ol > li:first-of-type {
    padding-left: 0;
    border-left: none;
    box-shadow: none;
}

.accessible-megamenu .accessible-megamenu-panel > p {
    color: #454545;
    
    line-height: 1.1em;
}

.accessible-megamenu .accessible-megamenu-panel > ol > li > h3 > a {
    font-weight: bold;
    color: #FFF; /*tytuł podmenu*/
	/*color: #454545;*/ /*tytuł podmenu*/ /*stara wersja*/
    
    margin-bottom: 6px;
    padding-top: .4em;
    padding-bottom: 0;
    line-height: 1.1em;
}

.accessible-megamenu .accessible-megamenu-panel ol ol > li > a {
    width: auto;
    /*text-indent: -2.333em;
    padding-left: 2.333em;*/ /*trzeci element po złamaniu tabulacja*/
}

.accessible-megamenu .accessible-megamenu-panel a:hover,
.accessible-megamenu .accessible-megamenu-panel a:focus {
    color: #FFF; /*kolor elementu po najechaniu*/ 
    /*color: #006543;*/ /*kolor elementu po najechaniu*/ /*stara wersja*/
    text-decoration: underline;   
}

.accessible-megamenu .accessible-megamenu-panel > ol > li > h3 > a:hover,
.accessible-megamenu .accessible-megamenu-panel > ol > li > h3 > a:focus {
    color: #FFF; /*kolor podmenu po najechaniu*/ 
	/*color: #333;*/ /*kolor podmenu po najechaniu*/ /*stara wersja*/
}

.accessible-megamenu .accessible-megamenu-panel hr {
    border-width: 1px 0px;
    border-style: solid;
    border-top-color: rgba(0,0,0, 0.3);
    border-bottom-color: #fff;
}

