:root {
    --rate-color-five: #00ff48;
    --rate-color-four: #007a22;
    --rate-color-three: #ff8b00;
    --rate-color-two: #932200;
    --rate-color-one: #000000;
}
.no-wrap {
    white-space: nowrap;
}
.estimation-panel {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 350px;
    background-color: white;
    box-shadow: 5px 5px 10px 1px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.estimation-panel > button.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.estimation-panel_instructions.hidden {
    display: none;
}
.estimation-panel_instructions {
    padding: 40px 20px 20px;
}

.estimation-panel_list {
    padding: 40px 15px 0 15px;
}
.estimation-panel_footer {
    padding: 15px;
}

.estimation-panel_list_item-del {
    background-color: rgb(241, 241, 241);
    border-radius: 10px;
    padding: 7px;
}
.estimation-panel_list_item-descr__text {
    margin-bottom: 15px;
}
.estimation-panel_close {
    background-image: url(/static/img/arrow-left.png);
    background-size: 24px;
}
.estimation-value {
    font-size: 1.5em;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    border-radius: 25px;
}
.estimation-distance-wrapper {
    font-size: 1.5em;
}
.estimation-panel_list_item-descr__text {
    padding-left: 10px;
    padding-right: 10px;
}

input[type=range].estimate-range::webkit-slider-thumb {
    color: red;
    border-color: red;
}

#estimationSendBtn.hidden {
    display: none;
}

.hidden {
    display: none;
}


.color-bar {
    display: flex;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.color-box {
    flex: 1;
    height: 30px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    width: 30px;
}

/* Different colors for each box */
.color-box:nth-child(1) { background: #000000; }
.color-box:nth-child(2) { background: #5d5d5d; }
.color-box:nth-child(3) { background: #932200; }
.color-box:nth-child(4) { background: #ff3a00; }
.color-box:nth-child(5) { background: #ff8b00; }
.color-box:nth-child(6) { background: #fff300; }
.color-box:nth-child(7) { background: #007a22; }
.color-box:nth-child(8) { background: #00bf36; }
.color-box:nth-child(9) { background: #00ff48; }

.lower-bar {
    position: fixed;
    left: 20px;
    bottom: 16px;
}
.lower-bar__ctrl-panel {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}
.lower-bar__palette {
    order: 1;
}
.lower-bar__checkboxes {
    padding: 4px 10px;
    align-content: center;
    vertical-align: middle;
    border-radius: 10px;
    background: rgba(255, 255, 255, 80%);
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
    margin-left: 15px;
    order: 2;
}
.lower-bar__wrapper {
    order: 3;
}
.lower-bar__rating-link {
    flex-basis: 100%;
    order: 4;
}


.align-items-center {
    align-items: center;
}

.rating-item__rate {
    text-align: center;
    border-radius: 8px;
}
.rating-item__five {
    background-color: var(--rate-color-five);
}
.rating-item__four {
    background-color: var(--rate-color-four);
    color: white;
}
.rating-item__three {
    background-color: var(--rate-color-three);
}
.rating-item__two {
    background-color: var(--rate-color-two);
    color: white;
}
.rating-item__one {
    background-color: var(--rate-color-one);
    color: white;
}


.rate-road-btn-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .navbar {
        padding-top: 0;
        padding-bottom: 0;
    }
    .main-container {
        position: relative;
    }
    .rate-road-btn {
        display: none;
    }
    .rate-road-btn-mobile {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 10;
    }
    .lower-bar__checkboxes {
        width: fit-content;
        display: flex;
        margin-left: 0;
        margin-top: 7px;
        font-size: 0.9em;
        order: 4;
    }
    .lower-bar__wrapper {
        order: 3;
        flex-basis: 100%;
    }
    .color-box {
        width: 27px;
        height: auto;
    }
    .lower-bar__rating-link {
        margin-left: 10px;
        order: 2;
    }
    .lower-bar__rating-link {
        flex-basis: auto;
    }

    .estimation-panel {
        width: 100vw;
        z-index: 10;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    .rate-panel_footer_about-rating-link {
        display: None;
    }
    .estimation-panel_list_item-descr__text {
        margin-bottom: 5px;
    }
    .estimation-distance-wrapper {
        font-size: 1.2em;
    }
    .estimation-value {
        font-size: 1.2em;
    }
    .rate-example-img {
        height: 70px;
        object-fit: cover;
    }
}
