/* Стили формы и кнопки ручной заявки на доставку. */

.quarry_page_action_buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.btn_manual_delivery_request {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 240px;
    height: 36px;
    padding: 8px 51px;
    border: none;
    border-radius: 8px;
    font-family: 'Involve', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn_manual_delivery_request {
    background: #FB8C27;
    color: #181717;
}

.manual_delivery_request {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    padding: 16px;
    gap: 24px;
    background: #CFD3BB;
    border-radius: 10px;
    font-family: 'Involve', sans-serif;
    color: #181717;
}

.manual_delivery_request__title {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
}

.manual_delivery_request__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manual_delivery_request__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manual_delivery_request__section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.manual_delivery_request__section-title {
    flex: none;
    font-weight: 700;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #646B41;
}

.manual_delivery_request__section-line {
    flex: 1 1 auto;
    height: 0;
    border-top: 1px solid #646B41;
}

.manual_delivery_request__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual_delivery_request__field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0;
}

.manual_delivery_request__field[hidden] {
    display: none;
}

.manual_delivery_request__label-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.manual_delivery_request__label {
    flex: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    color: #181717;
}

.manual_delivery_request__quarry-name {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    font-weight: 700;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 0.05em;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    color: #646B41;
}

.manual_delivery_request__label--small {
    font-size: 13px;
}

.manual_delivery_request__control {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #DBDECF;
    border-radius: 8px;
    font-family: 'Involve', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #181717;
}

.manual_delivery_request__control--compact {
    height: 36px;
    padding: 6px 16px;
}

.manual_delivery_request__control[readonly] {
    background: #DBDECF;
    cursor: default;
}

.tr-manual-panel .manual_delivery_request input[name="distance"] {
    background: #FFFFFF;
}

.manual_delivery_request__control::placeholder {
    color: rgba(24, 23, 23, 0.4);
    opacity: 0.7;
}

.manual_delivery_request__control.is-invalid {
    border-color: #EA5E60;
}

.manual_delivery_request__control.is-map-pick-active {
    border-color: #646B41;
    box-shadow: 0 0 0 1px #646B41;
}

.mdr-map-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border-radius: 50%;
    font-family: 'Involve', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    box-shadow: 0 1px 4px rgba(24, 23, 23, 0.25);
}

.mdr-map-marker--pickup {
    background: #FB8C27;
}

.mdr-map-marker--delivery {
    background: #646B41;
}

.manual_delivery_request__error {
    font-size: 12px;
    line-height: 140%;
    color: #EA5E60;
}

select.manual_delivery_request__control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L4 4L1 1' stroke='%23646B41' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

select.manual_delivery_request__control option[disabled] {
    color: rgba(24, 23, 23, 0.4);
}

.manual_delivery_request__suggest {
    position: relative;
    width: 100%;
}

.manual_delivery_request__suggest .manual_delivery_request__control {
    padding-right: 40px;
}

.manual_delivery_request__clear {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #CFD3BB;
    cursor: pointer;
}

.manual_delivery_request__clear[hidden] {
    display: none;
}

.manual_delivery_request__suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 6;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #DBDECF;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.08);
}

.manual_delivery_request__suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    cursor: pointer;
}

.manual_delivery_request__suggest-item:hover,
.manual_delivery_request__suggest-item.is-active {
    background: #ECEDE3;
}

.manual_delivery_request__suggest-name {
    font-size: 14px;
    line-height: 140%;
    color: #181717;
}

.manual_delivery_request__suggest-address {
    font-size: 12px;
    line-height: 140%;
    color: rgba(24, 23, 23, 0.5);
}

.manual_delivery_request__material {
    position: relative;
    width: 100%;
}

.manual_delivery_request__material.is-custom-material .js-mdr-material-input {
    padding-right: 40px;
}

.manual_delivery_request__material-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='16' viewBox='0 0 20 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8.5L7.2 13.5L18 2.5' stroke='%23A3B06A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 16px;
    cursor: pointer;
}

.manual_delivery_request__material-toggle[hidden] {
    display: none;
}

.manual_delivery_request__material-notice {
    position: fixed;
    z-index: 3020;
    max-width: 260px;
    padding: 8px 12px;
    background: #FFFFFF;
    color: #181717;
    border: 1px solid #DBDECF;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(24, 23, 23, 0.12);
    font-family: 'Involve', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    pointer-events: none;
}

.manual_delivery_request__material-notice[hidden] {
    display: none;
}

.manual_delivery_request__control.manual_delivery_request__material-input--list[readonly] {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L4 4L1 1' stroke='%23646B41' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    padding-right: 40px;
}

.manual_delivery_request__material-list {
    position: fixed;
    z-index: 3010;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #DBDECF;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(24, 23, 23, 0.08);
    font-family: 'Involve', sans-serif;
}

