/* Компактная доставка: видимая строка и штатный движок DP. */
.dp-compact-delivery {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 14px 0 16px;
    padding: 14px 16px;
    background: #f8faff;
    border: 1px solid #dbe7ff;
    border-radius: 10px;
    box-shadow: none;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.dp-compact-delivery__visible {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: normal;
}

.dp-compact-delivery__icon {
    display: inline;
    margin-right: 7px;
    color: #005bff;
    font-size: 16px;
    vertical-align: baseline;
}

.dp-compact-delivery__label {
    margin-right: 4px;
    font-weight: 500;
    color: #111827;
}

.dp-compact-delivery__city-link {
    display: inline;
    color: #005bff;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    cursor: pointer;
}

.dp-compact-delivery__city-link:hover {
    color: #004bd6;
    text-decoration: none;
}

.dp-compact-delivery__dash {
    margin: 0 6px;
    color: #94a3b8;
}

/* HTML срока и цены приходит из DP. Он должен переноситься как обычный текст. */
.dp-compact-delivery__result,
.dp-compact-delivery__result-main,
.dp-compact-delivery__result-cost,
.dp-compact-delivery__checkout,
.dp-compact-delivery__result .js-dp-product-estimated-date,
.dp-compact-delivery__result .dp-product__service-estimated,
.dp-compact-delivery__result .dp-product__service-col,
.dp-compact-delivery__result .dp-product__service-col-line,
.dp-compact-delivery__result .dp-estimated-date,
.dp-compact-delivery__result .dp-estimated-date__caption,
.dp-compact-delivery__result .dp-estimated-date__value,
.dp-compact-delivery__result .js-dp-product-cost,
.dp-compact-delivery__result .dp-product__service-price,
.dp-compact-delivery__result .dp-cost,
.dp-compact-delivery__result .dp-cost__value,
.dp-compact-delivery__result .ruble {
    display: inline !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;
    color: inherit !important;
    white-space: normal !important;
}

.dp-compact-delivery__payment {
    display: flex;
    align-items: baseline;
    gap: 0;
    min-width: 0;
    margin-top: 9px;
}

.dp-compact-delivery__payment > i {
    flex: 0 0 20px;
    width: 20px;
    margin-right: 7px;
    color: #005bff;
    font-size: 16px;
    text-align: center;
}

.dp-compact-delivery__payment > span {
    min-width: 0;
    white-space: normal;
}

.dp-compact-delivery__payment strong {
    margin-right: 0;
    color: #111827;
    font-weight: 500;
}

/* DP остаётся в DOM: display:none мешает расчёту и штатному выбору города. */
.dp-compact-delivery__engine {
    position: absolute !important;
    left: -100000px !important;
    top: 0 !important;
    display: block !important;
    width: 700px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    z-index: -1;
}

.dp-compact-delivery__engine .dp-product {
    display: block !important;
}

.dp-compact-delivery__engine .dp-product__header,
.dp-compact-delivery__engine .dp-product__content,
.dp-compact-delivery__engine .dp-product__service-list,
.dp-compact-delivery__engine .dp-product__service,
.dp-compact-delivery__engine .dp-product__service-row,
.dp-compact-delivery__engine .dp-product__service-calculation {
    visibility: visible !important;
}

@media (max-width: 767px) {
    .dp-compact-delivery {
        margin: 12px 0 14px;
        padding: 12px 10px;
        font-size: 14px;
    }

    .dp-compact-delivery__icon {
        margin-right: 5px;
        font-size: 14px;
    }

    .dp-compact-delivery__label {
        margin-right: 3px;
    }

    .dp-compact-delivery__dash {
        margin: 0 5px;
    }

    .dp-compact-delivery__payment {
        gap: 0;
        margin-top: 7px;
    }

    .dp-compact-delivery__payment > i {
        flex-basis: 17px;
        width: 17px;
        margin: 0 5px 0 0;
        font-size: 14px;
    }

    .dp-compact-delivery__payment > span {
        font-size: 14px;
    }

    .dp-compact-delivery__payment strong {
        margin-right: 0;
        font-size: 14px;
    }
}
