#leasing-filters {
    padding: 16px 36px;
    border-radius: 10px 10px 10px 10px;
    background: #EFEFEF;
}

#filter-submit {
    background-color: #00A9A6;
    transition: all 0.3s ease-in-out;
}

#filter-submit:hover {
    background-color: #041D37;
}

.selects select:hover {
    cursor: pointer;
}

#leasing-filters select,
#leasing-filters input[type="number"],
#sort-results {
    padding: 20px 22px;
    border-radius: 10px;
    border: none;
    outline: none;
    background-color: #FFF;
    color: #041D37;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.33px;
}

#sort-results {
    border-radius: 10px;
    border: 1px solid #D6D6D6;
    background: #FFF;
}

.elementor-widget-shortcode {
    width: 100%;
}

#leasing-results,
.selects {
    display: grid;
    width: 100%;
    gap: 15px;
    row-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
}

#leasing-results {
    margin-top: 50px;
}

.selects {
    margin-bottom: 15px;
}

#leasing-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 20px;
}

.wrap-slider-button {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
}

.wrap-slider-button .slider-wrap {
    display: flex;
    width: 70%;
    justify-content: space-between;
    align-items: center;
}

#filter-price-min,
#filter-price-max {
    max-width: unset;
}

#slider-range {
    width: 80%;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select-group label,
.price-label {
    color: #041D37;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.176px;
}

.noui-horizontal {
    height: 5px !important;
}

.noui-connect {
    background-color: #003973 !important;
}

.noui-horizontal .noui-handle {
    width: 14px !important;
    height: 14px !important;
    right: 0 !important;
    top: -5px !important;
    border-radius: 50% !important;
    background-color: #003973 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

#leasing-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-top: 20px;
    width: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #041d37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.leasing-car .down {
    display: flex;
    gap: 2%;
    padding: 25px;
    background-color: #EFEFEF;
    transition: all 0.3s ease-in;
    border-radius: 10px;
}

.leasing-car:hover .down {
    background-color: #041D37;
}

.leasing-car .top {
    background-color: #fff;
}

.leasing-car .down .left h3 {
    color: #041D37;
    font-size: 23.76px;
    font-weight: 300;
    line-height: 128%;
    margin: 0;
    margin-bottom: 6px !important;
}

.leasing-car .down .left h4 {
    color: #041D37;
    font-size: 19.8px;
    font-style: normal;
    font-weight: 600;
    line-height: 128%;
    margin: 0;
    margin-bottom: 6px !important;
}

.leasing-car .down .left,
.leasing-car .down .right {
    width: 49%;
}

.leasing-car .shape-overlay svg ellipse {
    transition: all 0.3s ease-in;
}

.leasing-car:hover .shape-overlay svg ellipse {
    fill: #041D37;
}

.leasing-car:hover {
    cursor: pointer;
}

.leasing-car .top {
    position: relative;
}

.car-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.shape-overlay {
    position: absolute;
    bottom: -15px;
    z-index: 0;
}

.leasing-car .wrap-content-left h3,
.leasing-car .wrap-content-left h4,
.leasing-car p {
    margin: 0 !important;
}

.leasing-car:hover .wrap-content-left h3,
.leasing-car:hover .wrap-content-left h4,
.leasing-car:hover p {
    color: #FFF;
    cursor: pointer;
}

.leasing-car {
    background-color: #EFEFEF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease-in;
    border-radius: 10px;
    color: unset;
    text-decoration: none;
}

.leasing-car:hover {
    background-color: #041D37;
}

.car-image img {
    z-index: 1;
}

#leasing-results {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 15px;
    row-gap: 30px;
}

.leasing-car .down .left,
.leasing-car .down .right {
    display: flex;
    flex-direction: column;
}

.leasing-car .down .right {
    align-items: flex-end;
    justify-content: flex-start;
}

.leasing-car .down .left {
    align-items: flex-start;
    justify-content: space-between;
}

.leasing-car .price {
    font-size: 24px;
    font-weight: 700;
    line-height: 128%;
}

.rata-mies {
    text-align: right;
    font-size: 13.75px;
    font-weight: 300;
    color: #041D37;
}

.price.rate {
    font-size: 28px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px 36px;
    background: #f5f5f5;
    border-radius: 10px;
    flex-wrap: wrap;
}

.results-count {
    color: #041D37;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 128%;
}

.results-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-sorting label {
    color: #041D37;
    font-size: 16px;
}

.results-sorting select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.discount-badge {
    border-radius: 6px;
    background: #D2032D;
    display: inline-flex;
    padding: 4px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 128%;
}

.discount-badge-new {
    border-radius: 6px;
    background: #00a9a6;
    display: inline-flex;
    padding: 4px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 128%;
}

.discount-badge-new2 {
    border-radius: 6px;
    background: #041d37;
    display: inline-flex;
    padding: 4px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 128%;
}

.discount-badge-container {
    display: flex;
    position: absolute;
    gap: 10px;
    flex-direction: row;
    left: 0;
    top: 0;
}

.price {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    color: #041D37;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    line-height: 100%;
}

.leasing-car:hover .price {
    color: #fff;
}

.car-stats {
    font-size: 14px;
}

#slider-range {
    margin-left: 20px;
}

.slider-wrap {
    gap: 10px;
}

.summary-block-rate p {
    font-size: 16px !important;
}

