/** 
 * SECTION toggle buttons
 */

.bst-toggle-buttons__buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.bst-toggle-buttons__button {
    font-family: Open Sans;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    display: flex;
    background-color: transparent;
}

.bst-toggle-buttons__button:after {
    margin-left: 10px;
    content: url('../images/dropdown_arrow.svg');
    display: block;
    width: 8px;
    height: 5px;
}

.bst-toggle-buttons__button--active,
.bst-toggle-buttons__button:hover,
.bst-toggle-buttons__button:focus {
    background-color: var(--ast-global-color-1, #394a80);
    color: white;
}

.bst-toggle-buttons__button--active:after,
.bst-toggle-buttons__button:hover:after,
.bst-toggle-buttons__button:focus:after {
    content: url('../images/dropdown_arrow-white.svg') !important;
}


/**  
 * !SECTION 
 */


/**
* SECTION modal
*/

.bst-filters__modal--hidden {
    display: none !important;
}

.bst-filters__modal {
    position: absolute;
    left: 0;
    width: 100vw;
    height: 91%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999999;
    margin: 0;
    overflow-y: auto;
}

/**
* !SECTION
*/


/**
* SECTION modal form
*/

.bst-filters__inputs-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.bst-filters__row {
    margin-top: 0;
}

.bst-filters__row--double {
    display: flex;
}

.bst-filters__box {
    position: relative;
}

.bst-filters__column {
    margin-right: 0px;
}

.bst-filters__column p {
    color: black;
    margin-bottom: 8px;
}

.bst-filters__inputs-container label {
    width: 100%;
    margin-bottom: 24px;
}

.bst-filters__inputs-container input,
.bst-filters__inputs-container input[type="date"],
.bst-filters__inputs-container input[type="number"],
.bst-filters__column select {
    width: 100%;
    border: 1px solid #adadad;
    border-radius: 4px;
    background-color: white !important;
    color: #474747 !important;
    padding: 7px 13px !important;
    font-size: 1rem;
    line-height: 1.5rem;
}

.bst-filters__row--double label {
    display: flex;
    flex-direction: column;
}

.bst-filters__row--double label:first-of-type {
    margin-right: 24px;
}

.bst-filters__modal form {
    padding: 16px;
    background-color: white;
    margin: 0 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.bst-filters__filter {
    display: flex;
    justify-content: space-between;
}

.bst-filters__filter button {
    background-color: white;
    color: var(--ast-global-color-1, #394a80);
}

.bst-filters__filter .bst-filters__filter-button--active {
    background-color: var(--ast-global-color-1, #394a80) !important;
    color: white !important;
    border-radius: 4px;
}

.bst-filters__sort {
    display: none;
}

/**  
 * SECTION form buttons
 */
.bst-filters__buttons-container {
    display: flex;
    flex-direction: column;
}

.bst-filters__button {
    color: var(--ast-global-color-1, #394a80);
    background-color: white;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-1, #394a80);
    padding: 8px 16px;
    line-height: 1.5rem;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
}

.bst-filters__button:last-child {
    margin-top: 16px;
}

.bst-filters__button--search {
    background-color: var(--ast-global-color-1, #394a80);
    color: white;
}

.bst-filters__button--search:hover {
    background-color: white;
    color: var(--ast-global-color-1, #394a80);
}

.bst-filters__button--clear {
    color: var(--ast-global-color-1, #394a80);
    background-color: white;
}

/** 
  * !SECTION
  */


@media only screen and (max-width: 768px) {
    .bst-filters__sort--hidden {
        display: none !important;
    }

    .bst-filters__sort {
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        left: 0;
        display: block;
        width: 100vw;
        height: 91%;
        z-index: 9999999999999999;
    }

    .bst-filters__content--mobile,
    .bst-filters__inputs-container,
    .bst-filters__row--double {
        display: flex;
        flex-direction: column;
    }

    .bst-filters__sort-item {
        font-style: normal;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5rem;
        color: #0D0D0D;
        margin-bottom: 24px;
        padding: 4px 16px;
        font-family: 'Open Sans' !important;
        width: 100%;
    }

    .bst-filters__sort-item:last-of-type {
        margin-bottom: 0px;
    }

    .bst-filters__sort-item:hover,
    .bst-filters__sort-item:focus {
        background-color: #F1F5FB;
    }

    .bst-filters__sort-box {
        display: flex;
        flex-direction: column;
        margin: 0 24px;
        background-color: white;
        width: auto;
        border-radius: 0px 0px 4px 4px;
        padding: 20px 0;
    }
}

/**
* !SECTION
*/

@media only screen and (min-width: 768px) {

    .bst-filters__modal {
        height: 86%;
    }

    .bst-filters__row--margin-top {
        margin-top: 24px !important;
    }

    .bst-filters__row--remove-margin-top {
        margin-top: 0 !important;
    }

    .bst-toggle-buttons__button--sort {
        display: none;
    }

    .bst-filters__modal {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .bst-filters__modal form {
        max-width: 1400px;
        padding: 24px;
    }

    .bst-filters__column {
        margin-right: 20px;
        margin-bottom: 14px;
    }

    .bst-filters__column:first-of-type .bst-filters__row--double {
        margin-top: 0;
    }

    .bst-filters__column:last-of-type {
        margin-right: 0px;
    }

    .bst-filters__row {
        margin-top: 24px;
    }

    .bst-filters__row:last-of-type {
        margin-top: 0;
    }

    .bst-filters__buttons-container {
        flex-direction: row;
    }

    .bst-filters__button {
        margin-right: 24px;
    }

    .bst-filters__button:last-child {
        margin-top: 0;
    }
}
