/**
 * Elementor Pro popup modal fixes — Product Inquiry Modal.
 * Active TB popup: #2676 (legacy #501 kept for safety).
 */

.elementor-popup-modal {
	align-items: center !important;
	justify-content: center !important;
	padding: clamp(0.75rem, 3vw, 1.5rem) !important;
	box-sizing: border-box !important;
}

.elementor-popup-modal .dialog-widget-content {
	position: relative !important;
	inset: auto !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: min(100%, 36rem) !important;
	max-width: 36rem !important;
	max-height: min(90dvh, 52rem) !important;
	margin: 0 !important;
	padding-top: 3.25rem !important;
	border-radius: 14px !important;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2) !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
}

.elementor-popup-modal .dialog-message {
	flex: 1 1 auto !important;
	max-height: min(90dvh, 52rem) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}

.elementor-popup-modal .dialog-close-button {
	top: 0.75rem !important;
	right: 0.75rem !important;
	width: 2.75rem !important;
	height: 2.75rem !important;
	min-width: 2.75rem !important;
	min-height: 2.75rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 10px !important;
	background: rgba(15, 43, 91, 0.06) !important;
	color: #0f172a !important;
	z-index: 10 !important;
	align-items: center !important;
	justify-content: center !important;
}

.elementor-popup-modal .dialog-close-button svg {
	width: 1rem !important;
	height: 1rem !important;
}

.elementor-popup-modal .elementor-501 .e-con-inner,
.elementor-popup-modal .elementor-2676 .e-con-inner {
	padding-top: 0.25rem !important;
}

.elementor-popup-modal .elementor-501 .elementor-heading-title,
.elementor-popup-modal .elementor-2676 .elementor-heading-title {
	margin: 0 0 0.75rem !important;
	padding-right: 3rem !important;
	font-size: clamp(1.125rem, 4vw, 1.75rem) !important;
	line-height: 1.25 !important;
	color: #0f2b5b !important;
}

.elementor-popup-modal .elementor-501 blockquote,
.elementor-popup-modal .elementor-2676 blockquote {
	margin: 0 0 1rem !important;
	padding: 0 !important;
	border: 0 !important;
	font-style: normal !important;
	color: #64748b !important;
	font-size: 0.9375rem !important;
	line-height: 1.55 !important;
}

.elementor-popup-modal .elementor-501 blockquote p,
.elementor-popup-modal .elementor-2676 blockquote p {
	margin: 0 !important;
}

.elementor-popup-modal .elementor-501 .elementor-field-group,
.elementor-popup-modal .elementor-2676 .elementor-field-group {
	width: 100% !important;
	max-width: 100% !important;
	padding-inline: 0 !important;
	box-sizing: border-box !important;
}

.elementor-popup-modal .elementor-501 .elementor-field-textual,
.elementor-popup-modal .elementor-2676 .elementor-field-textual {
	width: 100% !important;
	box-sizing: border-box !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
}

.elementor-popup-modal .elementor-501 .elementor-field-type-textarea .elementor-field-textual,
.elementor-popup-modal .elementor-2676 .elementor-field-type-textarea .elementor-field-textual {
	min-height: 6rem;
}

.elementor-popup-modal .elementor-501 .elementor-button,
.elementor-popup-modal .elementor-2676 .elementor-button {
	width: 100% !important;
	border-radius: 10px !important;
	background: #0f2b5b !important;
}

body.dialog-active .grecaptcha-badge {
	visibility: hidden !important;
}

@media (max-width: 767px) {
	.elementor-popup-modal {
		padding: 0 !important;
	}

	.elementor-popup-modal .dialog-widget-content {
		width: 100% !important;
		max-width: 100% !important;
		max-height: 100dvh !important;
		border-radius: 0 !important;
	}

	.elementor-popup-modal .dialog-message {
		max-height: 100dvh !important;
	}

	.elementor-popup-modal .elementor-501 .e-con,
	.elementor-popup-modal .elementor-2676 .e-con {
		padding-inline: 1.25rem !important;
	}

	.elementor-popup-modal .elementor-501 .elementor-heading-title,
	.elementor-popup-modal .elementor-2676 .elementor-heading-title {
		font-size: 1.125rem !important;
		padding-right: 2.75rem !important;
	}
}
