header {
    background: linear-gradient(to bottom ,#FEFEFE 0, #F5F5F5 100%);
    border-bottom: 1px solid #EEE;
}

header section {
    display: table;
    width: 100%;
}

header section > div {
    display: table-cell;
    vertical-align: top;
}

header section > div.logo { width: 292px; }

header section > div.logo a {
    display: inline-block;
    padding: 5px 0;
}

header section > div.history { min-width: 150px; }

header section > div.mgOffers { width: 50px; }
header section > div.mgBasket { width: 50px; }

header .mgOffers a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(../../svg/header/offer.svg);
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    margin: 10px;
}

header .mgBasket a.active,
header .mgOffers a.active {
    opacity: 0.6;
    cursor: pointer;
}

header .mgBasket a em,
header .mgOffers a em {
    font-style: normal;
    line-height: 14px;
    width: 14px;
    font-size: 9px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;

    background-color: red;
    color: #FFF;
    font-weight: bold;
}

header .mgBasket a em { margin: 2px 10px 0 6px; }

header .mgOffers a em { margin: 2px 0px 0 16px; }

header .history .autos {
    background-image: url(../../svg/car.svg);
}

header .history .vin {
    background-image: url(../../svg/parts.svg);
}

header .history .autos,
header .history .vin {
    padding: 5px 15px 5px 30px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 24px 24px;
    cursor: pointer;
    display: inline-block;
    background-color: #008adb;
    color: #FFF;
    border-radius: 4px;
    margin-right: 2px;
    line-height: 18px;
    text-decoration: none;
    position: relative;
}

header .history .autos:hover,
header .history .vin:hover {
    background-color: #0b4887;
}

header .history .autos > div,
header .history .vin > div {
    display: none;
}

header .history .autos:hover > div,
header .history .vin:hover > div {
    display: block;
    position: absolute;
    left: 0;
    top: 32px;
    background-color: #FFF;
    border: 1px solid #CCC;
    padding: 10px;
    z-index: 1;
}

header .history .autos:hover > div:before,
header .history .vin:hover > div:before {
    content: '';
    width: 10px;
    height: 10px;
    transform: rotate(-45deg);
    background-color: #FCFCFC;
    position: absolute;
    top: -6px;
    left: 10px;
    border-right: 1px solid #D1D1D1;
    border-top: 1px solid #D1D1D1;
}

header .history .autos:hover > div:after,
header .history .vin:hover > div:after {
    content: '';
    width: 100%;
    height: 10px;
    position: absolute;
    top: -6px;
    left: 0;
}

header .history .autos > div a,
header .history .vin > div a {
    display: block;
    white-space: nowrap;
    padding: 5px;
}

header .subnav {
    background-color: #FFF;
    padding: 5px;
    border-top: 1px solid #EEE;
}

header .subnav a {
    display: inline-block;
    padding: 7px 10px;
    font-weight: bold;
    text-decoration: none;
}

header .subnav a.disabled { display: none; }

header .subnav section > div:last-child { text-align: right; }

header .subnav section > div:last-child strong {
    display: inline-block;
    vertical-align: top;
    margin: 7px 15px 0 0;
}