/* Header */

#header {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: auto;
    overflow: hidden;
    font-size: 13px;
}

#header:has(.header-center) {
    min-height: 132px;
}

#header:not(:has(.header-center)) {
    min-height: 70px;
}

#header a {
    white-space: nowrap;
}

#logo {
    float: none;
    flex: 0 0 auto;
}

.header-center {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin-top: 62px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

#header #lang,
#header #links,
#header #search-box {
    float: none;
}

#header #lang {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

#lang span {
    margin-right: 10px;
}

#header #links {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

#links a {
    margin-right: 16px;
}

#links a:last-child {
    margin-right: 0;
}

#header #search-box {
    flex: 0 0 auto;
    height: 17px;
    width: 164px;
}

#header .search {
    font-size: 13px;
    height: 17px;
    width: 141px;
}

#header .search-bt {
    height: 17px;
    width: 17px;
}

.header-banner {
    float: none;
    flex: 0 0 auto;
}

/* Footer */

#footer-box {
    overflow: visible;
}

#footer-box #footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: auto;
    min-height: 48px;
    line-height: 1.2;
    font-size: 12px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    overflow: visible;
}

#footer-box #footer .f-left,
#footer-box #footer .f-center,
#footer-box #footer .f-right {
    float: none;
    white-space: nowrap;
}

#footer-box #footer .f-left {
    flex: 0 0 auto;
    width: auto;
    padding-left: 10px;
}

#footer-box #footer .f-center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}

#footer-box #footer .f-center a {
    margin-right: 15px;
    white-space: nowrap;
}

#footer-box #footer .f-center a:last-child {
    margin-right: 0;
}

#footer-box #footer .f-right {
    flex: 0 0 auto;
    line-height: 1.2;
    position: relative;
    overflow: visible;
}

#footer-box #footer select.linklist {
    width: 254px;
    font-size: 12px !important;
    margin: 0 !important;
    z-index: 2;
    cursor: pointer;
}

#footer-box #footer .select2 {
    width: 254px;
    height: auto;
    min-height: 18px;
    font-size: 12px !important;
    margin: 0;
    padding: 1px 22px 1px 2px;
    line-height: 1.2;
    box-sizing: border-box;
    pointer-events: none;
}

#footer-box #footer .select2 .customStyleSelectBoxInner {
    display: inline-block;
    width: 228px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

/* PDA */

#wrap > #footer {
    font-size: 12px;
}

#header:not(:has(.header-center)) #links {
    white-space: nowrap;
    font-size: 13px;
}
