.cdek-pvz-block {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    background: #fff;
}

.cdek-pvz-title {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 18px;
}

.cdek-pvz-selected {
    margin-bottom: 14px;
    line-height: 1.45;
}

.cdek-pvz-selected.is-empty {
    color: #a33;
}

.order__form-field--recipient-city {
    display: block;
}

#cdekModal .modal-dialog {
    max-width: 1180px;
}

#cdekModal .modal-body {
    padding: 0;
}

#cdek-widget-map,
.cdek-widget-map {
    display: block;
    width: 100%;
    height: 650px;
    min-height: 650px;
}

.cdek-widget-help {
    margin: 10px 16px 14px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    #cdek-widget-map,
    .cdek-widget-map {
        height: 520px;
        min-height: 520px;
    }
}

/* The CDEK widget dependencies must not reset the page controls.
   These rules keep the site's quantity buttons and the modal close button visible. */
.cdek-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #666;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

.cdek-modal-close:hover {
    color: #111;
    opacity: 1;
}

.cart-item .select-count__btn {
    display: inline-block;
    visibility: visible;
}

.cart-item .select-count {
    display: inline-flex;
    align-items: center;
}


.cdek-manual-select-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 14px;
    border-top: 1px solid #ececec;
    background: #fff;
}

.cdek-manual-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 0;
    border-radius: 22px;
    background: #ef1b1b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cdek-manual-select-btn:hover {
    background: #d90000;
}

.cdek-manual-select-note {
    color: #777;
    font-size: 13px;
    line-height: 1.35;
}

.cdek-manual-select-btn:disabled,
.cdek-manual-select-btn.is-loading {
    opacity: .72;
    cursor: wait;
}

/* Keep the manual CDEK selection control clickable above the widget layers. */
#cdekModal .modal-body {
    position: relative;
    overflow: visible;
}

.cdek-manual-select-bar {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.cdek-manual-select-btn {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
}


#btn-cdek-open-map.cdek-pvz-selected-btn,
#btn-cdek-open-map.btn-green {
    background: #0b7a31 !important;
    border-color: #0b7a31 !important;
    color: #fff !important;
}

#btn-cdek-open-map.cdek-pvz-selected-btn:hover,
#btn-cdek-open-map.btn-green:hover {
    background: #096328 !important;
    border-color: #096328 !important;
}


#btn-cdek-open-map.cdek-pvz-selected-btn .btn__inner,
#btn-cdek-open-map.btn-green .btn__inner,
#btn-cdek-open-map.cdek-pvz-selected-btn .btn__inner span,
#btn-cdek-open-map.btn-green .btn__inner span {
    background: #0b7a31 !important;
    border-color: #0b7a31 !important;
    color: #fff !important;
}

#btn-cdek-open-map.cdek-pvz-selected-btn:hover .btn__inner,
#btn-cdek-open-map.btn-green:hover .btn__inner {
    background: #096328 !important;
    border-color: #096328 !important;
}

/* Unified book order delivery selector. */
.order__form-field--delivery-method {
    display: block;
    width: 100%;
    margin: 8px 0 14px;
}

.delivery-method-title {
    margin-bottom: 8px;
    font-weight: 700;
}

.delivery-method-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 18px;
    cursor: pointer;
}

.delivery-method-option input {
    margin: 0;
}
