/* ====================================
   LOOP STYLES
==================================== */

.standish-loop-container {
    gap: 3rem;
    display: flex;
    flex-direction: column;
}

.standish-loop-listing {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
    gap: 2rem; */
}

.standish-loop-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
    gap: 2rem;
}

.standish-loop-pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.standish-loop-pagination a {
    padding: 0.5rem 1rem;
    background: var(--global-palette1);
    color: white;
    text-decoration: none;
}

.standish-loop-options {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .standish-loop-listing {
        grid-template-columns: 1fr;
        gap: 1rem;
        /* padding: 1rem; */
        background-color: var(--color7);
    }
    .standish-loop-posts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ====================================
   STANDISH LOGO FOOTER
==================================== */

.standish-logo-with-text {
    display: flex;
    align-items: center;
    justify-content: end;
}

.standish-logo-with-text p.passion {
    margin: 0px 12px;
    color: var(--global-palette3);
}

.standish-logo-with-text p.passion.light {
    color: var(--global-palette9);
}

.standish-logo-with-text img.svg {
    display: none;
}

a.standish-logo {
    margin: 0px;
}

a.standish-logo svg,
a.standish-logo img {
    max-width: 120px;
    cursor: pointer;
    max-height: 26px;
    fill: #fff;
    transition: all 300ms;
    min-height: 23px;
}

a.standish-logo.dark svg,
a.standish-logo.dark img {
    max-width: 120px;
    cursor: pointer;
    max-height: 26px;
    fill: #ff2626;
    transition: all 300ms;
    min-height: 23px;
}

a.standish-logo.light svg,
a.standish-logo.light img {
    max-width: 120px;
    cursor: pointer;
    max-height: 26px;
    fill: #ffffff;
    transition: all 300ms;
    min-height: 23px;
}

/* ====================================
   FILTERS STYLES
==================================== */

.standish-select-container {
    display: flex;
    width: 100%;
    border: solid 0px var(--global-palette3);
    margin-bottom: 1.5rem;
    gap: 1rem;
}

@media (max-width: 1024px) and (hover: hover) {
    .standish-select .options .option:hover, 
    .standish-select.toggle ul.options li.option:hover {
        background: inherit ;
        color: var(--color2) !important;
        border: solid 2px white !important;
    }
}

.standish-select .select-btn,
.select-btn.more-filters {
    color: var(--global-palette3);
    display: flex;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
    font-family: var(--global-heading-font-family);
    justify-content: space-between;
    border-right: solid 0px var(--global-palette3);
}

.standish-select-container .standish-search-input > .search {
    width: 5rem;
    background: var(--global-palette1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: solid 0px var(--global-palette3);
}

.select-btn.more-filters {
    color: var(--color9) !important;
    background: var(--global-palette1);
}
.standish-select .select-btn {
    color: var(--color3) !important;
    background: var(--global-palette1);
}

.stan-base-modal-filters .standish-select .select-btn .btn-text {
    font-size: 20px;
    color: var(--color3);
}

.standish-select .select-btn .btn-icon:before,
.select-btn.more-filters .btn-text:before {
    color: var(--color3) !important;
}

.standish-search-posts .loop-entry .entry-content-wrap,
article.entry.loop-entry .entry-content-wrap {
    padding: 1.25rem;
}

.standish-search-input {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.standish-select-container .standish-search-input input {
    width: 100%;
    display: flex;
    border-radius: 0;
    border: 0;
    font-family: var(--global-heading-font-family);
    color: var(--global-palette3);
    font-size: 1.25rem;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.standish-select-container .standish-search-input input::placeholder {
    color: var(--global-palette6);
}

.standish-search-results {
    font-family: var(--global-heading-font-family);
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: none;
}

.standish-select-container .standish-search-input > .search {
    width: 5rem;
    height: 3.5rem;
    background: var(--global-palette1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: solid 1px var(--global-palette3);
}

.standish-select-container .standish-search-input > .search:before {
    content: '\e927';
    font-family: "icomoon";
    font-size: 1.75rem;
    color: var(--global-palette9);
}

.standish-select-container .standish-search-input button {
    width: 2rem;
    height: 3rem;
}

.standish-select {
    min-width: 300px;
    transition: all 0.3s;
    position: relative;
}

.standish-select .select-btn,
.select-btn.more-filters {
    color: var(--global-palette3);
    display: flex;
    height: 3.5rem;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 0px;
    align-items: center;
    cursor: pointer;
    font-family: var(--global-heading-font-family);
    justify-content: space-between;
    /* border-right: solid 1px var(--global-palette3); */
}

.standish-select .select-btn span.btn-text,
.standish-filters .select-btn span.btn-text {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    width: fit-content;
    white-space: nowrap;
    font-size: 1.25rem;
}

.standish-select .select-btn .btn-icon {
    color: #000;
    transition: 0.3s;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.5rem;
}

.standish-select .options {
    display: none;
    z-index: 100;
    position: absolute;
    width: 355px;
    overflow-y: auto;
    max-height: 295px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: fit-content !important;
    min-width: 220px;
    top: 100%;
    left: 0;
}

.standish-select.active .options {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

.standish-select .options .option {
    display: flex;
    min-height: 55px;
    width: 100%;
    cursor: pointer;
    padding: 0 12px;
    border-radius: 8px;
    align-items: center;
    background: #fff;
    line-height: 1.2em;
}

.standish-select .option .checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    min-width: 18px;
    border-radius: 4px;
    margin-right: 12px;
    border: 1.5px solid #c0c0c0;
    transition: all 0.3s ease-in-out;
}

.standish-select .option.checked .checkbox {
    background-color: var(--global-palette1);
    border-color: var(--global-palette1);
}

.standish-select .options .option .option-text {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--global-heading-font-family);
}


.standish-select .options .option.checked {
    background: var(--global-palette7);
}

.select-btn.more-filters .btn-text {
    display: flex;
    align-items: center;
}

.standish-select li.option.checked span.checkbox:before {
    content: "\e906";
    font-family: icomoon;
    width: 16px;
    font-size: 16px;
    color: var(--global-palette9);
}

.select-btn.more-filters .btn-text:before {
    content: '\ecb6';
    margin-right: 0.75rem;
}

.standish-select .select-btn .btn-icon:before {
    content: "\e916";
}

.standish-select.active .select-btn .btn-icon {
    transform: rotate(-180deg);
}

.standish-select .select-btn .btn-text:before,
.select-btn.more-filters .btn-text:before,
.standish-select .select-btn .btn-icon:before {
    font-family: icomoon;
    font-size: 1.5rem;
    color: var(--global-palette3);
}

/* Mobile Filters */
@media (max-width: 768px) {
    .standish-select-container {
        display: none;
    }

    .wp-block-kadence-column.filtres .kt-inside-inner-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    a.stan-base-reset-filters.btn-clear {
        color: var(--color2);
        text-decoration: none;
    }

    .standish-select.multiple {
        order: 2;
    }

    .standish-select-container .standish-search-input > .search {
        width: 5rem;
    }

    .standish-select-container .standish-search-input {
        width: 100%;
        order: 1;
    }

    .standish-select .select-btn,
    .select-btn.more-filters {
        border-right: none !important;
    }

    .standish-select .select-btn span.btn-text,
    .standish-filters .select-btn span.btn-text,
    .standish-select-container .standish-search-input input {
        font-size: 1rem;
    }

    .standish-loop-listing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .standish-select .options {
        min-width: 100%;
    }

    .standish-select .select-btn,
    .select-btn.more-filters,
    .standish-select-container .standish-search-input > .search {
        height: 3.5rem;
    }
}

/* ====================================
   MODAL STYLES
==================================== */

.select-btn.more-filters {
    display: none;
}
.select-btn.more-filters .standish-select ul.options {
    background: transparent !important;
}
.select-btn.more-filters .standish-select .options .option .option-text {
    font-size: 1rem;
    display: inherit;
    -webkit-line-clamp: inherit;
    -webkit-box-orient: inherit;
    overflow: inherit;
    font-family: var(--global-heading-font-family);
}

.select-btn.more-filters .standish-select .options .option .option-text {
    font-size: 1rem !important;
}

.standish.modal .modal-footer {
    flex-wrap: nowrap !important;
    display: flex !important;
}

.standish.modal .standish-select-container {
    display: flex;
    flex-direction: column;
    height: fit-content;
    gap: 0.5rem !important;
}

.standish.modal .modal-footer button {
    min-width: fit-content;
}

.modal-dialog-scrollable .modal-body,
.modal-dialog-scrollable .modal-body .stan-base-modal-content {
    overflow-x: visible !important;
}

.stan-base-modal-filters .standish-select {
    padding: 0.75rem;
    background: var(--global-palette8);
    border-radius: 12px;
}

.stan-base-filters .standish-select.toggle.active ul.options,
.stan-base-modal-filters .standish-select.toggle ul.options {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.25rem;
    row-gap: 0.25rem;
}

.stan-base-filters .standish-select.toggle ul.options li.option,
.stan-base-modal-filters .standish-select.toggle ul.options li.option {
    min-width: 60px;
    color: var(--global-palette3);
    display: flex;
}

button.modal-btn-close {
    padding: 0.35rem 0.75rem;
    background: var(--global-palette9);
    border-radius: 4px;
}

button.modal-btn-close:hover {
    background: var(--global-palette3);
}

button.modal-btn-close:before {
    content: '\ecb7';
    font-family: icomoon;
    font-size: 1rem;
    color: var(--global-palette3);
}

button.modal-btn-close:hover:before {
    color: var(--global-palette9);
}

.modal-body {
    padding: 1rem !important;
    max-height: 500px !important;
    overflow-y: auto !important;
}

.modal-header {
    justify-content: space-between;
}

.modal-content {
    border: 0px !important;
    width: min(100% - 0.65rem, 600px) !important;
    margin-inline: auto !important;
}

.modal-footer {
    justify-content: center !important;
}

.modal-footer button {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-family: var(--global-heading-font-family);
}

.btn-close.standish-filters-btn,
.modal-footer .btn-primary {
    background: var(--global-palette3);
    color: var(--global-palette9);
    border: 0px;
}

.modal-footer .btn-primary:hover {
    background: var(--global-palette1);
}

.stan-base-modal-filters .standish-select.multiple ul.options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stan-base-modal-filters .standish-select.multiple .options .option {
    width: calc(50% - 0.5rem);
    min-height: 3.5rem;
}

.modal .standish-select span.btn-icon {
    display: none;
}

.stan-base-modal-filters .standish-select {
    min-width: 220px;
    max-width: 100%;
}

.stan-base-modal-filters .standish-select ul.options {
    display: block;
    width: 100%;
    position: relative;
    overflow-y: inherit;
    padding: 0px;
    max-height: inherit;
    box-shadow: none;
    max-width: initial !important;
}

.stan-base-modal-filters .standish-select.multiple ul.options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-left: 0px;
    gap: 0.5rem;
}

.stan-base-modal-filters .standish-select.multiple .options .option {
    width: calc(50% - 0.25rem);
    min-height: 3.5rem;
}

.stan-base-modal-filters li.option span.checkbox {
    display: none;
}

.stan-base-modal-filters .standish-select .select-btn {
    padding: 0.75rem 0;
    height: inherit !important;
    background: none;
    font-size: 1.25rem;
    font-weight: 400;
    background-color: transparent;
}

.stan-base-modal-filters .standish-select .select-btn:hover,
.stan-base-modal-filters .standish-select:hover {
    cursor: default;
    opacity: 1;
    box-shadow: none;
}

.stan-base-modal-filters .standish-select.toggle .options .option {
    padding: 0 1rem;
}

h5.modal-title {
    font-weight: 500;
    font-size: 20px;
}

/* Mobile Modal Styles */
@media only screen and (max-width: 768px) {
    .standish-select {
        max-width: 100% !important;
    }

    .stan-base-filters {
        padding: 0.5rem 1.5rem;
    }
}

@media (min-width: 769px) {
    .select-btn.more-filters {
        display: none;
    }
}

@media (max-width: 768px) {
    .select-btn.more-filters {
        display: flex;
        align-items: center;
        white-space: nowrap;
        width: fit-content;
    }

    .modal {
        top: auto !important;
        bottom: 0 !important;
        display: block !important;
        max-height: 65vh !important;
        animation-name: ModalfadeInUp;
        -webkit-animation-name: ModalfadeInUp;
        animation-duration: 0.4s;
        animation-fill-mode: both;
        -webkit-animation-duration: 0.4s;
        -webkit-animation-fill-mode: both;
    }

    .modal-dialog.modal-dialog-scrollable {
        position: absolute;
        bottom: 0px !important;
        margin: 0px 5px;
    }

    .modal-content {
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
        position: fixed !important;
        bottom: 0 !important;
        background-color: var(--global-palette9) !important;
    }

    .modal {
        display: none !important;
    }

    .modal.show {
        display: block !important;
    }

    .btn-close.standish-filters-btn,
    .modal-footer .btn-primary {
        width: 100%;
    }

    @keyframes ModalfadeInUp {
        from {
            transform: translate3d(0, 40px, 0);
        }
        to {
            transform: translate3d(0, 0, 0);
            opacity: 1;
        }
    }
}

@media (max-width: 535px) {
    .stan-base-filters {
        justify-content: space-between;
    }
}