/**
* Styling overrides for the courses list view search bar
*/

.course-listing-search {
    position: absolute;
    top: 255px;
    height: auto;
    right: auto;
    bottom: auto;
    display: -ms-flexbox;
    display: flex;
    overflow: visible;
    min-height: 60px;
    margin-right: auto;
    margin-left: auto;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-ordinal-group: 1;
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-box-flex: 0;
    -webkit-flex: 0 auto;
    -ms-flex: 0 auto;
    flex: 0 auto;
    border-style: none;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.07);
    background-color: #fff;
    box-shadow: none;
    z-index: 99;
    padding: 0;
    border-radius: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
}

.tovuti-course-archive-search-form {
    width: 100%;
}

#searchForm
.search-form-select,
#searchForm
.search-form-field {
  max-height: 43px;
  min-height: 43px;
  margin-bottom: 0px !important;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  border: 0px solid #000 !important;
  border-radius: 10px;
  background-color: #e9e9e9 !important;
}


.search-form-field:focus {
  background-color: #dadada;
}

.search-form-button:hover {
  background-color: var(--primary-color);
}

.search-form-button:active {
  background-color: var(--primary-color);
}

.search-form-button:focus {
  background-color: var(--primary-color);
}

.search-form-button.search-form-button-submit {
  background-position: 10px 50%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  -webkit-transition: all 200ms ease;
  transition: all 200ms ease;
}

.filter-wrapper {
    display: flex;
}

#myMultiSelectId {
    padding-top: 10px;
    margin-left: 20px;
    padding-left: 0;
}

#myMultiselect {
    margin-left: 10px;
    min-width: 200px;
}

#mySelectLabel > .form-select {
    border: none !important;
}

#mySelectOptions {
    display: none;
    border: 0.5px #7c7c7c solid;
    background-image: linear-gradient(to right, #3b4045, #545759);
    background-color: #3e4247;
    color: white;
    overflow-y: visible;
    border-radius: 10px;
    position:absolute;
}

#mySelectOptions label {
    min-height: 15px;
    display: block;
    font-weight: normal;
    display: block;
    white-space: nowrap;
    margin-top: 2px;
    background-color: #ffffff00;
}
#mySelectOptions label:hover {
    background-color: #1e90ff;
}
#mySelectOptions label input {
    height: auto;
    min-height: 15px;
    margin: 0;
}

#mySelectOptions > .inputDiv > label > input {
    min-height: unset !important;
}

.filterSubmit {
    background-color:#0b73f8;
    height: 28px;
    width: 45%;
    left: 20px;
    top: 199px;
    border-radius: 3.2px;
    padding: 4px 8px 4px 8px;
    margin-left: 10px;
    margin-bottom: 10px;
    margin-bottom: 10px;
    margin-top: -10px;
}

.category-wrapper {
    display: flex;
}

.form-select {
    border: 0px solid #000;
    border-radius: 10px;
    background-color: #e9e9e9;
    height: 43px;
    padding: 10px;
    text-overflow: ellipsis;
}

.cat-label {
    padding-top: 10px;
}

#cat.search-form-select.w-select.mobile-search-select {
    margin-right: 0;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 15px !important;
    text-overflow: ellipsis;
    min-width: 200px;
}

#search_term.course-list-search-field.search-form-field.w-input {
    margin-right: 0;
    margin-left: 15px;
    font-size: 15px !important;
    min-width: 200px;
}

.buttons-wrapper {
    display: flex;
}

.course-list-search-button.w-button {
    width: auto;
    margin-left: 10px;
    margin-right: 0;
    border: none;
    white-space: nowrap;
    min-height: 45px ;
    max-height: 45px;
    font-size: 15px !important;
    align-items: center;
    line-height: 25px;
}

#cartBtn {
    width: auto;
    margin: 0 0 0 15px !important;
    white-space: nowrap;
    min-height: 45px;
    max-height: 45px;
    font-size: 15px !important;
    text-align: center;
    align-items: center;
    line-height: 25px;
}

.first-grouping {
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 1500px) {
    .course-listing-search {
        max-width: 95%;
        margin-left: 0;
    }

    .tovuti-course-archive-search-form.w-form {
        width: 100%;
    }

    #myMultiSelectId {
        padding-left: 0 !important;
    }

    .first-grouping.right-group {
        width: auto;
    }
}

@media screen and (max-width: 1200px) {

    .course-listing-search {
        width: 95%;
    }

    #searchForm {
        display: block;
    }

    .first-grouping {
        display: flex;
        padding-top: 10px;
    }

    .filter-wrapper {
        min-width: 35%;
    }

    .category-wrapper {
        min-width: 65%;
    }

    #myMultiSelectId {
        padding-left: 0 !important;
    }

    #myMultiselect {
        width: 100%;
        max-width: none;
        min-width: unset;
    }

    #search_term.course-list-search-field.search-form-field.w-input {
        width: 100%;
    }

    .course-listing-container {
        padding: 70px 0px 20px !important;
    }
}

@media screen and (max-width: 992px) {

    #searchForm {
        padding: 0;
    }

	.first-grouping {
        display: flex;
        width: 100%;
        padding-top: 10px;
    }
}

@media screen and (max-width: 767px) {
    .course-listing-search {
        top: 85px !important;
    }

    #searchForm {
        padding-left: 20px;
    }

    .right-group {
        padding-bottom: 10px;
    }

    #cat.search-form-select.w-select.mobile-search-select { 
        min-width: unset;
    }

    #submitBtn {
        padding: 10px 15px;
        margin-right: 0;
        margin-left: 10px;
    }

    #myMultiSelectId {
        margin-left: 0;
    }

    #search_term.course-list-search-field.search-form-field.w-input {
        margin-left: 0;
    }
}

@media screen and (max-width: 576px) {
    .tovuti-course-archive-search-form.w-form {
        margin-top: 15px;
    }

    .first-grouping {
        display: block;
    }

    .filter-wrapper {
        display: flex;
    }

    #myMultiSelectId {
        margin-left: 0;
    }

    #myMultiselect {
        max-width: none;
    }

    .category-wrapper {
        display: flex;
        padding-top: 10px;
    }

    .category-wrapper > label {
        padding-left: 0 !important;
    }

    #search_term.course-list-search-field.search-form-field.w-input {
        width: 100%;
        margin-left: 0;
        min-width: unset;
    }

    .buttons-wrapper {
        display: flex;
        width: 100%;
        margin-top: 10px;
    }

    #submitBtn {
        width: 50%;
        padding: 10px 0px;
        text-align: center;
        margin-left: 0;
    }

    #cartBtn {
        width: 50%;
    }
}