/* common for step1 and step2, step2 may have overriding css file  */
.body-content {
    text-align: center;
}
form {
    text-align: left;
}

@media (min-width: 480px) {
    .body-content > .narrow,
    .ad-fields.narrow {
        width: 440px;
    }
}

.agency-warning {
    margin-top: 10px;
    text-align: left;
    margin-bottom: 10px;
}
.create-by-admin-warning {
    margin-top: 10px;
}
.not-agency-field {
    margin-bottom: 20px;
}
.not-agency-field b {
    font-weight: bold;
    color: red;
}

.fields-inline-warning .fa {
    color: #ff9b00;
}

.ad-fields {
    /*center them on wider AdEdit page */
    margin: auto;
}

.btn-create-ad-from-header {
    display: none;
}

.form-group label {
    position: relative;
}

.required-note {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
}
.required-note em {
    color:red;
}

.field-novostroy .checkbox {
    padding-bottom: 3px;
}

.field-garazh-size input[type=number] {
    width: 68px;
    display: inline-block;
}
/*.field-garazh-size input[type=number]:nth-child(2) {
    margin-right: 4px;
}*/
.field-garazh-size .checkbox {
    display: inline-block;
}

#garazh-street-user-hint {
    margin-top: -7px;
}

.clone-link {
    display: inline-block;
    margin-top: 2px;
}

.lite-pl::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #d5d4d3;
}
.lite-pl:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #d5d4d3;
    opacity: 1;
}
.lite-pl::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #d5d4d3;
    opacity: 1;
}
.lite-pl:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #d5d4d3;
}

.date-picker-wrapper {
    color: #333;
    position: absolute;
    background: #ffffff;
    border: 2px solid #7B9DD4;
    border-radius: 2px 2px 5px 5px;
    box-shadow: 0 6px 18px 1px rgba(0, 0, 0, 0.2);
    transform: translate(-2px, -4px); /*remove strange offset*/
    padding: 5px 16px 16px;
}
.date-picker-wrapper .drp_top-bar {
    padding-right: 0;
    display: none;
}
.date-picker-wrapper .title {
    font-size: 15px;
    font-weight: bold;
    display: none;
}
.date-picker-wrapper table .caption {
    height: 36px;
    font-size: 1.1em;
}
.date-picker-wrapper .month-name {
    font-size: 1.15em;
}
.date-picker-wrapper .week-name {
    color: #a5a5a5;
}
.date-picker-wrapper .month-wrapper table th {
    width: 10%;
    text-transform: capitalize;
}
.date-picker-wrapper .month-wrapper table td .day {
    color: black;
}
.date-picker-wrapper .month-wrapper table td:nth-child(6) .day {
    color: #e69149 !important;
}
.date-picker-wrapper .month-wrapper table td:nth-child(7) .day {
    color: red !important;
}
.date-picker-wrapper .apply-btn,
.date-picker-wrapper .prev,
.date-picker-wrapper .next {
    display: none;
}
.date-picker-wrapper .month-wrapper {
    border: 0;
    padding: 0;
    width: 285px;
}
.date-picker-wrapper .month-wrapper table {
    width: 100%;
}
.date-picker-wrapper .month-wrapper table .day {
    font-size: 15px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.date-picker-wrapper .month-wrapper table .day:hover {
    border-color: #4499ee;
}
.date-picker-wrapper .footer {
    margin-top: 0;
}
.date-picker-wrapper .hint {
    font-style: italic;
    margin: 4px 0 4px 2px;
    color: gray;
}
.date-picker-wrapper .footer .btn-flat {
    width: 48.5%;
}
.date-picker-wrapper .footer .btn-flat[disabled] {
    /*background-color: #74bdf9 !important;*/
}


.bottom-hints {
    margin-top: 22px;
}

.have-problems-link {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 2px;
}
.terms-links {
    margin-bottom: 12px;
}

.address-locked-warning {

}
.address-locked-warning .fa {
    color: green;
    font-size: 20px;
    margin-right: 10px;
}
/*
.form-control.narrow {
    width: 80px;
}
*/

.photo-thumb {
    width: 78px;
    text-align: center;
    position: relative;
}
.photo-thumb img {
    max-width: 78px;
    max-height: 56px;
    /*border: 1px solid grey;*/
    border: none;
}

.dup-ad {
    border: 2px solid #ff9587;
    margin-bottom: 8px;
    color: #333;
}
.dup-ad .photo {
    float: left;
    margin-left: 0;
}
.dup-ad > div {
    margin-left: 84px;
}
.dup-ad .title {
    font-weight: bold;
}

/* admin fields */
.field-comments .comments {
    color: red;
}

.registry-status-line {
    visibility: hidden;
    margin-top: 5px;
    /*border: #ffebca 1px solid;
    background-color: #fff8ec;
    padding: 1px 3px;*/
    /*margin-top: 3px;
    border-top: 1px solid #dedede;
    padding-top: 2px;*/
}
#garazh-registry-status-line {
    /* hidden entirely */
    display: none;
    visibility: visible;
    /* needs extra tuning, because empty field has bg/highlight */
    margin: 3px 0 2px;
}
.registry-status-line.found .status {
    /*color: #009700;
    font-weight: bold;*/
}
.registry-status-line:not(.found) .status {
    color: red;
    font-weight: bold;
}
.registry-status-line.found .status .fa {
    color: #01af01;
    font-size: 16px;
    vertical-align: inherit;
    margin-right: 3px;
}
.registry-status-line .links {

}
.registry-status-line .links .btn {
    color: #018dca;
    padding: 0 3px;
}
.registry-status-line .links .btn:not(:hover) {
    border-color: transparent;
    background-color: transparent;
}
.registry-status-line .partial-matches {
    font-size: 13px;
}
.registry-status-line .partial-matches .values {
    font-size: 12px;
    margin-left: 15px;
}

