/*
 * Compatibility layer for the archived fixed-width layout.
 * It does not affect the original desktop geometry at widths above 1000px.
 */
@media (max-width: 1000px) {
    html, body {
        min-width: 0;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .box {
        box-sizing: border-box;
        width: 100%;
        max-width: 978px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #header {
        box-sizing: border-box;
        height: auto;
        min-height: 146px;
        padding-top: 12px;
    }

    #header_left {
        box-sizing: border-box;
        float: none;
        width: 100%;
    }

    #logo {
        box-sizing: border-box;
        float: none;
        width: min(426px, 100%);
        padding-top: 6px;
    }

    #logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    #language_bar {
        box-sizing: border-box;
        display: inline-block;
        position: static;
        clear: both;
        width: auto;
        max-width: 100%;
        margin: 8px 0;
        padding-left: 0;
    }

    .olaHotline {
        box-sizing: border-box;
        position: static;
        clear: both;
        width: 100%;
        margin-top: 4px;
    }

    #service {
        box-sizing: border-box;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        min-height: 142px;
        margin-top: 8px;
        padding: 18px 12px 12px 118px;
        background-color: #efefef;
    }

    #girl {
        left: 0;
        top: 8px;
    }

    #navigation {
        height: auto;
        min-height: 40px;
        overflow: hidden;
        background-color: #be1e2d;
        background-repeat: repeat-x;
    }

    #navigation ul {
        display: flex;
        flex-wrap: wrap;
    }

    #navigation li {
        box-sizing: border-box;
        flex: 1 1 25%;
        min-width: 145px;
    }

    #navigation li a {
        box-sizing: border-box;
        padding: 0 14px;
        text-align: center;
    }

    #login {
        float: none;
        clear: both;
        margin: 4px auto;
    }

    #showcase,
    #showcase_home {
        float: none;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    #showcase_left,
    #showcase_left.inner,
    #showcase_right {
        box-sizing: border-box;
        float: none;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    #showcase_left img {
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        height: auto;
        padding-right: 0;
    }

    #showcase_right {
        padding: 18px 20px;
    }

    #form {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 463px;
        min-height: 190px;
        margin: 0 auto;
        padding-right: 12px;
        background-size: 100% 100%;
    }

    #form .row {
        box-sizing: border-box;
        display: flex;
        float: none;
        width: 100%;
        clear: both;
    }

    .row label {
        flex: 0 0 80px;
    }

    .row .input {
        box-sizing: border-box;
        flex: 1 1 auto;
        width: auto;
    }

    h1.feature {
        margin-top: 0;
        padding: 22px 18px;
        font-size: 26px;
    }

    .common,
    .common.none {
        box-sizing: border-box;
        float: none;
        width: 312px;
        max-width: 100%;
        margin: 15px auto 10px;
    }

    #leftcol,
    #leftcol_in,
    #rightcol_in,
    #bigformblock {
        box-sizing: border-box;
        float: none;
        width: 100%;
        margin-left: 0;
    }

    #rightcol {
        float: none;
        width: 306px;
        max-width: 100%;
        margin: 0 auto;
    }

    #list {
        box-sizing: border-box;
        float: none;
        width: auto;
        max-width: 100%;
        margin-left: 0;
    }

    .detail_bottom {
        box-sizing: border-box;
        max-width: 100%;
    }

    .fullWidthCol {
        overflow-x: auto;
    }

    body.returning-customer .fullWidthCol table,
    body.returning-customer .fullWidthCol tbody,
    body.returning-customer .fullWidthCol tr,
    body.returning-customer .fullWidthCol td {
        box-sizing: border-box;
        display: block;
        width: 100%;
    }

    body.returning-customer .fullWidthCol td {
        padding-left: 0 !important;
    }

    .GoLoanInterior {
        box-sizing: border-box;
    }

    .GoLoanInterior img {
        max-width: 100%;
        height: auto;
    }

    #footer_left,
    #footer_right {
        box-sizing: border-box;
        float: none;
        width: 100%;
    }

    #footer_right {
        text-align: center;
    }

    #footer_navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    #footer_navigation li {
        float: none;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .box {
        padding-left: 8px;
        padding-right: 8px;
    }

    #header {
        min-height: 0;
    }

    #language_bar {
        margin-bottom: 4px;
    }

    .olaHotline {
        padding: 7px 8px;
        font-size: 10px;
    }

    #navigation li {
        flex-basis: 50%;
        min-width: 0;
    }

    #navigation li a {
        padding: 0 5px;
        font-size: 12px;
    }

    #showcase_right {
        padding: 16px 10px;
    }

    #showcase_right h2 {
        font-size: 19px;
    }

    #form h3 {
        font-size: 18px;
    }

    h1.feature {
        padding: 18px 12px;
        font-size: 22px;
    }

    #container h1 strong {
        font-size: 20px;
    }

    #service {
        padding-left: 106px;
        font-size: 11px;
    }

    #service strong {
        font-size: 17px;
    }

    #girl {
        left: 0;
        transform: scale(.8);
        transform-origin: left top;
    }
}
