@import url("keeps.css");

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */
/* CUSTOM DESIGN - C.M. Ponte da Barca                                                */
/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

@font-face {
    font-family: "HelveticaLight";
    font-size: normal;
    font-weight: normal;
    src: url("../keeps/fonts/HelveticaLTStd-Light.otf") format("opentype");
}



/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* RESET                                                                                                                   */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

body {
    height: initial !important;
    /* background-color: #f7fae3; */
}

.font-bold {
    font-weight: bold;
    display: inline;
}

.spanBr {
    margin-left: 0px !important;
    margin-right: 0px !important;
    display: block;
}

.span--small-height {
    min-height: 20px !important;
}


#opac-main {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
}

#opac-main a,
#opac-main a:visited {
    color: #5c656c;
}

#opac-main .cc-cookies a {
    color: #fff;
}

/* #opac-main .ui-tabs .ui-state-default a,
#opac-main .ui-tabs .ui-state-default a:link,
#opac-main .ui-tabs .ui-state-default a:visited {
    color: #135355;
} */

#wrap {
    min-height: 0;
}


/* tooltip */

.tooltip-keeps {
    background-image: url(/opac-tmpl/bootstrap/images/keeps/header/menu-account.png);
    background-size: 15px 16px;
    width: 15px;
    height: 46px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 14px;
    color: #5c656c;
    text-transform: none;
}

.tooltip-keeps .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 111%;
    left: 50%;
    margin-left: -64px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.tooltip-keeps .tooltiptext:lang(en) {
    margin-left: -75px;
}


.tooltip-keeps .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.tooltip-keeps .tooltiptext::before {
    content: "";
    position: absolute;
    top: 101%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #dfdfdf transparent transparent transparent;
}

.tooltip-keeps:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext {
    left: 13%;
}

.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext:lang(en) {
    left: 37%;
}

.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext::after,
.main-menu__li--user-account-not-logged .tooltip-keeps .tooltiptext::before {
    left: 80%;
}


/* END tooltip */


/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* HEADER                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* LOGIN BAR                                                                                                               */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#header {
    height: 231px;
    position: relative;
    background-color: #415DAB;
}

#header .loginbar .logobar {
    display: inline-block;
    width: 100%;
}

#header .logos {
    display: inline-block;
}

#header .logos img {
    margin-left: 2rem;
    margin-top: 33px;
}

#header .logo1 {
    display: inline-block;
}

#header .cartlabel {
    display: none;
}

#header .navbar-inner .nav--separator {
    line-height: 50px;
    font-size: 17px;
    color: #FFFFFF;
    display: none;
}

#header .loginbar .logo1 a:hover,
#header .loginbar .logo1 a:focus {
    text-decoration: none;
}

#header .loginbar .navbar-inner .pull-right {
    margin-right: 30px;
    margin-bottom: -18px;
}

#header .loginbar .pull-right a {
    padding: 0 2px;
    text-transform: uppercase;
    line-height: 46px;
}

#header .loginbar.navbar {
    margin-bottom: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    bottom: 6px;
    right: 0px;
    z-index: 1;
    float: right;
}

#header .loginbar .navbar-inner {
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-top: -5px;
}

#carticon {
    background-image: url(../../images/keeps/header/cart.svg);
    background-size: 19px 19px;
    width: 25px;
    height: 24px;
    background-position: 0px 0px;

}

#cartDetails {
    position: absolute !important;
    top: 53px !important;
    right: 0px !important;
    left: unset !important;
}

#basketcount {
    margin-left: -12px;
    margin-right: 10px;
}

#basketcount span {
    background-color: #FFFFFF;
    color: #000000;
    display: inline;
    font-size: 80%;
    font-weight: normal;
    margin: 0 0 0 .5em;
    padding: 0.05em .4em 0.05em .4em;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}


#header .loginbar svg {
    -webkit-fill: #ffffff;
    fill: #ffffff;
}

a#cartmenulink {
    background-color: unset;
}

a#cartmenuitem {
    padding: 0 10px !important;
}

a#cartmenuitem:hover {
    background-color: #294499;
    background-image: unset;
    color: #fff;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* MENUBAR                                                                                                                 */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#header .main-menu {
    margin-top: 15px;
    font-size: 13px;
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: #294499;
    min-height: 38px;
}

