#custom_slider_container {
    max-width: 85%;
    padding: 0 15px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    
}
.loan-not-available-notice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
    font-weight: bold;
}
.hiddenRecord {
	display: none;
}
.service-type-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 15px 10px 45px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-type-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #2196F3;
    color: white;
    font-size: 14px;
    border-radius: 4px;
}

/* Varmista, että input-elementtien teksti on aina tummaa */
input, select {
    color: #333 !important;
}
.box {
    display: flex;
    gap: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .14);
    padding: 0 30px 30px;
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    background: white;
}

.sc-range-slider {
    /* position: relative; */
    width: 100%;
    height: auto;
}

.one {
    position: relative;
    margin-top: 30px;
}

.value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.value p {
    font-size: 20px;
    color: #333F48;
    font-weight: bold;
}

.output {
    padding: 10px 20px;

    font-size: 24px;
    font-weight: 400;
    color: #000;
    background: #F2F4F5;
}

.range-slider_input {
    z-index: 3;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    opacity: 0.5;
    margin: 0;
}

.range-slider_input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 100px;
    /*cursor: pointer;*/
    border-radius: 50%;
    opacity: 0;
}

.range-slider_thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #00ad4b;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab; /* Show a grab cursor to indicate draggable */
}



.range-slider_line {
    height: 10px;
    width: 100%;
    background-color: rgba(51, 63, 72, 0.5);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    position: absolute;
    z-index: 1;
    
    overflow: hidden;
}

.range-slider_line-fill {
    position: absolute;
    height: 100%;
    width: 0;
    background-color: #00534C;
}

#slider_input1 {
	border: 0px!important;
}

#slider_input2 {
	border: 0px!important;
}

#recordsContainer {
  width: 100%;
  max-width: 1200px; /* tai muu sopiva leveys */
  margin: 0 auto;
}

.results {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.result-main {
  width: 100%;
}

.result-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sorting {
    width: 100%;
    padding: 30px 0px 15px;
    border-top: 0px solid #aacc5e;
    margin-left: auto;
    display: flex;
    margin-right: auto;
    max-width: 260px;
    justify-content: center;
    align-items: center;
}

.sortinglabel {
    font-weight: 500;
    color: #fff;
    float: left;
    padding: 5px 5px;
    font-size: 16px;
}

.sorting select {
    color: #333;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
}

.result-main {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 72, 217, .1), 0 24px 60px rgba(0, 72, 217, .05), 0 12px 24px rgba(0, 72, 217, .05);
    padding: 50px 36px 36px;
    background: #fff;
    text-align: center;
    position: relative;
}

.result-main.highlighted {
    border: solid 2px #0d2c59;
    box-shadow: 0 2px 4px rgba(0, 72, 217, .15), 0 24px 60px rgba(0, 72, 217, .15), 0 12px 24px rgba(0, 72, 217, .15);
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ribbon p {
    top: 9px;
    margin: 0;
    left: -10px;
    position: absolute;
    background: #0d2c59;
    color: #FFF;
    font-size: var(--font-xs);
    line-height: 14px;
    padding: 7px 14px;
    border-radius: 4px 0 0 0;
    box-shadow: 2px 2px 4px rgba(143, 145, 148, .4);
}

.ribbon p::before {
    content: '';
    background: #000;
    position: absolute;
    left: 0;
    top: 100%;
    display: block;
    height: 5px;
    width: 8px;
    -webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.ribbon p::after {
    content: '';
    background: #0d2c59;
    position: absolute;
    left: 100%;
    top: 0;
    display: block;
    height: 100%;
    width: 10px;
    border-radius: 0 8px 8px 0;
    -webkit-clip-path: polygon(100% 0%, 0 50%, 100% 100%, 0 100%, 0 0);
    clip-path: polygon(100% 0%, 0 50%, 100% 100%, 0 100%, 0 0);
}

.faq-drawer__content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}



.result-logo img {
    height: 80px;
	border-radius: 10px;
}

.reviews {
    color: #ffc107;
}

.site-btn {
    display: block;
    background: #0d2c59;
    font-size: 15px;
    color: #fff !important;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 45px;
    box-shadow: 2px 2px 4px rgba(143, 145, 148, .6);
    transition: box-shadow 0.3s;
}

.site-btn:hover {
    box-shadow: 4px 4px 8px rgba(135, 136, 138, 1);
}

.bank_details span {
    color: #444;
    font-size: 15px;
}

.result-box .bank_details p {
    font-weight: bold;
}

.result-box .bank_details p {
    margin: 10px 0 0 0;
}

.faq-drawer {
    text-align: right;
}

.faq-drawer__content-wrapper {
    max-height: 0px;
    overflow: hidden;
    transition: 0.25s ease-in-out;
}

.faq-drawer__title {
    color: #717171;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    padding: 10px 45px;
    transition: all 0.25s ease-out;
    font-size: 12px;
    border: 1px solid rgba(52, 127, 255, 0.2);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
    border-radius: 4px;
}

.faq-drawer__title::before {
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: " ";
    display: inline-block;
    height: 7px;
    position: relative;
    right: 7px;
    transform: rotate(135deg);
    transition: 0.35s ease-in-out;
    vertical-align: top;
    width: 7px;
}

.faq-drawer__content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    gap: 24px;
    margin-top: 20px;
}

