.ozd-choose {
	display: inline-block;
	margin: 4px 0 6px 22px;
	padding: 4px 12px;
	border: 1px solid #005bff;
	border-radius: 4px;
	background: #fff;
	color: #005bff;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.4;
	cursor: pointer;
}
.ozd-choose:hover { background: #005bff; color: #fff; }

body.ozd-open { overflow: hidden; }

.ozd-overlay {
	display: none;
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	/* Выше виджетов чатов и cookie-плашек сайта (у них бывает 999999). */
	z-index: 2147483000;
	background: rgba(0, 0, 0, .5);
}
.ozd-modal {
	position: absolute;
	top: 50%; left: 50%;
	width: 1100px;
	max-width: calc(100% - 40px);
	height: 85vh;
	max-height: 800px;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	font-size: 14px;
	line-height: 1.4;
	color: #222;
	overflow: hidden;
}
.ozd-modal * { box-sizing: border-box; }

.ozd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eee;
}
.ozd-title { font-size: 17px; font-weight: bold; }
.ozd-close {
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.ozd-search {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 16px 0;
	margin: 0;
}
.ozd-search input {
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}
.ozd-city { flex: 0 1 200px; }
.ozd-query { flex: 1 1 260px; }
.ozd-find, .ozd-select {
	height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: #005bff;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}
.ozd-select { height: 32px; padding: 0 12px; }
.ozd-select[disabled] { opacity: .5; }

.ozd-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 16px;
}
.ozd-types label { margin: 0 14px 0 0; font-weight: normal; cursor: pointer; }
.ozd-tabs { display: none; }
.ozd-tab {
	padding: 5px 14px;
	border: 1px solid #005bff;
	background: #fff;
	color: #005bff;
	cursor: pointer;
}
.ozd-tab:first-child { border-radius: 4px 0 0 4px; }
.ozd-tab:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.ozd-tab-active { background: #005bff; color: #fff; }

.ozd-body {
	flex: 1;
	min-height: 0;
	display: flex;
	border-top: 1px solid #eee;
}
.ozd-list {
	width: 380px;
	flex: 0 0 380px;
	overflow-y: auto;
	border-right: 1px solid #eee;
	-webkit-overflow-scrolling: touch;
}
.ozd-map { position: relative; flex: 1; min-width: 0; }
.ozd-map-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.ozd-map-msg {
	display: none;
	position: absolute;
	top: 12px; left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	padding: 6px 12px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.ozd-no-map .ozd-map { display: none; }
.ozd-no-map .ozd-list { width: auto; flex: 1; border-right: 0; }

.ozd-point {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid #f2f2f2;
	cursor: pointer;
}
.ozd-point:hover { background: #f7f9ff; }
.ozd-point.ozd-active { background: #eef4ff; }
.ozd-point.ozd-current { box-shadow: inset 3px 0 0 #005bff; }
.ozd-point-info { flex: 1; min-width: 0; }
.ozd-point-type { font-size: 12px; color: #005bff; }
.ozd-point-type.ozd-type-postamat { color: #1a8f3c; }
.ozd-point-address { word-wrap: break-word; }
.ozd-point-schedule { font-size: 12px; color: #666; margin-top: 2px; }
.ozd-balloon { font-size: 14px; line-height: 1.4; max-width: 280px; }
.ozd-balloon .ozd-select { margin-top: 8px; }
.ozd-msg { padding: 20px 16px; color: #666; }
.ozd-error { color: #c00; }

/* Метки Leaflet */
.ozd-pin {
	border: 2px solid #fff;
	border-radius: 50%;
	background: #005bff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.ozd-pin-postamat { background: #1a8f3c; }

@media (max-width: 767px) {
	.ozd-modal {
		top: 0; left: 0;
		width: 100%; max-width: 100%;
		height: 100%; max-height: none;
		transform: none;
		border-radius: 0;
	}
	.ozd-city, .ozd-query { flex: 1 1 100%; }
	.ozd-find { flex: 1 1 100%; }
	.ozd-tabs { display: block; }
	.ozd-list { width: auto; flex: 1; border-right: 0; }
	.ozd-view-map .ozd-list { display: none; }
	.ozd-view-list .ozd-map { display: none; }
	/* Шрифт меньше 16px заставляет iPhone приближать страницу при вводе. */
	.ozd-search input, .ozd-product .ozd-product-city { font-size: 16px; }
	.ozd-choose { padding: 9px 16px; font-size: 15px; }
}

.ozd-pin-search { background: #e0282e; }
.ozd-nearest { padding: 10px 16px; background: #fff8e5; color: #7a5a00; }
.ozd-point-extra { font-size: 12px; color: #888; margin-top: 2px; }

/* Подсказки городов */
.ozd-city-wrap { position: relative; flex: 0 1 220px; }
.ozd-city-wrap .ozd-city { width: 100%; }
.ozd-suggest {
	position: absolute;
	top: calc(100% + 2px); left: 0;
	z-index: 1100;
	min-width: 100%;
	width: max-content;
	max-width: min(420px, 90vw);
	max-height: 320px;
	overflow-y: auto;
	margin: 0; padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.ozd-suggest[hidden] { display: none; }
.ozd-suggest li {
	display: flex; justify-content: space-between; gap: 12px;
	padding: 7px 12px;
	cursor: pointer;
	line-height: 1.3;
}
.ozd-suggest li:hover, .ozd-suggest li.ozd-active { background: #eef4ff; }
.ozd-suggest mark { background: none; color: inherit; font-weight: bold; padding: 0; }
.ozd-suggest-region { color: #888; font-size: 12px; white-space: nowrap; }
@media (max-width: 767px) {
	.ozd-city-wrap { flex: 1 1 100%; }
}

/* Карточка товара */
.ozd-product {
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid #e3e8f0;
	border-radius: 6px;
	background: #f8faff;
	font-size: 14px;
	line-height: 1.4;
}
.ozd-product-title { color: #005bff; font-weight: bold; }
.ozd-product-change { font-size: 12px; margin-left: 4px; }
.ozd-product-quote { color: #333; margin-top: 2px; }
.ozd-product-form { margin-top: 8px; }
.ozd-product-form[hidden] { display: none; }
.ozd-product .ozd-city-wrap { max-width: 320px; }
.ozd-product .ozd-product-city { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #ccc; border-radius: 4px; }