.main-menu__div--container {
    height: 100%;
    float: right;
    margin-right: 35px;
}

.main-menu__ul {
    list-style: none;
    height: 100%;
    margin: 0;
}

.main-menu__li {
    float: left;
    display: flex;
    min-height: 38px;
    box-sizing: border-box;
}

#opacheader .main-menu__li:after {
    content: " | ";
    color: #fff;
    display: flex;
    align-self: center;
}

#opacheader .main-menu__li--opac-most-popular:after {
    content: "";
}


.main-menu__li:hover a {
    color: #ffffff !important;
}

.main-menu__li a {
    color: #fff !important;
    padding: 0px 8px 0px 8px;
    /* text-decoration: none; */
    width: 100%;
    display: flex;
    align-items: center;
}


.main-menu__li.active a {
    color: #ffffff !important;
}

.main-menu__li--user-account a {
    height: 46px;
}

.main-menu__li--user-account .tooltip-keeps {
    display: inline-block;
    vertical-align: middle;
}

.main-menu__li--logout a {
    color: #fff !important;
    /* font-family: 'Lucida-Sans', sans-serif; */
    font-size: 14px;
    text-transform: none !important;
    text-shadow: none !important;
    margin-left: 6px;
    /* margin-top: 2px; */
}

.mobile-button {
    display: none;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* SEARCH                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

#wrap>.container-fluid {
    /* max-width: 1112px; */
    margin: 0 !important;
    background-color: #DEF4FF;
    width: 100%;
}


#wrap>.container-fluid:last-child {
    background-color: #fff;
}

#opac-main-search .span12 {
    max-width: 1112px;
    margin: 0 auto;
}


#opac-main-search {
    padding: 50px 0 0 0;
    max-width: 1112px;
    margin: auto;
}

#opac-main-search .mastheadsearch {
    margin-bottom: 50px;
}

.opac-main-search__title {
    /* font-family: 'Trebuchet-MS', sans-serif; */
    font-family: 'HelveticaLight';
    font-size: 34px;
    font-weight: normal;
    color: #281C23;
    line-height: 1em;
    margin-left: -3px;
    margin-bottom: 20px;

}


#opac-main-search .searchsubmit {
    background-color: #ffffff !important;
    /* font-family: 'Open Sans', sans-serif; */
    font-size: 114.285%;
    /* 16px; */
    border: 1px #294499 solid;
    border-left: none;
}

#opac-main-search .searchsubmit:hover,
#opac-main-search .searchsubmit:focus {
    color: white !important;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

#opac-main-search input#translControl1 {
    border: 1px #294499 solid;
    border-left: none;
    /* width: 548px; */
    width: 64%;
    background-color: #ffffff;
    border-right: none;
}

#opac-main-search select {
    font-size: 16px;
    background: #294499 url(../../images/keeps/icon_angle_down/white_08.svg) no-repeat scroll;
    background-position: right 10px top 50%;
    background-size: 20px 20px;
}

#opac-main-search select:hover,
#opac-main-search select:focus {
    font-size: 16px;
    background: #294499 url(../../images/keeps/icon_angle_down/white.svg) no-repeat scroll;
    background-position: right 10px top 50%;
    background-size: 20px 20px;
}

#opac-main-search select:hover,
#opac-main-search select:focus {
    color: white;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

#opac-main-search #select_library {
    width: 212px;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* MAIN USER BLOCK                                                                                                         */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

div.main {
    max-width: 1112px !important;
    margin: 0 auto !important;
    float: none !important;
}

.main__blocks-title {
    font-family: 'HelveticaLight';
    font-size: 22px;
    color: #28262A;
    line-height: 22px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: #294499 2px solid;
    width: 100%;
    margin-bottom: 20px;
}

.main__div--space-top {
    margin-top: 100px;
}

.main__div--space-bottom {
    margin-bottom: 30px;
}

/*** news ***/

#news {
    border: none;
    margin-top: 25px;
    color: #444444;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.newsheader {
    border: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
    margin-top: 1em;
    line-height: 1em;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0;
}

.newsbody {
    margin-top: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 0;
    opacity: 0.8;
    font-size: 14px;
}

.newsfooter {
    border: none;
    margin-bottom: 2em;
    font-size: 9px;
    margin-top: -2em;
    padding: 0px;
    padding-left: 0px;
    font-style: normal;
}

