html,
body {
    height: 100%;
    font-size: 14px;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 0px 15px 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    min-height: 600px;
}

@media (max-width: 992px) {
    .wrap > .container {
        padding: 20px 15px 20px;
        margin-top: 0px;
        margin-bottom: 0px;
        min-height: unset;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

.alert.fade:not(.show) {
    opacity: 1;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.navbar-dark {
    background-color: #353535;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

a.auth-link[disabled], button.js-signup-button[disabled] {
    pointer-events: none;
    cursor: default;
}

/*  ---- SensiSpinner ----  */
.sensi-spinner-overlay {
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    width: 100%;
    height: 100%;
}

.sensi-spinner-box {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 18px;
    overflow: hidden;
    z-index: 10001;
}

.sk-spinner-three-bounce.sk-spinner {
    margin: 0 auto;
    width: 70px;
    text-align: center;
}

.sk-spinner-three-bounce div {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-threeBounceDelay 1.4s infinite ease-in-out;
    animation: sk-threeBounceDelay 1.4s infinite ease-in-out;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.sk-spinner-three-bounce .sk-bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.sk-spinner-three-bounce .sk-bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-threeBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes sk-threeBounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/*----SensiSpinner----*/

/*  ---- article-form ----  */
#article-form .invalid-feedback {
    display: block;
}

#article-form-authorize .modal-mask,
.article-form-edit-print-advert .modal-mask {
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: table;
    transition: opacity .3s ease;
}

#article-form-authorize .modal-wrapper,
.article-form-edit-print-advert .modal-wrapper {
    display: table-cell;
    vertical-align: middle;
}

.article-form-category-selector .nice-select.form-control {
    width: 100%;
}

.article-form-contact-details-map #article-form-map {
    width: 100%;
    height: 300px;
}

.article-form-details h5 {
    font-size: 1rem;
}

.article-form-preview {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

.article-form-preview-thumbnail {
    width: 100%;
    height: 253px;
    overflow: hidden;
    position: relative;
}

.article-form-preview .article-form-preview-thumbnail {
    height: 255px;
}

.article-form-preview-blurred-background {
    filter: blur(8px) grayscale(0.6);
    -webkit-filter: blur(8px) grayscale(0.6);
    height: 110%;
    width: 110%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 130%;
    margin-top: -5%;
    margin-left: -5%;
}

.no-photo .article-form-preview-blurred-background {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.article-form-preview-image-wrapper {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.no-photo .article-form-preview-image-wrapper {
    background: unset;
}

.article-form-preview-image {
    max-width: 100%;
    max-height: 100%;
}

.article-form-preview-price {
    position: absolute;
    top: 30px;
    color: white;
    background-color: #fe5037;
    font-weight: bold;
    padding: 10px 15px 10px 15px;
    border-radius: 0 5px 5px 0;
    font-size: 1.5rem;

}

#article-form .tooltip-button {
    background-color: #99C0B2;
    opacity: .6;
    border: none;
    color: white;
    padding: 3px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    #article-form .col-2 .tooltip-button {
        margin-left: -15px;
    }
}

.article-form-tooltip.tooltip {
    display: block !important;
    z-index: 10000;
}

.article-form-tooltip.tooltip .tooltip-inner {
    background: #006243;
    color: white;
    border-radius: 5px;
    padding: 9px 10px 8px;
}

.article-form-tooltip.tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
    border-color: #006243;
}

.article-form-tooltip.tooltip[x-placement^="top"] {
    margin-bottom: 5px;
}

.article-form-tooltip.tooltip[x-placement^="top"] .tooltip-arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.article-form-tooltip.tooltip[x-placement^="bottom"] {
    margin-top: 5px;
}

.article-form-tooltip.tooltip[x-placement^="bottom"] .tooltip-arrow {
    border-width: 0 5px 5px 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    top: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.article-form-tooltip.tooltip[x-placement^="right"] {
    margin-left: 5px;
}

.article-form-tooltip.tooltip[x-placement^="right"] .tooltip-arrow {
    border-width: 5px 5px 5px 0;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    left: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
}

.article-form-tooltip.tooltip[x-placement^="left"] {
    margin-right: 5px;
}

.article-form-tooltip.tooltip[x-placement^="left"] .tooltip-arrow {
    border-width: 5px 0 5px 5px;
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    right: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

.article-form-tooltip.tooltip[aria-hidden='true'] {
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s, visibility .15s;
}

.article-form-tooltip.tooltip[aria-hidden='false'] {
    visibility: visible;
    opacity: 1;
    transition: opacity .15s;
}

#article-form .row-form-media-uploader .tooltip-button {
    margin-bottom: 0;
}

.article-form-media-thumb-list {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.article-form-media-thumb-item {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px;
}

.article-form-media-thumb-delete-btn {
    position: absolute;
    top: -9px;
    right: -7px;
    background: #bc2e39;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

@media (max-width: 992px) {
    .article-form-media-thumb-item {
        width: 90px;
        height: 90px;
    }

    .article-form-media-thumb-item img {
        width: 90px;
        height: 90px;
    }
}

#article-form .was-validated .form-control:invalid,
#article-form .form-control.is-invalid {
    background-image: none;
    border-color: #EAEAEA;
}

#article-form .was-validated .form-control:valid,
#article-form .form-control.is-valid {
    border-color: #EAEAEA;
    background-image: none;
}

#article-form .was-validated .select2-container--krajee .select2-selection--single,
#article-form .was-validated .form-group .tox-tinymce {
    border-color: #ccc;
}

#article-form .was-validated .form-control.is-invalid {
    border-width: 1px;
    border-color: #dc3545;
}

#article-form .was-validated .form-group.is-invalid .tox-tinymce,
#article-form .was-validated .form-group.is-invalid .select2-container--krajee .select2-selection--single {
    border-width: 1px;
    border-color: #dc3545;
}

#article-form .was-validated .form-group.is-invalid .dropdown-toggle {
    border-width: 1px;
    border-color: #dc3545;
}

