/* Базовые */

.delpay {
    margin-top: 3.75rem;
}

.delpay-delivery__grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 29.375rem 1fr;
    grid-template-columns: 29.375rem 1fr;
    grid-column-gap: 1.875rem;
    margin-bottom: 7.5rem;
}

.delpay__info-zone,
.delpay__info-price {
    padding: 1.125rem 1.25rem;
    background-color: #464646;
    box-shadow: 0px 5px 11px 0px #00000059;
    border-radius: 1.875rem;
}

.delpay__info-zone {
    margin-bottom: 1.25rem;
    border: 1px solid #464646;
}

.delpay__info-price {
    border: 1px solid #68b222;
}

.delpay__info-title {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #fff;
}

.delpay__info-title>svg {
    margin-right: 0.5rem;
}

.delpay__info-zone__price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1.875rem;
    align-items: center;
}

.delpay__info-zone__price>span {
    padding-left: 1rem;
    position: relative;
}

.delpay__info-zone__price>span::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 33px;
}

.delpay__info-zone__price>span:nth-child(1)::before {
    border: 1px solid rgb(116, 193, 44);
    background: rgba(116, 193, 44, 0.7);
}

.delpay__info-zone__price>span:nth-child(2)::before {
    border: 1px solid rgb(255, 149, 0);
    background: rgba(255, 149, 0, 0.7);
}

.delpay__info-zone__price>span:nth-child(3)::before {
    order: 1px solid rgb(57, 222, 251);
    background: rgba(255, 255, 255, 0.7);
}

.delpay__price-subtitle {
    font-size: 0.875rem;
    line-height: 100%;
    color: #e3e3e3;
}

.delpay__price-subtitle:not(:last-child) {
    margin-bottom: 0.25rem;
}

.delpay__price-title {
    margin-bottom: 0.875rem;
    font-size: 1.5625rem;
    font-weight: 700;
    line-height: 120%;
    white-space: nowrap;
    color: #68b222;
    font-family: inherit;
}

.delpay__price-group:not(:last-child) {
    margin-bottom: 0.875rem;
}

.group__subtitle:not(:last-child) {
    margin-bottom: 0.3125rem;
}

.group__subtitle {
    font-size: 0.875rem;
    line-height: 142%;
    color: #e3e3e3;
}

.group__title {
    font-size: 0.9375;
    line-height: 142%;
    font-weight: 500;
    color: #fff;
}

/* Стили карты */
.map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.875rem;
}

#delivery-map {
    height: 436px;
    cursor: pointer !important;
}

.map__window {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 100;

    transform: translateX(-50%);

    max-width: 800px;
    width: 100%;

    margin-bottom: 20px;
    border-radius: 24px;
    box-shadow: 2px 2px 8px 0px rgba(49, 49, 49, 0.2);
    background: rgb(33, 33, 33);
    margin-top: 10px;

    padding: 24px;
    transition: all 0.3s;
    /* overflow-y: hidden; */

    display: none;
}

.map__window.map__window--reduce {
    height: 20vh;
}

.map__window-slider {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);

    width: 45px;
    height: 2px;
    background-color: rgba(129, 129, 129, 1);
    border-radius: 5px;
}

.map__window-slider {
    border: none;
    display: none;
}

.map__window.map__window--active {
    display: block;
}

.map__window-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

.map__window-item>span {
    display: block;
}

.map__window-wrapper::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgb(219 219 219 / 50%);
}

.map__window-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 0 30px;
}

.map__window-item {
    max-width: fit-content;
    width: 100%;
}

.map__window-subtitle {
    color: rgb(129, 129, 129);
    font-family: Arial;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;

    margin-bottom: 16px;
    white-space: nowrap;
}

.map__window-address {
    color: rgb(231, 231, 231);
    font-family: Arial;
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
}

.map__window-price {
    color: rgb(116, 193, 44);
    font-family: Arial;
    font-size: 2rem;
    font-weight: 700;
    line-height: 120%;
    white-space: nowrap;
}

.map__window-distance {
    font-size: 0.8em;
    margin-top: 5px;
    margin-bottom: 26px;

    color: rgb(231, 231, 231);
}

.map__window-info {
    color: rgb(129, 129, 129);
    font-family: Arial;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.map__address-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    max-width: 536px;
    width: 90%;
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 9999;
    transform: translateX(-50%);
}

.map__address-input {
    border-radius: 15px;
    box-shadow: 2px 2px 13px 0px rgba(49, 49, 49, 0.25);
    border: none;
    background: rgba(33, 33, 33, 1);
    font-size: 14px;
    color: #fff;
    padding: 0 12px 0 48px;
    width: 100%;
    height: 42px;
}

.map__address-btn {
    border: none;
    background-color: transparent;
    width: 24px;
    height: 24px;
    background: rgb(116, 193, 44);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
}

.hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 325px;
    transform: translateX(-50%);
    border-radius: 15px;
    box-shadow: 2px 2px 8px 0px rgba(49, 49, 49, 0.2);
    background: rgb(52, 100, 14);
    padding: 10px 12px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
}

.hint.hint--active {
    opacity: 1;
}

.hint__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.hint__text {
    flex: 1;
    color: rgb(231, 231, 231);
    font-size: 16px;
    font-weight: 300;

    display: block;
    margin-left: 12px;
    margin-right: 15px;
}

.hint__cross {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;

    transform: translateY(2px);
}