.faq-drawer__trigger:checked+.faq-drawer__title+.faq-drawer__content-wrapper {
    max-height: 100%;
}

.faq-drawer__trigger:checked+.faq-drawer__title::before {
    transform: rotate(-45deg);
    transition: 0.25s ease-in-out;
    top: 6px;
}

.range-slider_thumb, .range-slider_line {
     /*transition: left 0.1s ease-out, width 0.1s ease-out;*/
}


input[type="checkbox"] {
    display: none;
}

.extra h6,
.extra p {
    margin: 0;
}

.extra {
    background-color: #f7f9fb;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: solid 1px rgba(52, 127, 255, 0.05);
    padding: 1.21rem 1.14rem;
}


@media(max-width: 992px) {
    .sc-range-slider {
        height: auto
    }
    main, #custom_slider_container {
        max-width: 100%;
        padding: 0
    }

    .box {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
    }


}

@media (max-width:768px) {
    .result-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px
    }

    .result-box>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

}
.bank_details p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width:500px) {
    .result-main {
        padding: 16px;
    }
    .faq-drawer__content {
        grid-template-columns: repeat(1, 1fr);
    }
    .faq-drawer__title {
        display: block;
        text-align: center;
        margin-top: 16px;
    }
    .faq-drawer__trigger:checked+.faq-drawer__title+.faq-drawer__content-wrapper {
    max-height:100%;
}
}
#loadmorediv {
    text-align: center;
    margin: 30px 0;
    width: 100%;
}

#loadMore {
    background-color: #007bff; /* Sininen tausta */
    color: white; /* Valkoinen teksti */
    border: none;
    padding: 15px 30px; /* Suurempi padding tekee painikkeesta isomman */
    font-size: 18px; /* Suurempi fonttikoko */
    border-radius: 30px; /* Pyöreämmät reunat */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Pieni varjostus */
    display: block; /* Muutetaan block-elementiksi */
    margin: auto; /* Keskittää painikkeen vaakasuunnassa */
    max-width: 250px; /* Rajoittaa painikkeen maksimileveyden */
}

#loadMore:hover {
    background-color: #0056b3; /* Tummempi sininen hover-efektille */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Hieman suurempi varjostus hover-tilassa */
    transform: translateY(-2px); /* Pieni "nosto"-efekti hoverissa */
}

@media screen and (max-width: 768px) {
    .result-box > div {
        width: 100%;
    }
}

#sortby {
    color: #333;
}

#sortby option {
    color: #333;
}

.service-type-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
	 font-size: 14px;
}

.range-slider_thumb, .range-slider_line {
    transition: all 0.1s ease-out;
}

.range-slider_thumb {
    cursor: grab;
}

.range-slider_thumb:active {
    cursor: grabbing;
}

.range-slider_thumb {
    margin-left: -15px; /* Puolet thumbin leveydestä */
}

.range-slider_input {
    padding: 0 15px; /* Lisää padding kompensoimaan thumbin marginaalia */
}

.reviews {
    font-size: 1.2em; /* Tähtien koko */
    color: #FFD700; /* Väri täydelle tähdelle */
    display: inline-flex;
}

.reviews {
    font-size: 1.2em; /* Tähtien koko */
    color: #FFD700; /* Täytettyjen tähtien väri */
    display: inline-flex;
}

.star {
    color: lightgray; /* Tyhjien tähtien väri */
}

.star.filled {
    color: #FFD700; /* Täytetty tähti */
}

.star.half {
    position: relative;
    color: lightgray; /* Perusväri tyhjälle osalle */
}

.star.half::before {
    content: '\2605'; /* Täytetty tähti (★) */
    position: absolute;
    left: 0;
    width: 50%; /* Näyttää vain puolet tähdestä */
    overflow: hidden;
    color: #FFD700; /* Väri täytetylle puolelle */
}

@media screen and (max-width: 768px) {
    .service-type-ribbon {
    position: absolute;
    top: -5px;
    right: 5px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    width: 40% !important;
    font-size: 14px;
    }
}