/* Блок доставки на странице заказа альбома (KRU-471): способ доставки, город, пункт выдачи или адрес — полями.
   Поля и подписи берут оформление формы заказа (.cabinet--form, .inputbox); здесь — только то, чего в ней нет. */

.cabinet--form-row[hidden],
.delivery-form__list[hidden],
.delivery-form__error[hidden] {
	display: none !important;
}

.delivery-form__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
}

.cabinet--form .delivery-form__mode {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto;
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 120%;
	color: rgba(0, 0, 0, 0.70);
	cursor: pointer;
}

.delivery-form__mode input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #0b6fa8;
	flex-shrink: 0;
}

/* поле со списком: список открывается сразу под полем */
.delivery-form__combo {
	position: relative;
	width: 100%;
}

.cabinet--form .delivery-form__combo .inputbox,
.cabinet--form .delivery-form__wide {
	width: 100%;
	box-sizing: border-box;
}

.cabinet--form .inputbox:disabled {
	background: #f5f5f5;
	color: rgba(0, 0, 0, 0.40);
	cursor: not-allowed;
}

.delivery-form__list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	max-height: 300px;
	margin: 4px 0 0;
	padding: 6px 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.30);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.delivery-form__option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 20px;
	font-family: "Open Sans";
	font-size: 16px;
	line-height: 130%;
	color: rgba(0, 0, 0, 0.80);
	cursor: pointer;
}

.delivery-form__option:hover,
.delivery-form__option--active {
	background: #eaf4fa;
}

.delivery-form__option-note {
	font-size: 13px;
	color: rgba(0, 0, 0, 0.50);
}

.delivery-form__option--info,
.delivery-form__option--info:hover {
	background: none;
	color: rgba(0, 0, 0, 0.50);
	font-size: 14px;
	cursor: default;
}

.delivery-form__hint {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 130%;
	color: rgba(0, 0, 0, 0.55);
}

.cabinet--form .delivery-form__summary {
	height: auto;
	min-height: 58px;
	padding: 16px 20px;
	line-height: 130%;
	align-content: center;
	background: #f7fafc;
	color: rgba(0, 0, 0, 0.55);
}

.cabinet--form .delivery-form__summary--ready {
	color: rgba(0, 0, 0, 0.85);
	border-color: #0b6fa8;
	background: #fff;
}

.delivery-form__error {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 130%;
	color: #c62828;
}

.delivery-form__retry {
	margin-left: 8px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: #0b6fa8;
	text-decoration: underline;
	cursor: pointer;
}

/* Карта пунктов выдачи (js/pages/delivery-map.js) — второй способ выбрать пункт; поля работают и без неё */
.delivery-form__map-side {
	width: 100%;
	min-width: 0;
}

.delivery-form__map-box {
	position: relative;
	width: 100%;
	height: 340px;
	box-sizing: border-box;
	overflow: hidden;
	background: #eef2f5;
	border: 1px solid rgba(0, 0, 0, 0.30);
	border-radius: 10px;
}

.delivery-form__map-box[hidden],
.delivery-map__zoom[hidden] {
	display: none !important;
}

.delivery-form__map {
	width: 100%;
	height: 100%;
}

.delivery-map__zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.delivery-map__zoom-button {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	font-family: "Open Sans", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 36px;
	color: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.delivery-map__zoom-button:hover {
	background: #eaf4fa;
}

/* кнопка «ближайший к месту на карте»: после неё нажатие на карту отмечает место покупателя */
.delivery-map__place {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	max-width: calc(100% - 84px);
	padding: 9px 12px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	line-height: 120%;
	color: rgba(0, 0, 0, 0.80);
	text-align: left;
	cursor: pointer;
}

.delivery-map__place:hover,
.delivery-map__place--on {
	background: #eaf4fa;
}

.delivery-map__place[hidden] {
	display: none !important;
}

.delivery-form__map--placing,
.delivery-form__map--placing * {
	cursor: crosshair !important;
}

/* отметка ставится серединой в точку пункта; невидимое поле вокруг — чтобы попадать пальцем */
.delivery-map__pin {
	position: relative;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	background: #0b6fa8;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, -50%);
	cursor: pointer;
}

.delivery-map__pin::after {
	content: "";
	position: absolute;
	top: -10px;
	right: -10px;
	bottom: -10px;
	left: -10px;
}

.delivery-map__pin--postamat {
	background: #e8830c;
}

.delivery-map__pin:hover {
	box-shadow: 0 0 0 3px rgba(11, 111, 168, 0.35), 0 1px 4px rgba(0, 0, 0, 0.45);
}

.delivery-map__pin--selected {
	width: 32px;
	height: 32px;
	border-color: #1a1a1a;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* место, которое покупатель отметил на карте: к нему подобран ближайший пункт */
.delivery-map__home {
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	background: #d32f2f;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #d32f2f, 0 1px 4px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, -50%);
}

.delivery-map__cluster {
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	box-sizing: border-box;
	background: #114b6d;
	border: 3px solid #fff;
	border-radius: 18px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 30px;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	cursor: pointer;
}

@media (max-width: 640px) {
	.delivery-form__modes {
		flex-direction: column;
		gap: 12px;
	}

	.delivery-form__option {
		padding: 10px 14px;
		font-size: 15px;
	}

	.delivery-form__map-box {
		height: 300px;
	}
}
