#custom-route-widget {
    display: inline-block;
    width: 454px;
}

#custom-route-widget #field_route_file input[type=file] {
    position: fixed;
    top: -10000px;
    left: -10000px;
}

#custom-route-widget #upload-file-button, #upload-link {
    color: #319EB3;
    cursor: pointer;
}

#custom-route-widget #upload-file-button:hover, #upload-link:hover {
    color: #205067;
}

#custom-route-widget #uploaded-file {
    padding-left: 0.5em;
    font-weight: normal;
    font-size: 0.8em;
    color: black;
}

#custom-route-widget .helptext {
    margin-left: 1em;
}

#custom-route-widget .sortable-list .geocomplete-field {
    margin-bottom: 10px;
    padding: 3px;
    height: auto;
    min-height: 27px;
}

#custom-route-widget .sortable-list .geocomplete-field.geocomplete-field-empty {
    border: grey 1px dotted;
    background-color: #FCFCFC;
}

#custom-route-widget .sortable-list .geocomplete-field.geocomplete-field-ok {
    border: #44A944 1px dotted;
    background-color: #DEF9EB;
}

#custom-route-widget .sortable-list .geocomplete-field.geocomplete-field-error {
    border: #A94444 1px dotted;
    background-color: #F1CFCF;
}

#custom-route-widget .sortable-list .geocomplete-field.route-separator {
    border: grey 1px dotted;
    background-color: #E8E8E8;
}

#custom-route-widget .sortable-list .geocomplete-field .btn-reveal-optional {
    display: block;
}

#custom-route-widget .sortable-list .geocomplete-field.route-separator .btn-reveal-optional {
    display: none;
}

#custom-route-widget .sortable-list .geocomplete-field .waypoint-optional {
    width: 100%;
    height: 0;
    overflow:hidden;
    transition: height 1s ease-out;
}

#custom-route-widget .sortable-list .geocomplete-field .waypoint-optional.revealed {
    height: auto;
    transition: height 1s ease-in;
}

#custom-route-widget .sortable-list .geocomplete-field.route-separator .waypoint-optional {
    display: none;
}

#custom-route-widget .bold-label-item {
    font-weight: bold;
}

#custom-route-widget .loading-hidden,
#custom-route-widget .initially-hidden {
    display: none;
}

#custom-route-widget .add-destination {
    position: relative;
    color: #319EB3;
    cursor: pointer;
    height: 4em;
}

#custom-route-widget .add-separator {
    position: relative;
    color: grey;
    cursor: pointer;
    height: 4em;
}

#custom-route-widget .sortable-ghost input {
    background-color: #DFDFDF;
}

#custom-route-widget .remove-item {
    cursor: pointer;
    font-weight: bold;
    color: grey;
    width: 8px;
    display: inline-block;
}

#custom-route-widget .remove-item:hover {
    color: red;
}

#custom-route-widget .main-route-item, #custom-route-widget .label-route-item,
#custom-route-widget .image-route-item {
    width: calc(100% - 18px) !important;
}

#custom-route-widget .text-route-item {
    width: calc(100% - 18px) !important;
    margin-top: 2px;
}

#custom-route-widget .geocomplete-inputs {
    width: calc(100% - 70px) !important;
    display: inline-block;
}

.errors li.hidden,
.errors div.hidden {
    display: none;
}

ul.errorlist {
    margin: 0 0 4px;
    padding: 0;
    color: #ba2121;
    background: #fff;
}

ul.errorlist li {
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

ul.errorlist li:first-child {
    margin-top: 0;
}

ul.errorlist li a {
    color: inherit;
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0;
    padding: 0;
}

td ul.errorlist li {
    margin: 0;
}

#custom-route-widget #field_route_file .errors {
    margin-left: 0 !important;
}

#custom-route-widget .sortable-list .errors {
    margin-left: 4px !important;
}

#custom-route-widget .drag-handle {
    cursor: move;
    cursor: -webkit-grabbing;
}

#custom-route-widget #route-length {
    font-size: 0.8em;
}

#custom-route-widget #route-length img {
    height: 0.8em;
    width: 0.8em;
}

#custom-route-widget #route-map {
    display: none;
    height: 320px;
}

#custom-route-widget .drag-handle {
    font-size: 1em;
    display: block;
    width: 60px;
    color: grey;
    position: relative;
    float: left;
}

#custom-route-widget .drag-handle:hover {
    color: black;
}

.bigicon {
    font-size: 300%;
    position: relative !important;
    top: 0.2em !important;
}

@media (max-width: 640px) {
    #custom-route-widget {
        width: 100%;
    }

    #custom-route-widget .label-route-item {
        margin-left: 0px;
    }
}