.bold {
    font-weight: 700;
}

.ymaps-2-1-79-graphics-SVG>svg {
    pointer-events: none;
}

.prices {
    border: 0.5px solid rgb(116, 193, 44);
    border-radius: 15px;
    box-shadow: 2px 2px 8px 0px rgba(49, 49, 49, 0.2);
    background: rgb(33, 33, 33);

    max-width: 147px;

    width: 32px;
    height: 32px;

    padding: 9px;

    position: absolute;
    top: 19px;
    left: 28px;

    transition: all 0.2s;

    cursor: pointer;

    display: none;
}

.prices.prices--hover {
    display: none;
    width: 163px;
    padding: 8px 10px;
}

.prices.prices--hover .prices__header-text {
    display: block;
}

.prices.prices--active {
    width: 170px;
    height: 122px;
    padding: 8px 10px;
}

.prices.prices--active .prices__list {
    display: flex;
}

.prices__header {
    display: flex;
    align-items: center;
    gap: 0 12px;
}

.prices.prices--active .prices__header-text {
    display: block;
}

.prices__header-text {
    color: rgb(231, 231, 231);
    font-family: Arial;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    display: none;

    white-space: nowrap;
}

.prices__list {
    margin-top: 8px !important;
    padding-left: 0 !important;

    display: flex;
    flex-direction: column;
    gap: 8px 0;

    display: none;
}

.prices__item {
    position: relative;

    color: rgb(231, 231, 231);
    font-family: Arial;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;

    padding-left: 16px;
}

.prices__item::before {
    content: "";

    position: absolute;
    top: 3px;
    left: 0;

    width: 8px;
    height: 8px;

    border-radius: 33px;
}

.prices__item:nth-child(1)::before {
    border: 1px solid rgb(116, 193, 44);
    background: rgba(116, 193, 44, 0.7);
}

.prices__item:nth-child(2)::before {
    border: 1px solid rgb(255, 149, 0);
    background: rgba(255, 149, 0, 0.7);
}

.prices__item:nth-child(3)::before {
    border: 1px solid rgb(57, 222, 251);
    background: rgba(255, 255, 255, 0.7);
}

.zoomControls__wrapper {
    position: absolute;
    top: 50%;
    right: 28px;

    transform: translateY(-100%);
}

.zoomControls {
    position: relative;

    width: 30px;
    height: 64px;

    background-color: rgba(33, 33, 33, 1);
    border-radius: 12px;

    position: relative;
}

.zoomControls::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(219, 219, 219, 1);
}

.zoomControls__in,
.zoomControls__out {
    background-color: transparent;
    border: none;

    width: 100%;
    height: 32px;
    text-align: center;
}

.zoomControls__in {
    padding-top: 5px;
}

.zoomControls__out {
    padding-bottom: 16px;
}

.zoomControls__zoom {
    width: 30px;
    height: 30px;

    border-radius: 100%;
    border: none;
    background-color: rgba(33, 33, 33, 1);
    margin-top: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.warn {
    position: absolute;
    bottom: 24px;
    left: 50%;

    width: 302px;
    padding: 9px 12px;

    background-color: #fa3e2c;

    transform: translateX(-50%);
    border-radius: 15px;

    opacity: 0;
    transition: all 0.3s;
}

.warn.warn--active {
    opacity: 1;
}

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

.warn__text {
    color: rgb(231, 231, 231);
    font-size: 16px;
    font-weight: 400;
}

.warn__cross {
    border: none;
    background-color: transparent;
}

@media (max-width: 1186px) {
    .prices {
        display: block;
    }

    .delpay__info {
        display: none;
    }

    #delivery-map {
        height: 75vh;
    }

    /* Базовые */
    .delpay-delivery__grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        grid-row-gap: 2.5rem;
        margin-bottom: 4.5rem;
    }

    /* Калькулятор */
    .hint {
        top: auto;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
    }

    .prices.prices--hover {
        display: block;
    }
}

@media (max-width: 670px) {
    .prices {
        top: 122px;
        left: auto;
        right: 16px;
    }

    .zoomControls__wrapper {
        right: 16px;
    }

    .map__window {
        bottom: 0;
        z-index: 100;
        width: 100%;
        border-radius: 24px 24px 0 0;
        box-shadow: 2px 2px 8px 0px rgba(49, 49, 49, 0.2);
        background: rgb(33, 33, 33);
        padding: 24px;
        margin-bottom: 0;
    }
}

@media (max-width: 580px) {
    .map-wrapper {
        padding-bottom: 0;
        border-radius: 0;
        position: absolute;
        left: 0;
        width: 100%;
    }

    .delpay__grid {
        margin-top: 73vh;
    }

    ::selection {
        background-color: transparent;
        color: inherit;
    }

    .map__window-slider {
        display: block;
    }

    .map__window-item {
        width: 170px;
    }

    .map__window-inner {
        max-width: 400px;
        display: flex;
        flex-wrap: wrap;

        gap: 24px 20px;
    }

    .map__window-price {
        font-size: 30px;
    }

    .map__window-address {
        font-size: 16px;
        font-weight: 400;
        max-width: 170px;
    }

    .map__window-subtitle {
        margin-bottom: 6px;
    }

    .map__window-info {
        max-width: 260px;
        text-align: start;
    }

    .map__window-wrapper::before {
        display: none;
    }
}
