/* Стили блока доставки с https://inyan.cafe/_css/delivery.css (иконки — абсолютные URL). */

.delivery__heading, .delivery__heading--price {
	font-weight: 800;
	font-size: 20px;
	line-height: 29px;
	color: #333333;
	margin-bottom: 20px;
}

.delivery__heading {
	margin-top: 30px;
}

.delivery__item-heading {
	font-size: 14px;
	line-height: 22px;
	color: #777777;
	margin-bottom: 8px;
}

.delivery__item {
	padding: 0 40px;
	margin-bottom: 34px;
	max-width: 25%;
}

@media (max-width: 991px) {
	.delivery__item {
		max-width: none;
		width: 50%;
		padding: 0;
	}
}

@media (max-width: 567px) {
	.delivery__item {
		width: 100%;
	}
}

.delivery__item:last-child {
	max-width: none;
}

.delivery__items {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -40px;
}

@media (max-width: 991px) {
	.delivery__items {
		margin: 0;
	}
}

.delivery__item-desc {
	font-weight: 500;
	font-size: 16px;
	line-height: 130%;
	color: #555555;
}

.delivery__item-desc a {
	display: block;
}

@media (max-width: 991px) {
	.delivery__item-desc a {
		display: inline-block;
	}
}

.delivery__item-desc a:hover {
	border-bottom-color: #222222;
	color: #222222;
}

.delivery__item-desc span:hover {
	border-bottom-color: #222222;
	color: #222222;
}

.delivery__item-desc a, .delivery__item-desc span {
	border-bottom: 1px dashed #D8D8D8;
	font-weight: 500;
	font-size: 16px;
	line-height: 130%;
	color: #555555;
	cursor: pointer;
}

.delivery__heading--price {
	margin-top: 0;
	margin-bottom: 16px;
}

.delivery__address {
	font-size: 14px;
	line-height: 22px;
	color: #555555;
	margin-bottom: 8px;
}

.delivery__inputs {
	display: flex;
	flex-wrap: nowrap;
	position: relative;
}

/* Попап адреса: input + «Узнать» в одном flex — иначе поле с width:100% схлопывается (~0px), ввод «не работает» */
.adres-popup .delivery__inputs .delivery__form-address {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
}

.adres-popup .delivery__inputs .delivery__form-submit {
	flex-shrink: 0;
}

.adres-popup .adres-body-scroll {
	min-height: 280px;
}

.delivery__form-address {
	font-size: 14px !important;
	line-height: 22px !important;
	color: #222222 !important;
	padding: 14px;
	width: 100%;
}

.delivery__form-address::placeholder {
	color: #B6B6B6 !important;
}

.delivery__form {
	width: 60%;
}

@media (max-width: 650px) {
	.delivery__form {
		width: 75%;
	}
}

[class^="delivery"] {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.delivery__form-submit {
	background: #F76C2F;
	border-radius: 0 3px 3px 0;
	padding: 14px 24px;
	font-size: 14px;
	line-height: 22px;
	color: #FFFFFF;
	outline: none;
	border: none;
	cursor: pointer;
}

.delivery__form-submit:focus {
	background: #F76C2F !important;
	color: #FFFFFF !important;
}

.delivery__calc-price-container {
	display: flex;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}

.delivery__calc-price-container--adres-popup {
	flex-direction: column;
	align-items: stretch;
}

.delivery__calc-price-container--adres-popup .delivery__prices {
	width: 100%;
	justify-content: flex-start;
	align-items: center;
}

/* Самовывоз в попапе адреса */
.adres-popup .js-adres-pickup-only {
	display: none;
}

.adres-popup.is-pickup .js-adres-delivery-only {
	display: none !important;
}

.adres-popup.is-pickup .js-adres-pickup-only {
	display: block;
}

.adres-popup.is-pickup .js-adres-map-delivery {
	display: none !important;
}

.adres-popup:not(.is-pickup) .js-adres-map-pickup {
	display: none !important;
}

.adres-popup.is-pickup .inyan-adres-pickup-address {
	margin: 0 0 14px;
	font-family: 'Fira Sans Condensed', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 130%;
	color: #000205;
}

.inyan-adres-pickup-wrap {
	margin: 0 0 20px;
	padding: 16px 0 0;
	border-top: 1px solid rgba(120, 117, 115, 0.2);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.inyan-adres-pickup-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin: 0;
	-webkit-tap-highlight-color: transparent;
}

.inyan-adres-pickup-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	clip: rect(0, 0, 0, 0);
}

.inyan-adres-pickup-box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border: 2px solid #d9896f;
	border-radius: 5px;
	background: #fff;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease;
	position: relative;
}