.registry-status-line .needs-attention {
    margin-top: 5px;
}
.registry-status-line .needs-attention .fa {
    font-size: 16px;
    color: orange;
    margin-right: 3px;
    position: relative;
    top: -1px;
}
.registry-status-line .building-notes {
    font-size: 12px;
}
.registry-status-line .building-notes.top-margin {
    margin-top: 5px;
}

.registry-hint {
    font-size: 12px;
    clear: both;
    margin-left: 172px;
    padding-top: 1px;
}
.registry-hint .fa {
    font-size: 16px;
    color: orange;
    margin-right: 3px;
    position: relative;
    top: -1px;
}
.registry-hint.WARNING .fa {
    color: red;
}
.registry-hint em {
    font-weight: bold;
    font-style: normal;
    /*ellipsis*/
    max-width: 70px;
    display: inline-block;
    vertical-align: text-bottom;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.registry-hint a {
    margin-left: 3px;
}

.registry-ok-icon {
    color: #01af01;
    position: absolute;
    right: 20px;
    top: 7px;
    font-size: 16px;

}
.registry-ok-icon .top-right {
    right: 18px;
    top: 3px;
    font-size: 14px;
}
.registry-ok-icon.large-margin {
    right: 35px;
}



/* Step 2 */
.create-form-step2 {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}
/*
label[for=description] {
    text-align: left !important;
    margin-bottom: 3px !important;
}
*/
.description-title {
    border-bottom-width: 0;
    margin-bottom: 0;
}
.description-title span {
    font-size: 0.95rem;
    display: inline-block;
    font-style: italic;
    color: #8c8c8c;
}

.trusted-by-kommer-hint {
    font-weight: normal;
    font-size: 11px;
    line-height: 1.2em;
    display: inline-block;
    padding-top: 3px;
}

.change-cloned-text-warning {
    font-weight: bold;
    margin: 3px 0 3px;
}
.change-cloned-text-warning .fa {
    color: orangered;
}

.photo-title-buttons {
    float: right;
    margin-top: -2px;
}
.btn-search-preview .fa,
.btn-add-photos .fa {
    color: #009ee2;
}

.ad-search-preview-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: #f5f7f7;
    z-index: 20;
}
.ad-search-preview {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: table;
    width: 715px;
    height: 225px;
    font-size: 14px;
    box-shadow: 0 1px 1px #a6a8ab;
    -webkit-box-shadow: 0 1px 1px #a6a8ab;
    /*box-shadow: 0 1px 20px #a6a8ab;
    -webkit-box-shadow: 0 1px 20px #a6a8ab;*/
}
.ad-search-preview .photo-container { /*identical to search page*/
    display: table-cell;
    width: 44%;
    height: 225px;
    background: no-repeat scroll center center white;
    background-size: cover;
    position: relative;
    cursor: pointer;
}
.ad-search-preview .photo-container.no-photo { /*identical to search page*/
    background-color: #ececec;
    border-right: 1px solid gainsboro;
}
.ad-search-preview .photo-container .alt-photo.flat { /*identical to search page*/
    right: 0;
    bottom: 0;
    border-width: 1px 0 0 1px;
    box-shadow: -1px -1px 1px rgba(0,0,0,0.4);
    box-shadow: none;
}

