/* Styling for the Try It On Button */
.vistoure-try-on-button-container {
    text-align: left;
    margin: -10px 0 10px 0; /* Adjusting margin to move it upward */
}

/* Modal Background */
#vistoure-try-on-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.vistoure-try-on-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for focus */
}

/* Close Button */
.vistoure-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.vistoure-close-modal:hover {
  filter: brightness(1.1);
	transform: scale(1.2); 
}

.vistoure-close-modal:active {
  box-shadow: 0 1px #666;
  transform: translateY(1px); 
}

/* Try-On Button */
.vistoure-try-it-on-button {
    border: 2px solid #fff; 
	background-color: #8B0000; 
    color: #ffffff; 
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
}

.vistoure-try-it-on-button:hover {
 	filter: brightness(1.1);
	transform: scale(1.02); 
}

.vistoure-try-it-on-button:active {
	box-shadow: 0 3px #666;
  	transform: translateY(3px);
}


/* File Input Styling */
#vistoure-user-photo {
    font-size: 14px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    margin: 10px auto;
    width: 80%; /* Adjust width */
    max-width: 300px; /* Cap maximum width */
}

/* Try Now Button */
#vistoure-try-it-now-button {
    color: #ffffff;
    background-color: #8B0000; /* Maroon background */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s; /* Smooth hover effect */
	box-shadow: 0 3px #999;
}

#vistoure-try-it-now-button:hover {
	filter: brightness(1.1);
    transform: scale(1.05); /* Subtle scaling effect */
}

#vistoure-try-it-now-button:active {
    box-shadow: 0 3px #666;
  	transform: translateY(3px);
}

#vistoure-try-it-now-button .fa {
	 margin-left: -15px;
 	 margin-right: 6px;
}


#vistoure-try-on-download-button {
	color: #ffffff;
    background-color: #8B0000; /* Maroon background */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s; /* Smooth hover effect */
	box-shadow: 0 3px #999;
}
#vistoure-try-on-download-button:hover {
	filter: brightness(1.1);
    transform: scale(1.05); /* Subtle scaling effect */
}

#vistoure-try-on-download-button:active {
    box-shadow: 0 3px #666;
  	transform: translateY(3px);
}


#vistoure-continue-to-tryon {
	margin-top: 15px; 
	background: #800000; 
	color: #fff; 
	padding: 10px 20px; 
	border: none; 
	border-radius: 4px; 
	cursor: pointer;
	transition: background-color 0.3s, transform 0.2s; 
	box-shadow: 0 3px #999;
}

#vistoure-continue-to-tryon:hover {
	filter: brightness(1.1); 
    transform: scale(1.05); 
}

#vistoure-continue-to-tryon:active {
  box-shadow: 0 3px #666;
  transform: translateY(3px);
}

#visttrfo-alert-okay-btn {
	margin-top:15px;
	background:#8B0000;
	color: #fff;
	padding:10px 20px;
	border:none;
	border-radius:6px;
	cursor:pointer;
	transition: background-color 0.3s, transform 0.2s; /* Smooth hover effect */
	box-shadow: 0 3px #999;
}

#visttrfo-alert-okay-btn:hover {
	filter: brightness(1.1);
    transform: scale(1.05); 
}

#visttrfo-alert-okay-btn:active {
	box-shadow: 0 3px #666;
	transform: translateY(3px);
}

/* Result Image Preview */
#vistoure-try-on-preview {
    max-width: 80%;
    margin: 15px auto;
    border: 2px solid #8B0000;
    border-radius: 5px;
    display: block;
}


/* Below styles are from Single product js file  */

.vistoure-try-on-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.vistoure-try-on-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.vistoure-try-on-modal-content h2 {
    margin-bottom: 15px;
}
.vistoure-try-on-modal-content p {
    color: #333;
    margin-bottom: 15px;
}
.vistoure-try-on-modal-content ul {
    list-style-type: disc;
    color: #333;
}
.vistoure-try-on-modal-content ul li {
    margin-bottom: 10px;
}
.vistoure-try-on-modal-content a {
    text-decoration: underline;
}
.vistoure-try-on-modal-content input[type="file"] {
    margin: 15px 0;
    width: 100%;
}
.vistoure-try-on-modal-content button {
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.vistoure-try-on-result img {
    max-width: 100%;
    margin-top: 15px;
    border-radius: 4px;
}

#visttrfo-countdown-timer {
  font-size: 16px;
  font-weight: bold;
  color: #333333; /* Neutral dark text color */
  background-color: #f1f1f1; /* Soft light background */
  padding: 3px 6px;
  border-radius: 7px;
  display: inline-block;
  letter-spacing: 0.5px;
  font-family: 'Courier New', monospace; /* Gives a timer/digital feel */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Image preview wrapper - centers the image
#vistoure-photo-preview-wrapper {
	display: none;
	position: relative;
	width: fit-content;
	margin: 20px auto;
} */

/* Thumbnail image style */
/*#vistoure-photo-preview {
	max-width: 150px;
	border-radius: 8px;
	display: block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}*/

/* Remove button (X icon) on top-right
#vistoure-remove-photo {
	position: absolute;
	top: -10px;
	right: -10px;
	background-color: #ff4d4f;
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-weight: bold;
	font-size: 16px;
	line-height: 1;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s ease;
} */

#vistoure-remove-photo:hover {
	background-color: #e60000;
}

#vistoure-preview-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: nowrap; /* Prevent vertical stacking */
}

#vistoure-product-preview-wrapper,
#vistoure-photo-preview-wrapper {
    position: relative;
    text-align: center;
    width: 150px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#vistoure-product-preview,
#vistoure-photo-preview {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#vistoure-remove-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff5a5f;
    color: white;
    font-weight: bold;
    font-size: 16px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

#vistoure-product-preview-wrapper p,
#vistoure-photo-preview-wrapper p {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
}

/* ✅ Responsive layout fix */
@media (max-width: 480px) {
    #vistoure-preview-container {
        gap: 16px;
    }

    #vistoure-product-preview-wrapper,
    #vistoure-photo-preview-wrapper {
        width: 120px;
        min-height: 180px;
    }

    #vistoure-remove-photo {
        width: 20px;
        height: 20px;
        font-size: 14px;
        line-height: 18px;
    }

    #vistoure-product-preview-wrapper p,
    #vistoure-photo-preview-wrapper p {
        font-size: 12px;
    }
}


/* animated "Processing..." with dots  */
.typing-dots {
  position: relative;
}

.typing-dots .dot-1,
.typing-dots .dot-2,
.typing-dots .dot-3 {
  animation: blink 1.5s infinite;
  opacity: 0;
}

.typing-dots .dot-2 {
  animation-delay: 0.2s;
}

.typing-dots .dot-3 {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
