﻿#itemnumberForm {
    width: 70% !important;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px; /* Vertically center the text there */
    background-color: #f5f5f5;
}

.toast {
    position: fixed;
    top: 5rem;
    right: 2rem;
}


.bd-navbar {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.5);
}

.bd-content {
    -ms-flex-order: 1;
    order: 1;
    margin-top: 4rem;
}

.bd-sidebar {
    -ms-flex-order: 0;
    order: 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-top: 1rem;
}

@media (min-width:768px) {
    .btn-filter {
        display: none;
    }

    .bd-sidebar {
        border-right: 1px solid rgba(0,0,0,.1)
    }

    @supports ((position:-webkit-sticky) or (position:sticky)) {
        .bd-sidebar {
            position: -webkit-sticky;
            position: sticky;
            top: 4rem;
            margin-top: 4rem;
            z-index: 1000;
            height: calc(100vh - 4rem)
        }

            .bd-sidebar .filter-content {
                max-height: calc(100vh - 9rem);
                overflow-y: auto;
                direction: rtl;
            }
            /*https://css-tricks.com/position-vertical-scrollbars-on-opposite-side-with-css/*/
            .bd-sidebar .left-scrollbar {
                direction: ltr;
                padding-left: 10px;
            }
    }
}

@media (min-width:1200px) {
    .bd-sidebar {
        -ms-flex: 0 1 320px;
        flex: 0 1 320px
    }
}



@media only screen and (max-width: 768px) {
    .bd-sidebar {
        display: none;
    }

    .btn-filter {
        margin-top: 4rem;
    }
}



/*https://gist.github.com/jedsundwall/586144*/
ul.commaSeparatedList {
    display: inline;
    margin: 0;
    padding: 0;
}

    ul.commaSeparatedList li {
        display: inline;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        ul.commaSeparatedList li:after {
            content: ", ";
        }

        ul.commaSeparatedList li:last-child:after {
            content: "";
        }

.delivery-address .twitter-typeahead {
    width: 100%;
}

.dropdown-menu {
    min-width: 100% !important;
}

@media (min-width:768px) {
    .twitter-typeahead {
        min-width: 85% !important;
    }
}


.tt-hint {
    color: #999999;
}

.tt-menu {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /*margin-top: 12px;*/
    padding: 8px 0;
    width: 100%;
}

.tt-suggestion {
    padding: 3px 20px;
}

    .tt-suggestion:hover {
        cursor: pointer;
    }

    .tt-suggestion p {
        margin: 0;
    }