.inyan-adres-pickup-input:checked + .inyan-adres-pickup-box {
	background: #d9896f;
	border-color: #d9896f;
}

.inyan-adres-pickup-input:checked + .inyan-adres-pickup-box::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.inyan-adres-pickup-input:focus-visible + .inyan-adres-pickup-box {
	outline: 2px solid rgba(217, 137, 111, 0.45);
	outline-offset: 2px;
}

.inyan-adres-pickup-text {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	color: #222222;
}

.inyan-adres-pickup-hint {
	margin: 10px 0 0 34px;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.45;
	color: #555555;
	max-width: 42em;
}

@media (max-width: 480px) {
	.inyan-adres-pickup-hint {
		margin-left: 0;
		margin-top: 12px;
	}
}

.delivery__prices {
	width: 50%;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 650px) {
	.delivery__prices {
		width: 100%;
		justify-content: flex-start;
	}
}

.delivery__price {
	font-weight: 600;
	font-size: 14px;
	line-height: 22px;
	color: #333333;
	padding-right: 39px;
	position: relative;
}

.delivery__price-icon {
	position: absolute;
	transform: translate(-50%, -50%);
	top: 50%;
	left: -15px;
	width: 14px;
	height: 14px;
	border-radius: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.delivery__map {
	width: 100%;
	max-width: 1348px;
	height: 460px;
	margin-bottom: 24px;
}

/* Блок контактов на /dostavka/ — размеры и вёрстка в style/style.css */
body.contacts-body .contacts .delivery__map,
body.contacts-body .contacts .delivery__map--api,
.contacts-main .contacts .delivery__map,
.contacts-main .contacts .delivery__map--api {
	max-width: none;
	margin-bottom: 0;
}

/* Попап адреса: API Яндекс.Карт (полигоны зон, как на /delivery/) */
.adres-popup .delivery__map--api .inyan-map-loading {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #555555;
	pointer-events: none;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.adres-popup .delivery__map--api,
.adres-popup .delivery__map--yandex-widget {
	width: 100%;
	max-width: 1348px;
	height: 460px;
	min-height: 460px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	background: #e5e1dc;
	border-radius: 16px;
	border: 1px solid rgba(120, 117, 115, 0.25);
	box-shadow: 0 4px 20px rgba(0, 2, 5, 0.06);
}

.adres-popup .delivery__map--yandex-widget iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.delivery__call {
	position: relative;
	background: #F9F9FA;
	padding: 18px 20px;
	font-size: 20px;
	line-height: 29px;
	color: #222222;
}

@media (max-width: 800px) {
	.delivery__call {
		font-size: 14px;
	}
}

.delivery__call a {
	font-weight: 800;
	color: #222222;
}

@media (max-width: 576px) {
	.delivery__call a {
		display: block;
	}
}

.delivery__call-icon {
	position: absolute;
	transform: translateY(-50%);
	top: 50%;
	right: 22px;
	width: 20px;
	height: 20px;
	background-image: url("https://inyan.cafe/_img/call.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.dlvdd {
	position: absolute;
	width: 100%;
	background: #fafafa;
	border: 1px solid #ececec;
	top: 51px;
	z-index: 99;
}

.dlvdd .delivery__drop-down-item {
	cursor: pointer;
	padding: 5px 15px;
}

.dlvdd .delivery__drop-down-item:hover {
	color: #F76C2F;
}

.delivery__drop-error {
	position: absolute;
	top: 100%;
	background: #FFFFFF;
	box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
	border-radius: 0px 0px 3px 3px;
	width: calc(100% - 108px);
	padding: 16px 14px;
	font-size: 14px;
	line-height: 22px;
	color: #999999;
}

.delivery__drop-down-item:hover {
	color: #777777;
}

.delivery__drop-down-item:last-child {
	margin-bottom: 0;
}

.delivery__map-pointer {
	position: relative;
	width: 237px;
	height: 219px;
	background: #FFFFFF;
	box-shadow: 0px 24px 32px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
	border-radius: 3px;
	padding: 20px;
}

.delivery__map-price {
	font-weight: 800;
	font-size: 16px;
	line-height: 24px;
	color: #222222;
	margin-bottom: 6px;
}

.delivery__map-text {
	font-size: 12px;
	line-height: 130%;
	color: #999999;
	margin-bottom: 34px;
}

.delivery__map-text span {
	color: #555555;
}

.delivery__map-submit {
	background: #222222;
	padding: 14px 24px;
	border-radius: 3px;
	border: none;
	outline: none;
	color: #FFFFFF;
	width: 100%;
	display: flex;
	justify-content: center;
	cursor: pointer;
}

.delivery__map-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 10px;
	height: 10px;
	border-radius: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
