/* MD Обране з email: вікно «Збережіть товар» - вигляд вікна «Зворотний дзвінок» сторінки товару (помаранчева шапка,
   біле тіло), але своє, без Bootstrap: відкриває й закриває md_wishlist.js. Над нижнім меню телефонів (z-index 1060). */

.md-wishlist-modal[hidden],
.md-wishlist-modal__error[hidden] {
	display: none !important;
}

.md-wishlist-open,
.md-wishlist-open body {
	overflow: hidden;
}

.md-wishlist-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.md-wishlist-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .5);
}

.md-wishlist-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 20px 48px rgba(54, 54, 54, .18);
}

.md-wishlist-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	color: #fff;
	background: #d55316;
}

.md-wishlist-modal__title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
}

.md-wishlist-modal__close {
	margin: 0;
	padding: 0 2px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.md-wishlist-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.md-wishlist-modal__body {
	position: relative;
	margin: 0;
	padding: 22px 24px 24px;
}

.md-wishlist-modal__intro {
	margin: 0 0 16px;
	color: #363636;
	font-size: 14px;
	line-height: 1.5;
}

.md-wishlist-modal__label {
	display: block;
	margin-bottom: 6px;
	color: #5d5d5d;
	font-size: 12px;
	font-weight: 600;
}

/* 16px - iPhone не збільшує сторінку при фокусі поля */
.md-wishlist-modal__input.form-control {
	height: 44px;
	color: #252525;
	border-color: #ddd;
	border-radius: 0;
	font-size: 16px;
	box-shadow: none;
}

.md-wishlist-modal__input.form-control:focus {
	border-color: #d55316;
	box-shadow: 0 0 0 2px rgba(213, 83, 22, .1);
}

.md-wishlist-modal__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.md-wishlist-modal__error {
	margin-top: 8px;
	color: #c62828;
	font-size: 13px;
}

.md-wishlist-modal__submit.btn {
	width: 100%;
	height: 44px;
	margin-top: 16px;
	font-weight: 700;
}

.md-wishlist-modal__note {
	margin: 12px 0 0;
	color: #777;
	font-size: 12px;
	line-height: 1.4;
}

.md-wishlist-modal__note a {
	color: #d55316;
	text-decoration: underline;
}
