html {
    position: relative;
    min-height: 100%;
}

body {
    margin-top: 70px;
    margin-bottom: 76px;
}

.darkgray {
    color: #666666;
}

.advanced-search {
    padding: 4px;
}

form label.error {
    /* remove the next line when you have trouble in IE6 with labels in list */
    clear: left;
    font-style: italic;
    color: #b94a48;
}

form .error select {
    border-color: #b94a48;
    color: #b94a48;
}

#acceptForm .contactDetails {
    margin-bottom: 5px;
}

#acceptForm .location {
    margin-bottom: 5px;
}

#acceptForm .zipCodeAndCity {
    margin-bottom: 15px;
}

#acceptForm small {
    font-size: 10px;
}

.validcheckbox {
    background: url(../images/valid.png) no-repeat;
    padding-left: 30px;
}

.relative {
    position: relative;
}

.ad-ribbon {
    background: url(../images/replacement-car-ribbon.png) no-repeat;
    width: 50px;
    height: 109px;
    position: absolute;
    top: -16px;
    left: 7px;
}

    .ad-ribbon:lang(de) {
        background: url(../images/replacement-car-ribbon.de.png) no-repeat;
    }

.ad-booked {
    background-position: -50px 0px !important;
}

.ad-booked-by-me {
    background-position: -100px 0px !important;
}

.ad-bought-by-me {
    background-position: -150px 0px !important;
}

.error input,
.error select {
    border: 2px solid #F00;
}

hr {
    border-top: 1px #CCC solid;
    border-bottom: 0px;
    margin: 10px 0 10px;
}

span.discountedPrice {
    color: #f89406;
}

.alert-error h2 {
    font-size: 22px;
    margin: 0px;
}

.model-information strong.model-name {
    color: #0088cc;
}

.model-information:hover strong.model-name {
    color: #005580;
    text-decoration: underline;
}

.hover {
    background: #f5f5f5;
}

@keyframes spinner {
    to {
        -ms-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.spinner {
    position: relative;
}

    .spinner:before {
        content: '';
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2em;
        height: 2em;
        margin-top: -1em;
        margin-left: -1em;
        -ms-border-radius: 50%;
        border-radius: 50%;
        border: 2px solid #ccc;
        border-top-color: #333;
        -ms-animation: spinner .6s linear infinite;
        -webkit-animation: spinner .6s linear infinite;
        animation: spinner .6s linear infinite;
    }

.reimbursementBox, #replacementCarAdsListContainer {
    background-color: #fff;
}

#buttonsRow a {
    margin-left: 5px;
}


/* SE-904 styling */
.modal.faded {
    z-index: 1040;
}

.modal.confirm-modal {
    top: 20%;
}

    .modal.confirm-modal h4 {
        padding: 2%;
    }

.modal.modal-small.confirm-modal {
    margin-top: 145px;
}
/* SE-904 styling ... END*/


@media (min-width:481px) {
    #acceptForm .help-block {
        width: 160px;
        text-align: right;
    }
}

@media (min-width: 660px) {
    #acceptForm .control-label, #acceptForm .help-block {
        width: 300px;
        padding-right: 20px;
    }

    #acceptForm .controls label.error {
        margin-left: 140px;
    }
}

@media (max-width: 979px) {
    body {
        margin-top: 0;
    }

    footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        overflow: hidden;
    }

    .navbar-fixed-bottom {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    footer {
        margin-left: -20px;
    }
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 767px) {
    .nav-collapse,
    .nav {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
    }

    .btn-navbar {
        display: none !important;
    }
}

.navbar .faq-trigger {
    font-weight: bold !important;
    font-size: 1.15em !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    background-color: #d9edf7 !important;
    color: #31708f !important;
    display: inline-block !important;
}

.navbar .nav-collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    position: static !important;
}

.navbar .nav {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center horizontally in navbar */
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
    overflow: visible;
}

    .navbar .nav > li {
        flex-shrink: 0;
        min-width: 0;
    }

    .navbar .faq-trigger,
    .navbar .nav .faq-trigger {
        font-weight: bold;
        font-size: 1.15em;
        padding: 6px 16px;
        border-radius: 6px;
        background-color: #d9edf7;
        color: #31708f;
        display: inline-block;
        white-space: nowrap;
        border: none;
        box-shadow: none;
        align-self: center; /* Vertically center the button itself */
    }

.navbar-inner .container {
    display: flex;
    align-items: center; /* Vertically center all children */
    justify-content: flex-start; /* Align brand/logo left */
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    flex-wrap: nowrap;
    overflow: visible;
}

.navbar .brand {
    display: flex;
    align-items: center;
    margin-right: 32px;
    flex: 0 0 auto; /* Prevent growing */
}

.navbar .nav-collapse {
    display: flex;
    flex: 1 1 0;
    justify-content: center; /* Center menu horizontally */
    align-items: center; /* Center menu vertically */
}

.navbar .nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Center menu items horizontally */
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
    overflow: visible;
}

    .navbar .nav > li {
        flex-shrink: 0;
        min-width: 0;
    }

    .navbar .faq-trigger,
    .navbar .nav .faq-trigger {
        font-weight: bold;
        font-size: 1.15em;
        padding: 6px 16px;
        border-radius: 6px;
        background-color: #d9edf7;
        color: #31708f;
        display: inline-block;
        white-space: nowrap;
        border: none;
        box-shadow: none;
        align-self: center;
    }

@media (max-width: 767px) {
    .navbar-inner .container {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .navbar .brand {
        margin-bottom: 8px;
    }

    .navbar .nav-collapse {
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
    }

    .navbar .nav {
        flex-direction: column;
        width: 100%;
        gap: 2px;
        justify-content: flex-start;
        align-items: stretch;
    }

        .navbar .nav > li {
            width: 100%;
        }
}
#custom-cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    left: auto;
}

.custom-cookie-popup {
    pointer-events: auto;
    padding: 32px 32px 24px 32px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    min-width: 400px;
    max-width: 520px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

.custom-cookie-header {
    font-size: 1.25em;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.custom-cookie-body {
    font-size: 1em;
    color: #333;
    margin-bottom: 20px;
}

.custom-cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-cookie-btn {
    border-radius: 6px;
    font-weight: bold;
    width: 100%;
    max-width: 420px;
    font-size: 1.15em;
    padding: 6px 16px;
    display: inline-block;
    white-space: nowrap;
}

.custom-cookie-btn-accept {
    background-color: #d9edf7 !important;
    color: #31708f !important;
}

    .custom-cookie-btn-accept:hover,
    .custom-cookie-btn-accept:focus {
        background-color: #bce8f1 !important;
        color: #245269 !important;
    }

.custom-cookie-btn-reject {
    background-color: #f5f6f7;
    color: #222;
}

    .custom-cookie-btn-reject:hover,
    .custom-cookie-btn-reject:focus {
        background-color: #e0e0e0;
        color: #222;
    }

