/* -------------------------------------------------------------------------------- */
/*	X.	Header Modals
/* -------------------------------------------------------------------------------- */


/* Modal Base ----------------------------- */


.modal {
	background: #fff;
	border: 1px solid var(--gray-200);
	font-size: 14px;
	opacity: 0;
	position: absolute;
		top: calc( 100% + 15px );
	transform: translateY( 5px );
	transition: opacity .15s linear, transform .15s linear, left .0s .15s, right 0s .15s;
	width: 300px;
	z-index: 100;
}

.modal.active {
	opacity: 1;
	transform: translateY( 0 );
}

.modal:before,
.modal:after {
	border: 10px solid transparent;
	content: "";
	display: block;
	position: absolute;
		bottom: 100%;
}

.modal.arrow-left {
	left: -9999px;
}

.modal.arrow-right {
	right: 9999px;
}

.modal.arrow-left.active {
	left: -23px;
	transition: opacity .15s linear, transform .15s linear;
}

.modal.arrow-right.active {
	right: -23px;
	transition: opacity .15s linear, transform .15s linear;
}

.modal.arrow-left:before,
.modal.arrow-left:after {
	left: 26px;
}

.modal.arrow-right:before,
.modal.arrow-right:after {
	right: 26px;
}

.modal:before {
	border-bottom-color: #e1e1e5;
}

.modal:after {
	border-bottom-color: #fff;
	bottom: calc( 100% - 1.5px );
}

.cart-modal {
	width: 350px;
}

.account-modal {
	width: 300px;
}

/* Header Search ----------------------------- */

.header-search {
	position: absolute;
		left: 0;
		top: 50%;
	transform: translateY( -50% );
	z-index: 100;
}

.header-search label {
	background: url( ../svg/spyglass-black.svg ) no-repeat center;
	background-size: 29px auto;
	cursor: text;
	margin: 0;
	position: absolute;
		bottom: 0;
		left: 0;
		top: 0;
	width: 30px;
}

.header-search input[type="search"] {
	border: none;
	font-size: 16px;
	font-weight: 500;
	margin: 0;
	padding: 10px 0 10px 44px;
}

.header-search input[type="search"]::-webkit-input-placeholder { color: inherit; }
.header-search input[type="search"]:-ms-input-placeholder { color: inherit; }
.header-search input[type="search"]::-moz-placeholder { color: inherit; }

/* COMPACT RESULTS */

.compact-search-results {
	font-size: 14px;
}

.compact-search-results ul {
	padding: 21px 16px;
}

.compact-search-results ul li {
	margin-bottom: 12px;
}

.compact-search-results li img,
.compact-search-results li .post-image {
	height: 50px;
	width: 50px;
}

.compact-search-results li a .title {
	font-family: Archivo, 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 500;
}

.compact-search-results .show-all {
	background-color: #F5F5F7;
	display: block;
	font-weight: 500;
	padding: 21px 5%;
	text-align: center;
}

.compact-search-results .show-all span {
	padding-right: 22px;
	position: relative;
}

.compact-search-results .show-all span:after {
	background: url( ../svg/arrow-right-black.svg ) no-repeat center;
	background-size: contain;
	content: "";
	display: block;
	height: 11px;
	position: absolute;
		right: 0;
		top: calc( 50% - 5px );
	width: 16px;
}

.compact-search-results .no-results-message {
	line-height: 1.3;
	padding: 19px 16px 20px;
	text-align: center;
}


/* Header Social ----------------------------- */


.social-menu.header {
	position: absolute;
		right: 0;
		top: 50%;
	transform: translateY( -50% );
}

.social-menu.header li {
	display: inline-block;
}

.social-menu.header a {
	display: block;
	padding: 10px;
}

.social-menu.header a:hover {
	opacity: .5;
	text-decoration: none;
}

.social-menu.header a:before {
	font-size: 24px;
}


/* Header Toggle Base ----------------------------- */


.site-header .toggle,
.site-header .account-toggle,
.site-header .cart-toggle {
	align-items: center;
	cursor: pointer;
	display: flex;
	height: 44px;
	width: 44px;
	justify-content: center;
	border-radius: var(--border-radius);
	transition: background-color 0.15s ease;
}

.site-header .toggle:hover,
.site-header .account-toggle:hover,
.site-header .cart-toggle:hover {
	background-color: var(--gray-100);
	text-decoration: none;
}

.site-header .toggle:before,
.site-header .account-toggle:before,
.site-header .cart-toggle:before {
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100%;
	content: "";
	display: block;
	height: 20px;
	position: absolute;
		right: auto;
		top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
}


/* Header Account Modal ----------------------------- */


.header-account {
	position: absolute;
		top: 50%;
		right: 72px;
	transform: translateY( -50% );
	z-index: 5;
}

.account-toggle:before {
	background-image: url( ../svg/account-black.svg );
}

/* NOT LOGGED IN */

.account-modal form {
	padding: 20px;
}

.account-modal .form-row-first label,
.account-modal .form-row-last label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
}

.account-modal form .input-text {
	padding: 13px 15px;
}

.account-modal form input[type="submit"] {
	margin-right: 10px;
	min-width: 0;
	padding: 12px 25px;
}

.account-modal form > .lost_password {
	display: none;
}

.account-modal .login-registration-form-links {
	background: #F5F5F7;
	padding: 20px 20px;
	text-align: center;
}

.account-modal .login-registration-form-links p {
	display: inline;
}

.account-modal .login-registration-form-links .sep {
	color: #767676;
	margin: 0 7px 0 5px;
}

/* LOGGED IN */

.account-modal header,
.account-modal nav,
.account-modal footer {
	display: block;
	text-align: left;
}

.account-modal header {
	padding: 20px 20px;
}

.account-modal header strong {
	display: block;
	font-weight: 500;
}

.account-modal header span {
	display: block;
	margin-top: 5px;
}

.account-modal nav,
.account-modal footer {
	border-top: 1px solid #e1e1e5;
	padding: 10px 0;
}

.account-modal.logged-in a {
	background: #fff;
	display: block;
	font-weight: 500;
	padding: 14px 20px 16px 54px;
	position: relative;
}

.account-modal.logged-in a:hover {
	background-color: #F5F5F7;
	text-decoration: none;
}

.account-modal.logged-in a:before {
	background: no-repeat center;
	content: "";
	display: block;
	height: 22px;
	position: absolute;
		left: 16px;
		top: calc( 50% - 11px );
	width: 22px;
}

.account-modal.logged-in a.edit-account:before { background-image: url( ../svg/cog-black.svg ); background-size: 17px auto; }
.account-modal.logged-in a.edit-address:before { background-image: url( ../svg/location-black.svg ); background-size: auto 19px; }
.account-modal.logged-in a.orders:before { background-image: url( ../svg/orders-black.svg ); background-size: auto 21px; }
.account-modal.logged-in a.log-out:before { background-image: url( ../svg/sign-out-arrow-black.svg ); background-size: 16px auto; }


/* Header Cart Modal ----------------------------- */

.header-cart {
	position: absolute;
		top: 50%;
		right: 0;
	transform: translateY( -50% );
	z-index: 150;
}

.cart-toggle:before {
	background-image: url( ../svg/cart-black.svg );
}

.cart-count {
	align-items: center;
	background: var(--primary);
	border: 2px solid #fff;
	box-sizing: border-box;
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 11px;
	font-weight: 500;
	height: 24px;
	justify-content: center;
	padding-bottom: 1px;
	position: absolute;
		right: -10px;
		top: -11px;
	width: 24px;
}

.header-cart .widget_shopping_cart_content {
	padding: 16px;
}



