/* Slider Fixes */
.ui-slider {
    background: linear-gradient(266.03deg, #20c1b2 24.24%, #078093 68.14%);
    border-radius: 30px;
    height: 12px;
    position: relative;
    border: 1px solid #e8e9eb;
    cursor: pointer;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: #ffffff;
    border: 6px solid #ffffff;
    box-sizing: border-box;
    border-radius: 30px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    outline: none;
    top: 50%;
    margin-top: -11px;
    margin-left: -11px;
}

.ui-slider .ui-slider-handle:before {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: -6px;
    bottom: -6px;
    width: 21px;
    height: 21px;
    border: 1px solid #bbbbbb;
    border-radius: 100%;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    display: block;
    border: 0;
    background-position: 0 0;
    background: transparent;
}

.ui-slider-horizontal {
    height: 12px;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}

.container-slider {
    position: relative;
    max-width: 100%;
    margin-top: 20px;
}

.container-slider-range {
    position: relative;
    height: 12px;
    margin: 0 10px;
}

.mark {
    position: absolute;
    background: #ffffff;
    width: 50px;
    height: 30px;
    border-radius: 10px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.25));
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: bold;
    font-size: 12px;
    color: #000000;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mark:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -13px;
    border: 8px solid transparent;
    border-top: 8px solid white;
}

.datalist {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 10px;
}

.datalist li {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 15px;
    color: #182035;
    opacity: 0.5;
}

.slider-range-inverse {
    background: #e8e9eb;
    position: absolute;
    right: 0;
    height: 12px;
    border-radius: 0 30px 30px 0;
}

/* Amount field fixes */
.amount-field {
    background: #f2f3f4;
    border: 1px solid #20c1b2;
    box-sizing: border-box;
    border-radius: 10px;
    width: 100%;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
}

.amount-field input {
    padding: 14px 55px 14px 20px;
    width: 100%;
    background: transparent;
    border: none;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    font-family: "Montserrat";
    color: #182035;
}

.amount-field-button {
    z-index: 5;
    position: absolute;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: normal;
    color: #20c1b2;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.amount-field-button:hover {
    color: #078093;
}

/* Fix for mobile */
@media (max-width: 768px) {
    .container-counter {
        flex-direction: column;
    }
    
    .deposit-block {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .container-counter-amount {
        width: 100%;
    }
    
    .list-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-info {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .invest-btn {
        width: 100%;
    }
}