/* Блок выбора пункта выдачи в корзине / чекауте */

#dpd-kz-picker .dpd-kz-selected {
	margin-bottom: 8px;
	padding: 10px 12px;
	background: #f6f7f7;
	border-left: 3px solid #d7182a;
	border-radius: 3px;
	line-height: 1.4;
}

#dpd-kz-picker .dpd-kz-selected-name {
	display: block;
}

#dpd-kz-picker .dpd-kz-selected-meta {
	display: block;
	font-size: 0.85em;
	opacity: 0.75;
}

/* Модальное окно */

body.dpd-kz-modal-open {
	overflow: hidden;
}

.dpd-kz-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.dpd-kz-modal.is-open {
	display: block;
}

.dpd-kz-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.dpd-kz-modal__window {
	position: relative;
	margin: 3vh auto;
	width: min( 1100px, 94vw );
	height: 94vh;
	max-height: 94vh;
	background: #fff;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
}

.dpd-kz-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e5e5e5;
	flex: 0 0 auto;
}

.dpd-kz-modal__title {
	font-weight: 600;
	font-size: 1.05em;
}

.dpd-kz-modal__close {
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	color: #666;
}

.dpd-kz-modal__body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.dpd-kz-modal__side {
	width: 380px;
	max-width: 42%;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e5e5e5;
	min-height: 0;
}

.dpd-kz-modal__map {
	flex: 1 1 auto;
	min-width: 0;
}

#dpd-kz-map {
	width: 100%;
	height: 100%;
}

.dpd-kz-search {
	margin: 12px;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: calc( 100% - 24px );
	box-sizing: border-box;
}

.dpd-kz-list {
	overflow-y: auto;
	flex: 1 1 auto;
	padding: 0 12px 12px;
}

.dpd-kz-status {
	padding: 16px 4px;
	color: #666;
}

.dpd-kz-status--error {
	color: #b32d2e;
}

.dpd-kz-item {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	padding: 10px 12px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dpd-kz-item:hover {
	border-color: #d7182a;
}

.dpd-kz-item.is-selected {
	border-color: #d7182a;
	box-shadow: inset 0 0 0 1px #d7182a;
}

.dpd-kz-item__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.dpd-kz-item__badge {
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #d7182a;
	color: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	white-space: nowrap;
}

.dpd-kz-item__addr {
	font-weight: 600;
}

.dpd-kz-item__note,
.dpd-kz-item__meta {
	font-size: 0.85em;
	color: #666;
	line-height: 1.4;
}

.dpd-kz-item__select {
	margin-top: 8px;
}

.dpd-kz-balloon-select {
	cursor: pointer;
	border: 0;
	background: #d7182a;
	color: #fff;
	padding: 6px 12px;
	border-radius: 3px;
}

/* Инфо о доставке в заказе */

.dpd-kz-order-info ul {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.dpd-kz-order-info li {
	margin-bottom: 4px;
}

@media ( max-width: 782px ) {
	.dpd-kz-modal__body {
		flex-direction: column;
	}

	.dpd-kz-modal__side {
		width: 100%;
		max-width: none;
		border-right: 0;
		border-bottom: 1px solid #e5e5e5;
		max-height: 55%;
	}

	.dpd-kz-modal__map {
		min-height: 220px;
	}
}
