#reviewModal {
	padding: 20px !important;
    border-radius: 16px;
    --wd-popup-width: 813px;
    min-width: 400px;
	max-width: 800px;
    max-height: 680px;
	width:100%;
	height: 100%;
    color: #242424;
    box-shadow: 0px 0px 35px -10px rgba(0, 0, 0, 0.1);
	background: #fff;
	margin: 0 auto;
	position: relative;
	
	/* Animation custom properties */
	--animation-duration: 300ms;
	--animation-easing: cubic-bezier(0.25, 0.8, 0.25, 1);

	button.mfp-close {
		position: absolute;
		right: auto;
        left: 10px;
		top: 20px;
		width: 32px;
    	height: 32px;
    	min-height: unset;
        color: #000;
		touch-action: manipulation;
		font-weight: 400;
    	font-size: 0;
		background: none;
		z-index: 1104;
    	padding: 0;
		opacity: 0;
		border-radius: 4px;
		&::after {
			font-size: 16px;
			content: "\f112";
    		font-family: "woodmart-font";
		}
        
	}
	
	button.mfp-close:hover {
		background: rgba(0, 0, 0, 0.08);
	}

	.review-star-rating {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		column-gap: 10px;
	}

	label.review-star {
		cursor: pointer;
		input {
			display: none;
		}
		span {
			width: 42px;
			height: 42px;
			display: block;

			svg.star-selected {
				animation-name: stars-villo;
				animation-duration: .6s;
				animation-timing-function: cubic-bezier(.22,1,.36,1);
				animation-fill-mode: backwards;
			}
		}
	}
	.review-step {
		height: 100%;
		width: 100%;
		display: flex;
   	 	flex-direction: column;
   	 	align-items: center;
    	justify-content: center;
		display: none;
		h4 {
			
			text-align: center;
			color: #000;
			font-size: 28px;
			margin-bottom: 0;
		}

		.review-step-header {
			margin-bottom: 32px;

			span {
				font-size: 16px;
				line-height: 20px;
				display: block;
				text-align: center;
			}
		}
	}

	.review-step.active {
		display: flex;
		
	}

	.review-step[data-step="1"] {
		max-width: 480px;
		margin: 0 auto;
		
	}

	.media-upload {
		max-width: 460px;
		width: 100%;
		input {
			display: none;
		}
		label {
			width: 100%;
			background: #000;
			display: flex;
			justify-content: center;
			align-items: center;
			height: 48px;
			border-radius: 8px;
			color: #fff;
			cursor: pointer;

			span {
				height: 24px;
				width: 24px;
				display: inline-block;
				margin-right: 6px;
			}
		}
	}

	.media-previews {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 10px;
		
		&:not(:empty) {
			margin-block: 10px;
		}
		.media-preview {
			max-width: 64px;
			position: relative;
		}

		img {
			width: 100px;
			height: 100px;
			object-fit: cover;
			border-radius: 8px;
			cursor: pointer;
		}

		.media-preview-remove {
			position: absolute;
			top: 0;
			right: 0;
			background-color: rgba(255, 255, 255, 0.7);
			border-radius: 50%;
			padding: 2px;
			cursor: pointer;
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: 2px !important;

			svg {
				height: 24px;
				width: 24px;
			}
		}
	}

	.review-modal__overlay {
		height: 100%
	}
	.review-modal__content {
		height: 100%;
		position: relative;
		overflow: hidden; /* Hide sliding elements outside bounds */
	}

	.review-modal__header {
		display: none;
	}
	.review-modal__form {
		height: 100%;
		position: relative;
		overflow: hidden; /* Ensure sliding elements are contained */
	}

	.review-modal__footer {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		position: absolute;
		bottom: 0;
		left: 0;
		width:100%;

		button {
			width: fit-content;
			max-width: 200px;
			height: 48px;
			border-radius: 8px;
			background-color: transparent;
			color: #000;
			cursor: pointer;
			display: flex;
			align-items: center;
			column-gap: 6px;
			min-width: 96px;

			span {
				width: 24px;
				height: 24px;
				display: inline-block;
				
			}

			svg {
				height: 100%;
    			width: 100%;
				display: block;
			}

		}	

		button:hover, button:focus {
			background-color: rgba(0, 0, 0, 0.08);
		}

		button.btn-filled {
			color: #fff;
			background-color: #000;
		}


		button.btn-filled:hover, button.btn-filled:focus {
			background-color: rgba(0, 0, 0, #222);
		}
		
	}

	.review-modal__progress {
		display: flex;
		align-items: center;
		column-gap: 8px;
		flex: 1;
		max-width: 350px;

		.progress-step {
			flex: 1;
			height: 4px;
			background-color: #e0e0e0;
			border-radius: 2px;
			position: relative;

	

			&::after {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 0px;
				height: 100%;
				background-color: #000;
				border-radius: 2px;
				transition: width 0.3s ease-in-out;
			}

			&.active::after {
				background-color: #000;
				width: 100%;
			}

		}

	}
	.form-fields {
		display: flex;
		flex-wrap: wrap;
		column-gap: 10px;
		row-gap: 24px;
	}
	.form-field {
		display: inline-flex;
		flex-direction: column;
		width:100%;
		&.form-field-half {
			width: calc(50% - 5px);
		}

		input {
			height: 48px;
			border: 1px solid #000;
			border-radius: 4px;
		}

		label {
			font-weight: 500;
		}
	} 

	.submitting-text {
		font-size: 14px;
		color: #484646;
		max-width: 480px;
		text-align: center;
		margin: 32px auto 0;
	}

	#reviewText {
		overflow: auto;
		resize: none;
		max-height: 500px;
   		min-height: 120px;
		outline: none;
		height: 256px;
		display: block;
		max-width: 480px;
		border: 1px solid #000;
		border-radius: 4px;
		padding: 10px 15px;
	}
}

