/* Search thumbnails retained from Mobile UI Polish. */
.bera-software-search-result__image {
	box-sizing: border-box;
	padding: 6px;
	background: linear-gradient(145deg, #fffaf0, #e8decb);
}

.bera-software-search-result__image img {
	display: block;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	object-fit: contain !important;
	object-position: center;
	border-radius: 5px;
}

@media (max-width: 820px) {
	.bera-software-site-header__inner {
		grid-template-columns: 42px minmax(0, 1fr) auto !important;
		column-gap: 5px !important;
	}

	.bera-software-menu-toggle {
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-self: start !important;
	}

	.bera-software-brand {
		grid-column: 2 !important;
		grid-row: 1 !important;
		justify-self: start !important;
		align-self: center !important;
		min-width: 0;
		margin: 0 !important;
	}

	.bera-software-brand .custom-logo-link,
	.bera-software-brand > a {
		display: inline-flex !important;
		align-items: center;
		justify-content: flex-start;
		max-width: 108px;
	}

	.bera-software-brand img,
	.bera-software-brand svg {
		display: block;
		width: auto !important;
		height: auto !important;
		max-width: 104px !important;
		max-height: 44px !important;
		object-fit: contain;
		object-position: left center;
	}

	.bera-software-header-actions {
		grid-column: 3 !important;
		grid-row: 1 !important;
		justify-self: end !important;
	}

	.bera-software-mobile-menu__logo {
		display: flex !important;
		align-items: center;
		min-width: 0;
	}

	.bera-software-mobile-menu__logo > a {
		display: inline-flex !important;
		align-items: center;
		max-width: 132px;
		line-height: 0;
	}

	.bera-software-mobile-menu__logo img,
	.bera-software-mobile-menu__logo svg {
		display: block !important;
		width: auto !important;
		height: auto !important;
		max-width: 126px !important;
		max-height: 50px !important;
		object-fit: contain !important;
		object-position: left center !important;
	}

	.bera-software-search-result {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: 12px;
	}

	.bera-software-search-result__image {
		width: 60px;
		height: 60px;
		padding: 7px;
		border-radius: 11px;
	}
}

@media (min-width: 821px) {
	.bera-software-site-header {
		overflow: visible !important;
	}

	body .bera-software-products-mega-menu.pixsop-recovery-open,
	body .bera-software-products-mega-menu.is-open,
	body .bera-software-products-mega-menu:hover,
	body .bera-software-products-mega-menu:focus-within {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: translateY(0) !important;
		z-index: 999 !important;
	}
}
