/* Always show vertical scrollbar to prevent design from "shifting" */
html {
    overflow-y: scroll;
}

/* Adjust header */
.logo-wrapper {
    font-size: 1.2em;
    font-weight: bold;
}

.logo-wrapper img.logo-logo {
    max-height: 2.4em;
    margin-top: -1.2em;
    margin-bottom: -1.2em;
}

.logo-wrapper img.logo-icon {
    height: 0.9em;
    vertical-align: text-top;
}

@media screen and (max-width: 479px) {
    .mainmenu li.logo-wrapper a {
        border-right: none;
        padding: 15px 0;
    }

    .mainmenu > ul > li > a {
        padding: 1em 0;
    }

    .mainmenu > ul > li:not(.logo-wrapper):not(:last-child) {
        display: none;
    }
}

/* Adjust footer */
.footer {
    padding: inherit;
}

.footer-copyright,
.footer-links {
    border: none;
    text-align: right;
    padding-bottom: 10px;
    padding-top: 10px;
}

.footer-notice {
    border-bottom: 1px dotted #7C7C7C;
    font-size: 0.8em;
    padding-bottom: 10px;
    padding-top: 10px;
    text-align: justify;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

/* Adjust item layout */
.shop-item .image {
    position: relative;
    margin: 10px;
    height: 220px;
}

.shop-item .image img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    min-width: 50%;
}

.shop-item .ribbon-wrapper {
    top: -8px;
    right: -8px;
}

.shop-item .price-ribbon {
    font: 13px Sans-Serif;
}

.shop-item .price small {
    font-size: 0.6em;
    color: #7C7C7C;
}

.shop-thumb {
    max-height: 40px;
    max-width: 120px;
}

.blog-sidebar h4 {
    margin-top: 40px;
}
.blog-sidebar h4:first-child {
    margin-top: 20px;
}
.blog-sidebar.blog-sidebar-top {
    margin-bottom: 40px;
}
.blog-sidebar.blog-sidebar-bottom {
    margin-bottom: 10px;
    margin-top: 40px;
}
.blog-sidebar li.active {
    font-weight: bold;
}

/* Adjust pagination */
.pagination > li > a:hover,
.pagination > li > a:focus {
    color: #666666;
}
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: #666666;
    border-color: #666666;
}

/* Adjust shop layout */
.post-more {
    padding: 10px 20px 20px 20px;
}

.post-image {
    padding: 20px 20px 10px 20px;
}

/* Read more */
span.rm + div {
    display: inline-block;
}
span.rm + div:before {
    content: "[";
    padding-left: 5px;
}
span.rm + div:after {
    content: "]";
}

/* Misc */
.additional-data {
    font-size: 0.8em;
    line-height: 1.6em;
}

.alert {
    margin-top: 0;
    margin-bottom: 30px;
}

.space-20 {
    margin: 20px;
}

.form-horizontal .control-label {
    text-align: left;
}
.infobox{
    font-size: small;
}

.infolink{
    display: inline;
    float: right;
}
.infolink .infobox{
    visibility: hidden;
    position: absolute;
    left: -99em;
    margin-top: 1.5em;
    padding: 1em;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.8em;

}
.infolink:hover .infobox{
    visibility: visible;
    left: 50%;

    border-radius: 5px;
    background: white;
    -webkit-box-shadow: inset 0 1px #fff, 0 0 8px #c8cfe6;
    -moz-box-shadow: inset 0 1px #fff,0 0 8px #c8cfe6;
    box-shadow: inset 0 1px #fff, 0 0 8px #c8cfe6;
    z-index: 10;
}