#aps-search-form {
    background: #f2f2f2;
    padding: 1vw;
}

.filter-group {
    margin-bottom: 15px;
}

#aps-loader {
    text-align: center;
    padding: 20px;
}

.product-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#aps-results-wrapper {
    position: relative;
}

div#aps-search-results > .row {
    margin-bottom: 1.5vw;
}

.aps-overlay-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 20;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.aps-overlay-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.aps-spinner-wrapper {
    text-align: center;
    animation: float 1.5s ease-in-out infinite;
}

.loading-text {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    opacity: 0.8;
    font-style: italic;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

#aps-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #21355a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#aps-scroll-top:hover {
    background-color: #b3e5fc;
}

/*Auretti's style*/
/*Styling product search archive filters*/

.avo-product-search-archive {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
}

.avo-product-search-filter-title {
    font-family: var(--e-global-typography-791a7b8-font-family), Sans-serif;
    font-size: var(--e-global-typography-791a7b8-font-size);
    font-weight: var(--e-global-typography-791a7b8-font-weight);
    text-transform: var(--e-global-typography-791a7b8-text-transform);
    color: var(--e-global-color-primary);
    margin: 0;
}

.avo-product-search-filter {
    padding-left: 1vw;
    margin-bottom: 2vw;
}

.avo-product-search-filters-container .aps-taxonomy-wrapper {
    scrollbar-color: var(--e-global-color-secondary) var(--e-global-color-2c8fcba);
    scrollbar-width: thin;
}

.avo-product-search-filter input:checked {
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-primary) !important;
}

.avo-product-search-filter input {
    width: 1.5vw;
    height: 1.5vw;
    margin: 0.25vh 0.5vw 0.25vh 0;
    vertical-align: middle;
    border-width: 0.15vw;
    border-style: solid;
    border-color: #969696;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    border-radius: 0 !important;
}

.avo-product-search-filter .form-text-wrapper input,
.avo-product-search-filter input.dkravo-input-sliders{
    margin: 0.25vh 0.5vw 0.25vh 0;
    vertical-align: middle;
    border-width: 0.15vw;
    border-style: solid;
    border-color: #969696;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    border-radius: 0 !important;
    min-height: 2.2vw;
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    line-height: var(--e-global-typography-text-line-height);
	padding: 16px 8px!important;
}

.avo-product-search-filter-buttons .btn-primary,
.avo-product-search-filter-buttons .btn-outline-secondary {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
    margin: 0 0 0 0;
    padding: 0.2vw 1vw;
    border: none;
    border-radius: 50vw;
    font-family: var(--e-global-typography-791a7b8-font-family), Sans-serif;
    font-size: var(--e-global-typography-791a7b8-font-size);
    font-weight: var(--e-global-typography-791a7b8-font-weight);
    text-transform: var(--e-global-typography-791a7b8-text-transform);
}

.avo-product-search-filter-buttons .btn-primary:hover,
.avo-product-search-filter-buttons .btn-primary:focus {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
}


.avo-product-search-filter-buttons .btn-outline-secondary:hover,
.avo-product-search-filter-buttons .btn-outline-secondary:focus {
    background-color: var(--e-global-color-2c8fcba);
    color: var(--e-global-color-primary);
}


.avo-product-search-filter-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5vw;
}

.avo-product-search-filter-buttons .btn-outline-secondary {
    background-color: var(--e-global-color-2c8fcba);
}

.avo-product-search-archive .badge.filter-count-badge {
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);

	display: none;
}

.avo-product-search-filter .form-check {
    padding-right: 1.5em;
}

.avo-product-search-wheel-type-container {
    margin-bottom: 3.5vw;
    padding-bottom: 1.5vw;
    border-bottom: 0.1px solid var(--e-global-color-a4a7c96);
}

.avo-product-search-wheel-type-container input:checked {
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-primary) !important;
}

.avo-product-search-wheel-type-container input {
    width: 1.3vw;
    height: 1.3vw;
    margin: 0.25vh 0.5vw 0.25vh 0;
    vertical-align: middle;
    border-width: 0.15vw;
    border-style: solid;
    border-color: #969696;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    margin-left: 1.3vw;
    margin-right: 0.1vw;
}

.avo-slider-filter-container .avo-product-search-filter {
    padding: 0 2vw;
    margin-top: 3vw !important;
}

.avo-slider-filter-container .noUi-connect {
    background: var(--e-global-color-secondary);
}

.avo-slider-filter-container .noUi-tooltip {
    font-size: 0.75em;
}

.aps-elementor-icon.elementor-icon {
    font-size: 2vw;
}

.elementor .ava-product-featured-image img {
    max-width: 13vw;
    height: 30vh;
    object-fit: contain;
    object-position: center center;
}

.aps-elementor-box-icon.elementor-icon-box-icon {
    margin-bottom: 0.2vw !important;
}

/*css fix to remove bootstrap column and rows for search results and filters*/
.avo-filter-results-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 2vw;
}

.avo-product-search-filters-container {
    width: 25%;
}

.avo-results-container {
    width: 75%;
}

div#aps-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    margin-top: 2vw;
}

.single-card.product-tile {
    width: 32%;
    zoom: 0.80;
}

.result-nb-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1vw;
}

/*.aps-elementor-description.elementor-icon-box-description{
    font-size: 0.8vw!important
}
.aps-elementor-box-icon.elementor-icon-box-icon{
    margin:0!important
}*/

