// -------------------------------------------------------------------
// :: HEADER
// -------------------------------------------------------------------

.o-header{
	background-color: $white;
	box-shadow: $box-shadow-heavy;
	display: flex;
	position: relative;
	height: 5rem;
	z-index: $z-index-header;

	.a-logo{
		flex-grow: 1;
		padding-left: 2rem;
		padding-top: 1.2rem;

		@include FLOW-at($tablet){
			padding-top: 0.6rem;
		}
	}
}

.o-header__toggle{
	align-self: flex-end;
	padding: 1.7rem;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: bold;
	color: $font-color;

	@include FLOW-at($desktop){
		display: none;
	}
}

.o-header__content{
	position: absolute;
	background-color: $white;
	width: 100%;
	top: 5rem;
	z-index: -1;
	box-shadow: $box-shadow-heavy;
	opacity: 0;
	overflow: hidden;
	height: 0;
	transform: translateY(-10%);
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;

	&.is-open{
		opacity: 1;
		transform: translateY(0%);
		z-index: $z-index-menu;
		height: auto;
	}

	> *{
		padding: 1rem;
		border-top: $border-simple;
	}

	.o-header__profile{
		.a-button {
			padding: 0 0.98em;

			span[class*="icon-"] + span,
			span + span[class*="icon-"] {
				display: none;
				margin-left: 0.5em;
				overflow: hidden;
				line-height: 0.7;
			}
		}
	}


	@include FLOW-at($desktop){
		width: auto;
		top: 0;
		position: relative;
		display: flex;
		justify-content: flex-end;
		flex-grow: 1;
		box-shadow: none;
		transform: none;
		height: auto;
		overflow: visible;
		opacity: 1;

		> *{
			padding: 0;
			border-top: none;
		}

		.o-header__profile {
			order: 3;
			padding: 1.3rem 2rem 0 1.5rem;
			position: relative;


			&:before{
				content: "";
				display: block;
				width: 1px;
				background-color: $border-color;
				height: 1.5rem;
				position: absolute;
				left: 0;
				top: 50%;
				margin-top: -0.75rem;
			}
		}

		.o-header__navigation{
			order: 1;
		}

		.o-header__search{
			order: 2;
			margin-top: 1.2rem;
			margin-right: 1.5rem;
			max-width: 10rem;
		}
	}

	@include FLOW-at($desktop-xl) {
		.o-header__profile {
			.a-button {

				span[class*="icon-"] + span,
				span + span[class*="icon-"] {
					display: inline-block;
				}
			}
		}
	}

}

