/* WDL Header Alignment. Author: WDL (https://webdevlimited.bg)

   The theme lays the header out with floats and absolute positioning, which
   leaves the logo and the icons on different vertical centre lines: about
   13px apart on mobile and 16px on desktop. Both rows are made flex instead,
   so everything shares one centre line at any width.

   Mobile also had the logo pushed right by the theme's "margin: 0 auto" on
   the image. That is cleared, and the icon strip is laid out row-reverse so
   the markup order (cart, wishlist, menu) still reads menu, wishlist, cart
   on screen, the same as razsadi.org. */

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.col-sm-4.mobile_ci {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
	}

	#logo {
		margin: 0;
		flex: 0 1 auto;
	}

	#logo img {
		margin: 0 !important;
	}

	.visible-xs.ci_civisble {
		position: static !important;
		display: flex !important;
		flex-direction: row-reverse;
		align-items: center;
		width: auto !important;
		flex: 0 0 auto;
	}

	.visible-xs.ci_civisble .ci_f {
		float: none !important;
		display: flex;
		align-items: center;
	}

	/* Scoped with four classes so it outranks the menu button extension's
	   own margin rule whichever stylesheet happens to load last. */
	.visible-xs.ci_civisble .ci_f.ci_f_menu {
		margin-top: 0 !important;
	}
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
	header > .container > .row {
		display: flex;
		align-items: center;
	}

	header > .container > .row > [class*="col-"] {
		float: none;
	}

	header .hidden-xs #cart {
		margin-top: 0 !important;
	}
}
