
/* Login */

html:has(body.memberpress-menu),
html:has(body.single-forum),
html:has(body.single-topic) {
	background-color: #111;
}

header #menu-header-memberpress .logged-in {
	display: none;
}

body.logged-in {
	header {
		#menu-header-memberpress {
		 	.logged-in {
		 		display: block;
		 	}

		 	.logged-out {
		 		display: none;
		 	}
		}
	}
}

body.memberpress-menu,
body.single-forum,
body.single-topic {
	&.page-scrolled header .m__navigation .m__navigation--header {
	}

	header {
		.m__navigation .m__navigation--header {
			background-color: transparent;
		    border-top: 5px solid #fff;
		    /*border-bottom: 1px solid #fff;*/
			background-color: #111;
			transition: all .3s;
		}

		.header-premium-logo img {
			display: block;
			width: 158px;
            padding-left: 30px;
            height: 20px;
            object-fit: contain;
		}

		.c__logo {
			font-family: europa, sans-serif;
	    	justify-content: flex-end;
			text-decoration: none;
			padding-bottom: 2px;
			svg {
				display: none;
			}

			&::after {
				color: #fff;
				content: 'Back to homepage';
				text-align: center;
				font-size: 14px;
			}
		}

		.open-search g,
		.open-menu rect,
		.close-menu g,
		.close-search g {
			fill: #fff;
		}

	    .m__navigation--footer svg,
	    .m__navigation--footer path {
	    	fill: #fff;
	    }

		.navigation-right {
			flex-grow: 0;
		}

		.m__navigation .row > .col:nth-of-type(2) {
			flex-grow: 0;
		}

		@media(min-width: 480px) {
			.header-premium-logo img {
				width: 196px;
			}
		}

		@media(min-width: 621px) {
			.header-premium-logo img {
				width: 228px;
				height: 22px;
				padding-left: 45px;
			}

			.m__navigation .row > .col:nth-of-type(2) {
				flex-grow: 1;
			}

			.c__logo {
	    		margin-right: 20px;
				&::after {
					font-size: 18px;
				}
			}
		}
	}

	.m__navigation .m__navigation--body .panel {
	    background-color: #111;
	    color: #fff;
	}

	.m__navigation .m__navigation--body .menu-panel .menu-header-memberpress-container {
	    background-color: #111;
	    color: #fff;
	    position: relative;
	    min-height: 100vh;
	    width: 100%;
	    padding-top: 80px;
	    padding-right: 15px;
	    padding-left: 15px;
	    .menu {
		    list-style: none;
		    padding-left: 0;
		    margin-top: 30px;
		    text-align: right;
		    .menu-item {
			    font-size: 1.25rem;
			    a {
			    	text-decoration: none;
			    }
			}
	    }
	}

	.c__form--search {
		border-color: #fff;
		.search-submit {
    		background-image: url('../images/element/menu-btn/searchwhite.svg');
		}
	}

	@media(min-width: 768px) {
		.m__navigation .m__navigation--body .menu-panel .menu-header-memberpress-container .menu {
	        margin-top: 35px;
		    .menu-item {
			    font-size: 1rem;
			}
	    }
	}
}

