p, input {
    font-family: 'ABankSans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
}
.h-center {
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.show-on-mobile {
    display: none !important;
}
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile {
        display: flex !important;
    }
}
.panel {
    background: #FFFFFF;
    border: 1px solid #E7E7E9;
    border-radius: 12px;
}
.search-wrapper {
    position: absolute;
    top: 24px;
    height: 60px;
    z-index: 1000;
    width: 100%;
    max-width: 1083px;
    transition: width 0.5s ease-in-out;
}
.search-panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 32px;
    gap: 24px;
    max-width: 575px;
    width: 100%;
    height: 60px;
    min-width: 360px;
    position: relative;
    input {
        border: none;
        outline: none;
        width: 100%;
        display: flex;
        align-items: center;
        color: #0D0C22;
    }
    input::placeholder {
        color: #A0A0A0;
    }
    input:focus {
        outline: none;
    }
}
.search-panel:has(input:focus) {
    border: 1px solid #6E6D7A;
}

.search-results {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;

    position: absolute;
    width: 93%;
    height: auto;
    max-height: 420px;
    left: 0;
    top: 68px;
    overflow: auto;
}
.search-results::-webkit-scrollbar {
    width: 4px;
}
.search-results::-webkit-scrollbar-thumb {
    background: #E7E7E9;
    border-radius: 1px;
}
.search-results::-webkit-scrollbar-track {
    background: transparent;
}
/* Стили для Firefox */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: #E7E7E9 transparent;
}
.no-items {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    gap: 8px;
    position: absolute;
    width: 100%;
    left: 0;
    top: 68px;
    .title {
        display: flex;
        align-items: center;
        text-align: center;
        color: #0D0C22;
    }
    .description {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        display: flex;
        align-items: center;
        text-align: center;
        color: #6E6D7A;
    }
}
.result-item {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #E7E7E9;
    width: 100%;
    cursor: pointer;
    .info {
        display: flex;
        flex-direction: row;
        gap: 12px;
        p {
            font-size: 20px;
            display: flex;
            align-items: center;
            color: #00C64D;
            width: 100%;
        }
        .danger {
            color: #CD5C5C;
        }
        .dayoff {
            color: #5CCCCC;
        }
        div {
            font-size: 18px;
            color: #6E6D7A;
            text-align: right;
        }
    }
    p {
        font-size: 14px;
        line-height: 20px;
        display: flex;
        align-items: center;
        color: #6E6D7A;
    }
}
.result-item:first-child {
    border-top: none;
}
.result-item:hover > .info p {
    color: #0D0C22B2;
}
#map-form {
    flex-direction: row;
    display: flex;
    gap:4px;
    flex-wrap: wrap;
}
.selected-point {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 270px;
    gap: 24px;
    height: 60px;
    cursor: pointer;
    position: relative;
    p {
        height: 28px;
        display: flex;
        align-items: center;
        color: #0D0C22;
    }
}
.selected-point-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    border-radius: 12px;
}
.selected-point-wrapper:hover {
    background: #ECECEC;
}
.points-list {
    position: absolute;
    display: none;
    flex-direction: column;
    box-sizing: border-box;
    align-items: flex-start;
    padding: 0;

    width: 438px;
    height: 158px;
    right: 0;
    top: 68px;
}
@media (max-width: 964px) {
    .points-list {
        width: 100%;
        max-width: 100%;
        min-width: 360px;
        right: -90px;
    }
}

.point {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    width: 89%;
    justify-content: space-between;
    cursor: pointer;
    p {
        color: #0D0C22;
    }
}
.point:hover, .service-wrapper:hover {
    background: #ECECEC;
}
.point:first-child:hover {
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}
.point:last-child:hover {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.check {
    display: none;
}
.active > .check {
    display: flex;
}
.selected-services {
    display: flex;
    box-sizing: border-box;
    flex-direction: row;
    width: fit-content;
    height: 60px;
}
.service-wrapper {
    p {
        color: #0D0C22;
    }
    align-items: center;
    padding: 16px 32px;
    gap: 24px;
    display: flex;
    cursor: pointer;
}
.services-list {
    position: absolute;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-items: flex-start;
    padding: 0;
    width: 448px;
    height: auto;
    right: 0;
    top: 68px;
    .title {
        color: #6E6D7A;
        padding: 12px 24px;
    }

    .service {
        padding: 12px 24px;
        display: flex;
        align-items: center;
        width: 89%;
        cursor: pointer;
        p {
            color: #0D0C22;
        }
        .checkbox {
            padding-right: 12px;
            svg {
                width: 24px;
                height: 24px;
            }
        }
    }
    .service .on {
        display: none;
    }
    .service.active .off {
        display: none;
    }
    .service.active .on {
        display: block;
    }
    .clear {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        cursor: pointer;
        p {
            display: flex;
            align-items: center;
            color: rgba(252, 8, 8, 0.5);
        }
        .delete {
            width: 24px;
            height: 24px;

            padding-right: 12px;
            text-align: center;
        }
    }
}
@media (max-width: 768px) {
    .services-list {
        width: 100%;
        max-width: 100%;
        min-width: 360px;
        top: 125px;
    }
}
.list-close-points {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: absolute;
    bottom: 79px;
    cursor: pointer;
    width: 100%;
    max-width: 484px;
    p {
        display: flex;
        align-items: center;
        color: #0D0C22;
    }
}
.wrapper-list-close-points {
    align-items: center;
    padding: 16px 32px;
    gap: 12px;
    display: flex;
}
.list-close-points:hover {
    background: #ECECEC;
}
.list-close-points.active > .close-points-results {
    display: flex;
}
.close-points-results {
    width: 90%;
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    bottom: 68px;
    padding: 12px 24px;
    .head {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 16px;
        p {
            display: flex;
            align-items: center;
            color: #6E6D7A;
        }
    }
}
@media (max-width: 768px) {
    .close-points-results {
        overflow-y: auto;
        max-height: 476px;
        scrollbar-width: thin;
        scrollbar-color: #E7E7E9 transparent;
    }
    .close-points-results::-webkit-scrollbar {
        width: 6px;
    }

    .close-points-results::-webkit-scrollbar-thumb {
        background: #E7E7E9;
        border-radius: 3px;
    }

    .close-points-results::-webkit-scrollbar-track {
        background: transparent;
    }
}
.no-results {
    width: 90%;
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    bottom: 68px;
    justify-content: center;
    align-items: center;
    padding: 24px;
    gap: 8px;
    height: 180px;
    svg {
        width: 36px;
        height: 36px;
    }
    .title {
        display: flex;
        align-items: center;
        text-align: center;
        color: #0D0C22;
    }
    .description {
        font-size: 14px;
        line-height: 20px;
        display: flex;
        align-items: center;
        text-align: center;
        color: #6E6D7A;
    }
}