.aps-taxonomy-wrapper > label {
    position: relative;
    /*justify-content: flex-start!important;*/
    /*align-items: center!important;*/
}

.aps-taxonomy-wrapper .avo-product-search-filter-title span.dashicons.dashicons-arrow-down-alt2,
.aps-taxonomy-wrapper .avo-product-search-filter-title span.dashicons.dashicons-arrow-up-alt2 {
    /*position: absolute;*/
    right: 0;
    display: none;
    font-size: medium;
}

.aps-taxonomy-wrapper .avo-product-search-filter-title.dkr-toggle-open span.dashicons.dashicons-arrow-up-alt2,
.aps-taxonomy-wrapper .avo-product-search-filter-title.dkr-toggle-closed span.dashicons.dashicons-arrow-down-alt2 {
    display: inline;
}

body.loading::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0 0 0 / 59%);
    z-index: 9999;
}

body.loading::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 8vw;
    height: 8vw;
    transform: translate(-50%, -50%);
    background: url('/wp-content/uploads/2025/05/lf30_editor_gyeqd1dx-1.gif') no-repeat center center;
    background-size: contain;
    z-index: 9999;
    pointer-events: none;
}

/** Pagination */

.dkravo-pagination-links-wrapper {
    display: flex;
    justify-content: center;
    margin: 2vw 0;
}

.dkravo-pagination-links-wrapper > a,
.dkravo-pagination-links-wrapper > span{
    margin: 0.5vw;
    padding: 0.5vw;
}

.dkravo-pagination-links-wrapper > .page-numbers.current {
    background-color: var( --e-global-color-primary );
    color: white;
}

@media only screen and (max-width: 767px) {
    .avo-filter-results-row {
        flex-direction: column;
    }

    .avo-filter-results-row .avo-product-search-filters-container {
        width: 100%;
    }

    .avo-results-container {
        width: 100%;
    }

    .avo-results-container #aps-results-wrapper #aps-search-results {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .avo-results-container #aps-results-wrapper #aps-search-results > .single-card.product-tile {
        width: 100%;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .aps-elementor-icon.elementor-icon {
        font-size: 8vw;
    }

    .elementor .ava-product-featured-image img {
        max-width: 57vw;
    }

    .result-nb-container {
        flex-wrap: wrap;
        row-gap: 2vw;
    }

    .aps-elementor-box-icon.elementor-icon-box-icon {
        margin-bottom: 1vw !important;
    }

    .avo-product-search-wheel-type-container input,
    .avo-product-search-filter input,
    .avo-series-filter input {
        width: 3.3vw;
        height: 3.3vw;
    }

    .avo-product-search-filter-buttons .btn-primary,
    .avo-product-search-filter-buttons .btn-outline-secondary {
        padding: 2vw 6vw;
    }

    .avo-product-search-filter-diameter-slider {
        margin-top: 10vw;
    }

    body.loading::after {
        width: 25vw;
        height: 25vw;
    }

    .avo-product-search-filters-container {
        margin-bottom: 20vw;
    }

    .avo-product-search-filter-buttons {
        margin-top: 6vw;
    }

    .avo-product-search-filter-filters {
        display: flex;
        gap: 1vw;
        overflow: scroll;
        padding-bottom: 4vw;
        padding-right: 10vw;
    }

    .avo-product-search-wheel-type-container label {
        width: fit-content;
        white-space: nowrap;
    }

    .avo-product-search-filter-filters:after {
        content: " ";
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 1) 100%);
        display: block;
        position: absolute;
        right: 0;
        width: 15vw;
        height: 8.5vw;
    }

    .avo-slider-filter-container .avo-product-search-filter {
        margin-top: 12vw !important;
        margin-bottom: 8vw;
        margin-left: 4vw;
    }
	
	.dkravo-pagination-links-wrapper > a,
	.dkravo-pagination-links-wrapper > span{
    	margin: 1.5vw;
    	padding: 1.5vw;
	}
	
	#aps-search-form {
    	padding: 7vw;
	}
}


@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .aps-elementor-icon.elementor-icon {
        font-size: 4vw;
    }

    .elementor .ava-product-featured-image img {
        max-width: 28vw;
    }

    #aps-search-results .col-md-6 {
        width: 100%;
    }

    .result-nb-container {
        flex-wrap: wrap;
        row-gap: 2vw;
    }

    .aps-elementor-box-icon.elementor-icon-box-icon {
        margin-bottom: 1vw !important;
    }

    .avo-product-search-wheel-type-container input,
    .avo-product-search-filter input,
    .avo-series-filter input {
        width: 1.5vw;
        height: 1.5vw;
    }

    .avo-product-search-filter-buttons .btn-primary,
    .avo-product-search-filter-buttons .btn-outline-secondary {
        padding: 1vw 3vw;
    }

    .avo-product-search-filter-diameter-slider {
        margin-top: 6vw;
    }

    body.loading::after {
        width: 15vw;
        height: 15vw;
    }

	.single-card.product-tile {
    	width: 100%;
    	zoom: 1;
	}

	.avo-results-container {
    	width: 60%;
	}

	.avo-product-search-filters-container {
    	width: 40%;
	}

	#aps-search-form {
    	padding: 2vw
	}
	
	.dkravo-pagination-links-wrapper > a,
	.dkravo-pagination-links-wrapper > span{
    	margin: 1vw;
    	padding: 1vw;
	}
}