.article-form-order-summary {
    padding: 1em 0;
}

.article-form-order-summary-discount {
    padding: 2em 0;
}

/*----article-form----*/

/*----user-advert----*/
.user-advert {
    width: 100%;
}

.user-advert-on-list {
    background-color: white;
    margin: 10px 0px 10px 0px;
    background-color: white;
    padding: 10px 10px 10px 10px;
    border: 1px solid #e0e0e0;
}

.user-advert-container {
    padding: 10px 10px 10px 25px;
}

.user-advert-thumbnail {
    width: 100%;
    height: 300px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    position: relative;
}

.user-advert-price {
    position: absolute;
    top: 30px;
    color: white;
    background-color: #fe5037;
    font-weight: bold;
    padding: 10px 15px 10px 15px;
    border-radius: 0 5px 5px 0;
    font-size: 1.5rem;
}

.user-advert-title a {
    text-decoration: none;
    color: black;
}

.user-advert-title {

    font-weight: bold;
    font-size: 1.5rem;
    padding: 0px 0px 5px 0px;
}

.user-advert-description {
    color: #767171;
}

.user-advert-image-wrapper {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.user-advert-details {
    color: #767171;
}

.user-advert-customfield {
    color: #fe5037;
    font-weight: bold;
}


#draftModal .modal-dialog {
    max-width: 800px;
}

#draftModal .modal-dialog .card-body {
    padding: 0.3em 1.25em;
}

#draftModal .modal-dialog .card-body .thumbnail-wrapper {
    position: relative;
    max-width: 200px;
    height: 160px;
}

#draftModal .modal-dialog .card-body img {
    width: 200px;
}

#draftModal .modal-dialog .card-body span {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    display: block;
    padding: 5px;
    background-color: rgba(31, 31, 31, 0.5);
    width: 100%;
}

.dropdown-checkboxes .btn-outline-secondary {
    color: #00623E;
    border-color: #00623E;
}

.dropdown-checkboxes .btn-outline-secondary:hover {
    background-color: transparent;
}

.dropdown-checkboxes .btn-outline-secondary.dropdown-toggle,
.dropdown-checkboxes .btn-outline-secondary:active {
    color: #00623E;
    border-color: #00623E;
    background-color: transparent;
}

.dropdown-checkboxes .dropdown-menu {
    width: 91%;
}

/*----article-form----*/

.tooltip {
    opacity: 1 !important;
}

.article-container .article-form-preview-blurred-background {
    height: 110%;
    width: 110%;
    background-size: 167%;
}