.manual_delivery_request__material-list[hidden] {
    display: none;
}

.manual_delivery_request__material-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    line-height: 140%;
    color: #181717;
}

.manual_delivery_request__material-item:hover,
.manual_delivery_request__material-item.is-active,
.manual_delivery_request__material-item.is-selected {
    background: #ECEDE3;
}

.manual_delivery_request__material-item--empty,
.manual_delivery_request__material-item--empty:hover {
    background: transparent;
    color: rgba(24, 23, 23, 0.5);
    cursor: default;
}

.manual_delivery_request__material-name {
    min-width: 0;
}

.manual_delivery_request__material-check {
    flex: none;
    width: 20px;
    height: 20px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='16' viewBox='0 0 20 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8.5L7.2 13.5L18 2.5' stroke='%23A3B06A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 16px;
}

.manual_delivery_request__material-tooltip {
    position: fixed;
    z-index: 3020;
    padding: 4px 8px;
    background: #181717;
    color: #fff;
    font-family: 'Involve', sans-serif;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
}

.manual_delivery_request__material-tooltip[hidden] {
    display: none;
}

.manual_delivery_request__checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin: 0;
    opacity: 0.6;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #181717;
    cursor: pointer;
}

.manual_delivery_request__checkbox input {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    margin: 0;
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.manual_delivery_request__checkbox input:checked {
    background: #646B41;
    border-color: #646B41;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.manual_delivery_request__quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.manual_delivery_request__quantity .manual_delivery_request__control {
    flex: 1 1 auto;
}

.manual_delivery_request__quantity .manual_delivery_request__unit {
    width: 96px;
    flex: 0 0 96px;
    padding-right: 32px;
    background-position: right 10px center;
}

.manual_delivery_request__order-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

.manual_delivery_request__field--grow {
    flex: 1 1 auto;
    min-width: 0;
}

.manual_delivery_request__field--date {
    width: 120px;
    flex: none;
}

.manual_delivery_request__comment {
    height: 76px;
    min-height: 76px;
    resize: vertical;
    align-items: flex-start;
}

.manual_delivery_request__actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
}

.manual_delivery_request__btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: 1 1 0;
    height: 38px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Involve', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #181717;
    cursor: pointer;
}

.manual_delivery_request__btn--cancel {
    background: #DBDECF;
}

.manual_delivery_request__btn--submit {
    background: #ED8C33;
}

.manual_delivery_request__btn--submit:disabled {
    background: #DBDECF;
    color: rgba(24, 23, 23, 0.45);
    cursor: default;
    pointer-events: none;
}

.manual_delivery_request__submit-wrap {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

.manual_delivery_request__submit-wrap .manual_delivery_request__btn--submit {
    width: 100%;
}

.manual_delivery_request__submit-tooltip {
    position: fixed;
    z-index: 3020;
    max-width: 280px;
    padding: 8px 12px;
    background: #FFFFFF;
    color: #181717;
    border: 1px solid #DBDECF;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(24, 23, 23, 0.12);
    font-family: 'Involve', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    pointer-events: none;
}

.manual_delivery_request__submit-tooltip-list {
    margin: 6px 0 0;
    padding-left: 16px;
}

.manual_delivery_request__submit-tooltip[hidden] {
    display: none;
}

.manual_delivery_request__show_route {
    width: 100%;
    flex: none;
    height: 40px;
}

.manual_delivery_request__show_route[hidden] {
    display: none;
}

.manual_delivery_request__show_route:disabled {
    background: #DBDECF;
    color: rgba(24, 23, 23, 0.45);
    cursor: default;
}

.manual_delivery_request__show_route.is-loading:disabled {
    background: #ED8C33;
    color: #181717;
    cursor: default;
}

.manual_delivery_request_modal_dialog {
    max-width: 560px;
}

.manual_delivery_request_modal_content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.manual_delivery_request_modal_content .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.manual_delivery_request_modal_content .manual_delivery_request {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.manual_delivery_request_modal_content .manual_delivery_request::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

@media screen and (max-width: 768px) {
    .manual_delivery_request__order-row {
        flex-direction: column;
    }

    .manual_delivery_request__field--date {
        width: 100%;
    }
}

.container_for_info_about_quarry .btn_manual_delivery_request {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    margin-top: 12px;
    padding: 8px 24px;
    gap: 10px;
    border: none;
    border-radius: 8px;
    background: #646B41;
    font-family: 'Involve', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #FFFFFF;
}

@media screen and (max-width: 768px) {
    .quarry_page_action_buttons {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }

    .btn_manual_delivery_request {
        width: 100%;
        max-width: 240px;
        padding: 8px 16px;
    }

    .container_for_info_about_quarry .btn_manual_delivery_request {
        max-width: none;
        padding: 8px 24px;
    }
}
