@font-face {
  font-family: Rockyeah; /* set name */
  src: url(Y_M-ROCKYEAH-BRUSH.TTF); /* url of the font */
}

.psf-form {
  border: none;
  padding: 0;
  border-radius: 0;
  background: #fff;
  width: 340px;
  margin: 0 auto;
  box-sizing: border-box;
}
.form-step-1{
	padding: 1rem 2.5rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80vw;
    min-height: 0;
    aspect-ratio: 16/9;
}
.form-step-1 h4{
	width: 58rem;
	color: var(--colors-neutral-50, #FAFAFA);
	text-align: center;
	font-family: 'Montserrat';
	font-size: 3rem;
	font-style: normal;
	font-weight: 700;
	line-height: 120%; /* 3.6rem */
	text-transform: uppercase;
}
.form-f-input{
	width: 48.4rem;
	margin: 3.75rem 0;
	display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 1rem;
}
.form-f-input input{
    padding: 1rem 2.5rem !important;
	border-radius: 1000px !important;	
}
.sm-btn-f-step{
	margin-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
#psf-save-personal{
	display: flex;
    padding: 1rem 2.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    border-radius: 100px;
}
.select-color-section,
.style-choice-section,
.select-space-section{
    width: 80vw;
    padding: 0 4rem;
    border-radius: 6px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    aspect-ratio: 16/9;
}
.select-color-section h4,
.style-choice-section h4,
.select-space-section h4{
	width: 65rem;
	position: absolute;
	top: 5rem;
	left: 50%;
	z-index: 1;
	transform: translateX(-50%);
	color: var(--colors-neutral-800, #262626);
	text-align: center;
	font-family: 'Montserrat';
	font-size: 2.5rem;
	font-style: normal;
	font-weight: 700;
	line-height: 100%; /* 2.5rem */
	text-transform: uppercase;
}
.result-section{
    position: relative;
    width: auto;
    height: 100%;
    aspect-ratio: 8/10;
    margin-top: 12px;
    background: rgb(255, 255, 255);
    padding: 12px;
    border-radius: 6px;
    
}
.psf-result-actions{
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: absolute;
    top: 45%;
    flex-direction: column;
    right: 12.5%;
}

/* Full viewport container to center the form */
.psf-form-viewport {

    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}

/* form sizing per request: width and height scaled by --ratio */
.psf-form {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}
.psf-options {
	width: 100%;
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}
.psf-option {
    width: 20%;
	position:relative;
    border: none;
    padding-bottom: 5.6rem;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(90deg, #cfcfcf59, #ffffff00);
    min-height: 5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    /*overflow: hidden;*/
}
.select-color-section .psf-option {
    width: 20%;
    
}
.style-choice-section .psf-option{
	width: calc(100%/4);
}
.select-space-section .psf-option{
	width: calc(100%/3);
}
.psf-option img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: -30px;
}
.psf-option.selected {
  border-color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

/* style label color */
.select-color-section .psf-label{
	display: flex;
	padding: 1rem;
	justify-content: center;
	align-items: center;
	gap: 0.625rem;
	position: absolute;
	bottom: 9rem;
	right: 1.8rem;
	border-radius: 1rem 0 0 1rem;
	background: #797979;
	box-shadow: 4px 4px 4px 0 rgba(18, 18, 18, 0.24) inset;
	color: #FAFAFA;
	font-family: 'Montserrat';
	font-size: 1.5rem;
	font-style: normal;
	font-weight: 450;
	line-height: 150%; /* 2.25rem */
	text-transform: uppercase;
}

/* Modal & Offcanvas */
.psf-modal {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
}
.psf-modal-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.psf-modal-dialog {
  position: relative;
  width: 720px;
  max-width: 95%;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.psf-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.psf-modal-body {
  max-height: 70vh;
  overflow: auto;
}

.psf-offcanvas {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  display: none;
}
.psf-offcanvas-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.psf-offcanvas-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  padding: 18px;
  overflow: auto;
}
.psf-offcanvas-close {
  display: inline-block;
  margin-bottom: 8px;
  background: #eee;
  border: 1px solid #ddd;
  padding: 6px 10px;
  cursor: pointer;
}

#psf-result img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}
.btn {
  background: linear-gradient(270deg, #ff7352 0%, #d8141a 100%);
  color: #fff !important;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* Loading styles (spinner + progress) moved here from inline widget styles */
.psf-loading-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.psf-loader-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.08);
  border-top-color: #3498db;
  animation: psf-spin 1s linear infinite;
  box-sizing: border-box;
}
@keyframes psf-spin {
  to {
    transform: rotate(360deg);
  }
}
.psf-loading-progress {
  flex: 1;
}
.psf-progress-bar {
  width: 100%;
  height: 12px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}
.psf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, #ff7352 0%, #d8141a 100%);
  transition: width 200ms linear;
}
.psf-progress-text {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}

/* Loading panel wrapper */
#psf-loading-panel {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  margin-top: 12px;
}

.btn-result{
    padding: 10px !important;
    color: #ffffff !important;
    text-transform: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    background: #79797961 !important;
    font-family: 'Montserrat';
}

.psf-result-image{
    position: relative;
    width: 75vw;
}

.psf-result-text{
    position: absolute;
    font-family: "Rockyeah";
    color: #fff;
    bottom: 42%;
    left: 12%;
    font-size: 2rem;
    width: 76%;
    background-color: #00000030;
    padding: 1rem 1rem 0 1.4rem;
    border-radius: 1rem;
    line-height: 1em;
    border: 1px solid #cccccc45;
}

/*  Mobile version */
@media only screen and (max-width: 480px){
	.form-f-input{
		width: 100%;
		flex-direction: column;
	}
	.form-step-1{
	    width: 95vw;
		min-height: 0;
		aspect-ratio: 9/16;
	}
	.form-step-1 h4{
	    width: 100%;
		text-align: center;
		font-size: 1.25rem;
		font-style: normal;
		font-weight: 700;
		line-height: 120%; /* 1.5rem */
		text-transform: uppercase;
	}
	.select-color-section h4, 
	.style-choice-section h4, 
	.select-space-section h4{
		position: relative;
		top: 0;
		width: 100%;
		text-align: center;
		font-size: 1.25rem;
		font-style: normal;
		font-weight: 700;
		line-height: 120%; /* 1.5rem */
		text-transform: uppercase;
	}
	
	.select-color-section, .style-choice-section, .select-space-section{
	    justify-content: flex-start;
	    width: 95vw;
		min-height: 85vh;
		padding: 2.5rem 1rem;
		gap: .5rem;
	}
	.select-color-section .psf-options,
	.select-space-section .psf-options{
	    display: flex;
	    height: auto;
		flex-direction: column;
		gap: 0.5rem;
	}
	.select-color-section .psf-option,
	.select-space-section .psf-option{
		width: 100%;
		background: none;
		padding-bottom: 0;
	}
	.style-choice-section .psf-options{
	    align-items: flex-start;
	    height: auto;
		flex-wrap: wrap;
		gap: .5rem;
	}
	.style-choice-section .psf-option{
		min-height: 0;
		width: calc(50% - 0.5rem);
		padding-bottom: 0;
		background: none;
	}
	.psf-option img{
		margin-left: 0;
	}
	.select-color-section .psf-option img{
		height: 5rem !important;
	}
	.select-space-section .psf-option img{
		height: 8rem !important;
	}
	.select-space-section .psf-options{
	    gap: .5rem;
	}
	.select-color-section .psf-label{
		bottom: 50%;
		right: 1.23rem;
		transform: translateY(50%);
		border-radius: 0.25rem 0 0 0.25rem;
		background: #00377D;
		box-shadow: 4px 4px 4px 0 rgba(18, 18, 18, 0.24) inset;
		font-size: 0.8125rem;
		font-style: normal;
		font-weight: 450;
		line-height: 150%; /* 1.21875rem */
		text-transform: uppercase;
	}
	
	.result-section{
	    aspect-ratio: 8/10;
        width: 100%;
        height: auto;
	}
	
	.psf-result-actions{
	    position: unset;
	    right: 0;   
	}
	
	.select-space-section .psf-label{
        position: absolute;
        bottom: 10px;
	    color: var(--colors-neutral-50, #FAFAFA);
        text-align: center;
        font-family: 'Montserrat';
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 450;
        line-height: 150%; /* 1.3125rem */
        text-transform: uppercase;
        
	}
	.psf-result-item{
	    height: 50vh;
	}
	.psf-result-text{
        bottom: 42.5%;
        left: 12%;
        font-size: .8rem;
        padding: .4rem 1rem .3rem .5rem;
        border-radius: .3rem;
        line-height: 1em;
        border: 1px solid #cccccc45;
	}
	.psf-result-text p{
	    margin-block-end: 0;
	}
	.psf-result-image-canvas .psf-result-text{
        font-size: 2.5rem;
        bottom: 42%;
        left: 12%;
        width: 76%;
        background-color: #00000030;
        padding: 1rem 1rem 0 1.4rem;
        border-radius: 1rem;
        line-height: 1em;
        border: 1px solid #cccccc45;
    }
    .psf-result-image-canvas .psf-result-text p{
        margin-block-end: .9rem;
    }
    .btn-result{
        background: #000000bd !important;
    }
    .psf-result-image{
        position: relative;
        width: 90vw;
    }

}

.psf-result-item{
    position: relative;
    aspect-ratio: 8/10;
    height: auto;
    width: 75vw;
}

.psf-result-item img{
    width: 100%;
}

.psf-result-image-canvas{
    position: relative;
}
.psf-result-image-canvas img{
    width: 1500px;
    height: auto;
    aspect-ratio: 8/10;
}
.psf-result-image-canvas .psf-result-text{
    font-size: 2.5rem;
}

