/* Delivery calculator on /oplata-i-dostavka (26.11) */
.design-delivery-calc { margin: 0 0 32px; }
.design-delivery-calc-lead { margin: 0 0 12px; color: #555; }
.design-delivery-calc-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 767px) { .design-delivery-calc-grid { grid-template-columns: 1fr; } }

.design-delivery-map { position: relative; height: 440px; overflow: hidden; border: 1px solid #dfe3ea; border-radius: var(--design-radius, 12px); background: #eef1f5; cursor: crosshair; touch-action: none; user-select: none; outline: none; }
.design-delivery-map:focus-visible { border-color: var(--design-blue, #0028d0); }
@media (max-width: 767px) { .design-delivery-map { height: 340px; } }
.design-delivery-map-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.design-delivery-map-tiles img.is-broken { visibility: hidden; }
.design-delivery-map-points { position: absolute; inset: 0; pointer-events: none; }

.design-delivery-point { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; }
.design-delivery-point::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--design-blue, #0028d0); border: 2px solid #fff; }
.design-delivery-point.is-city::before { left: -5px; top: -5px; width: 10px; height: 10px; }
.design-delivery-point span { display: none; position: absolute; left: 9px; top: -9px; white-space: nowrap; font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #1b1f2a; }
.design-delivery-point.is-label span, .design-delivery-point:hover span, .design-delivery-point:focus-visible span, .design-delivery-point.is-active span { display: block; }
.design-delivery-point.is-active::before { background: var(--design-orange, #ed7b24); }
.design-delivery-point:focus-visible { outline: none; }

.design-delivery-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.design-delivery-pin::before { content: ""; position: absolute; left: -11px; top: -30px; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--design-orange, #ed7b24); border: 2px solid #fff; }

.design-delivery-map-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.design-delivery-map-zoom button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; color: #1b1f2a; font-size: 14px; line-height: 1; cursor: pointer; }
.design-delivery-map-zoom button[data-zoom] { font-size: 20px; }
.design-delivery-map-zoom button:hover { background: #f3f5f9; }
.design-delivery-map-zoom button:focus-visible { outline: none; border-color: var(--design-blue, #0028d0); }
.design-delivery-map-attr { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: 11px; background: rgba(255, 255, 255, .8); color: #444; pointer-events: none; }

.design-delivery-result { padding: 16px; border: 1px solid #dfe3ea; border-radius: var(--design-radius, 12px); background: #fff; }
.design-delivery-select-label { display: block; margin-bottom: 6px; font-weight: 600; }
.design-delivery-select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; }
.design-delivery-select:focus { outline: none; border-color: var(--design-blue, #0028d0); }
.design-delivery-answer { margin-top: 14px; }
.design-delivery-zone { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.design-delivery-zone span { font-size: 13px; font-weight: 400; color: #666; }
.design-delivery-zone.is-outside { color: var(--design-orange, #ed7b24); font-size: 16px; }
.design-delivery-hint { margin: 0 0 8px; color: #555; font-size: 14px; }
.design-delivery-prices { list-style: none; margin: 0; padding: 0; }
.design-delivery-prices li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f4; }
.design-delivery-prices li:last-child { border-bottom: 0; }
.design-delivery-prices strong { white-space: nowrap; color: var(--design-blue, #0028d0); }
.design-delivery-prices em { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #e8edff; color: var(--design-blue, #0028d0); font-style: normal; font-size: 12px; }
.design-delivery-prices li.is-recommended strong { color: var(--design-orange, #ed7b24); }
.design-delivery-note-small { margin: 10px 0 0; font-size: 12px; color: #777; }
.design-delivery-cart { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f3f5f9; font-size: 14px; }
.design-delivery-cart p { margin: 0; }

/* 27.11: address, popup list of directions, pickup point */
.design-delivery-label { display: block; margin: 0 0 6px; font-weight: 600; }
.design-delivery-result .design-select-control { width: 100%; margin-bottom: 4px; }
.design-delivery-address { display: flex; gap: 8px; }
.design-delivery-address textarea { flex: 1 1 auto; min-width: 0; height: 40px; min-height: 40px; padding: 9px 12px; line-height: 20px; resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; }
.design-delivery-address textarea:focus { outline: none; border-color: var(--design-blue, #0028d0); }
.design-delivery-address .btn { flex: 0 0 auto; height: 40px; padding: 0 16px; color: #fff; }
.design-delivery-address-status { margin: 6px 0 14px; font-size: 13px; color: #555; }
.design-delivery-address-status.is-error { color: #c0392b; }
.design-delivery-address-results { display: flex; flex-direction: column; gap: 2px; margin: -8px 0 14px; padding: 5px; border: 1px solid #dfe3ea; border-radius: 8px; background: #fff; }
.design-delivery-address-option { padding: 8px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 14px; cursor: pointer; }
.design-delivery-address-option:hover, .design-delivery-address-option:focus { outline: none; background: #f3f5f9; }
.design-delivery-pickup { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; }
.design-delivery-pickup::before { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 4px; background: var(--design-blue, #0028d0); border: 2px solid #fff; }
.design-delivery-pickup span { position: absolute; left: 12px; top: -10px; white-space: nowrap; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 6px; background: var(--design-blue, #0028d0); color: #fff; }
.design-delivery-pickup.is-active::before, .design-delivery-pickup.is-active span { background: var(--design-orange, #ed7b24); }
.design-delivery-pickup:focus-visible { outline: none; }

/* 27.11: long addresses, options and the chosen direction wrap instead of being cut */
.design-delivery-address { align-items: flex-start; }
.design-delivery-address-option { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.design-delivery-result .design-select-trigger { height: auto; min-height: 40px; }
.design-delivery-result .design-select-trigger-label { white-space: normal; overflow: visible; text-overflow: clip; text-align: left; line-height: 1.35; }
.design-delivery-result .design-select-option { white-space: normal; overflow-wrap: anywhere; text-align: left; }

/* 27.11 (iteration 21): address field without a button; status only for progress/errors; checkout context */
.design-delivery-address textarea { width: 100%; }
.design-delivery-address-status { margin: 6px 0 12px; }
.design-delivery-address-status[hidden] { display: none; }
.design-delivery-address + .design-delivery-address-status[hidden] + .design-delivery-address-results[hidden] + .design-delivery-label,
.design-delivery-result > .design-delivery-address { margin-bottom: 14px; }
.design-delivery-calc.is-checkout { margin: 0; }

/* 28.11: Yandex Maps engine (js/design-map.js) */
.design-delivery-map .design-map-ymap { position: absolute; inset: 0; z-index: 0; }
.design-delivery-map.is-yandex .design-delivery-map-points { z-index: 1; }
.design-delivery-map.is-yandex .design-delivery-map-attr { display: none; }