body.memberpress-login {
	header .header-premium-logo {
		display: none;
	}

	/* Form */

	.wp-block-group:has(.mp_login_form) {
		.h-password-reset,
		.h-password-reset-requested {
			display: none;
		}
	}

	.wp-block-group:has(#mepr_forgot_password_form),
	.wp-block-group:has(#mepr_reset_password_form) {
		.h-sign-in,
		.h-password-reset-requested {
			display: none;
		}
	}

	.wp-block-group:has(.mepr_password_reset_requested) {
		.h-sign-in,
		.h-password-reset,
		.mp_wrapper p {
			display: none;
		}
	}

	article {
		min-height: calc(100dvh - 80px);
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
    	background-color: #111;
	}

	.mp_wrapper,
	.mp_wrapper.mp_login_form,
	#mepr_forgot_password_form {
		max-width: 550px;
		width: 100%;
		&:not(.mepr_password_reset_requested) h3 {
			display: none;
		}
	}

	#mepr_forgot_password_form,
	.mp_login_form,
	#mepr_reset_password_form {
		margin-top: 20px!important;
		margin-bottom: 20px!important;
	}

	.mp_wrapper h3 {
		text-align: center;
		margin-top: 0;
		margin-bottom: 40px;
	}

	.mp-form-row {
		position: relative;
		height: 50px;
		margin-top: 30px;
		margin-bottom: 0;
		&:first-of-type {
			margin-top: 0;
		}

		&::before {
		    content: "";
		    display: block;
		    position: absolute;
		    z-index: 0;
		    width: 100%;
		    bottom: 0;
		    left: 0;
		    height: 1px;
		    background-color: #fff;
		    transition: height .25s;
		}

		&.mp-password-strength-area {
			&::before {
				content: none;
			}
		}

		&.focused,
		&.filled {
			label {
				margin-top: -20px;
				font-size: .7rem;
			}

			&::before {
				/*height: 50px;*/
			}
		}
	}

	label {
		cursor: text;
	    position: absolute;
	    z-index: 1;
	    top: 0;
	    left: 0;
	    margin-top: 14px;
	    line-height: 1;
	    font-size: 1rem;
	    transition: all .2s;

	    &:has(#rememberme) {
	    	position: relative;
	    	margin-top: 20px;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
	    }
	}

	.mp_wrapper textarea, 
	.mp_wrapper select, 
	.mp_wrapper input[type=text], 
	.mp_wrapper input[type=url], 
	.mp_wrapper input[type=email], 
	.mp_wrapper input[type=tel], 
	.mp_wrapper input[type=number], 
	.mp_wrapper input[type=password] {
		background-color: transparent;
		color: #fff;
	    padding: 13px 10px;
	    border: none;
	    position: relative;
	}

	input[type="checkbox"] {
		accent-color: #111;
	    width: 14px;
	    height: 14px;
	}

	.mp-spacer {
		/*display: none;*/
	}

	.submit {
		display: flex;
		justify-content: center;
        margin-top: 30px;
		input#wp-submit {
    		padding: 12px 20px;
			background-color: transparent;
			color: #fff;
			min-width: 250px;
			text-align: center;
			border-radius: 0;
			border: 1px solid white;
			transition: all .2s;
			cursor: pointer;
			&:hover {
				background-color: #fff;
				color: #111;
			}
		}
	}

	.mepr-login-actions {
		text-align: center;
    	font-size: 16px;
	}

	.mepr_password_reset_requested {
		text-align: center;
	}
}

/* Member Portal */

.member-portal-name {
	flex-wrap: wrap;
	gap: 10px;
}

.link-tiles--filled,
.link-tiles--border {
	.wp-block-columns {
		gap: 20px;
		margin-bottom: 20px;
	}

	.wp-block-column {
    	align-content: center;
	}

	a {
		text-decorationn: none;
	}

	@media(min-width: 768px) and (max-width: 991px) {
		.wp-block-columns {
			flex-wrap: wrap!important;
		}	

		.wp-block-column {
			flex-basis: calc(50% - 10px)!important;
		}
	}
}

.link-tiles--filled {
	.wp-block-column {
		padding: 30px 20px;
    	box-shadow: 0px 10px 10px 0px #f3f3f3;
	}
}

.link-tiles--border {
	.wp-block-column {
    	border: 2px solid #fff;
    	>* {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 100%;
    	}
	}

	a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		padding: 30px 20px;
		transition: all .3s;
		&:hover,
		&:focus {
			background-color: #fff;
			color: #111;
		}
	}
}

/* Favourites */

header button.simplefavorite-button {
	position: relative;
	margin-left: auto;
	top: 0;
	left: 0;
	flex-shrink: 0;
}

body.memberpress-portal {
	ul.favorites-list {
		height: 635px;
		overflow: hidden;
	    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
	    mask-size: 100% 100%;
	    mask-repeat: no-repeat;
	}
}

ul.no-favorites {
	padding: 0;
	margin: 0;
}

ul.favorites-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 0;
	margin: 0;
	li {
		background-color: #f4f4f4;
		border-top: none;
		border-radius: 20px;
		width: 100%;
		padding: 0;
	}

	p {
		margin: 0;
	}

	a {
		padding: 20px 25px;
		text-decoration: none;
		display: flex;
		align-items: center;
		gap: 20px;
		width: 100%;
		margin: 0;
		line-height: 1;
	}

	img {
		width: 75px;
		height: auto;
		margin-right: 0;
	}

	button.simplefavorite-button {
		position: relative;
		margin-left: auto;
		top: 0;
		left: 0;
		flex-shrink: 0;
	}
}

.c__card--post button.simplefavorite-button {
	&::before,
	&::after {
		background-color: #fff;
	}
}