.ad-search-preview .photo-container .alt-photo { /*identical to search page*/
    position: absolute;
    right: 1px;
    bottom: 1px;
    max-width: 100px;
    max-height: 90px;
    border: 1px solid white;
    box-shadow: 0 0 4px black;
}
.ad-search-preview .content { /*identical to search page*/
    display: table-cell;
    height: 100%;
    padding: 16px 16px 47px 20px;
    background-color: white;
    line-height: 1.6em;
    position: relative;
    vertical-align: top;
    border-top: 1px solid #ebebeb;
}
.ad-search-preview .content .close-icon {
    position: absolute;
    top: -30px;
    right: -30px;
    cursor: pointer;
    font-size: 36px;
    color: #484848;
}
.ad-search-preview .content .close-icon:hover {
    color: black;
}
.ad-search-preview .content .params-blurred {
    background: url(/img/listings/preview-params-blurred.jpg) 0 0 no-repeat;
    width: 355px;
    height: 105px;
    margin: -14px 0 8px -8px;
}
.ad-search-preview .content .description-preview {
    margin: 9px 0 13px;
}
.ad-search-preview .content .description-preview .fa {
    float: left;
    cursor: default;
    color: #3cb6f1;
}
.ad-search-preview .content .description-preview span {
    margin-left: 26px;
    display: block;
    line-height: 1.4;
}
.ad-search-preview .btn-details {
    position: absolute;
    left: 20px;
    bottom: 16px;
}

.vertical-photo-warning-more {
    margin-top: 6px;
}

.field-centered {
    max-width: 450px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* bug, too narrow on mobile */
.tooltip-inner {
    min-width: 220px;
}

/*TODO: remove, already added to common*/
.buttons .btn {
    min-width: 120px;
}

.create-form-step2 .btn-back,
.create-form-step2 .btn-publish {
    min-width: 155px;
}
.create-form-step2 .btn-save-draft {
    margin-top: 14px;
    display: inline-block;
    border: 1px solid #e6e6e6;
    min-width: 320px;
}
/*make it smaller & asymmetric */
@media(max-width: 359px) {
    .create-form-step2 .btn-back {
        min-width: 110px;
    }
    .create-form-step2 .btn-save-draft {
        min-width: 278px;
    }
}

/* matches BS *-sm and higher */
@media(min-width: 768px) {
    .form-group label.multiline {
        padding-top: 0;
    }
    .zhk-section-label {
        position: relative;
        left: -5px;
    }
}

@media(max-width: 400px) {
    .description-title span {
        display: none;
    }
    .description-title {
        border-bottom-width: 1px;
        /* value from .form-group-title */
        margin-bottom: 15px;
    }
}