#rssnews-container {
    display: none;
}

.newsitem {
    box-sizing: border-box;
    flex: 1 0 50%;
    max-width: 50%;
}

.newsitem:nth-child(odd) {
    border-right: 20px #fff solid;
}

.newsitem:nth-child(even) {
    border-left: 20px #fff solid;
}


/*** last documents ***/

iframe {
    height: 240px;
}

#opac-lastdocuments {
    overflow: hidden;
}

.lastdocuments .record .record_thumbnail img {
    transition: transform .5s;
    -webkit-transition: transform .5s;
    -moz-transition: transform .5s;
    -ms-transition: transform .5s;
    -o-transition: transform .5s;
}

.lastdocuments .record .record_thumbnail img:hover {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    height: 240px;
}


#opac-lastdocuments>.slick-slider {
    margin-left: -8px;
}

/* section2 -------------------------------------*/

/* useful-links */

.useful-links__container {
    font-size: 11px;
    margin-bottom: 20px;
}

.useful-links__image-container {
    height: 45px;
}

.useful-links__image-container img {
    height: 100%;
    width: auto;
}

/* END useful-links */

/*END section2 ----------------------------------*/


/* section3 -------------------------------------*/

.main-section3__image {
    text-align: center;
}

/* END section3 ----------------------------------*/
/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* FOOTER                                                                                                                  */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/*** credits ***/

#changelanguage {
    width: 100%;
    bottom: 0;
    background-color: #415DAB;
    margin-left: unset;
}

.firstfooter {
    min-height: 114px;
    margin: 0 auto;
    max-width: 1112px;
    color: rgba(255, 255, 255, 0.8);
}


.firstfooter__div--container {
    display: flex;
    flex-wrap: wrap;
    min-height: 114px;
    align-items: center;
}

.firstfooter__div--container a {
    margin-right: 20px;
}


#changelanguage a {
    color: rgba(255, 255, 255, 0.8);
}

#changelanguage a:hover,
#changelanguage a:focus,
#changelanguage a:visited {
    text-decoration: none;
    color: white;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

/*** language ***/

#changelanguage .navbar-inner {
    background-color: #294499;
    min-height: 40px;
    padding: unset;
}

.keep img {
    background: none;
    height: 28px;
    width: 150px;
    margin-top: 4px;
}

.keep:hover,
.keep:focus {
    opacity: 0.75;
    transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
}

#i18nMenu {
    margin: 4px 11px 0 28px;
}

#changelanguage .navbar-inner .floatRight {
    margin-right: 2.01rem;
}

.w3c__container {
    float: left;
}

div#changelanguage .w3c-html {
    background: url("../../images/keeps/footer/w3c_html.png") no-repeat;
    height: 31px;
    width: 88px;
    margin: 10px 5px 0 0;
    display: inline-block;
}

div#changelanguage .w3c-css {
    background: url("../../images/keeps/footer/w3c_css.png") no-repeat;
    height: 31px;
    width: 88px;
    margin: 10px 5px 0 0;
    display: inline-block;
}

div#changelanguage .w3c-AA {
    background: url("../../images/keeps/footer/w3c_AA.png") no-repeat;
    height: 31px;
    width: 88px;
    margin: 10px 10px 0 0;
    display: inline-block;
}

#keep_white_en,
#keep_white_pt-PT {
    margin-top: 10px;
}

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

/* RESPONSIVE                                                                                                              */

/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

@media only screen and (max-width: 1212px) {
    .firstfooter {
        margin: auto !important;
    }
}

@media only screen and (max-width: 1130px) {

    #header .header-contacts>span:last-of-type {
        margin-right: 2rem;
    }

    .main-menu__div--container {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    #wrap>.container-fluid {
        /* margin-left: 2rem; */
        /* margin-right: 2rem; */
    }

    div.main {
        margin: 0 2rem !important;
    }

    #lastdocuments .wrapper {
        max-width: 1012px;
        margin-left: 10px;
    }

    .firstfooter {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }

    #opac-main-search {
        padding: 50px 0 0 32px;
    }

    #opac-main-search input#translControl1 {
        width: 58%;
    }

    #i18nMenu {
        margin-left: 2rem;
    }

}