button.simplefavorite-button {
	margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;
    bottom: 12px;
    right: 12px;
	font-size: 0;
	z-index: 10;
	width: 17px;
	height: 23px;
	border: none;
	background-color: transparent;
	box-shadow: none;
	padding: 0;
 	i {
 		position: relative;
 		left: 0;
 		top: 0;
 		display: block;
        padding-bottom: 1px;
        font-size: 28px;
        opacity: 1;
        transition: all .3s;
		color: #fff;
 	}

	&::before,
	&::after {
		position: absolute;
		content: '';
		top: 0;
		left: 0;
        width: 17px;
        height: 23px;
		background-color: #111;
		mask-size: 17px;
		transition: all .3s;
	}

	&::before {
		opacity: 1;
		mask-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 137.1 188.37"><defs><style> .cls-1 { fill: %23fff; } </style></defs><path class="cls-1" d="M6.5,188.37c-1.05,0-2.11-.25-3.07-.77-2.11-1.13-3.44-3.34-3.44-5.74V6.51C0,2.92,2.92,0,6.51,0h124.08c3.59,0,6.51,2.92,6.51,6.51v175.35c0,2.34-1.26,4.51-3.3,5.66-2.04,1.15-4.54,1.12-6.55-.08-.19-.11-.36-.23-.54-.36l-57.94-43.12-58.4,43.14c-.08.06-.17.12-.26.18-1.09.73-2.35,1.09-3.61,1.09ZM13,13v155.99l51.9-38.33c2.32-1.73,5.52-1.71,7.81.02l51.39,38.25V13H13Z"/></svg>');
	}

	&::after {
		opacity: 0;
		mask-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="UTF-8"%3F><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 137.1 188.37"><defs><style> .cls-1 { fill: %23fff; } </style></defs><path class="cls-1" d="M137.1,6.51v175.36c0,2.34-1.26,4.51-3.3,5.66-2.04,1.15-4.55,1.12-6.55-.09-.19-.11-.37-.23-.54-.35l-57.94-43.13-58.4,43.14c-.08.06-.17.12-.26.18-1.08.73-2.34,1.09-3.61,1.09-1.05,0-2.1-.25-3.06-.77-2.12-1.13-3.44-3.33-3.44-5.73V6.51C0,2.92,2.92,0,6.51,0h124.08c3.59,0,6.51,2.92,6.51,6.51Z"/></svg>');
	}

	&:hover {
		background-color: transparent;
		/*opacity: .7;*/
		i {
			color: #fff;
		}

		&::before { opacity: 0; }
		&::after { opacity: 1; }
	}

	&.active {
	    /*background-color: #fff;
	    border-color: #fff;
	    border-radius: 100%;
	    i {
	    	color: #111;
	    }*/
	    opacity: 1;

		&::before { opacity: 0; }
		&::after { opacity: 1; }

		&:hover {
			/*opacity: .7;*/
			&::before {
				opacity: 1;
			}

			&::after {
				opacity: 0;
			}
		}
	}
}

/* Account */

