.d-flex > *,
.d-inline-flex > * {
  flex: 0 1 auto !important;
}

.flex-grow-1 {
    -ms-flex-positive: 1!important;
    flex-grow: 1!important;
}

.flex-grow-0 {
    -ms-flex-positive: 0!important;
    flex-grow: 0!important;
}

/*reset bootstrap 4 from beta to production*/
.hidden-xs-up {
    display: none!important
}

.modal-body {
  max-height: calc(100vh - 2.75rem);
  /*overflow-y: auto;*/
}

@media (max-width: 575px) {
    .hidden-xs-down {
        display:none!important
    }
    .modal-dialog.modal-sm {
        max-width: 90%;
    }
}

@media (min-width: 576px) {
    .hidden-sm-up {
        display:none!important
    }
    .modal-dialog {
        max-width: 90%;
    }
    .modal-dialog.modal-sm {
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .hidden-sm-down {
        display:none!important
    }
}

@media (min-width: 768px) {
    .hidden-md-up {
        display:none!important
    }
    .modal-dialog {
        max-width: 700px;
    }
    .modal-dialog.modal-sm {
        max-width: 450px;
    }
}

@media (max-width: 991px) {
    .hidden-md-down {
        display:none!important
    }
}

@media (min-width: 992px) {
    .hidden-lg-up {
        display:none!important
    }
    .modal-dialog {
        max-width: 800px;
    }

    .modal-dialog.modal-sm {
        max-width: 500px;
    }
}

@media (max-width: 1199px) {
    .hidden-lg-down {
        display:none!important
    }
}

@media (min-width: 1200px) {
    .hidden-xl-up {
        display:none!important
    }
}

.hidden-xl-down {
    display: none!important
}

.btn-lightx {
    color: #292b2c;
    background-color: #fff;
    border-color: #ccc;
}

.btn-lightx:hover {
    color: #292b2c;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-lightx:not(:disabled):not(.disabled):active, .btn-lightx:not(:disabled):not(.disabled).active, .show > .btn-lightx.dropdown-toggle {
    color: #212121;
    background-color: #b7b7b7;
    border-color: #8c7b7b;
}

.carousel-item-next, .carousel-item-prev, .carousel-item.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}


.list-group-item {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
            flex-flow: row wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: .75rem 1.25rem;
    /*margin-bottom: -1px;*/
    /*background-color: #fff;*/
    border: 1px solid rgba(0,0,0,.125);

}

.btn strong{
  text-transform: uppercase;
}

.btn.focus, .btn:focus {
    -webkit-box-shadow: none!important;
            box-shadow: none!important;
}

