.mobilemenu {

	position: fixed;

	width: 100vw;
	min-height: 100vh;
	padding-block: 0!important;
	border: none;
	margin: 0;
	right: 0;
	z-index: 20;
	display: grid;
	isolation: isolate;
	pointer-events: none;
	
	@media (width > 820px) {
		display: none!important;
	}

	& .mobilemenu--inner {
		translate: 100% 0;
		box-sizing: border-box;
		justify-self: flex-end;
		align-self: stretch;
		max-width: 480px;
		width: 100%;
		min-height: 100%;
		background-color: var(--wp--preset--color--beige-moyen);
		padding-inline: 1rem;
		transition: all ease-in-out .3s;
	}
	
	& .mobilemenu--nav  {
		margin-block-start: 4rem;
		margin-block-end: 2rem;
	}
	
	& .mobilemenu--overlay {
		position: absolute;
		width: 100%;
		height: 100%;
		inset: 0;
		background-color:rgb(0 0 0 / 0);
		z-index: -1;
		transition: all ease-in-out .3s;
	}
	  
	& .menu-item a {
		padding-block: 0.5rem;
		display: flex;
		font-size: var(--wp--preset--font-size--medium-small);
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		position: relative;
		border-bottom: 1px solid var(--wp--preset--color--beige-pale);

		&::after  {
			text-align: center;
			content: '';
			font-family: var(--wp--preset--font-family--font-awesome);
			display: inline-block;
			width: 1.5rem;
			height: 1.5rem;
			line-height: 1.5rem;
			background: var(--wp--preset--color--beige-pale);
			border-radius: 50%;
			font-size: 0.6em;
			position: absolute;
			right: 0.5rem;
			box-shadow: 3px 3px 8px 0px rgba(0, 0, 0, 0.15);
			transition: all ease-in-out 0.2s;
		}
	}	  	
	
	& .dialog-close {
		
		font-family: var(--wp--preset--font-family--font-awesome);
		width: 2rem;
		height: 2rem;
		line-height: 2rem;
		text-align: center;
		border-radius: 50%;
		font-size: 0.6em;
		background: var(--wp--preset--color--beige-pale);
		box-shadow: 3px 3px 8px 0px rgb(0 0 0 / 0.15);
		transition: all ease-in-out 0.2s;
		
		
		position: absolute;
		
		z-index: 2;
		top: 1rem;
		right:  var(--wp--style--root--padding-right);
		
		cursor: pointer;
		
		&:hover {
			color:var(--wp--preset--color--orange);
			box-shadow: 3px 3px 8px 0px rgb(0 0 0 / 0);
		}
	
		
	}
	&:has(#mobile-toggle:checked) {
	
	
		
		pointer-events: all;
		
		& .mobilemenu--inner  {
			translate: 0 0;
		}
		
		& .mobilemenu--overlay {
			background-color:rgb(0 0 0 / .65);
	
		}
	} 

}


