/* --- Fixed finder --- */
#micore_fixed_finder {
	position: fixed;
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 100%;
	max-width: var(--fixed_finder_width);
	display: flex;
	justify-content: center;
	padding: var(--fixed_finder_padding);
	box-sizing: border-box;
	transition: var(--fixed_finder_transition);
	z-index: calc(var(--mirai-ui-modal-layer, 100) - 1);
}

/* --- Override Elementor pop ups z-index --- */
body:has([data-mirai-component] ui-modal-overflow[class*="_visible"]) #micore_fixed_finder,
body:has([data-elementor-type="popup"] [data-mirai-component]) #micore_fixed_finder {
	z-index: 1;
}

#micore_fixed_finder::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--fixed_finder_background_color);
	opacity: var(--fixed_finder_background_opacity);
	transition: var(--fixed_finder_transition);
	z-index: -1;
}

#micore_fixed_finder[data-position="bottom"] {
	bottom: var(--fixed_finder_position);
	top: auto;
}

#micore_fixed_finder[data-position="bottom"].micore-offset-active {
	bottom: var(--fixed_finder_offset_position);
}

body.home #micore_fixed_finder[data-position="bottom"]:not(.micore-offset-active) {
	bottom: var(--fixed_finder_home_position);
}

#micore_fixed_finder[data-position="top"] {
	top: var(--fixed_finder_position);
	bottom: auto;
}

#micore_fixed_finder[data-position="top"].micore-offset-active {
	top: var(--fixed_finder_offset_position);
}

body.home #micore_fixed_finder[data-position="top"]:not(.micore-offset-active) {
	top: var(--fixed_finder_home_position);
}

@media only screen and (max-width: 767px) {
	#micore_fixed_finder {
		max-width: var(--fixed_finder_mobile_width);
	}

	#micore_fixed_finder::before {
		background-color: var(--fixed_finder_mobile_background_color);
		opacity: var(--fixed_finder_mobile_background_opacity);
	}

	#micore_fixed_finder[data-mobile-position="bottom"] {
		top: unset;
		bottom: var(--fixed_finder_mobile_position);
	}

	#micore_fixed_finder[data-mobile-position="bottom"].micore-offset-active {
		top: unset;
		bottom: var(--fixed_finder_mobile_offset_position);
	}

	body.home #micore_fixed_finder[data-mobile-position="bottom"]:not(.micore-offset-active) {
		top: unset;
		bottom: var(--fixed_finder_mobile_home_position);
	}

	#micore_fixed_finder[data-mobile-position="top"] {
		top: var(--fixed_finder_mobile_position);
		bottom: unset;
	}

	#micore_fixed_finder[data-mobile-position="top"].micore-offset-active {
		top: var(--fixed_finder_mobile_offset_position);
		bottom: unset;
	}

	body.home #micore_fixed_finder[data-mobile-position="top"]:not(.micore-offset-active) {
		top: var(--fixed_finder_mobile_home_position);
		bottom: unset;
	}
}

/* --- Hidden content --- */
#micore_temporal_loyalty_content,
#micore_overwrite_booking_url {
	display: none;
}

/* --- Button style resets --- */
body[class*="elementor"] [data-mirai-component="finder"] [data-role="view"] [data-role="finder:field:promocode"],
body[class*="elementor"] [data-mirai-component="session"] [data-role="view"] [data-role="input"] {
	font-size: 1rem;
	background: transparent;
	border: 0;
	padding: 0;
}

/* --- Background resets --- */
body[class*="elementor"] [data-mirai-component] input[data-role="input"]:not([type="button"]),
body[class*="elementor"] ui-modal-overflow input[data-role="input"]:not([type="button"]) {
	background-color: transparent;
	line-height: normal;
	border: 0;
	border-radius: var(--mirai-ui-input-text-radius);
}

body[class*="elementor"] [data-mirai-component] input[type="checkbox"]:checked {
	background-color: var(--mirai-ui-checkbox-background-checked);
}

body[class*="elementor"] ui-modal ui-button[type="submit"] {
	display: flex;
	border: 0;
}

body[class*="elementor"] ui-modal ui-button[type="submit"]:not([class*="_disabled"]) {
	background-color: var(--mirai-ui-button-background);
	color: var(--mirai-ui-button-color);
}

/* --- Royalty components alignment --- */
[data-mirai-component="signup"] {
	display: flex;
	justify-content: center;
}

[data-mirai-component="signup"],
[data-mirai-component="profile"] {
	padding: 50px 0;
}

[data-mirai-component="profile"] input[disabled] {
	background-color: transparent;
}

/* --- Footer padding --- */
body:has(#micore_fixed_finder[data-mobile-position="bottom"]) :is(#footer, footer) {
	padding-bottom: calc(var(--mirai-finder-field-height) + var(--mirai-finder-padding) * 2 + var(--fixed_finder_padding) * 2);
}