.card-group {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.modal {
  z-index: 90;
}

/*modal backdrop fix*/
.modal-backdrop {
  display:none!important;
  visibility: hidden!important;
  opacity: 0!important;
}


.modal.custom-sq {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 0.875rem;
  color: #000000;
}

.modal.custom-sq .modal-content{
  border: 0;
  border-radius: 0;
}

.modal.custom-sq .modal-content .modal-body {
  padding: 0;
}

.modal.custom-sq .modal-content .modal-header {
  border-bottom: 1px solid #00BCD4;
  background-color: #f5f5f5;
  padding: .5rem;
  position: relative;
  border-radius: 0;
}

.modal-dialog {
  margin: auto;
  font-size: 1rem;
}

.modal.custom-sq .modal-content .modal-header .modal-title {

}

.modal.custom-sq .modal-content .modal-header .close {
  padding: .5rem;
  margin: -.5rem -.5rem -.5rem auto;
}

.modal.custom-sq .modal-content .modal-header .close:hover {
  background: #b5cdd8;
}


.modal.custom-sq .modal-content .modal-footer {
  padding: .25rem .5rem;
  border-top: 1px solid #ff9abc;
}


.modal.has-overlay {
  background-color: rgba(0, 0, 0, 0.5) !important;
}



/*modal sizes*/

/*article modal*/
.article-modal > .modal-dialog {
    height: 90vh;
    width: 90vw;
    max-width: 100vw;
    top: 3vh;
}

.article-modal > .modal-dialog > .modal-content > .modal-body {
    background: #ffffff;
    padding: 0;
    min-height: calc(90vh - 2.5rem - 1px);
    max-height: calc(90vh - 2.5rem - 1px);
    overflow-y: auto;
}

.article-modal.has-footer > .modal-dialog > .modal-content > .modal-body {
    min-height: calc(90vh - 5rem - 2px);
    max-height: calc(90vh - 5rem - 2px);
}


/*cart & deviz modal*/
.cart-modal > .modal-dialog {
    min-width: 100%;
    max-width: 100%;
    min-height: 98vh;
    max-height: 98vh;   
    top: 1vh;
}

.cart-modal > .modal-dialog > .modal-content > .modal-body {
    padding: .5rem;
    min-height: calc(98vh - 3rem - 1px);
    max-height: calc(98vh - 3rem - 1px);
    overflow-y: auto;
}

.cart-modal.cartc .modal.custom-sq .modal-content {
    border-radius: 0;
}

.cart-modal.has-footer > .modal-dialog > .modal-content > .modal-body {
    min-height: calc(100vh - 4rem - 2px);
    max-height: calc(100vh - 4rem - 2px);
}

/*new deviz modal*/
.new-dev-modal > .modal-dialog {
  width: 80vw;
  height: 80vh;
  max-width: 100vw;
}

.new-dev-modal > .modal-dialog > .modal-content > .modal-body {
  padding: 0 0.5rem;
  min-height: calc(80vh - 2.5rem - 2px);
  max-height: calc(80vh - 2.5rem - 2px);
  overflow-y: auto;
}

.new-dev-modal.has-footer > .modal-dialog > .modal-content > .modal-body {
  min-height: calc(80vh - 5rem - 4px);
  max-height: calc(80vh - 5rem - 4px);
}


/*express order modal*/
.express-order-modal > .modal-dialog {
  /*width: 30vw;*/
  /*max-height: 100vh;*/
  /*max-width: 100vw;*/
}

.express-order-modal > .modal-dialog > .modal-content > .modal-body {
  /*padding: 0 0.5rem;*/
  overflow-y: auto;
}

.car-search > .modal-dialog {
  font-size: 1rem;
  width: 70rem;
  max-width: 100vw;
}

.car-search > .modal-dialog > .modal-body {
  overflow: hidden!important;
  padding: .5rem;
  position: relative;
}

/*car selector modal*/
/*.car-selector .modal-content .modal-body {
  overflow: hidden;
  height: calc(86vh - 5rem);
  max-height: calc(86vh - 5rem);
  padding: 0!important;
  position: relative;
}*/

/*.car-selector .modal-dialog {
  width: 72rem;
  max-width: 100%;
}*/

.car-selector .close-cs {
  position: absolute;
  top: 1px;
  right: 0;
  border-radius: 0;
  background-color: #eeeeee;
}

.car-selector > .modal-dialog {
    min-width: 100%;
    max-width: 100%;
    min-height: 98vh;
    max-height: 98vh;   
    top: 1vh;
}

.car-selector .tab-content {
  height: calc(98vh - 11rem);
  max-height: calc(98vh - 11rem);
  padding: .5rem;
  overflow-y: auto;
}

.car-selector > .modal-dialog > .modal-content > .modal-body {
    padding: 0;
    min-height: calc(98vh - 3rem - 1px);
    max-height: calc(98vh - 3rem - 1px);
    overflow-y: auto;
    position: relative;
}

.car-selector.has-footer > .modal-dialog > .modal-content > .modal-body {
    min-height: calc(100vh - 4rem - 2px);
    max-height: calc(100vh - 4rem - 2px);
}

/*cart & deviz modal*/
.car-graphics-modal > .modal-dialog {
    min-width: 100%;
    max-width: 100%;
    min-height: 98vh;
    max-height: 98vh;   
    top: 1vh;
}

.car-graphics-modal > .modal-dialog > .modal-content > .modal-body {
    padding: 0;
    min-height: 98vh;
    max-height: 98vh;
    overflow-y: auto;
}

/*subcategories modal*/
.subcat_modal > .modal-dialog {
  font-size: 1rem;
}

.subcat_modal .ui-modal__header{
  color: #292b2c;
}

.subcat_modal .modal-body{
  color: #292b2c;
  min-height: 80px;
  position: relative;
  overflow-y: scroll;
}

.cat.subcat_modal .modal-body {
  max-height: 300px;
}

/*biggest modal*/
.xxl-modal > .modal-dialog {
    width: 96vw;
    height: 96vh;
    max-width: 100vw;
}

.xxl-modal > .modal-dialog > .modal-content > .modal-body {
    padding: 0.5rem;
    min-height: calc(96vh - 2.5rem - 2px);
    max-height: calc(100vh - 2.5rem - 2px);
    overflow-y: auto;
}
.xxl-modal.has-footer > .modal-dialog > .modal-content > .modal-body {
    min-height: calc(96vh - 5rem - 4px);
    max-height: calc(100vh - 5rem - 4px);
}

/*big modal*/
.xl-modal > .modal-dialog {
    width: 80vw;
    height: 80vh;
    max-width: 100vw;
}

.xl-modal > .modal-dialog > .modal-content > .modal-body {
    padding: 0.5rem;
    min-height: calc(80vh - 2.5rem - 2px);
    max-height: calc(100vh - 2.5rem - 2px);
    overflow-y: auto;
}

.xl-modal.has-footer > .modal-dialog > .modal-content > .modal-body {
    min-height: calc(80vh - 5rem - 4px);
    max-height: calc(100vh - 5rem - 4px);
}

.ui-menu-option.is-divider {
  margin: 0;
}

.modal-open .modal {
  overflow-x: hidden; 
  overflow-y: hidden;
}

.text-secondary {
    color: #adadad !important;
}

.badge.big {
  font-size: 100%;
}

.badge.tsm {
  font-weight: normal;
}

.list-group-horizontal {
  -ms-flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
          flex-direction: row;
}

.btn-primary.disabled, .btn-primary:disabled {
  color: #c5c5c5;
  background-color: #54a6ff;
  border-color: #ffffff;
}

.btn-success.disabled, .btn-success:disabled {
  color: #c5c5c5;
  background-color: #7abf8a;
  border-color: #ffffff;
}

.custom-select-xs {
  height: calc(1.5em + 2px);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: .25rem;
  font-size: .825rem;
}

[type=button]:disabled, [type=reset]:disabled, [type=submit]:disabled, button:disabled {
  cursor: not-allowed;
}

.ml--1 {
  margin-left: -.25rem!important;
}

.mr--1 {
  margin-right: -.25rem!important;
}

.m--1 {
  margin: -.25rem!important;
}