/*
 * Styles for the Elementor Pro replacements (inc/no-pro) that are not covered by the vendored
 * Pro CSS or frozen-elements.css.
 */

/* Pro Custom CSS without a "selector" prefix (page "Графік роботи", #150). */
.elementor-150 table {
	display: block;
	overflow: auto;
	max-width: 100%;
}

.elementor-150 td {
	border: 1px solid;
}

/* Pro widget defaults that pointed at the Elementor global colors/fonts (their controls are gone without Pro). */
.elementor-widget-testimonial-carousel .elementor-testimonial__text {
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	font-weight: var(--e-global-typography-text-font-weight);
}

.elementor-widget-testimonial-carousel .elementor-testimonial__name {
	color: var(--e-global-color-text);
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
}

.elementor-widget-testimonial-carousel .elementor-testimonial__title {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
	font-weight: var(--e-global-typography-secondary-font-weight);
}

/* gallery: CSS grid instead of Pro's e-gallery script. */
.mkl9-gallery {
	display: grid;
	grid-template-columns: repeat(var(--mkl9-cols, 3), 1fr);
	gap: 10px;
}

.mkl9-gallery .e-gallery-item {
	display: block;
	position: relative;
	overflow: hidden;
}

.mkl9-gallery .e-gallery-image {
	aspect-ratio: var(--mkl9-ratio, 3 / 2);
	background-size: cover;
	background-position: center;
	transition: transform .3s;
}

.mkl9-gallery .e-gallery-item:hover .e-gallery-image {
	transform: scale(1.03);
}

@media (max-width: 1024px) {
	.mkl9-gallery {
		grid-template-columns: repeat(var(--mkl9-cols-t, 2), 1fr);
	}
}

@media (max-width: 767px) {
	.mkl9-gallery {
		grid-template-columns: repeat(var(--mkl9-cols-m, 1), 1fr);
	}
}

/* form: honeypot + waiting state. */
.mkl9-form .mkl9-hp {
	position: absolute !important;
	left: -9999px !important;
}

.mkl9-form .elementor-form-waiting {
	opacity: .6;
	cursor: progress;
}

/* popups (Pro popup documents opened by "popup:open" links). */
.mkl9-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--mkl9-popup-overlay, rgba(0, 0, 0, .8));
}

.mkl9-popup.is-open {
	display: flex;
}

.mkl9-popup__box {
	position: relative;
	width: var(--mkl9-popup-width, 640px);
	max-width: 100%;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding-top: 40px;
	background: var(--mkl9-popup-bg, #fff);
	border-radius: var(--mkl9-popup-radius, 0);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.mkl9-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 2;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--mkl9-popup-close, #333);
	cursor: pointer;
}

body.mkl9-popup-open {
	overflow: hidden;
}
