/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
#virtual-try-on{
  border: 1px solid #e9e9e9;
    background: #f1f1f1;
    padding: 10px;
}
#personImage {
    display: none;
  }
  #cachedImages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
  }
  .cached-image, #uploadNewImage {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
  }
  .cached-image.selected {
    border-color: #3498db;
  }
  #uploadNewImage {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3498db;
    color: white;
    font-size: 24px;
    transition: background-color 0.3s;
    position: relative;
  }
  #uploadNewImage:hover {
    background-color: #2980b9;
  }
  #uploadNewImage:hover::after {
    content: "Upload new person";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
  }
  button, input[type="text"] {
    width: 100%;
    padding: 10px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
  }
  button:hover {
    background-color: #27ae60;
  }
  button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
  }
  input[type="text"] {
    background-color: white;
    color: #333;
    border: 1px solid #eee;
    cursor: text;
    width: auto;
  }
  input[type="text"]:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
  }
  .loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
  }
  #loadingMessage {
    text-align: center;
    color: #7f8c8d;
    margin-top: 10px;
    display: none;
  }
  #result {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
  }
  #result img {
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .image-container {
    position: relative;
    width: 60px;
    height: 60px;
  }
  .delete-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .image-container:hover .delete-btn {
    opacity: 1;
  }
  #settingsForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  #settingsForm label {
    margin-bottom: 5px;
    color: #333;
  }
  #settingsButton {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    width: auto;
  }

  #settingsButton:hover {
    color: #3498db;
  }

  #credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #7f8c8d;
  }