@media only screen and (max-width: 1033px) {
    .en #header .header-contacts span {
        float: right;
        clear: both;
        margin-right: 2rem;
    }

    .en #header .header-contacts .js-text-lang-pt_PT:first-of-type,
    .en #header .header-contacts>span .js-text-lang-en {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 979px) {

    #header #carticon {
        display: inline-block;
    }

    #opac-main-search {
        padding: 50px 32px 0 32px !important
    }

    #opac-main-search #masthead_search,
    #opac-main-search #select_library {
        width: 100%;
    }

    #opac-main-search input#translControl1 {
        border: 1px solid #ccc;
        border-radius: 4px !important;
        width: 99.7% !important;
        margin-left: 0 !important;
        text-indent: 11px;
    }

    #opac-main-search .searchsubmit {
        border: none;
        border-radius: 4px !important;
        background-color: #294499 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: normal;
        text-transform: uppercase;
        font-size: 14px;
        text-shadow: none;
        width: 100%;
        max-width: 100%;
        float: right;
        margin-right: 0;
    }

    #opac-main-search .searchsubmit:hover,
    #opac-main-search .searchsubmit:focus {
        color: #FFFFFF !important;
    }

    #opac-main-search .searchsubmit img {
        display: none;
    }

    #opac-main-search input#translControl1,
    #opac-main-search #masthead_search,
    #opac-main-search .input-append {
        display: inline-block !important;
    }

    #opac-main-search input#translControl1,
    #opac-main-search #masthead_search,
    #opac-main-search #select_library,
    #opac-main-search .searchsubmit {
        margin-top: 10px;
    }

    #opac-main-search .input-append {
        width: 100%;
    }

    #opac-main-search #select_library {
        float: left;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

@media only screen and (max-width: 969px) {

    .newsitem {
        flex: 1 0 100%;
        max-width: unset;
    }

    .newsitem:nth-child(even) {
        border-left-width: 0px;
        border-bottom-width: 20px;
    }

    .newsitem:nth-child(odd) {
        border-right-width: 0px;
        border-bottom-width: 20px;
    }
}

@media only screen and (max-width: 899px) {

    #header .header-contacts span,
    .header-contacts_div {
        float: right;
        clear: both;
        margin-right: 2rem;
    }

    #header .header-contacts .js-text-lang-pt_PT:first-of-type,
    #header .header-contacts>span .js-text-lang-en {
        margin-right: 0px;
    }

}

@media only screen and (max-width: 767px) {

    .firstfooter {
        padding: 1rem 2rem 1rem 2rem;
        margin: 0 !important;
    }

    .main__div--space-top {
        margin-top: 10px;
    }
}

@media only screen and (max-width: 720px) {

    /* mobile menu */

    .main-menu {
        height: 0px;
        transition: width 1s, opacity 1s;
        -webkit-transition: width 1s, opacity 1s;
        -moz-transition: width 1s, opacity 1s;
        -ms-transition: width 1s, opacity 1s;
        -o-transition: width 1s, opacity 1s;
        margin-top: 0px !important;
        font-size: 12px;
        position: absolute;
        top: 0px;
        opacity: 0.50 !important;
        width: 55% !important;
        right: 0;
        min-height: unset !important;
    }

    .main-menu__div--container {
        overflow: hidden;
        float: unset;
    }

    .js-main-menu--mobile_active {
        opacity: 0.97 !important;
        height: 100%;
        background-color: #294499 !important;
        width: 58% !important;

    }

    .main-menu__ul {
        display: none;
    }

    .js-main-menu__ul--mobile_active {
        display: block;

    }

    .main-menu__li {
        float: unset;

    }

    .main-menu__li a {
        text-decoration: none;
    }

    .main-menu__li:hover {
        background-color: rgba(0, 0, 0, .2);
    }

    #header .loginbar.navbar {
        position: absolute;
    }

    #opacheader .main-menu__li::after,
    #opacheader .main-menu__li--opac-most-popular:after {
        content: unset;

    }


    /* button */

    .mobile-button {
        width: 33px;
        height: 28px;
        display: inline-flex;
        position: absolute;
        right: 32px;
        top: 21px;
        cursor: pointer;
        justify-content: center;
        border-radius: 4px;
    }

    .mobile-button::before {
        content: "";
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 4px;
        position: absolute;
        transition: transform .3s ease-out;
        -webkit-transition: transform .3s ease-out;
        -moz-transition: transform .3s ease-out;
        -ms-transition: transform .3s ease-out;
        -o-transition: transform .3s ease-out;
    }

    .mobile-button__line {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 12px;
        position: absolute;
    }

    .mobile-button::after {
        content: "";
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin-top: 20px;
        position: absolute;
        transition: transform .3s ease-out;
        -webkit-transition: transform .3s ease-out;
        -moz-transition: transform .3s ease-out;
        -ms-transition: transform .3s ease-out;
        -o-transition: transform .3s ease-out;

    }

    .js-mobile-button--active::before {
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        background-color: #fff;
        margin-top: 13px;
    }

    .js-mobile-button--active::after {
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        background-color: #fff;
        margin-top: 13px;
    }

    .js-mobile-button--active .mobile-button__line {
        opacity: 0;
    }

    .mobile-button.js-mobile-button.js-mobile-button--active {
        border: unset;
        background-color: unset;
    }

    /* END BUTTON */

    /* END mobile menu */


}