.car-image .wp-post-image,
.car-image .vehicle-image {
    transform: scale(1.4);
}

#leasing-filters #reset-filters,
#reset-filters {
    background-color: #003973 !important;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2em;
    color: #fff !important;
    border-radius: 30px 30px 30px 30px;
    padding: 20px 32px 20px 32px;
}

#leasing-filters #reset-filters:hover,
#reset-filters:hover {
    background-color: #00A9A6 !important;
}

#reset-filters:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.leasing-car .down {
    z-index: 2;
    padding-top: 0 !important;
}

.input-wrapper {
    position: relative;
    display: inline-block;
}

.input-wrapper input[type="number"] {
    width: 120px;
    padding: 10px;
    padding-right: 30px;
    text-align: center;
    background: #EFEFEF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    color: #041D37;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-wrapper input[type="number"]::-webkit-outer-spin-button,
.input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-wrapper .currency {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

#leasing-filters select.loading {
    opacity: 0.7;
    cursor: wait;
}

#leasing-filters select:disabled {
    cursor: wait;
    opacity: 0.7;
    background-color: #F5F5F5 !important;
}

#leasing-filters button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.pagination-button {
    border-radius: 40px;
    background: #D6D6D6;
    padding: 20px 32px;
    color: #041D37;
    font-size: 16.5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background: #00A9A6;
    color: white;
}

.pagination-number {
    color: #041D37;
    font-size: 16.5px;
    font-weight: 600;
    padding: 15px 15px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.pagination-number.active {
    background: #00A9A6;
    color: #041D37;
}

.pagination-number:hover {
    background: #00A9A6;
    color: white;
}

.pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 8px;
    color: #666;
}

.pagination-button.prev {
    margin-right: 8px;
}

.pagination-button.next {
    margin-left: 8px;
}

@media screen and (max-width: 1500px) {
    #leasing-results div.right>p.price>span.price {
        font-size: 21px !important;
    }

    .leasing-car .down .left h3 {
        color: #041D37;
        font-size: 21.76px;
        font-weight: 300;
        line-height: 128%;
        margin: 0;
    }

    .wrap-slider-button .slider-wrap {
        display: flex;
        width: 55%;
        justify-content: space-between;
        align-items: center;
    }

    #leasing-results .leasing-car .down .left h3 {
        font-size: 21px;
        margin-bottom: 6px !important;
    }

    #leasing-results .leasing-car .down .left h4 {
        font-size: 16px !important;
        margin-bottom: 6px;
        line-height: 16px;
    }

    .car-stats {
        font-size: 11px;
        line-height: 1;
    }

    #leasing-results .price {
        font-size: 21px;
    }

    #leasing-results .price .price {
        font-size: 21px;
    }

    .price.rate {
        font-size: 22px;
    }

    .original-price {
        text-decoration: line-through;
        color: #999;
        font-size: 16px;
        line-height: 100%;
    }
}

@media screen and (max-width: 1400px) {
    #leasing-results {
        grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .wrap-slider-button {
        flex-direction: column;
        gap: 15px;
    }

    .wrap-slider-button .slider-wrap {
        width: 100%;
    }

    #leasing-filters select,
    #leasing-filters input[type="number"],
    #sort-results {
        padding: 12px 15px;
        font-size: 15px;
        line-height: 120%;
    }

    #leasing-filters {
        padding: 20px;
    }

    #reset-filters {
        padding: 15px !important;
    }

    #filter-submit {
        padding: 15px !important;
    }

    .leasing-car .down .left h3 {
        font-size: 18px;
    }

    .leasing-car .down .left h4 {
        font-size: 14px;
    }

    .leasing-car .price {
        font-size: 20px;
    }

    .rata-mies {
        font-size: 12px;
    }

    .discount-badge {
        border-radius: 6px;
        padding: 2px 9px;
        font-size: 13px;
        line-height: 109%;
    }

    .discount-badge-new2 {
        padding: 2px 9px;
        font-size: 13px;
        line-height: 109%;
    }

    .discount-badge-new {
        padding: 2px 9px;
        font-size: 13px;
        line-height: 109%;
    }

    .vehicle-image {
        transform: scale(1.5);
    }
}

@media screen and (max-width: 900px) {
    #leasing-results {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    #leasing-filters {
        padding: 15px;
        border-radius: 10px;
        background: #EFEFEF;
    }

    #leasing-results,
    .selects {
        grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    }

    .discount-badge {
        padding: 3px 8px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
    }

    .discount-badge-new2 {
        padding: 3px 8px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
    }

    .discount-badge-new {
        padding: 3px 8px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
    }

    .results-header {
        padding: 15px 20px;
    }

    .results-count {
        font-size: 22px;
    }

    .results-sorting {
        display: none;
    }

    .shape-overlay {
        position: absolute;
        bottom: -15px;
        z-index: 0;
        right: 0;
        width: 100%;
        object-fit: cover;
    }
}

@media screen and (max-width: 768px) {
    #leasing-results {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .wrap-slider-button .slider-wrap {
        flex-direction: column;
        gap: 15px;
    }

    #slider-range {
        width: 98%;
    }

    #filter-price-min,
    #filter-price-max {
        width: 100%;
        max-width: unset;
    }

    #leasing-results,
    .selects {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    #leasing-results .leasing-car .down .left h3 {
        font-size: 16px;
        margin-bottom: 6px !important;
    }
}