/**
 * Глобальная модалка обратной связи (.mav-feedback-modal)
 * Переменные — с fallback из style.css / темы
 */

.mav-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.25s ease, opacity 0.25s ease;
}

.mav-modal.mav-modal--open {
	visibility: visible;
	opacity: 1;
}

.mav-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.mav-modal__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	padding: 28px 24px;
	border: 1px solid var(--mav-border, #ddd);
}

.mav-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--mav-text, #333);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s, color 0.2s;
}

.mav-modal__close:hover {
	background: var(--mav-bg, #f5f5f5);
	color: var(--mav-heading, #222);
}

.mav-modal__close i {
	font-size: 1.25rem;
}

.mav-modal__title {
	margin: 0 0 8px 0;
	font-size: 1.35rem;
	color: var(--mav-heading, #222);
}

.mav-modal__desc {
	margin: 0 0 20px 0;
	font-size: 0.9375rem;
	color: var(--mav-text, #333);
	line-height: 1.45;
}

.mav-modal__desc.mav-modal__desc--hidden {
	display: none;
}

/* Контакты (MAV Contact) перед формой */
.mav-feedback-modal__contacts {
	margin: 0 0 18px 0;
	padding: 10px 12px;
	background: var(--mav-bg, #f5f5f5);
	border: 1px solid var(--mav-border, #e8e8e8);
	border-radius: 2px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--mav-text, #333);
}

.mav-feedback-modal__contacts-line {
	margin: 0 0 8px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.45rem;
}

.mav-feedback-modal__contacts-more {
	margin: 0;
}

.mav-feedback-modal__contacts a {
	color: var(--mav-primary, #337ab7);
	text-decoration: none;
	font-weight: 500;
	word-break: break-word;
}

.mav-feedback-modal__contacts a:hover,
.mav-feedback-modal__contacts a:focus {
	text-decoration: underline;
}

.mav-feedback-modal__contacts-sep {
	color: var(--mav-text, #666);
	opacity: 0.55;
	user-select: none;
}

.mav-feedback-form .mav-form-row {
	margin: 0 0 16px 0;
}

.mav-feedback-form .mav-form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--mav-heading, #222);
}

.mav-feedback-form .mav-form-row input,
.mav-feedback-form .mav-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mav-border, #ddd);
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.mav-feedback-form .mav-form-row input:focus,
.mav-feedback-form .mav-form-row textarea:focus {
	outline: none;
	border-color: var(--mav-primary, #337ab7);
}

.mav-feedback-form .mav-form-row textarea {
	resize: vertical;
	min-height: 80px;
}

.mav-feedback-form .mav-form-row--submit {
	margin-top: 24px;
	margin-bottom: 0;
}

.mav-modal__submit {
	width: 100%;
	padding: 12px 20px;
	font-size: 1rem;
	font-weight: 600;
	background: var(--mav-primary, #337ab7) !important;
	color: #fff !important;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.mav-modal__submit:hover {
	background: var(--mav-primary-hover, #2868a0) !important;
}

/* Тост после отправки (любая страница) */
.mav-feedback-global-notice {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100001;
	padding: 12px 20px;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mav-feedback-global-notice--success {
	background: #e8f5e9;
	color: #1b5e20;
	border-bottom: 1px solid #a5d6a7;
}

.mav-feedback-global-notice--error {
	background: #ffebee;
	color: #b71c1c;
	border-bottom: 1px solid #ffcdd2;
}

/* Кнопки помощи на карточке товара: сброс для <button> */
button.mav-single-btn-callback,
button.mav-single-btn-question {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	text-align: center;
	line-height: inherit;
}