@media only screen and (max-width: 660px) {
    .w3c__container {
        clear: both;
        margin-left: 2rem;
    }
}

@media only screen and (max-width: 540px) {


    #header .header-contacts,
    #header .header-contacts ul {
        font-size: 13px;
    }

}

@media only screen and (max-width: 530px) {

    #header .loginbar a {
        font-size: 100%;
    }

    #changelanguage .navbar-inner .floatRight {
        float: right;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-right: 28px;
        width: unset;
        margin-left: 0;
    }

    #i18nMenu {
        margin-left: 2rem !important;
        margin-top: unset !important;
    }
}

@media only screen and (max-width: 494px) {
    .en #header .header-contacts {
        display: none;
    }
}


@media only screen and (max-width: 460px) {

    #header .logos,
    #header .logo1 {
        display: block;
    }

    #header .logos img {
        width: 77%;
        margin: 0 auto;
        display: block;
        padding-top: 49px;
    }

    .main-menu {
        width: 85% !important;
    }

    .js-main-menu--mobile_active {
        width: 100% !important;

    }
}


@media only screen and (max-width: 440px) {
    #header #changelanguage .navbar-inner .floatRight {
        float: left;
        clear: both;
        margin-left: 2rem;
    }

    #changelanguage .navbar-inner .floatRight {
        float: left;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 32px;
        width: unset;
        clear: both;
    }
}

@media only screen and (max-width: 396px) {

    #header {
        height: 203px;
    }
}

@media only screen and (max-width: 320px) {

    .opac-main-search__title {
        font-size: 128.571% !important;
    }

    #i18nMenu li:nth-last-child(2) {
        display: none;
    }
}


/* hack internet explorer */

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .main-menu__li {
        height: 38px;

    }

    select#masthead_search::-ms-expand,
    select#select_library::-ms-expand {
        display: none;
    }

    a#cartmenulink {
        background-color: transparent;
    }

    .firstfooter__div--container{
        height: 114px;
    }

}

@media all and (-ms-high-contrast: active) and (max-width: 720px),
all and (-ms-high-contrast: none) and (max-width: 720px) {

    #header .main-menu {
        left: auto;
    }

    .main-menu {
        opacity: 0 !important;
    }

    .main-menu__li {
        float: none;
    }

    .main-menu__div--container {
        float: none;
    }

    .js-main-menu--mobile_active {
        opacity: 0.97 !important;
    }

    #opacheader .main-menu__li::after,
    #opacheader .main-menu__li--opac-most-popular:after {
        content: none;
    }

}

/*END hack internet explorer */

/* hack Edge */
@supports (-ms-ime-align:auto) {

    a#cartmenulink {
        background-color: transparent;
    }

    select#masthead_search::-ms-expand,
    select#select_library::-ms-expand {
        display: none;
    }

    @media all and (max-width: 720px) {
        #header .main-menu {
            left: auto;
        }

        .main-menu {
            opacity: 0 !important;
        }

        .main-menu__li {
            float: none;
        }

        .main-menu__div--container {
            float: none;
        }

        .js-main-menu--mobile_active {
            opacity: 0.97 !important;
        }

        #opacheader .main-menu__li::after,
        #opacheader .main-menu__li--opac-most-popular:after {
            content: none;
        }
    }
}

/*END hack Edge */