.memberpress-account {
	article > .mp_wrapper {
    	padding: 0 15px 60px;
        >* {
            max-width: 540px;
            margin-left: auto;
            margin-right: auto;
        }

        &:has(#mepr-account-nav) {
        	display: none;
        }
	}

	.mp-form-label {
		font-size: 14px;
	}

	.mp_wrapper textarea, 
	.mp_wrapper select, 
	.mp_wrapper input[type=text], 
	.mp_wrapper input[type=url], 
	.mp_wrapper input[type=email], 
	.mp_wrapper input[type=tel], 
	.mp_wrapper input[type=number], 
	.mp_wrapper input[type=password] {
		border: none;
		border-bottom: 2px solid #111;
	}

	select {
		height: 48px;
    	line-height: 26px;
    	margin-top: 0;
	}

	input[type="submit"] {
		border: 1px solid #111;
		background-color: #111;
		color: #fff;
		width: 200px;
		border-radius: 0;
		padding: 0;
		display: inline-block;
	    position: relative;
	    font-family: europa, sans-serif;
	    font-size: 1rem;
	    line-height: 50px;
	    font-weight: 400;
	    text-decoration: none;
	    white-space: nowrap;
	    cursor: pointer;
	    transition: all .25s;
		&:hover {
			background-color: transparent;
			color: #111;
		}
	}

	.mepr-form input.invalid, 
	.mepr-form select.invalid, 
	.mepr-form textarea.invalid, 
	.mepr-form label.mepr-checkbox-field.invalid, 
	.mepr-form div.mepr-checkboxes-field.invalid, 
	.mepr-form div.mepr-radios-field.invalid {
	    border: 2px solid #8b0000 !important;
	    background-color: transparent !important;
	}

	.mepr-account-change-password {
		display: block;
		a {
		    width: 200px;
		    display: inline-block;
		    text-decoration: none;
		    text-align: center;
			border: 1px solid #111;
			background-color: #111;
			color: #fff;
			width: 200px;
			border-radius: 0;
			padding: 0;
			display: inline-block;
		    position: relative;
		    font-family: europa, sans-serif;
		    font-size: 1rem;
		    line-height: 50px;
		    font-weight: 400;
		    text-decoration: none;
		    white-space: nowrap;
		    cursor: pointer;
		    transition: all .25s;
			&:hover {
				background-color: transparent;
				color: #111;
			}
		}
	}

	table.mepr-account-table {
		margin-left: auto;
		margin-right: auto;
	}

	.mepr_mepr-address-one::before {
	    content: 'Address';
	    font-size: 1.5625rem;
	    line-height: 1.2;
	    font-family: europa, sans-serif;
	    margin: 40px 0;
	    display: block;
	}

	a {
		text-decoration: none;
	}

	.mepr-newpassword-form {
		margin-top: 20px;
		margin-bottom: 20px;
	}

	table.mepr-account-table {
		/*border-color: #f4f4f4;*/
		border: none;
    	border-collapse: unset;
    	border-spacing: 0 15px;
		thead {
			background-color: transparent;
			border-color: transparent;
			border: none;
			margin-bottom: 20px;
			th {
				font-size: 14px;
		    	font-family: europa, sans-serif;
                font-weight: normal;
                /*text-transform: none;*/
                letter-spacing: 0;
                text-align: left;
                padding: 4px 10px;
			}
		}

		tbody tr,
		tbody tr.mepr-alt-row {
			position: relative;
			background-color: transparent;
			border: none;
			&::after {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-color: #f4f4f4;
				border-radius: 10px;
			}
		}

		td {
			padding: 10px;
			border: none;
			font-size: 16px;
		    font-family: europa, sans-serif;
  			vertical-align: top;
  			position: relative;
  			z-index: 1;
		}
	}

	.mepr-account-terms, 
	.mepr-account-subscr-id, 
	.mepr-account-rebill {
		font-weight: normal;
	}

	.mepr-active { color: #111; }
	.mepr-inactive { color: #aaa; font-weight: normal; }

	.mepr-account-actions {
	    display: flex;
	    flex-direction: column;
	    gap: 5px;
	    align-items: center;
	    font-size: 0;
	    a {
	    	font-size: 16px;
	    }
	}

	.mepr_update_account_table {
		strong {
    		font-weight: normal;
		}
	}
}

.mepr-white-popup {
    border-radius: 10px;
    padding: 30px;
    .mepr-upgrade-txn-text {
	    font-size: 1.5625rem;
	    line-height: 1.2;
	    font-family: europa, sans-serif;
    }

    select {
    	font-size: 16px;
	    font-family: europa, sans-serif;
	    margin-bottom: 20px;
    }

    br {
    	display: none;
    }

	button.mepr-btn {
		border: 1px solid #111;
		background-color: #111;
		color: #fff;
		width: 200px;
		border-radius: 0;
		padding: 0;
		display: inline-block;
	    position: relative;
	    font-family: europa, sans-serif;
	    font-size: 1rem;
	    line-height: 50px;
	    font-weight: 400;
	    text-decoration: none;
	    white-space: nowrap;
	    cursor: pointer;
	    transition: all .25s;
	    margin-bottom: 0;
		&:hover {
			background-color: transparent;
			color: #111!important;
		}
	}
}

@media screen and (max-width: 600px) {
    .memberpress-account .mepr-account-actions {
	    align-items: flex-end;
    }
}

@media (min-width: 768px) {
    .memberpress-account {
		article > .mp_wrapper {
	        padding: 0 55px 90px;
            >* {
                max-width: 720px;
            }
		}
    }

    .mepr_mepr-address-one::before {
		font-size: 1.999396rem;
    }

    .mepr-white-popup {
        font-size: 1.999396rem;
    }
}

@media (min-width: 992px) {
    .memberpress-account {
		article > .mp_wrapper {
            >* {
                max-width: 960px;
            }
        }
    }
}

@media (min-width: 1200px) {
    .memberpress-account {
		article > .mp_wrapper {
            >* {
                max-width: 1140px;
            }
        }
    }
}

/* Errors */

.mp_wrapper {
	.mepr_updated,
	.mepr_error {
		background-color: #85d297 !important;
		border-color: #85d297 !important;
		padding: 4px 10px !important;
	    margin-bottom: 10px !important;
	    text-align: center;
	    color: #fff;
	    font-size: 16px;
		font-family: europa, sans-serif;
	    ul {
	    	padding: 0!important;
	    }

		li {
			font-size: 16px;
			font-family: europa, sans-serif;
		}
	}

	.mepr_error {
		background-color: #8b0000 !important;
		border-color: #8b0000 !important;
	}

	.mepr-form-has-errors,
	.mepr-stripe-card-errors,
	.mepr-paypal-card-errors, 
	.mepr-square-errors {
		margin-top: 20px;
	    font-size: 16px;
		font-family: europa, sans-serif;
		color: #eb1c26;
	}
}