.mfp-ready #reviewModal button.mfp-close {
opacity: 1;
transition: all 0.25s ease, opacity 0.3s ease 0.35s;
}


.mfp-content.h-full {
	height: 100%;
	padding: 16px;
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 800px;
}

@keyframes reviewModalFadeIn {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes stars-villo {
	0% {
	
		transform: scale(1);
	}
	50% {
		transform: scale(.8);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes stars-villo1 {
	0% {
	
		transform: scale(1);
	}
	40% {
		transform: scale(.7);
	}
	6% {
		transform: scale(1.2);
	}
	80% {
		transform: scale(.9);
	}
	100% {
		transform: scale(1);
	}
}

/* Slide Animation Classes for Review Steps */
.review-step {
	transition: transform var(--animation-duration, 300ms) var(--animation-easing, cubic-bezier(0.25, 0.8, 0.25, 1)), 
	            opacity var(--animation-duration, 300ms) ease;
	transform: translateX(0);
	opacity: 1;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	
}


/* Slide animations */
.review-step.slide-out-left {
	transform: translateX(-100%) scale(0.95);
	animation: slideOutLeft var(--animation-duration, 300ms) var(--animation-easing, cubic-bezier(0.25, 0.8, 0.25, 1)) forwards;

	opacity: 1;

}

.review-step.slide-out-right {
	transform: translateX(100%) scale(0.95);
	animation: slideOutRight var(--animation-duration, 300ms) var(--animation-easing, cubic-bezier(0.25, 0.8, 0.25, 1)) forwards;

	opacity: 1;

}

.review-step.slide-in-left {
	transform: translateX(-100%);
	opacity: 0;
	animation: slideInLeft var(--animation-duration, 300ms) var(--animation-easing, cubic-bezier(0.25, 0.8, 0.25, 1)) forwards;
	animation-delay: var(--animation-duration, 300ms);
}

.review-step.slide-in-right {
	transform: translateX(100%);
	opacity: 0;
	animation: slideInRight var(--animation-duration, 300ms) var(--animation-easing, cubic-bezier(0.25, 0.8, 0.25, 1)) forwards;
	animation-delay: var(--animation-duration, 300ms);
}

@keyframes slideInLeft {
	to {
		transform: translateX(0) scale(1);
		opacity: 1;
	}
}

@keyframes slideInRight {
	to {
		transform: translateX(0) scale(1);
		opacity: 1;
	}
}

@keyframes slideOutLeft {

	0% {

		transform: scale(1) translateX(0);
		opacity: 1;
	}
	20% {
		transform: scale(0.95) translateX(0);
		opacity: 0.5;
  	}

	40% {
		transform: scale(0.95) translateX(0);
		opacity: 0.5;
  	}

	100% {
		transform: scale(0.95) translateX(-100%); 
		opacity: 0; 
	}
}

@keyframes slideOutRight {

	0% {

		transform: scale(1) translateX(0);
		opacity: 1;
	}
	20% {
		transform: scale(0.95) translateX(0);
		opacity: 0.5;
  	}

	40% {
		transform: scale(0.95) translateX(0);
		opacity: 0.5;
  	}

	100% {
		transform: scale(0.95) translateX(100%); 
		opacity: 0; 
	}
}

/* Fade Animation Classes */
.review-step.fade-out {
	opacity: 0;
	transition: opacity var(--animation-duration, 300ms) ease;
}

.review-step.fade-in {
	opacity: 0;
	animation: fadeIn var(--animation-duration, 300ms) ease forwards;
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

@media(max-width: 576px) {
	#reviewModal {
		padding: 20px !important;
		border-radius: 0;
		--wd-popup-width: 100%;
		min-width: 100%;
		
		height: 100%;

		button.mfp-close {
			right: auto;
			left: 10px;
			color: #000;
			background: none;
			&::after {
				font-size: 16px;
			}
			
		}
		.review-modal__footer {
			button.review-modal__back {
				padding-inline: 0;
				min-width:56px;
				text-indent: -9999px;
			}
			button.review-modal__back:hover,
			button.review-modal__back:focus {
				background-color: transparent;
			}
		}
	}

	.mfp-container:has(.mfp-content.h-full) {
		padding: 0;
	}

	.mfp-content.h-full {
		padding: 0;
	}
}