/* Окно заявки: одно на страницу, открывается кнопкой карточки */

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--vk-font);
}

.modal[hidden] {
	display: none;
}

.modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.modal__window {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 100%;
	padding: 40px;
	overflow-y: auto;
	background: #ffffff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666666;
	cursor: pointer;
	transition: color var(--vk-transition);
}

.modal__close:hover {
	color: #000000;
}

.modal__close svg {
	width: 15px;
	height: 15px;
}

.modal__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: #000000;
}

.modal__product {
	margin: 0 0 25px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: #666666;
}

.modal__product:empty {
	display: none;
}

/* Пояснение под заголовком окна заявки из шапки */

.modal__descr {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
	color: #666666;
}

/* Название изделия уходит в письмо, посетителю его вводить не нужно */
.modal__hidden {
	display: none;
}

/* Форму рисует плагин: обёртки убираются из потока, поля остаются в колонке */

.modal__window form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.modal__window form > p,
.modal__window .wpcf7-form-control-wrap,
.modal__window .wpcf7-acceptance,
.modal__window .wpcf7-list-item {
	display: contents;
}

.modal__window form br,
.modal__window .wpcf7-spinner {
	display: none;
}

.modal__window input[type="text"],
.modal__window input[type="tel"],
.modal__window input[type="email"],
.modal__window textarea {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 54px;
	padding: 16px 18px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #000000;
	background: #ffffff;
}

.modal__window input::placeholder,
.modal__window textarea::placeholder {
	color: #6a6a6a;
	opacity: 1;
}

.modal__window textarea {
	height: 256px;
	resize: vertical;
}

.modal__window .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.4;
	color: #d0d0d0;
	cursor: pointer;
}

.modal__window .wpcf7-acceptance input[type="checkbox"] {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vk-accent);
}

.modal__window input[type="submit"] {
	align-self: flex-start;
	min-height: 52px;
	margin-top: 10px;
	padding: 16px 32px;
	border: 0;
	border-radius: 0;
	background: var(--vk-accent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	transition: background-color var(--vk-transition);
}

.modal__window input[type="submit"]:hover {
	background: var(--vk-accent-hover);
}

.modal__window :focus-visible {
	outline: 2px solid var(--vk-accent);
	outline-offset: 3px;
}

/* Media */

@media (max-width: 559px) {
	.modal__window {
		padding: 40px 20px 25px;
	}

	.modal__title {
		font-size: 22px;
	}
}
