/*
 * Fanerka FK Design — branded Elementor popups.
 *
 * Styles the quick-order popup (2758) and the callback popup (2243) without
 * touching their fields: only colours, spacing, typography and states.
 * Loaded on every front-end page, because the callback popup lives in the
 * Elementor header and opens outside the product templates.
 */

@font-face {
	font-family: 'Onest';
	src: url('fonts/onest-cyr.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Onest';
	src: url('fonts/onest-lat.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Unbounded';
	src: url('fonts/unbounded-cyr.woff2') format('woff2');
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Unbounded';
	src: url('fonts/unbounded-lat.woff2') format('woff2');
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Overlay and card ------------------------------------------------------- */

#elementor-popup-modal-2758,
#elementor-popup-modal-2243 {
	background-color: rgba(17, 27, 22, .74) !important;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

#elementor-popup-modal-2243 {
	justify-content: center !important;
	align-items: center !important;
}

#elementor-popup-modal-2758 .dialog-widget-content,
#elementor-popup-modal-2243 .dialog-widget-content {
	border: 1px solid rgba(228, 101, 28, .26) !important;
	border-radius: 22px !important;
	background: #fbf5ea !important;
	background-image:
		radial-gradient(360px 220px at 108% -18%, rgba(228, 101, 28, .16), transparent 62%),
		linear-gradient(180deg, #fdf9f1 0%, #fbf5ea 100%) !important;
	box-shadow: 0 34px 80px rgba(12, 18, 14, .42) !important;
	overflow: hidden;
}

#elementor-popup-modal-2758 .dialog-message {
	display: block !important;
	width: min(380px, calc(100vw - 32px)) !important;
	padding: 26px 24px 24px !important;
}

#elementor-popup-modal-2243 .dialog-message {
	display: block !important;
	width: min(380px, calc(100vw - 32px)) !important;
	padding: 26px 24px 24px !important;
}

/* Kill Elementor section/column paddings inside the cards. */
#elementor-popup-modal-2758 .dialog-message .elementor-section,
#elementor-popup-modal-2758 .dialog-message .elementor-column,
#elementor-popup-modal-2758 .dialog-message .elementor-widget-wrap,
#elementor-popup-modal-2758 .dialog-message .elementor-widget-container,
#elementor-popup-modal-2243 .dialog-message .elementor-section,
#elementor-popup-modal-2243 .dialog-message .elementor-column,
#elementor-popup-modal-2243 .dialog-message .elementor-widget-wrap,
#elementor-popup-modal-2243 .dialog-message .elementor-widget-container {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* The lightbox message is a flex row: make the popup fill the card. */
#elementor-popup-modal-2758 .dialog-message > .elementor,
#elementor-popup-modal-2758 .dialog-message .elementor-section,
#elementor-popup-modal-2758 .dialog-message .elementor-container,
#elementor-popup-modal-2758 .dialog-message .elementor-column,
#elementor-popup-modal-2758 .dialog-message .elementor-widget-wrap,
#elementor-popup-modal-2758 .dialog-message .elementor-widget-form,
#elementor-popup-modal-2243 .dialog-message > .elementor,
#elementor-popup-modal-2243 .dialog-message .elementor-section,
#elementor-popup-modal-2243 .dialog-message .elementor-container,
#elementor-popup-modal-2243 .dialog-message .elementor-column,
#elementor-popup-modal-2243 .dialog-message .elementor-widget-wrap,
#elementor-popup-modal-2243 .dialog-message .elementor-widget-form {
	width: 100% !important;
	max-width: none !important;
	flex: 1 1 auto;
}

/* Quick-order heading, drawn in CSS so the form fields stay untouched. */
#elementor-popup-modal-2758 .dialog-message::before {
	content: "Быстрый заказ";
	display: block;
	margin: 0 30px 4px 0;
	font-family: 'Unbounded', 'Onest', system-ui, sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.035em;
	color: #1d1914;
}

#elementor-popup-modal-2758 .elementor-form::before {
	content: "Оставьте номер — перезвоним, уточним детали и подтвердим заказ.";
	display: block;
	margin: 0 0 16px;
	font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	color: #75695b;
}

/* Callback heading (already present in the popup). */
#elementor-popup-modal-2243 .elementor-heading-title {
	margin: 0 30px 4px 0 !important;
	text-align: left !important;
	font-family: 'Unbounded', 'Onest', system-ui, sans-serif !important;
	font-size: 19px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -.035em !important;
	color: #1d1914 !important;
}

#elementor-popup-modal-2243 .elementor-widget-heading {
	margin-bottom: 6px !important;
}

/* Fields ----------------------------------------------------------------- */