.form-my-profile .field-user-description .invalid-feedback {
    display: block;
}

label {
    cursor: pointer;
}

.items.pre-scrollable.list-group {
    margin-right: -28px;
    padding-right: 11px;
    padding-bottom: 10px;
}

@media (max-width: 992px) {
    .items.pre-scrollable.list-group {
        padding-right: 28px;
    }
}

#home-search-form-wrap .form-control.is-invalid {
    border-width: 1px;
    border-color: #dc3545;
}

button:focus,
button.focus,
a:focus,
a.focus,
.btn:focus,
.btn.focus {
    outline: 0;
    box-shadow: none;
}

#js-search-form-wrap input[type='number'] {
    -moz-appearance: textfield;
}

#js-search-form-wrap input::-webkit-outer-spin-button,
#js-search-form-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.article-form-product-packages {
    margin: -10px 0 10px 0;
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    margin-bottom: 10px;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#article-form .tooltip-button.youtube-tooltip {
    margin-bottom: 0;
}

.row-form-youtube-input {
    display: flex;
    margin-top: 15px;
}

#advertelasticsearch-category .form-check-label {
    margin-left: 0px;
}

#advertelasticsearch-region .form-check-label {
    margin-left: 0px;
}

#advertelasticsearch-county .form-check-label {
    margin-left: 0px;
}

#advertelasticsearch-town .form-check-label {
    margin-left: 0px;
}

.modal#show-all-region .form-check-label {
    margin-left: 0px;
}

.modal#show-all-region span.label-count {
    position: absolute;
    right: 0;
    font-size: 12px;
}

.modal#show-all-region .search.confirm-button button {
    width: 100%;
}

.modal#show-all-town .form-check-label {
    margin-left: 5px;
}

.modal#show-all-town span.label-count {
    position: absolute;
    right: 0;
    font-size: 12px;
}

.modal#show-all-town .search.confirm-button button {
    width: 100%;
}

.modal#show-all-county .form-check-label {
    margin-left: 5px;
}

.modal#show-all-county span.label-count {
    position: absolute;
    right: 0;
    font-size: 12px;
}

.modal#show-all-county .search.confirm-button button {
    width: 100%;
}

#js-search-form-wrap[data-search-form='home'] #all-customfields-container div[data='advert-customfield-checkbox'] label {
    width: 100%;
}

/* *** expandable *** */
.js-expandable .form-group {
    border: 0;
    background: #fff;
    padding: 8px 0px;
    margin: 0 0 1rem 0;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
}

#js-advanced-search-tab .js-expandable .form-group {
    padding: 12px 0px;
}

.js-expandable > div > label {
    cursor: pointer;
    color: #333;
    margin: 0 0 0 15px;
    position: relative;
    display: block;
    font-size: 0.9rem;
}

.js-expandable > div > label::after {
    /*content: '\f067';*/
    content: '+';
    font-family: 'fontawesome';
    margin-left: 5px;
    position: absolute;
    color: #333;
    right: 15px;
}

.js-expandable.expanded > div > label::after {
    /*content: '\f068';*/
    content: '_';
    top: -7px;
}

#js-advanced-search-tab .js-expandable.expanded > div > label::after {
    top: -9px;
}

.js-expandable > div > div {
    display: none;
}

.js-expandable.expanded > div > div {
    display: block;
    margin: 10px 10px 0 10px;
}

.search-homepage-advanced .js-expandable.expanded > div > div {
    margin: 10px 0 0 0;
}

.verslo-container {
    margin-bottom: 0;
}

.verslo-container a {
    display: block;
    margin-bottom: 20px;
}

.verslo-container img {
    width: 100%;
    height: auto;
}

.pedigree-form .pedigree-header {
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
}

.pedigree-form .row {
    margin-top: 40px;
}

.pedigree-form .col-4 {
    margin-top: -30px;
    margin-bottom: 3px;
}

.pedigree-form .col-4 label {
    margin-bottom: 1px;
    font-size: 12px;
}

#pedigree-tab table {
    width: 100%;
    border-collapse: collapse;
}

#pedigree-tab table,
#pedigree-tab td {
    border: 1px solid #A3C0B2;
}

#pedigree-tab td {
    height: 34px;
    padding: 5px;
    text-align: center;
}