#elementor-popup-modal-2758 .elementor-field-group,
#elementor-popup-modal-2243 .elementor-field-group {
	margin-bottom: 10px !important;
	padding: 0 !important;
}

#elementor-popup-modal-2758 .elementor-form-fields-wrapper,
#elementor-popup-modal-2243 .elementor-form-fields-wrapper {
	margin: 0 !important;
}

#elementor-popup-modal-2758 .elementor-field-group .elementor-field-textual,
#elementor-popup-modal-2758 .elementor-field-group .elementor-select-wrapper select,
#elementor-popup-modal-2243 .elementor-field-group .elementor-field-textual,
#elementor-popup-modal-2243 .elementor-field-group .elementor-select-wrapper select {
	width: 100% !important;
	height: 46px;
	min-height: 46px;
	padding: 0 14px !important;
	border: 1px solid #ddd0be !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	box-shadow: none !important;
	font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
	font-size: 13.5px !important;
	font-weight: 500 !important;
	line-height: 46px;
	color: #1d1914 !important;
	transition: border-color .16s ease, box-shadow .16s ease;
}

#elementor-popup-modal-2758 .elementor-field-group .elementor-field-textual::placeholder,
#elementor-popup-modal-2243 .elementor-field-group .elementor-field-textual::placeholder {
	color: #a2958a;
	opacity: 1;
}

#elementor-popup-modal-2758 .elementor-field-group .elementor-field-textual:hover,
#elementor-popup-modal-2243 .elementor-field-group .elementor-field-textual:hover {
	border-color: #cbbba6 !important;
}

#elementor-popup-modal-2758 .elementor-field-group .elementor-field-textual:focus,
#elementor-popup-modal-2758 .elementor-field-group .elementor-field-textual:focus-visible,
#elementor-popup-modal-2243 .elementor-field-group .elementor-field-textual:focus,
#elementor-popup-modal-2243 .elementor-field-group .elementor-field-textual:focus-visible {
	border-color: #e4651c !important;
	box-shadow: 0 0 0 3px rgba(228, 101, 28, .16) !important;
	outline: none !important;
}

/* Submit ----------------------------------------------------------------- */

#elementor-popup-modal-2758 .elementor-button[type="submit"],
#elementor-popup-modal-2243 .elementor-button[type="submit"] {
	width: 100% !important;
	height: 48px;
	margin-top: 4px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #e97028 0%, #e4651c 52%, #d5580f 100%) !important;
	box-shadow: 0 12px 24px rgba(228, 101, 28, .28) !important;
	color: #ffffff !important;
	font-family: 'Unbounded', 'Onest', system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	letter-spacing: .01em;
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#elementor-popup-modal-2758 .elementor-button[type="submit"]:hover,
#elementor-popup-modal-2758 .elementor-button[type="submit"]:focus-visible,
#elementor-popup-modal-2243 .elementor-button[type="submit"]:hover,
#elementor-popup-modal-2243 .elementor-button[type="submit"]:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(228, 101, 28, .36) !important;
	filter: saturate(1.06);
	outline: none !important;
}

#elementor-popup-modal-2758 .elementor-button[type="submit"]:active,
#elementor-popup-modal-2243 .elementor-button[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(228, 101, 28, .26) !important;
}

/* Success / error messages ----------------------------------------------- */

#elementor-popup-modal-2758 .elementor-message,
#elementor-popup-modal-2243 .elementor-message {
	margin: 12px 0 0;
	font-family: 'Onest', system-ui, sans-serif;
	font-size: 12.5px;
	line-height: 1.5;
}

/* Close button ----------------------------------------------------------- */

#elementor-popup-modal-2758 .dialog-close-button,
#elementor-popup-modal-2243 .dialog-close-button {
	top: 13px !important;
	right: 13px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(29, 25, 20, .07);
	color: #1d1914 !important;
	font-size: 15px;
	line-height: 1;
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

#elementor-popup-modal-2758 .dialog-close-button:hover,
#elementor-popup-modal-2758 .dialog-close-button:focus-visible,
#elementor-popup-modal-2243 .dialog-close-button:hover,
#elementor-popup-modal-2243 .dialog-close-button:focus-visible {
	background: #e4651c;
	color: #ffffff !important;
	transform: rotate(90deg);
	outline: none;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 420px) {
	#elementor-popup-modal-2758 .dialog-message,
	#elementor-popup-modal-2243 .dialog-message {
		padding: 22px 18px 20px !important;
	}

	#elementor-popup-modal-2758 .dialog-message::before {
		font-size: 19px;
	}

	#elementor-popup-modal-2243 .elementor-heading-title {
		font-size: 17px !important;
	}
}
