@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --font-family: "Inter", sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 500;
    --body-color: #f3f8fa;
    --input-color: #fcfeff;
    --font-color: #fff;
  
    --primary: #304355;
    --primary-grey: #425563;
    --medium-grey: #506678;
    --medium-light-grey: #7992a1;
    --light-grey: #a6c3d0;
  
    --primary-green: #007367;
    --dark-green: #004039;
    --medium-green: #008c7c;
    --medium-light-green: #00a996;
    --soft-green: #3CC699;
    --light-green: #a5ffd6;

    --filter-dark-green-color: brightness(0) saturate(100%) invert(20%) sepia(11%) saturate(5004%) hue-rotate(133deg) brightness(91%) contrast(102%);
    --filter-light-green: brightness(0) saturate(100%) invert(95%) sepia(2%) saturate(7000%) hue-rotate(75deg) brightness(105%) contrast(102%);
    --filter-soft-green: brightness(0) saturate(100%) invert(97%) sepia(90%) saturate(1052%) hue-rotate(79deg) brightness(89%) contrast(71%);

    --greyscale-0: #ffffff;
    --greyscale-50: rgba(251, 252, 252, 1);
    --greyscale-100: #f6f7f7;
    --greyscale-200: #eceeef;
    --greyscale-400: #d9dde0;
    --greyscale-600: #b3bbc1;
    --greyscale-800: #304355;
    --greyscale-900: #0A122A;
    --greyscale-1000: #000000;
  
    --yellow-warning: #fdd06a;
    --link: #6bb4f6;
  
    --primary-1: rgba(48, 67, 85, 0.1);
    --primary-5: rgba(48, 67, 85, 0.5);
    --primary-7: rgba(48, 67, 85, 0.7);

    --switch-color-label: #0f1929;
    --switch-checked: #1144D4;

    --danger-red: #ff0000;
    --danger-light: #FCEBEB;
    --danger-dark: #791F1F;
  }
  
  .button {
    padding: 0 2rem;
    border-radius: 50px;
    max-height: 4rem;
    height: 4rem;
    width: max-content;
    line-height: 4rem;
    font-weight: var(--font-weight-regular) !important;
    font-size: 1.125rem;
    letter-spacing: 0.02rem;
    cursor: pointer;
    border: 1px solid var(--primary-green);
    text-decoration: none;
    text-align: center;
    min-height: unset;
  }
  
  @media screen and (max-width: 992px) {
    .button {
      height: 3rem;
      max-height: 3rem;
      line-height: 3rem;
    }
  }
  
  .button--primary {
    color: var(--font-color) !important;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0.02rem;
    font-weight: var(--font-weight-semibold);
    border: 0;
    background: linear-gradient(90deg, #007367 0%, #1e8c7f 100%);
  }
  
  .button--primary-greyscale-900 {
    color: var(--greyscale-0) !important;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0.02rem;
    font-weight: var(--font-weight-semibold);
    border: 0;
    background: linear-gradient(90deg, #0a122a 0%, #00204a 100%);
  }
  
  .button--primary-black {
    color: #fff !important;
    background: var(--greyscale-1000);
    border: 0;
  }
  
  .button--link {
    padding: 0;
    height: unset;
    max-height: unset;
    color: var(--primary-green);
    font-weight: var(--font-weight-semibold) !important;
    background-color: transparent;
    border: 0;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0.02rem;
  }
  
  .button--rounded {
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    line-height: 2rem;
    padding: 0;
  }
  
  .button--primary:hover {
    background: var(--dark-green);
    box-shadow: none;
  }
  
  .button--secondary {
    color: var(--greyscale-900);
    background-color: transparent;
    border: 1px solid var(--greyscale-900);
  }
  
  .button--secondary:hover {
    background: linear-gradient(90deg, #0a122a 0%, #00204a 100%);
    color: var(--greyscale-0);
    border: 1px solid var(--greyscale-0);
  }
  
  .button--medium {
    height: 3rem;
    max-height: 3rem;
    line-height: 3rem;
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
  }
  
  @media screen and (max-width: 870px) {
    .button--medium {
      height: 2.5rem;
      max-height: 2.5rem;
      line-height: 2.5rem;
      font-size: 1rem;
    }
  }
  
  .button--small {
    height: 2.5rem;
    max-height: 2.5rem;
    line-height: 2.5rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
  }
  
  @media screen and (max-width: 870px) {
    .button--small {
      height: 2rem;
      max-height: 2rem;
      line-height: 2rem;
      font-size: 0.875rem;
    }
  }
  
  .button--accent {
    color: var(--greyscale-900);
    border: 1px solid transparent;
    background-color: var(--light-green);
  }
  
  .button--accent:hover {
    background: var(--medium-light-green);
    border: 1px solid var(--medium-light-green);
    color: var(--dark-green);
  }
  
  .button--disabled {
    color: var(--greyscale-600) !important;
    border: 1px solid var(--greyscale-400);
    background-color: var(--greyscale-200);
    box-shadow: none;
    font-weight: var(--font-weight-regular) !important;
    cursor: not-allowed;
  }
  
  .button--disabled:hover {
    background-color: var(--greyscale-400);
    border-color: var(--greyscale-400);
    color: var(--greyscale-600) !important;
  }
  
  .button--gradient {
    background: linear-gradient(92.35deg, var(--greyscale-900) 0%, #304355 100%);
    border: 1px solid var(--greyscale-900);
    font-weight: var(--font-weight-regular) !important;
    color: #fff !important;
  }
  
  .button--selector-variant {
    border: 1px solid #97a5b0;
    box-shadow: 0px 2px 0px 0px #d9dde01a;
    background: var(--input-color);
    font-size: 14px;
    color: var(--greyscale-900);
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 16px 8px 16px;
    height: unset;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .button:hover {
    font-weight: var(--font-weight-regular);
  }

  .animate-right .animation-item,
  .animate-right .animation-arrow-rigth{
    transition: transform 0.2s ease-in-out;
}

.animate-right:hover .animation-item {
    transform: translateX(1rem);
  }


.animate-right:hover .animation-arrow-rigth {
    transform: translateX(1rem) rotate(270deg);
  }
  
  
  /* Classi colori */
  .black { color: var(--greyscale-1000) !important; }
  .primary-green { color: var(--primary-green) !important; }
  .greyscale-50 { color: var(--greyscale-50) !important; }
  .greyscale-50-background { background-color: var(--greyscale-50) !important; }
  .primary-grey { color: var(--primary-grey) !important; }
  .medium-grey { color: var(--medium-grey) !important; }
  .dark-green { color: var(--dark-green) !important; }
  .green-medium-light { color: var(--medium-light-green) !important; }
  .soft-green { color: var(--soft-green) !important; }
  .light-grey { color: #97a5b0; }
  .light-green { color: var(--light-green) !important; }
  .medium-green { color: var(--medium-green) !important; }
  .medium-light-green { color: var(--medium-light-green) !important; }
  .soft-green { color: var(--soft-green) !important; }
  .dark-grey,
  .grey-800 { color: var(--greyscale-800) !important; }
  .grey-600 { color: var(--greyscale-600) !important; }
  .grey-400 { color: var(--greyscale-400) !important; }
  .grey-900 { color: var(--greyscale-900) !important; }
  .white-background-widget { background-color: #fafcfc; }
  .bg-white { background-color: var(--greyscale-0); }
  .bg-input-color { background-color: var(--input-color) !important; }
  .border-r-15 { border-radius: 1.5rem; }
  .filter-light-green { filter: var(--filter-light-green); }
  .filter-soft-green { filter: var(--filter-soft-green); }
  .dark-green-color { filter: var(--filter-dark-green-color); }
  
  /* Hover effects */
  .hover-green-medium-light-border,
  .hover-box {
    border: 1px solid transparent;
  }
  .hover-green-medium-light-border:hover {
    border: 1px solid var(--medium-light-green);
    cursor: pointer;
  }
  .hover-box:hover {
    box-shadow: 1px 1px 184px 0px #1F8C7F33 inset;
    cursor: pointer;
    border: 1px solid #1F8C7F33;
  }
  
  
  html,
  body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family)!important;
    font-weight: var(--font-weight-regular)!important;
    background: radial-gradient(
        29.31% 29.31% at 104.41% 58.69%, 
        #1F8C7F 0.82%, 
        #50A59B 14.69%, 
        #D6EAE8 66.63%, 
        #F3F8FA 100%
    );
    font-size: 1rem;
    line-height: 1.5;
    color: var(--greyscale-800);
    scroll-behavior: smooth;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .h6 {
    filter: var(--greyscale-900);
  }
  
  h1 {
    font-size: 4rem;
    line-height: 3.5rem;
  }
  
  @media screen and (max-width: 576px) {
    h1 {
      font-size: 3.5rem;
      line-height: 4rem;
    }
  }
  
  h2 {
    font-size: 1.75rem;
    line-height: normal;
    letter-spacing: 0px;
  }
  
  h3 {
    font-size: 3rem;
    line-height: 4rem;
  }
  
  @media screen and (max-width: 576px) {
    h3 {
      text-align: center;
    }
  }
  
  h4 {
    font-size: 4rem;
    line-height: 4.25rem;
  }
  
  @media screen and (max-width: 870px) {
    h4 {
      font-size: 3.25rem;
      line-height: 3.5rem;
    }
  }
  
  @media screen and (max-width: 576px) {
    h4 {
      font-size: 2.5rem;
      line-height: 2.75rem;
    }
  }
  
  h5 {
    font-size: 2.25rem;
    line-height: 100%;
    font-weight: var(--font-weight-semibold);
  }
  
  @media screen and (max-width: 576px) {
    h5 {
      font-size: 1.75rem;
    }
  }
  
  h6,
  .h6 {
    font-size: 1.5rem;
    line-height: 1.75rem;
    font-weight: var(--font-weight-semibold);
  }
  
  @media screen and (max-width: 576px) {
    h6,
    .h6 {
      font-size: 1.25rem;
      line-height: 1.5rem;
    }
  }
  
  p,
  label {
    font-size: 1rem;
    line-height: 1.25rem;
    letter-spacing: unset;
  }
  
  @media screen and (max-width: 870px) {
    p,
    label {
      font-size: 0.875rem;
      line-height: 1rem;
    }
  }
  
  p,
  label,
  ul li {
    /* max-width: 30rem; */
  }
  
  span.small,
  p.small,
  a.small,
  label.small,
  address.small,
  sup.small {
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0;
  }
  
  @media screen and (max-width: 870px) {
    span.small,
    p.small,
    a.small,
    label.small,
    address.small,
    sup.small {
      font-size: 0.75rem;
      line-height: 0.875rem;
      letter-spacing: 0.02rem;
    }
  }
  
  span.medium,
  p.medium,
  a.medium,
  label.medium,
  address.medium,
  sup.medium {
    font-size: 1rem;
    line-height: 1.25rem;
    letter-spacing: 0;
    font-weight: var(--font-weight-regular);
  }
  
  @media screen and (max-width: 870px) {
    span.medium,
    p.medium,
    a.medium,
    label.medium,
    address.medium,
    sup.medium {
      font-size: 0.875rem;
      line-height: 1rem;
      letter-spacing: 0.02rem;
    }
  }
  
  span.ultra-small,
  p.ultra-small,
  a.ultra-small,
  label.ultra-small {
    font-size: 0.75rem;
    line-height: 1.125rem;
    letter-spacing: 0.02rem;
  }
  
  ul li {
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: 0.02rem;
    list-style-type: disc;
    margin-left: 1rem;
  }
  
  a {
    color: #6bb4f6;
    font-weight: var(--font-weight-semibold);
    text-decoration-line: none;
    letter-spacing: 0.02rem;
  }
  
  a.showmore {
    text-decoration: underline;
    font-weight: normal;
  }
  
  a.showmore:hover {
    filter: brightness(0.5);
  }
  
  textarea {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.5;
  }

.container-formats-supported {
    padding: 1px 8px 1px 8px;
    background: rgba(235, 236, 239, 1);
    border-radius: 99px; font-size: 12px; color: rgba(10, 18, 42, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-icon-cards {
    height: 80px; 
    width: 80px; 
    background-color: var(--light-green);
    border-radius: 1rem
}

.semi-bold { font-weight: var(--font-weight-semibold)!important; }

/* Start modal */
.modal {
    position: fixed;
    z-index: 9000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(10, 18, 42, 0.5);
  }

.modal::-webkit-scrollbar {
    width: 9px;
  }
  
  .modal::-webkit-scrollbar-track {
    background: var(--greyscale-400); /* sfondo del track */
    border-radius: 9px; /* arrotonda sopra e sotto */
  }
  
 .modal::-webkit-scrollbar-thumb {
    background-color: var(--primary-green); /* colore del thumb */
    border-radius: 9px; /* arrotonda sopra e sotto */
    border: none; /* rimuove bordo interno */
  }
  
  .modal:not(#language-country-modal, #modalUserNotLogged) .modal__content {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 2rem;
    width: calc(100% - 4rem);
    max-width: 60rem;
    border-radius: 1.5rem;
    background-color: #ffffff;
    overflow: scroll;
  }
  
  @media screen and (max-width: 576px) {
    .modal .modal__content {
      padding: 1rem;
      position: relative;
      top: unset;
      left: unset;
      transform: unset;
      min-width: unset;
      width: 100%;
      height: 100%;
      border-radius: 0;
    }
  }
  
  .modal .modal__content-3d,
  .modal .modal__content-2d,
  .modal .modal__content-image-ai,
  .modal .modal__content-image,
  .modal .modal__content-multiview-image,
  .modal .modal__content-no-3d {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: calc(100% - 4rem);
    max-height: calc(100% - 4rem);
    max-width: 60rem;
    border-radius: 1.5rem;
    background-color: #ffffff;
  }
  
  @media screen and (max-width: 870px) {
    .modal .modal__content-3d,
    .modal .modal__content-2d,
    .modal .modal__content-image-ai,
    .modal .modal__content-image,
    .modal .modal__content-multiview-image {
      padding: 1rem;
      position: relative;
      top: unset;
      left: unset;
      transform: unset;
      min-width: 100%;
      width: 100%;
      height: 100%;
      max-height: unset;
      border-radius: 0;
    }
  }

  .modal .modal__content-3d .div-close-modal,
  .modal .modal__content-2d .div-close-modal,
  .modal__content-image-ai .div-close-modal,
  .modal .modal__content-no-3d .div-close-modal,
  .modal .modal__content-image .div-close-modal,
  .modal .modal__content-multiview-image .div-close-modal {
    position: sticky;
    top: 1rem;
    left: 95%;
    width: min-content;
    border: 1px solid var(--greyscale-900);
    border-radius: 100%;
    padding: 0.5rem;
    background: white;
    cursor: pointer;
    z-index: 9999999999;
  }

  .modal .modal__content-3d .div-close-modal:hover,
  .modal .modal__content-2d .div-close-modal:hover,
  .modal__content-image-ai .div-close-modal:hover,
  .modal .modal__content-no-3d .div-close-modal:hover,
  .modal .modal__content-image .div-close-modal:hover,
  .modal .modal__content-multiview-image .div-close-modal:hover {
    background: linear-gradient(90deg, #0a122a 0%, #00204a 100%);
    border: 1px solid var(--greyscale-0);
  }

  .modal .modal__content-3d .div-close-modal:hover div,
  .modal .modal__content-2d .div-close-modal:hover div,
  .modal__content-image-ai .div-close-modal:hover div,
  .modal__content-no-3d .div-close-modal:hover div,
  .modal .modal__content-image .div-close-modal:hover div,
  .modal .modal__content-multiview-image .div-close-modal:hover div {
    filter: brightness(0) invert(1);
  }
/* End modal */

/* Start dropzone area */
.upload-with-multiview-image-container,
.upload-with-single-image-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  transition: all 0.5s ease;
  position: relative;
}

.container-card-upload-single-image {
  aspect-ratio: 16 / 9;
  width: 95%;
  max-width: 1600px;
  height: 100%;
  max-height: 900px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-upload-single-image {
  width: 100%;
  height: 100%;
  border: 1px solid #eceeef;
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
}

.upload-with-single-image-container {
  justify-content: center;
  align-items: center;
}

.upload-with-single-image-container.vertical,
.canvas-wrapper-single-image.vertical {
  flex-direction: column;
  overflow: clip;
  justify-content: flex-start;
  align-items: flex-start;
}

.upload-with-single-image-container .drop-zone-single-image {
  transition: transform 0.5s, opacity 0.5s, max-height 0.5s ease;
}

.upload-with-single-image-container.vertical .drop-zone-single-image {
  transform: translateY(0px);
  opacity: 1;
  cursor: default!important;
}

.upload-with-single-image-container:not(.vertical) .drop-zone-single-image {
  transform: translateX(0px);
  opacity: 1;
}

.upload-with-multiview-image-container.vertical,
.canvas-wrapper-single-image.vertical {
  flex-direction: column;
  overflow: clip;
}

.upload-with-multiview-image-container .drop-zone-multiview-image {
  transition: transform 0.5s, opacity 0.5s;
}

.upload-with-multiview-image-container.vertical .drop-zone-multiview-image {
  transform: translateY(0px);
  opacity: 1;
  cursor: default!important;
}
.upload-with-multiview-image-container:not(.vertical) .drop-zone-multiview-image {
  transform: translateX(0px);
  opacity: 1;
}

.drop-zone,
.drop-zone-image {
    border: 1px dashed var(--medium-green);
    border-radius: 1rem;
    color: var(--greyscale-600);
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    letter-spacing: 0.02rem;
    height: 100%;
    max-height: 240px;
    background-color: rgba(239, 251, 255, 1);
  }

.drop-zone-multiview-image {
  border: 1px dashed var(--medium-green);
  border-radius: 1rem;
  color: var(--greyscale-600);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
  background-color: rgba(239, 251, 255, 1);
  max-width: 25%;
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: max-width 0.5s ease;
  position: relative;
}

.drop-zone-single-image {
  border: 1px dashed var(--medium-green);
  border-radius: 1rem;
  color: var(--greyscale-600);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
  letter-spacing: 0.02rem;
  background-color: rgba(239, 251, 255, 1);
  aspect-ratio: 16/9;
  width: 95%;
  max-width: 1600px;
  max-height: 300px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.drop-zone-single-image.has-image {
  max-height: 900px;
}

.canvas-wrapper-single-image {
  position: relative;
  width: 95%;
  max-width: 1600px;
  aspect-ratio: 16/9;
  max-height: 900px;
}

/* Tooltip "clicca per selezionare" — segue il mouse, rimosso dopo il primo click */
.canvas-tooltip-follow-mouse {
  position: absolute;
  background: #effbff;
  border: 1px solid var(--primary-green);
  color: #304355;
  font-size: 12px;
  white-space: nowrap;
  padding: 10px;
  border-radius: 1rem;
  z-index: 20;
  transform: translate(14px, -50%);
  transition: opacity 0.15s ease;
  opacity: 0;
  cursor: default;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  line-height: 1.35;
  font-weight: 400;
  white-space: pre-line;
  text-align: center;
}
.canvas-tooltip-follow-mouse.visible {
  opacity: 1;
}

/* Collapse bottom panel segmentazione */
.segmentation-bottom-collapse {
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  border-bottom-left-radius: calc(1rem - 1px);
  border-bottom-right-radius: calc(1rem - 1px);
}

.segmentation-collapse-toggle {
  pointer-events: all;
  background: rgba(246, 247, 247, 0.3);
  border: 1px solid var(--greyscale-600);
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.2rem 1rem 0.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.25s ease;
}

.segmentation-collapse-toggle:hover {
  background: rgba(246, 247, 247, 1);
}

.segmentation-collapse-toggle-icon {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-bottom: 3px;
}

.segmentation-bottom-collapse.collapsed .segmentation-collapse-toggle-icon {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 3px;
}

/* OLD layout — centred+gap below
.segmentation-collapse-panel {
    pointer-events: all;
    width: 100%;
    display: flex;
    align-items: stretch;
    background: var(--greyscale-100);
    border-top: 1px solid var(--greyscale-600);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    height: 56px;
    max-height: 56px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
*/
.segmentation-collapse-panel {
    pointer-events: all;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--greyscale-100);
    border-top: 1px solid var(--greyscale-600);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    height: 56px;
    max-height: 56px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.segmentation-bottom-collapse.collapsed .segmentation-collapse-panel {
    max-height: 0;
    border-top: none;
    padding: 0;
}

/* OLD layout — centred+gap below
.segmentation-collapse-panel .segmentation-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1rem;
    padding: 0 0.5rem;
}

.segmentation-collapse-panel .segmentation-btn-group:first-child {
    justify-content: flex-end;
    padding-right: 2rem;
}

.segmentation-collapse-panel .segmentation-btn-group:last-child {
    justify-content: flex-start;
    padding-left: 2rem;
}

.segmentation-btn-group + .segmentation-btn-group {
    box-shadow: -1px 0 0 var(--greyscale-600);
    margin: 0.5rem 0;
}
*/
.segmentation-collapse-panel .segmentation-btn-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.segmentation-collapse-panel .btn-seg {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.875rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    border: none;
    background: var(--greyscale-50);
    font-size: 13px;
    font-weight: 400;
    color: var(--greyscale-800);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, box-shadow 0.75s;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.segmentation-collapse-panel .btn-seg:hover {
    background: var(--greyscale-100);
    color: var(--greyscale-900);
    box-shadow: 0 0 4px var(--dark-green);
}

.segmentation-collapse-panel .btn-seg.disabled,
.segmentation-collapse-panel .btn-seg:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.segmentation-collapse-panel .btn-seg.accent {
    background: var(--medium-green);
    color: #fff;
    font-weight: 500;
    width: 155px;
    justify-content: center;
}

.segmentation-collapse-panel .btn-seg.accent.remove-points {
    background: var(--switch-color-label);
}

.segmentation-collapse-panel .btn-seg.accent:hover {
    background: var(--primary-green);
}

.segmentation-collapse-panel .btn-seg.accent.remove-points:hover {
    background: var(--greyscale-900);
}

/* Eraser button — orange style */
.segmentation-collapse-panel .btn-seg.eraser-btn {
    color: #D97706;
    font-weight: 500;
    min-width: 155px;
    justify-content: center;
    border: 1px solid transparent;
}
.segmentation-collapse-panel .btn-seg.eraser-btn .icon {
    filter: brightness(0) saturate(100%) invert(50%) sepia(79%) saturate(900%) hue-rotate(3deg) brightness(99%) contrast(103%);
}
.segmentation-collapse-panel .btn-seg.eraser-btn:hover {
    background: rgba(243, 156, 18, 0.12);
    color: #D97706;
    border-color: #D97706;
}
.segmentation-collapse-panel .btn-seg.eraser-btn:hover .icon {
    filter: brightness(0) saturate(100%) invert(50%) sepia(79%) saturate(900%) hue-rotate(3deg) brightness(99%) contrast(103%);
}
/* Eraser mode: active state on button */
.segmentation-collapse-panel .btn-seg.eraser-btn.eraser-active {
    background: #F59E0B;
    color: #fff;
    border-color: transparent;
}
.segmentation-collapse-panel .btn-seg.eraser-btn.eraser-active .icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2%) hue-rotate(239deg) brightness(109%) contrast(101%);
}
.segmentation-collapse-panel .btn-seg.eraser-btn.eraser-active:hover {
    background: #E08C2B;
    color: #fff;
    border-color: #D97706;
}
.segmentation-collapse-panel .btn-seg.eraser-btn.eraser-active:hover .icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(2%) hue-rotate(239deg) brightness(109%) contrast(101%);
}

/* Eraser mode: circle cursor on the canvas wrapper */
#canvas-wrapper-single-image.eraser-mode-active {
    cursor: none !important;
}
/* Ghost circle that follows the cursor in eraser mode */
#canvas-eraser-cursor {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 2px solid rgba(217, 119, 6, 0.85);
    background: rgba(243, 156, 18, 0.15);
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    display: none;
    z-index: 9999999;
}

/* Eraser size control — small icon + slider + large icon, inline next to the eraser button */
.eraser-size-control {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    /* gap: 0.25rem; */
    background: rgba(246, 247, 247, 0.97);
    padding: 0.375rem 0.75rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--greyscale-400);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10001;
    pointer-events: all;
    white-space: nowrap;
    user-select: none;
    cursor: default !important;
}
.eraser-size-control.visible {
    display: flex;
}
.eraser-size-control-drag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-70%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 247, 247, 0.97);
    border: 1px solid var(--greyscale-400);
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.2rem 0.5rem 0.15rem;
    cursor: grab;
    line-height: 1;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 70%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 70%);
}
.eraser-size-control-drag:active {
    cursor: grabbing;
}
.eraser-drag-grip {
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 0.08em;
    transform: rotate(90deg);
    color: #777;
    cursor: grab;
    user-select: none;
    display: inline-flex;
    align-items: center;
}
.eraser-drag-grip:active {
    cursor: grabbing;
}
.eraser-size-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--greyscale-700, #4b5563);
    letter-spacing: 0.01em;
    text-align: start;
    border-bottom: 1px solid var(--greyscale-300);
    padding-bottom: 0.25rem;
    width: 100%;
    cursor: default;
}
.eraser-size-control-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Volume-style range slider for eraser size */
.eraser-size-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 96px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--primary-green) 0%,
        var(--primary-green) var(--pct, 33%),
        var(--greyscale-400) var(--pct, 33%),
        var(--greyscale-400) 100%
    );
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}
.eraser-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.eraser-size-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.segmentation-collapse-panel .btn-seg.danger {
    color: var(--danger-red);
}

.segmentation-collapse-panel .btn-seg.danger:hover {
    background: var(--danger-light);
    color: var(--danger-dark);
}

/* Preview button toggle states */
#btn-preview-crop-segmentation-model .btn-preview-state-hide {
    display: none;
}
#btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-show {
    display: none;
}
#btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-hide {
    display: inline;
}

/* OLD responsive — centred layout below
@media (max-width: 780px) {
  .segmentation-collapse-panel .segmentation-btn-group:first-child {
    justify-content: flex-end;
    padding-right: 0.5rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group:last-child {
      justify-content: flex-start;
      padding-left: 0.5rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group {
    gap: 0.25rem;
  }
}
*/

/* Riduce gap e font a schermi medi */
@media (max-width: 780px) {
  .segmentation-collapse-panel {
    gap: 0.5rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group {
    gap: 0.5rem;
  }
}

/* OLD responsive — icon-only below
@media (max-width: 700px) {
  .segmentation-collapse-panel {
      height: auto;
      max-height: 72px;
  }

  .segmentation-collapse-panel {
      gap: 0;
      justify-content: center;
  }

  .segmentation-btn-group + .segmentation-btn-group {
    margin: 0.25rem 0;
  }

  .segmentation-collapse-panel .btn-seg {
      border-radius: 50%;
      width: 2.25rem;
      height: 2.25rem;
      padding: 0;
      min-width: unset;
      justify-content: center;
  }

  .segmentation-collapse-panel .btn-seg.accent {
      min-width: unset;
      width: 2.25rem;
  }

  .segmentation-collapse-panel .btn-seg span,
  #btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-hide {
      display: none;
  }
}
*/

/* Bottoni icon-only a schermi piccoli */
@media (max-width: 560px) {
  .segmentation-collapse-panel .btn-seg.eraser-btn {
    display: none;
  }
}

@media (max-width: 425px) {
  .segmentation-collapse-panel {
    gap: 0.625rem;
    height: auto;
    max-height: 72px;
    padding: 0.5rem 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .segmentation-collapse-panel .segmentation-btn-group {
    gap: 0.625rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group:not(:last-child) {
    border-right: 1px solid var(--border-color, #e0e0e0);
    padding-right: 0.625rem;
  }

  .segmentation-collapse-panel .btn-seg {
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    min-width: unset;
    justify-content: center;
  }

  .segmentation-collapse-panel .btn-seg.accent {
    min-width: unset;
    width: 2.25rem;
  }

  .segmentation-collapse-panel .btn-seg span,
  #btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-hide {
    display: none;
  }
}

/* In caso di 4 cta commentarlo */
/* @media (max-width: 480px) {
  .segmentation-collapse-panel .segmentation-btn-group:first-child {
    justify-content: flex-end;
    padding-right: 0.5rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group:last-child {
      justify-content: flex-start;
      padding-left: 0.5rem;
  }

  .segmentation-collapse-panel .segmentation-btn-group {
    gap: 0.5rem;
  }

  .segmentation-collapse-panel {
        height: auto;
        max-height: 72px;
    }

    .segmentation-collapse-panel {
        gap: 0;
        justify-content: center;
    }

    .segmentation-btn-group + .segmentation-btn-group {
      margin: 0.25rem 0;
    }

    .segmentation-collapse-panel .btn-seg {
        border-radius: 50%;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        min-width: unset;
        justify-content: center;
    }

    .segmentation-collapse-panel .btn-seg.accent {
        min-width: unset;
        width: 2.25rem;
    }

    .segmentation-collapse-panel .btn-seg span,
    #btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-hide {
        display: none;
    }
} */

/* In caso di 4 cta commentarlo */
/* @media (max-width: 400px) {
    .segmentation-collapse-panel {
        height: auto;
        max-height: 72px;
    }

    .segmentation-collapse-panel {
        gap: 0;
        justify-content: center;
    }

    .segmentation-btn-group + .segmentation-btn-group {
      margin: 0.25rem 0;
    }

    .segmentation-collapse-panel .btn-seg {
        border-radius: 50%;
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        min-width: unset;
        justify-content: center;
    }

    .segmentation-collapse-panel .btn-seg.accent {
        min-width: unset;
        width: 2.25rem;
    }

    .segmentation-collapse-panel .btn-seg span,
    #btn-preview-crop-segmentation-model:has(.hide-icon) .btn-preview-state-hide {
        display: none;
    }
} */

.canvas-preview-single-image {
  border: 1px solid var(--medium-green);
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.5s;
}

.canvas-preview-single-image.fading-out,
.canvas-points-preview-single-image.fading-out,
.drop-zone-single-image.fading-out {
  opacity: 0;
}

.canvas-mask-preview-single-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  pointer-events: none;
}

.canvas-points-preview-single-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  pointer-events: none;
  transition: opacity 0.5s;
}

.reader-spinner-single-image {
  --rssi-size:    150px;
  --rssi-nucleus: calc(var(--rssi-size) * 0.133); /* ~6.7px / 150 */
  --rssi-inset:   calc(var(--rssi-size) * 0.067); /* ~3.3px  */
  --rssi-dot:     calc(var(--rssi-size) * 0.04);  /* 2px     */
  --rssi-r1:      calc(var(--rssi-size) * 0.40);  /* 20px    */
  --rssi-r2:      calc(var(--rssi-size) * 0.467); /* ~23px   */
  --rssi-r3:      calc(var(--rssi-size) * 0.333); /* ~17px   */
  position: absolute;
  top: calc(50% - var(--rssi-size) * 0.5 - 0.5rem);
  /* left: calc(50% - var(--rssi-size) * 0.33); */
  pointer-events: none;
  width: var(--rssi-size);
  height: var(--rssi-size);
}

.reader-spinner-single-image .nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--rssi-nucleus);
  height: var(--rssi-nucleus);
  background-color: var(--soft-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 calc(var(--rssi-nucleus) * 1)   var(--soft-green),
              0 0 calc(var(--rssi-nucleus) * 1.9) var(--medium-green);
  animation: nucleus-pulse 1.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.3s ease, height 0.3s ease;
}

.reader-spinner-single-image .nucleus.has-percent {
  width: calc(var(--rssi-size) * 0.35);
  height: calc(var(--rssi-size) * 0.35);
  font-size: calc(var(--rssi-size) * 0.085);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.reader-spinner-single-image .orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--soft-green);
  border-bottom-color: var(--soft-green);
  animation: orbit-spin 2s linear infinite;
}

.reader-spinner-single-image .orbit::after {
  content: '';
  position: absolute;
  top: var(--rssi-inset);
  left: var(--rssi-inset);
  right: var(--rssi-inset);
  bottom: var(--rssi-inset);
  border-radius: 50%;
  border: 1px solid transparent;
  border-left-color: var(--primary-green);
  border-right-color: var(--primary-green);
  opacity: 0.6;
  animation: orbit-spin-reverse 3s linear infinite;
}

.reader-spinner-single-image .data-point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--rssi-dot);
  height: var(--rssi-dot);
  background-color: var(--soft-green);
  border-radius: 50%;
  transform-origin: 50% 50%;
}

/* Posizionamento e Animazione differenziata per ogni particella */
.reader-spinner-single-image .dp-1 { animation: data-orbit-1 2.5s infinite linear; box-shadow: 0 0 calc(var(--rssi-dot) * 1.5) var(--medium-green); }
.reader-spinner-single-image .dp-2 { animation: data-orbit-2 1.8s infinite linear; box-shadow: 0 0 calc(var(--rssi-dot) * 1.5) var(--medium-green); animation-delay: -0.5s; }
.reader-spinner-single-image .dp-3 { animation: data-orbit-3 3.0s infinite linear; box-shadow: 0 0 calc(var(--rssi-dot) * 1.5) var(--soft-green);   animation-delay: -1.2s; }
.reader-spinner-single-image .dp-4 { animation: data-orbit-1 2.0s infinite linear; box-shadow: 0 0 calc(var(--rssi-dot) * 1.5) var(--medium-green); animation-delay: -0.8s; }

@keyframes nucleus-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 1;
              box-shadow: 0 0 calc(var(--rssi-nucleus) * 1.5) var(--medium-green),
                          0 0 calc(var(--rssi-nucleus) * 3)   var(--soft-green); }
}

/* Rotazione Anello Principale */
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Rotazione Anello Interno (Inversa) */
@keyframes orbit-spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Orbite delle Particelle (Varie distanze e angoli) */
@keyframes data-orbit-1 {
  0%   { transform: rotate(0deg)   translate(var(--rssi-r1)) rotate(0deg);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: rotate(360deg) translate(var(--rssi-r1)) rotate(-360deg); opacity: 0; }
}

@keyframes data-orbit-2 {
  0%   { transform: rotate(120deg) translate(var(--rssi-r2)) rotate(-120deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: rotate(480deg) translate(var(--rssi-r2)) rotate(-480deg); opacity: 0; }
}

@keyframes data-orbit-3 {
  0%   { transform: rotate(240deg) translate(var(--rssi-r3)) rotate(-240deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: rotate(600deg) translate(var(--rssi-r3)) rotate(-600deg); opacity: 0; }
}

.reader-spinner-text-single-image {
  position: absolute;
  top: calc(50% + 5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 678px) {
  .reader-spinner-single-image {
    --rssi-size: 100px;
  }
  
  .reader-spinner-text-single-image {
    top: calc(50% + 3rem);
  }
}

.scanner-wrapper {
  position: relative;
  overflow: hidden;
}

.preview-img-wrapper-single-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.preview-img-wrapper-single-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.15;
  display: block;
}

.preview-img-wrapper-single-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.scanner-wrapper::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: 
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(60,198,153,0.15) 20%,
      rgba(60,198,153,0.55) 46%,
      rgba(60,198,153,0.90) 50%,
      rgba(60,198,153,0.55) 54%,
      rgba(60,198,153,0.15) 80%,
      transparent 100%
    );
  box-shadow: none;
  animation: scanner-sweep 2.5s ease-in-out infinite;
}

@keyframes scanner-sweep {
  0% {
    bottom: 0;
  }
  45% {
    bottom: calc(100% - 80px - 1rem);
  }
  55% {
    bottom: calc(100% - 80px - 1rem);
  }
  100% {
    bottom: 0;
  }
}

.drop-zone-multiview-image.shrink,
.drop-zone-single-image.shrink,
.canvas-wrapper-single-image.shrink {
  width: 75px;
  height: 75px;
  min-width: 75px;
  min-height: 75px;
}

  .drop-zone--disabled,
  .drop-zone-image--disabled {
    border: 1px dashed var(--greyscale-200);
    border-radius: 1rem;
    color: var(--greyscale-400);
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    letter-spacing: 0.02rem;
    height: 100%;
    max-height: 240px;
    background-color: rgba(239, 251, 255, 0.25);
    cursor: not-allowed!important;
  }

  .drop-zone--disabled *,
  .drop-zone-image--disabled * {
    cursor: not-allowed!important;
  }
  
  .drop-zone,
  .drop-zone label,
  .drop-zone-image,
  .drop-zone-image label {
    cursor: pointer;
  }
  
  .drop-zone--over,
  .drop-zone-image--over,
  .drop-zone-single-image--over {
    background-color: rgba(165, 255, 214, 0.5);
  }
  .drop-zone--over .icon:not(.icon-not-rotate),
  .drop-zone-image--over .icon:not(.icon-not-rotate),
  .drop-zone-single-image--over .icon:not(.icon-not-rotate) {
    transform: rotate(180deg);
  }

  .drop-zone--over ~ .upload-photo-no-3d-modal,
  .drop-zone--over ~ .char-counter-promt-no-3d-modal,
  .drop-zone-image--over ~ .upload-photo-no-3d-modal,
  .drop-zone-image--over ~ .char-counter-promt-no-3d-modal {
      background-color: transparent!important;
  }

  .input_no3d_ai.drop-zone--over::placeholder {
    color: var(--medium-green);
    font-size: 1.375rem;
    line-height: 1.875rem;
    font-weight: 600;
  }
  
  .drop-zone__input,
  .drop-zone-2d-drawing__input,
  .drop-zone-image__input,
  .drop-zone-multiview-image__input,
  .drop-zone-single-image__input {
    display: none;
  }
  
  .drop-zone__drag-content,
  .drop-zone-image__drag-content,
  .drop-zone-multiview-image__drag-content,
  .drop-zone-single-image__drag-content {
    display: none;
  }
  
  .drop-zone--over .drop-zone__default-content,
  .drop-zone-image--over .drop-zone-image__default-content,
  .drop-zone-multiview-image--over .drop-zone-multiview-image__default-content,
  .drop-zone-single-image--over .drop-zone-single-image__default-content {
    display: none;
  }
  
  .drop-zone--over .drop-zone__drag-content,
  .drop-zone-image--over .drop-zone-image__drag-content,
  .drop-zone-multiview-image--over .drop-zone-multiview-image__drag-content,
  .drop-zone-single-image--over .drop-zone-single-image__drag-content {
    display: block;
  }
  
  .drop-zone__with-files,
  .drop-zone-image__with-images {
    height: 104px;
    min-height: unset!important;
    max-height: unset;
  }
  
  .drop-zone__with-files > label,
  .drop-zone-image__with-images > label {
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
  }

  .card-upload-file-image > :first-child {
    width: inherit;
    max-width: 250px;
    height: auto
  }

  .card-upload-file-image > img.img-original-uploaded:first-child {
    width: auto;
    max-width: 250px;
    height: auto;
    max-height: 170px;
  }

  .card-upload-file-image > img.img-original-multiview-imageuploaded:first-child {
    width: auto;
    max-width: 250px;
    height: auto;
    padding: 0.5rem;
  }

  .card-upload-file-multiview-image > :first-child {
    width: inherit;
    max-width: 250px;
    height: auto
  }

  .card-upload-file-single-image > :first-child {
    width: inherit;
    max-width: 400px;
    height: auto
  }

  @media screen and (max-width: 805px) {
    .card-upload-file-single-image > :first-child {
        width: inherit;
        max-width: 200px;
        height: auto;
        max-height: 110px;
        min-height: 0!important;
    }

    .card-upload-file-single-image > .icon {
        width: inherit;
        max-width: 200px;
        max-height: 110px;
        min-height: 0!important;
    }
  }

  .card-upload-file-multiview-image > img.img-original-uploaded:first-child,
  .card-upload-file-single-image > img.img-original-uploaded:first-child {
    width: auto;
    max-width: 250px;
    height: auto;
    max-height: 170px;
  }

  .card-upload-file-multiview-image > img.img-original-multiview-imageuploaded:first-child,
  .card-upload-file-single-image > img.img-original-multiview-imageuploaded:first-child {
    width: auto;
    max-width: 250px;
    height: auto;
    padding: 0.5rem;
  }

  .container-card-upload-multiview-image {
    min-height: 260px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .container-card-upload-multiview-image > .card-upload-file {
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #extension-supportated-upload-3d div,
  #extension-supportated-upload-image div {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  #extension-supportated-upload-multiview-image div {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .drop-zone,
  .drop-zone-image {
    max-height: 100%;
  }
  
  @media screen and (max-width: 870px) {
    .drop-zone__with-files,
    .drop-zone-image__with-images {
        height: auto!important;
        min-height: unset!important;
    }

    .drop-zone__with-files .drop-zone__default-content :first-child,
    .drop-zone-image__with-images .drop-zone-image__default-content :first-child,
    .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :first-child,
    .drop-zone-single-image__with-images .drop-zone-single-image__default-content :first-child {
        flex-direction: row;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .card-upload-file-image :first-child {
        max-height: 75px!important;
        /* width: 100px!important; */
    }

    .card-upload-file-multiview-image :first-child {
        max-height: 200px!important;
        /* width: 100px!important; */
    }

    #extension-supportated-upload-3d div,
    #extension-supportated-upload-image div {
        justify-content: center;
    }
  }
  
  .upload-image {
    height: 80px;
    width: 80px;
    background-color: rgba(165, 255, 214, 1);
    border-radius: 1rem;
  }

  .drop-zone-single-image__prompt .text-dropzone-single-image {
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0.02rem;
    text-align: center;
  }

  @media screen and (max-width: 500px) {
    .upload-image {
      height: 50px;
      width: 50px;
    }

    .drop-zone-single-image__prompt .text-dropzone-single-image {
        font-size: 0.75rem;
        line-height: 0.875rem;
        letter-spacing: 0.02rem;
    }
  }

  .upload-multiview-image {
    height: 80px;
    width: 80px;
    border-radius: 1rem;
  }

  .upload-multiview-image-mandatory,
  .upload-single-image {
    background-color: var(--light-green);
  }

  .upload-multiview-image-not-mandatory {
    background-color: var(--light-grey);
  }
  
  .drop-zone__with-files .upload-image,
  .drop-zone-image__with-images .upload-image {
    height: 40px;
    max-width: 40px;
    width: 100%;
    background-color: rgba(165, 255, 214, 1);
    border-radius: 0.5rem;
  }

  .drop-zone__with-files .upload-image .icon,
  .drop-zone-image__with-images .upload-image .icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
  
  .drop-zone__with-files .drop-zone__default-content,
  .drop-zone-image__with-images .drop-zone-image__default-content,
  .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content,
  .drop-zone-single-image__with-images .drop-zone-single-image__default-content {
    align-items: center;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  @media screen and (max-width: 870px) {
    .drop-zone__with-files .drop-zone__default-content,
    .drop-zone-image__with-images .drop-zone-image__default-content,
    .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content,
    .drop-zone-single-image__with-images .drop-zone-single-image__default-content {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  .drop-zone__with-files .drop-zone__default-content :first-child,
  .drop-zone-image__with-images .drop-zone-image__default-content :first-child,
  .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :first-child,
  .drop-zone-single-image__with-images .drop-zone-single-image__default-content :first-child {
    flex-direction: column;
    align-items: flex-start;
  }
  
  @media screen and (max-width: 870px) {
    .drop-zone__with-files .drop-zone__default-content :first-child,
    .drop-zone-image__with-images .drop-zone-image__default-content :first-child,
    .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :first-child,
    .drop-zone-single-image__with-images .drop-zone-single-image__default-content :first-child {
      flex-direction: row;
      gap: 0.25rem;
      align-items: flex-start;
    }
  }
  
  .drop-zone__with-files .drop-zone__default-content :last-child,
  .drop-zone-image__with-images .drop-zone-image__default-content :last-child,
  .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :last-child,
  .drop-zone-single-image__with-images .drop-zone-single-image__default-content :last-child {
    align-items: flex-end;
  }
  
  @media screen and (max-width: 870px) {
    .drop-zone__with-files .drop-zone__default-content :last-child,
    .drop-zone-image__with-images .drop-zone-image__default-content :last-child,
    .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :last-child,
    .drop-zone-single-image__with-images .drop-zone-single-image__default-content :last-child {
      align-items: flex-start;
    }
  }
  
  .drop-zone__with-files .drop-zone__default-content :last-child :first-child,
  .drop-zone-image__with-images .drop-zone-image__default-content :last-child :first-child,
  .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :last-child :first-child,
  .drop-zone-single-image__with-images .drop-zone-single-image__default-content :last-child :first-child {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-end;
  }
  
  @media screen and (max-width: 870px) {
    .drop-zone__with-files .drop-zone__default-content :last-child :first-child,
    .drop-zone-image__with-images .drop-zone-image__default-content :last-child :first-child,
    .drop-zone-multiview-image__with-images .drop-zone-multiview-image__default-content :last-child :first-child,
    .drop-zone-single-image__with-images .drop-zone-single-image__default-content :last-child :first-child {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }
  }

  .drop-zone__prompt,
  .drop-zone-image__prompt,
  .drop-zone-multivew-image__prompt,
  .drop-zone-single-image__prompt {
    padding: 0px!important;
  }

  .drop-zone-multivew-image__prompt,
  .drop-zone-single-image__prompt {
    gap: 1.5rem;
  }
/* End dropzone area */

.upload-line--inactive, .upload-line--gradient {
    position: absolute;
    height: 0.25rem;
    width: 100%;
    border-radius: 20px;
    background-color: #eceeef;
}

/* Start funnel */

.funnel-layout {
    width: 100%;
    max-width: -webkit-fit-content; /* vecchi Safari */
    max-width: fit-content;          /* Safari moderno e altri browser */
    margin: 8rem 0px;
    padding-left: 5rem;
    padding-right: 5rem;
}

@media screen and (max-width: 992px) {
    .funnel-layout {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media screen and (max-width: 744px) {
    .funnel-layout {
        margin: 6.5rem auto;
    }
}

@media screen and (max-width: 576px) {
    .funnel-layout {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.funnel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-upload {
    background-image: url("../img/funnel/texture-dx.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    padding: 4rem 6rem;
}

@media screen and (max-width: 870px) {
    .banner-upload {
        padding: 2rem;
    }
}

.funnel .span {
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    line-height: 1.5rem;
    letter-spacing: 0.02em;
    color: var(--greyscale-800);
}

.funnel .span--primary {
    color: var(--primary-green);
}

.funnel .span--link {
    color: #6bb4f6;
}

.funnel .span--icon__info::before {
    content: url("../img/svg/generic/info.svg");
    line-height: 1.5rem;
    padding: 0 0.5rem 0 0;
}

.funnel .span--icon__alert::before {
    content: url("../img/svg/generic/error.svg");
    line-height: 1.5rem;
    padding: 0 0.5rem 0 0;
}

.sticky {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
    width: 100%;
}

.funnel .sub-header {
    display: flex;
    justify-content: space-between;
    background-color: var(--body-color);
    padding: 0.5rem 1rem;
}

.funnel .sub-controller {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0 0.5rem;
}

.funnel .add-controller {
    background-image: url("../img/svg/generic/add.svg");
    background-repeat: no-repeat;
    width: 2.625rem;
    height: 2.625rem;
}

.funnel .payment-method-card-imgs > img {
    height: 2rem;
    width: auto;
}

.funnel-cols {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.funnel-cols > div:first-child {
    flex: 2;
}

.funnel-cols > div:last-child {
    flex: 1;
}

@media screen and (max-width: 870px) {
    .funnel-cols {
        flex-direction: column-reverse;
    }
    
    .funnel-cols > div:first-child,
    .funnel-cols > div:last-child {
        flex: 1;
    }
}

.funnel-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media screen and (max-width: 744px) {
    .funnel-col {
        width: 100% !important;
    }
}

.upload-img {
    position: relative;
    width: 100%;
    flex: 1;
}

@media screen and (max-width: 1024px) {
    .upload-img {
        display: none;
    }
}

.upload-img img {
    position: absolute;
    top: 0;
    right: 0;
    top: -10rem;
    right: -10rem;
    height: 270px;
}

.funnel .payment {
    background-color: var(--greyscale-200);
    padding: 1.5rem 1rem;
    cursor: pointer;
}

.funnel .payment--active {
    background-color: #fafcfc;
}

.funnel .payment input {
    cursor: pointer;
}

.funnel .payments > div:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.funnel .payments > div:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-bottom: none;
}

.funnel .payment:not(.payment--active) {
    border-bottom: 1px solid #d9dde0;
}

.funnel .payments .payment--active {
    border: 1px solid #008c7c !important;
    box-shadow: 0px 2px 0px rgba(151, 165, 176, 0.1);
}

.our-proposal {
    margin-top: 2rem;
}

@media screen and (max-width: 576px) {
    .our-proposal {
        gap: 1rem;
    }
}

.our-proposal > div {
    min-height: 10.625rem;
    text-align: center;
    min-width: 9rem;
    border: 1px solid #d9dde0;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
}

.our-proposal > div > p {
    max-width: 5rem;
}

@media screen and (max-width: 576px) {
    .our-proposal > div {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .funnel-form__header {
        align-items: start;
    }
    
    .funnel-form__header a {
        width: 100%;
    }
}

/* Loading animation */
.reverse-direction .loading {
    -webkit-animation-direction: reverse;
    -moz-animation-direction: reverse;
}

.loading div {
    background: var(--body-color);
    position: absolute;
}

/* First two funnel-cards */
.funnel-cards__loading-container {
    height: 20rem;
    width: 100%;
    position: relative;
}

.funnel-cards__loading-container .loading {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: wave;
    -webkit-animation-timing-function: linear;
    -moz-animation-duration: 1s;
    -moz-animation-fill-mode: forwards;
    -moz-animation-iteration-count: infinite;
    -moz-animation-name: wave;
    -moz-animation-timing-function: linear;
    background: var(--greyscale-200);
    background-image: -webkit-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -webkit-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-image: -moz-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -moz-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 20rem;
    height: 20rem;
    position: relative;
}

.funnel-cards__loading-container .shape-1 {
    top: 0;
    left: 80%;
    height: 20.5rem;
    width: 1rem;
}

.funnel-cards__loading-container .shape-2 {
    top: 0;
    right: calc(30% - 1rem);
    height: 1rem;
    width: 40%;
}

.funnel-cards__loading-container .shape-3 {
    top: 1rem;
    left: 0;
    height: 1rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-4 {
    top: 2.75rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-5 {
    top: 4rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-6 {
    top: 0rem;
    left: 65%;
    height: 20rem;
    width: 1rem;
}

.funnel-cards__loading-container .shape-7 {
    top: 5.25rem;
    left: 0;
    height: 3rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-8 {
    top: 4.25rem;
    left: 45%;
    height: 1rem;
    width: 35%;
}

.funnel-cards__loading-container .shape-9 {
    top: 8.25rem;
    left: 15%;
    height: 0.75rem;
    width: 60%;
}

.funnel-cards__loading-container .shape-10 {
    top: 9rem;
    left: 0;
    height: 2rem;
    width: 100%;
}

.funnel-cards__loading-container .shape-11 {
    top: 11rem;
    right: calc(30% - 1rem);
    height: 1rem;
    width: 40%;
}

.funnel-cards__loading-container .shape-12 {
    top: 12rem;
    left: 0;
    height: 1rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-13 {
    top: 13.75rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-14 {
    top: 15rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-15 {
    top: 16.25rem;
    left: 0;
    height: 3rem;
    width: 80%;
}

.funnel-cards__loading-container .shape-16 {
    top: 15.25rem;
    left: 45%;
    height: 1rem;
    width: 35%;
}

.funnel-cards__loading-container .shape-17 {
    top: 19.25rem;
    left: 15%;
    height: 0.75rem;
    width: 60%;
}

.funnel-cards__loading-container .shape-18 {
    top: 20rem;
    left: 0;
    height: 2rem;
    width: 100%;
}

/* Optimized funnel-card */
.funnel-cards-optimized__loading-container {
    height: 9rem;
    width: 100%;
    position: relative;
}

.funnel-cards-optimized__loading-container .loading {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: wave;
    -webkit-animation-timing-function: linear;
    -moz-animation-duration: 1s;
    -moz-animation-fill-mode: forwards;
    -moz-animation-iteration-count: infinite;
    -moz-animation-name: wave;
    -moz-animation-timing-function: linear;
    background: var(--greyscale-200);
    background-image: -webkit-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -webkit-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-image: -moz-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -moz-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 9rem;
    height: 9rem;
    position: relative;
}

.funnel-cards-optimized__loading-container .shape-1 {
    top: 0;
    left: 80%;
    height: 9rem;
    width: 1rem;
}

.funnel-cards-optimized__loading-container .shape-2 {
    top: 0;
    right: calc(30% - 1rem);
    height: 1rem;
    width: 40%;
}

.funnel-cards-optimized__loading-container .shape-3 {
    top: 1rem;
    left: 0;
    height: 1rem;
    width: 80%;
}

.funnel-cards-optimized__loading-container .shape-4 {
    top: 2.75rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards-optimized__loading-container .shape-5 {
    top: 4rem;
    left: 0;
    height: 0.5rem;
    width: 80%;
}

.funnel-cards-optimized__loading-container .shape-6 {
    top: 0rem;
    left: 65%;
    height: 9rem;
    width: 1rem;
}

.funnel-cards-optimized__loading-container .shape-7 {
    top: 5.25rem;
    left: 0;
    height: 3rem;
    width: 80%;
}

.funnel-cards-optimized__loading-container .shape-8 {
    top: 4.25rem;
    left: 45%;
    height: 1rem;
    width: 35%;
}

.funnel-cards-optimized__loading-container .shape-9 {
    top: 8.25rem;
    left: 15%;
    height: 0.75rem;
    width: 60%;
}

/* Best solution card */
.best-solution__loading-container {
    height: 30rem;
    width: 100%;
    position: relative;
}

.best-solution__loading-container .loading {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: wave;
    -webkit-animation-timing-function: linear;
    -moz-animation-duration: 1s;
    -moz-animation-fill-mode: forwards;
    -moz-animation-iteration-count: infinite;
    -moz-animation-name: wave;
    -moz-animation-timing-function: linear;
    background: var(--greyscale-200);
    background-image: -webkit-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -webkit-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-image: -moz-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -moz-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 30rem;
    height: 30rem;
    position: relative;
}

.best-solution__loading-container .shape-1 {
    top: 1.5rem;
    left: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-2 {
    top: 0;
    right: 0;
    height: 1.5rem;
    width: 20%;
}

.best-solution__loading-container .shape-3 {
    top: calc(2.5rem + 1px);
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-4 {
    top: 4.5rem;
    right: 0;
    height: 0.75rem;
    width: 100%;
}

.best-solution__loading-container .shape-5 {
    top: 7.5rem;
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-6 {
    top: 3.5rem;
    left: calc(50% - 0.5rem);
    height: 4rem;
    width: 1rem;
}

.best-solution__loading-container .shape-7 {
    top: calc(8.5rem + 1px);
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-8 {
    top: 10.5rem;
    right: 0;
    height: 0.75rem;
    width: 100%;
}

.best-solution__loading-container .shape-9 {
    top: 11.25rem;
    left: calc(35% - 0.5rem);
    height: 7.75rem;
    width: 1rem;
}

.best-solution__loading-container .shape-10 {
    top: 13rem;
    right: 0;
    height: 0.75rem;
    width: 100%;
}

.best-solution__loading-container .shape-11 {
    top: 12rem;
    left: 0;
    height: 3rem;
    width: calc(35% - 0.5rem);
}

.best-solution__loading-container .shape-12 {
    top: 14.5rem;
    right: 0;
    height: 0.75rem;
    width: 100%;
}

.best-solution__loading-container .shape-13 {
    top: 16rem;
    left: 0;
    height: 3rem;
    width: calc(35% - 0.5rem);
}

.best-solution__loading-container .shape-14 {
    top: 18rem;
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-15 {
    top: calc(19rem + 1px);
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-16 {
    top: 21rem;
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-17 {
    top: 20rem;
    right: 30%;
    height: 1rem;
    width: 30%;
}

.best-solution__loading-container .shape-18 {
    top: 23rem;
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-19 {
    top: 22rem;
    right: 20%;
    height: 1rem;
    width: 45%;
}

.best-solution__loading-container .shape-20 {
    top: 25rem;
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-21 {
    top: 24rem;
    right: 20%;
    height: 1rem;
    width: 45%;
}

.best-solution__loading-container .shape-22 {
    top: calc(26rem + 1px);
    right: 0;
    height: 1rem;
    width: 100%;
}

.best-solution__loading-container .shape-23 {
    top: 27rem;
    right: 20%;
    height: 1rem;
    width: 45%;
}

.best-solution__loading-container .shape-24 {
    top: 28rem;
    right: 0;
    height: 2rem;
    width: 100%;
}

/* Notes */
.notes__loading-container {
    height: 15rem;
    width: 100%;
    position: relative;
}

.notes__loading-container .loading {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: wave;
    -webkit-animation-timing-function: linear;
    -moz-animation-duration: 1s;
    -moz-animation-fill-mode: forwards;
    -moz-animation-iteration-count: infinite;
    -moz-animation-name: wave;
    -moz-animation-timing-function: linear;
    background: var(--greyscale-200);
    background-image: -webkit-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -webkit-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-image: -moz-gradient(
        linear,
        left center,
        right center,
        from(var(--greyscale-200)),
        color-stop(0.2, #f5f5f5),
        color-stop(0.4, #e5e5e5),
        to(var(--greyscale-200))
    );
    background-image: -moz-linear-gradient(
        left,
        var(--greyscale-200) 0%,
        #f5f5f5 20%,
        #e5e5e5 40%,
        var(--greyscale-200) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 20rem;
    height: 20rem;
    position: relative;
}

.notes__loading-container .shape-1 {
    top: 1.5rem;
    left: 0;
    height: 1rem;
    width: 80%;
}

.notes__loading-container .shape-2 {
    top: 0;
    right: 0;
    height: 2.5rem;
    width: 20%;
}

.notes__loading-container .shape-3 {
    top: 3.25rem;
    left: 0;
    height: 0.75rem;
    width: 100%;
}

.notes__loading-container .shape-4 {
    top: 4.75rem;
    left: 0;
    height: 0.75rem;
    width: 100%;
}

.notes__loading-container .shape-5 {
    top: 6.25rem;
    left: 0;
    height: 0.75rem;
    width: 90%;
}

.notes__loading-container .shape-6 {
    top: 7.75rem;
    left: 0;
    height: 10rem;
    width: 100%;
}

.notes__loading-container .shape-7 {
    top: 7rem;
    right: 0;
    height: 1.5rem;
    width: 35%;
}

.notes__loading-container .shape-8 {
    top: 5.5rem;
    right: 0;
    height: 1.5rem;
    width: 10%;
}

.notes__loading-container .shape-9 {
    top: 17.75rem;
    left: 0;
    height: 2.25rem;
    width: 78%;
}

.notes__loading-container .shape-10 {
    top: 17.75rem;
    right: 0;
    height: 2.25rem;
    width: 3%;
}

/* Our proposal 3 cards */
.our-proposal__loading-container {
    height: 10rem;
    padding-top: 5%;
    width: 100%;
    position: relative;
}

.our-proposal__loading-container .loading {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: wave;
    animation-timing-function: linear;
    background: var(--greyscale-200);
    background-image: -webkit-gradient(
      linear,
      left center,
      right center,
      from(var(--greyscale-200)),
      color-stop(0.2, #f5f5f5),
      color-stop(0.4, #e5e5e5),
      to(var(--greyscale-200))
    );
    background-image: -webkit-linear-gradient(
      left,
      var(--greyscale-200) 0%,
      #f5f5f5 20%,
      #e5e5e5 40%,
      var(--greyscale-200) 100%
    );
    background-image: -moz-linear-gradient(
      left,
      var(--greyscale-200) 0%,
      #f5f5f5 20%,
      #e5e5e5 40%,
      var(--greyscale-200) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 10rem;
    height: 10rem;
    position: relative;
  }
  
  @keyframes wave {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
  }
  @-webkit-keyframes wave {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
  }
  @-moz-keyframes wave {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
  }
  
  /* Shapes positions */
  .our-proposal__loading-container .shape-1 {
    position: absolute;
    top: 0;
    left: calc(33% - 1.5rem);
    height: 10rem;
    width: 2.25rem;
  }
  .our-proposal__loading-container .shape-2 {
    position: absolute;
    top: 0;
    left: calc(66% - 0.5rem);
    height: 10rem;
    width: 2.25rem;
  }
  .our-proposal__loading-container .shape-3 {
    position: absolute;
    top: 5rem;
    left: 0;
    height: 1.25rem;
    width: 100%;
  }
  .our-proposal__loading-container .shape-4 {
    position: absolute;
    top: 7rem;
    left: 0;
    height: 0.5rem;
    width: 100%;
  }
  .our-proposal__loading-container .shape-5 {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1.75rem;
    width: 100%;
  }
  
  /* Payment section visibility */
  #payment-section {
    display: none;
  }
  @media screen and (min-width: 744px) {
    #payment-section {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }
  #payment-section--mobile {
    display: none;
  }
  @media screen and (max-width: 744px) {
    #payment-section--mobile {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }
  
  /* Funnel boxed-data */
  .funnel .boxed-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--greyscale-400);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
  }
  
  /* Upload steps mobile-only */
  @media screen and (max-width: 576px) {
    #upload-step-2 > div:first-child,
    #upload-step-3 > div:first-child,
    #upload-step-4 > div:first-child {
      border-bottom: 1px solid var(--greyscale-600);
      padding-bottom: 2rem;
      margin-bottom: 1rem;
    }
    #upload-step-3 select,
    #upload-step-4 select,
    #select-all-unit {
      min-width: unset;
      max-width: 100%;
      width: 100%;
    }
    #uploaded-files-list select,
    #uploaded-images-list select {
      max-width: 100%;
      width: 100%;
    }
  }
  
  /* Step 4 custom style */
  #upload-step-4 > div {
    border-color: #fdd06a;
    background: linear-gradient(0deg, #f6f7f7, #f6f7f7),
                linear-gradient(0deg, #fdd06a, #fdd06a);
    color: var(--greyscale-600);
  }
  #upload-step-4 a:hover:not(.button) {
    filter: brightness(0.5);
  }
  
  /* Delete hover */
  #upload-step-3 .delete:hover,
  #upload-step-4 .delete:hover {
    filter: brightness(0) saturate(100%) invert(7%) sepia(15%) saturate(2533%) hue-rotate(178deg) brightness(92%) contrast(94%);
  }
  
  /* Uploaded-files-list */
  #uploaded-files-list,
  #uploaded-images-list {
    max-height: 25rem;
    overflow-y: auto;
  }

  #uploaded-files-list::-webkit-scrollbar,
  #uploaded-images-list::-webkit-scrollbar {
    width: 9px;
  }
  
  #uploaded-files-list::-webkit-scrollbar-track,
  #uploaded-images-list::-webkit-scrollbar-track {
    background: var(--greyscale-200); /* sfondo del track */
    border-radius: 9px; /* arrotonda sopra e sotto */
  }
  
  #uploaded-files-list::-webkit-scrollbar-thumb,
  #uploaded-images-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-green); /* colore del thumb */
    border-radius: 9px; /* arrotonda sopra e sotto */
    border: none; /* rimuove bordo interno */
  }
  
  
  /* Firefox */
  #uploaded-files-list,
  #uploaded-images-list {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--greyscale-200);
  }
  

  #uploaded-files-list .card-upload-file-image,
  #uploaded-images-list .card-upload-file-image,
  #uploaded-files-list .card-upload-file-multiview-image,
  #uploaded-images-list .card-upload-file-multiview-image {
    height: 200px;
  }

  @media screen and (max-width: 870px) {
    #uploaded-files-list,
    #uploaded-images-list {
      max-height: calc(100vh - 2rem);
    }
    #uploaded-files-list .card-upload-file-image,
    #uploaded-images-list .card-upload-file-image,
    #uploaded-files-list .card-upload-file-multiview-image,
    #uploaded-images-list .card-upload-file-multiview-image  {
      height: 75px;
    }
    #uploaded-files-list .card-upload-file-image .icon,
    #uploaded-images-list .card-upload-file-image .icon,
    #uploaded-files-list .card-upload-file-multiview-image .icon,
    #uploaded-images-list .card-upload-file-multiview-image .icon {
      width: 64px;
      height: 64px;
      min-width: 64px;
      min-height: 64px;
    }
  }

  .card-upload-file {
    border: 1px solid #eceeef;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
}
  
  /* Card layout adjustments */
  #uploaded-files-list .card-upload-file,
  #uploaded-images-list .card-upload-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    position: relative;
  }

  #uploaded-files-list .card-upload-file {
    gap: 1rem;
  }

  #uploaded-images-list .card-upload-file {
    gap: 0.75rem;
  }

  #uploaded-files-list .card-upload-file .delete-item-before-upload,
  #uploaded-files-list .card-upload-file .edit-file,
  #uploaded-images-list .card-upload-file .delete-item-before-upload,
  #uploaded-images-list .card-upload-file .edit-file,
  .drop-zone-multiview-image .delete-multiview-image-before-upload,
  .drop-zone-single-image .delete-single-image-before-upload,
  .upload-with-single-image-container .delete-single-image-before-upload {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-green);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upload-with-single-image-container .delete-single-image-before-upload {
    top: 2%!important;
    right: 4%!important;
  }

  .upload-with-single-image-container .btn-segmentation-points {
    position: static;
    background: var(--greyscale-400);
    padding: 0.5rem;
    border-radius: 1.5rem;
    cursor: pointer;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
    border: none;
    transition: opacity 0.2s;
  }

  @media screen and (max-width: 843px) {
    .upload-with-single-image-container .btn-segmentation-points {
      border-radius: 50%;
      gap: unset;
    }
  }

  .upload-with-single-image-container .btn-segmentation-points.add-points {
    background: var(--primary-green);
  }

  .upload-with-single-image-container .btn-segmentation-points.remove-points {
    background: var(--switch-color-label);
  }

  .upload-with-single-image-container .btn-segmentation-points:hover {
    opacity: 0.85;
  }

  .upload-with-single-image-container .btn-segmentation-points:disabled {
    opacity: 0.35;
    cursor: not-allowed; 
  }

  .upload-with-single-image-container .btn-segmentation-points:disabled:hover {
    opacity: 0.35;
  }

  .blocked-element-dom.blocked {
    opacity: 0.5;
    cursor: not-allowed!important;
  }

  #uploaded-files-list .card-upload-file .card-upload-file-header,
  #uploaded-images-list .card-upload-file .card-upload-file-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
  @media screen and (max-width: 870px) {
    #uploaded-files-list .card-upload-file .card-upload-file-header,
    #uploaded-images-list .card-upload-file .card-upload-file-header {
      flex-direction: row;
      align-items: center;
      gap: 1rem;
    }
  }
  #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-image,
  #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-image,
  #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image,
  #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image {
    width: 100%;
  }
  @media screen and (max-width: 870px) {
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-image,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-image,
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image {
      width: auto;
      padding: 0;
    }
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-image .icon,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-image .icon,
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .icon,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .icon {
      margin: auto;
      width: 3.75rem;
      height: 3.75rem;
      min-width: 3.75rem;
      min-height: 3.75rem;
    }
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
    #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img,
    #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img {
      width: 3.75rem;
      height: 3.75rem;
      min-width: 3.75rem;
      min-height: 3.75rem;
    }
  }
  
  /* Placeholder image behavior */
  #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
  #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
  #uploaded-files-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img,
  #uploaded-images-list .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("/assets/img/svg/generic/placeholder-uploaded.png");
  }
  
  /* Card footer */
  #uploaded-files-list .card-upload-file .card-upload-file-footer,
  #uploaded-images-list .card-upload-file .card-upload-file-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }
  
  /* Card header title */
  .card-upload-file-header h6 {
    max-width: 12.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  @media screen and (max-width: 870px) {
    .card-upload-file-header h6 {
      max-width: calc(100% - 6rem);
    }
  }
  
/* End funnel */

/* Start Grid */
.grid-table {
    display: flex;
    flex-direction: column;
  }
  
  .grid-table > div:not(:first-child) {
    border-top: none;
  }
  
  .grid-table > div:first-child {
    border-left: 1px solid var(--greyscale-400);
  }
  
  .grid-table > div {
    border: 1px solid var(--greyscale-400);
  }
  
  .grid-table .grid-th,
  .grid-table .grid-td {
    padding: 1rem 1.5rem;
  }
  
  .grid-table .grid-th {
    background-color: var(--body-color);
    border-bottom: 1px solid var(--greyscale-400);
  }
  
  .grid-table .grid-th label {
    white-space: nowrap;
  }
  
  @media screen and (max-width: 576px) {
    .grid-table label {
      width: 10rem;
      display: inline-block;
      overflow-wrap: break-word;
    }
  }
  
  @media screen and (min-width: 992px) {
    .grid-table {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: auto;
    }
  
    .grid-table > div:nth-child(2n+0) {
      border-left: none;
    }
  
    .grid-table > div:not(:first-child) {
      border-top: 1px solid var(--greyscale-400);
    }
  
    .grid-table > div:not(:nth-child(-n+2)) {
      border-top: none;
    }
  }
  
  @media screen and (min-width: 1361px) {
    .grid-table {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .grid-table > div:not(:first-child) {
      border: 1px solid var(--greyscale-400);
    }
  
    .grid-table > div:nth-child(3n),
    .grid-table > div:nth-child(3n-1) {
      border-left: none;
    }
  
    .grid-table > div:not(:nth-child(-n+3)) {
      border-top: none;
    }
  }
  
  .grid-3 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  @media screen and (min-width: 870px) {
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: auto;
      grid-gap: 2rem;
    }
  }
  
  @media screen and (min-width: 992px) {
    .grid-3 {
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 2rem;
    }
  }
  
  .grid-4 {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--greyscale-400);
    border-radius: 0.5rem;
  }
  
  .grid-4 > div:not(:last-child) {
    border-bottom: 1px solid var(--greyscale-400);
  }
  
  .grid-item {
    padding: 1rem;
    text-align: left;
  }
  
  .grid-4 > div > .grid-item:first-child {
    display: flex;
    align-items: center;
    width: 10rem;
  }
  
  .grid-4 img {
    height: 174px;
    max-height: 174px;
    object-fit: contain;
  }
  
  .grid-4 > div > .grid-item:not(:first-child) {
    border-left: 1px solid var(--greyscale-400);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex: 1;
  }
  
  .grid-4 > div > .grid-item--left {
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  
  #final-quality-check-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  @media screen and (min-width: 870px) {
    #final-quality-check-options {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: auto;
      grid-gap: 2rem;
    }
  }
  
  @media screen and (min-width: 992px) {
    #final-quality-check-options {
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 2rem;
    }
  }
  
  .funnel-card--basic .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    justify-items: start;
  }

  .container-upload-file-and-file-uploaded,
  .container-image-ai {
    padding: 0.5rem 2rem 0rem 2rem!important;
  }

  .container-buttons-footer-modal-upload-3d,
  .container-buttons-footer-modal-upload-2d,
  .container-buttons-footer-modal-image-ai,
  .container-buttons-footer-modal-upload-multiview {
      position: sticky;
      bottom: 0;
      background-color: white;
      border-top: 1px solid var(--primary-green);
      padding: 0.75rem 2rem 1rem 2rem!important;
  }
  
  @media screen and (max-width: 870px) {
    .funnel-card--basic .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .funnel-card--basic .grid > div {
      width: 100%;
    }
  
    .funnel-card--basic .grid > div:nth-child(2n) {
      align-items: flex-end;
    }

    .container-buttons-footer-modal-upload-3d,
    .container-buttons-footer-modal-upload-2d,
    .container-buttons-footer-modal-image-ai {
        padding-bottom: 0px!important;
    }

    .container-buttons-footer-modal-image-ai,
    .container-buttons-footer-modal-upload-multiview {
      bottom: -1rem;
    }
  }
  
/* End Grid */

.upload-line {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 0.25rem;
}

.upload-line--gradient {
    background: linear-gradient(270deg, #007367 0%, #55d5b0 100%);
}

.error-file-upload-footer {
    color: #e86b59;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0;
}

.reupload-file-error {
    color: #2f4355;
    font-size: 0.875rem;
    line-height: 1rem;
    letter-spacing: 0;
}

.flex-row-box-card-modal {
  flex-direction: row;
}

.container-extension-upload-2d-drawing {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

@media screen and (max-width: 489px) {
  .flex-row {
    flex-direction: row;
  }

  .flex-row-box-card-modal {
    flex-direction: column;
  }

  .container-extension-upload-2d-drawing {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.uploadtest.invisible {
  height: 0px;
  overflow: hidden;
}

/* Drawing 2D */

/* Card layout adjustments */
#uploaded-files-list-2d-drawing .card-upload-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  justify-content: center !important;
  position: relative;
}

#uploaded-files-list-2d-drawing .card-upload-file .delete-item-before-upload,
#uploaded-files-list-2d-drawing .card-upload-file .edit-file {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-green);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blocked-element-dom.blocked {
  opacity: 0.5;
  cursor: not-allowed!important;
}

#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}
@media screen and (max-width: 870px) {
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}
#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-image,
#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-multiview-image {
  width: 100%;
  height: 120px;
}
@media screen and (max-width: 870px) {
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-image,
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-multiview-image {
    width: auto;
    padding: 0;
  }
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-image .icon,
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .icon {
    margin: auto;
    width: 3.75rem;
    height: 3.75rem;
    min-width: 3.75rem;
    min-height: 3.75rem;
  }
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
  #uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img {
    width: 3.75rem;
    height: 3.75rem;
    min-width: 3.75rem;
    min-height: 3.75rem;
  }
}

/* Placeholder image behavior */
#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-image .placeholder-img,
#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-header .card-upload-file-multiview-image .placeholder-img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("/assets/img/svg/generic/placeholder-uploaded.png");
}

/* Card footer */
#uploaded-files-list-2d-drawing .card-upload-file .card-upload-file-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.notes-2d-drawing {
  max-height: 10rem;
  line-height: normal;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  height: 2.5rem;
  resize: vertical;
  min-height: 2.5rem;
}

.notes-2d-drawing:focus {
  border: 1px solid var(--medium-green);
  outline: none;
}

.notes-2d-drawing::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.notes-2d-drawing::-webkit-scrollbar-track {
  background: var(--greyscale-100);
}

.notes-2d-drawing::-webkit-scrollbar-thumb {
  background-color: var(--primary-green);
  border-radius: 6px;
}

/* Firefox */
.notes-2d-drawing {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-green) var(--greyscale-100);
}

#label_privacy_form_slogged > a {
  color: #6BB4F6;
  font-weight: 400;
  text-decoration-line: underline;
  letter-spacing: 0.02rem;
}

#modalUserNotLogged .modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  padding: 4rem 3rem;
  min-width: 30rem;
  max-width: 40rem;
  border: 1px solid #D9DDE0;
  box-shadow: 0px 2px 0px rgba(151, 165, 176, 0.1);
  border-radius: 8px;
  background-color: #FAFCFC;
}

@media screen and (max-width: 489px) {
  #modalUserNotLogged {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: unset;
    max-width: unset;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    display: none;
    background-color: rgba(217, 221, 224, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999999999!important;
  }

  #modalUserNotLogged.modal .modal__content {
    min-width: unset !important;
    margin: 0;
  }
  
  #fullname-wrapper {
    flex-wrap: wrap;
  }
}

.box-bottom-shadow {
  box-shadow: 1px 4px 14px 0px #0F1B3D1A;
}

.alert--info {
    border: 1px solid #6BB4F6;
    background-color: rgb(215 234 249);
    color: #304355;
    align-items: baseline;
}

.container-badge-new {
  position: absolute;
  top: -1px; /* Removed border */
  right: 1.5rem;
  width: auto;
  min-width: 4.125rem;
  height: 48px;
  background: var(--soft-green);
  border-radius: 0 0 24px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 115, 103, 0.15);
  border-bottom-right-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 4px;
  padding-left: 8px;
}

.badge-new-text {
  font-weight: 700;
  font-style: Italic;
  font-size: 1rem;
  color: #ffffff;
  text-transform: uppercase;
}

.container-upload-single-image {
  flex-direction: column;
}

.container-upload-multiview-image {
  flex-direction: column;
}

/* usata da _slideDown/_slideUp in multi-upload.js durante l'animazione height+opacity */
#modal-upload-multiview-image .slide-animating {
  overflow: hidden;
  transition: height 0.5s ease, opacity 0.25s ease;
}

/* sotto 870px l'animazione è disabilitata (gestito anche in JS) */
@media screen and (max-width: 870px) {
  #modal-upload-multiview-image .slide-animating {
    transition: none;
  }
}

.container-upload-multiview-image.row,
.container-upload-single-image.row {
  flex-direction: row;
}

.placeholder-multiview {
  width: 4rem;
  height: 4rem;
  max-height: 4rem;
  max-width: 4rem;
}

@media screen and (max-width: 843px) {
  .upload-with-multiview-image-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .upload-with-multiview-image-container.vertical {
    height: max-content;
    min-height: 0;
    display: grid;
  }

  .placeholder-multiview {
    width: 3rem;
    height: 3rem;
    max-height: 3rem;
    max-width: 3rem;
  }

  .drop-zone-multiview-image {
    max-width: unset;
    padding: 0.75rem;
    aspect-ratio: unset;
  }

  .drop-zone-single-image {
    max-width: unset;
    padding: 0.75rem;
  }

  .upload-multiview-image {
    width: 60px;
    height: 60px;
  }

  .drop-zone-single-image__prompt {
      gap: 0.5rem;
  }
}

@media screen and (max-width: 576px) {
  .flex-row--mobile {
    flex-direction: column;
  }

  .upload-with-multiview-image-container {
    display: contents;
    gap: 0.75rem;
  }

  .upload-with-multiview-image-container.vertical {
    height: max-content;
    min-height: 0;
    display: grid;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }

  .container-upload-multiview-image.row,
  .container-upload-single-image.row {
    flex-direction: column;
    gap: 1rem! important;
  }

  .upload-with-single-image-container.vertical {
    justify-content: center;
    align-items: center;
  }

  .drop-zone-single-image {
    height: auto;
  }

  .drop-zone-single-image__default-content#extension-supportated-upload-single-image {
    flex-direction: column;
  }
}

.multiview-tooltip-info .tooltiptext,
.drawing-2d-tooltip-info .tooltiptext {
  top: 1.75rem;
  min-width: 450px;
  background: #effbff;
  border: 1px solid var(--primary-green);
  border-radius: 1rem;
  font-size: 13px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  line-height: 1.35;
}

.drawing-2d-tooltip-info .tooltiptext {
  left: -5rem;
}

.multiview-tooltip-info .tooltiptext::before,
.drawing-2d-tooltip-info .tooltiptext::before {
  border-bottom: unset;
}

.multiview-tooltip-info .tooltiptext::before, 
.multiview-tooltip-info .tooltiptext::after,
.drawing-2d-tooltip-info .tooltiptext::before,
.drawing-2d-tooltip-info .tooltiptext::after {
  border-left: unset;
  border-right: unset;
}

.geometry-check-tooltip-info .tooltiptext {
  top: -3.75rem;
  left: -13.5rem;
  min-width: 250px;
  background: #effbff;
  border: 1px solid var(--primary-green);
  border-radius: 1rem;
  font-size: 12px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  line-height: 1.35;
}

.geometry-check-tooltip-info .tooltiptext::before {
  border-bottom: unset;
}

.geometry-check-tooltip-info .tooltiptext::before, 
.geometry-check-tooltip-info .tooltiptext::after {
  border-left: unset;
  border-right: unset;
}

.image-example-tooltip-upload-multiview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 500px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  margin-top: 0.5rem;
}

.image-example-tooltip-upload-single {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-width: 250px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  margin-top: 0.5rem;
}

.image-example-tooltip-2d-drawing {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.5rem;
  max-width: 250px;
  cursor: default;
  user-select: none;
  pointer-events: none;
  margin-top: 0.5rem;
}

.image-example-tooltip-upload-multiview .container-image-view img,
.image-example-tooltip-upload-single .container-image-view img,
.image-example-tooltip-2d-drawing .container-image-view img {
  max-width: 100%;
  border-radius: 0.5rem;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.image-example-tooltip-upload-multiview  .container-image-view,
.image-example-tooltip-upload-single .container-image-view,
.image-example-tooltip-2d-drawing .container-image-view {
  position: relative;
  cursor: default;
  user-select: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-example-tooltip-upload-multiview .container-image-view .text-view-tooltip,
.image-example-tooltip-upload-single .container-image-view .text-view-tooltip {
  border: 0.5px solid var(--primary-green);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 11px;
  font-weight: var(--font-weight-regular);
  color: var(--greyscale-800);
  cursor: default;
  user-select: none;
  pointer-events: none;
  width: max-content;
}

@media screen and (max-width: 843px) {
  .multiview-tooltip-info .tooltiptext,
  .drawing-2d-tooltip-info .tooltiptext {
    min-width: 390px;
  }

  .image-example-tooltip-upload-multiview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    cursor: default;
    user-select: none;
    pointer-events: none;
    margin-top: 0.5rem;
  }
}

/* @media screen and (max-width: 720px) {
  .multiview-tooltip-info .tooltiptext {
    top: 1.75rem;
    max-width: 300px;
    min-width: none;
    right: -3.5rem;
    left: unset;
  }
}

@media screen and (max-width: 680px) {
  .multiview-tooltip-info .tooltiptext {
    top: 1.75rem;
    max-width: 300px;
    min-width: none;
    right: unset;
    left: 0rem;
  }
} */

@media screen and (max-width: 770px) {
  .multiview-tooltip-info .tooltiptext,
  .drawing-2d-tooltip-info .tooltiptext {
    top: 1.75rem;
    max-width: 300px;
    min-width: none;
    right: unset;
    left: 0rem;
  }
}

.container-maddie {
  position: relative;
  min-width: 0;
  /* min-height: 0; */
  border: 1px solid #0F1B3D;
  border-radius: 1rem;
  overflow: hidden; 
}

.container-maddie video {
  position: absolute;
  inset: 0;
  width: 101%;
  height: 101%;
  object-fit: cover; 
  display: block;
}

.container-maddie .video-end-cover {
  position: absolute;
  inset: 0;
  opacity: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-geometry-check {
  width: 24px;
  height: 24px;
  border-radius: 16px;
  border: 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-geometry-check-legend {
  width: 12px;
  height: 12px;
  border-radius: 16px;
  border: 1px solid;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-geometry-check::before {
  content: "✓";
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.circle-geometry-check-not-applicable {
  border-color: #AFB2AD;
  background: radial-gradient(51.56% 51.56% at 50% 48.44%, #D9DDE0 0%, #D9DDE0 49.84%, #AFB3AD 100%);
}

.circle-geometry-check-0 {
  border-color: #1F8C7F;
  background: radial-gradient(51.56% 51.56% at 50% 48.44%, #4AB9AC 0%, #4AB9AC 62.02%, #1F8C7F 100%);
}

.circle-geometry-check-1 {
  border-color: #3CC699;
  background: radial-gradient(51.56% 51.56% at 50% 48.44%, #6FD9A0 0%, #6FD9A0 62.02%, #3CC699 100%);
}

.circle-geometry-check-2 {
  border-color: #F1C100;
  background: radial-gradient(51.56% 51.56% at 50% 48.44%, #FFD633 0%, #FFD633 75%, #F1C100 100%);
}

.circle-geometry-check-3 {
  border-color: #BD3535;
  background: radial-gradient(51.56% 51.56% at 50% 48.44%, #FF2626 0%, #FF2626 49.84%, #BD3535 100%);
}

.container-legend-geometry-check {
  display: none;
}

.container-legend-geometry-check.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid var(--greyscale-400);
  border-radius: 0.5rem;
  background-color: var(--body-color);
  padding: 16px 20px;
  width: 100%;
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75), opacity 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75), transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}

.container-legend-geometry-check.is-active {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.geometry-check-legend {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
  row-gap: 0.5rem;    /* gap verticale */
  column-gap: 1.5rem; /* gap orizzontale */
}

.container-upload-video-maddie {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.container-upload-video-maddie .container-form-upload {
  flex: 2;
}

.container-upload-video-maddie .container-maddie {
  flex: 1;
}

@media (min-width: 700px) and (max-width: 780px) {
  .container-upload-video-maddie .container-form-upload {
    flex: 1.8;
  }

  .container-upload-video-maddie .container-maddie {
    flex: 1.2;
  }

  .container-upload-video-maddie .container-maddie.video {
    flex: 1;
  }
}

@media (min-width: 611px) and (max-width: 699px) {
  .container-upload-video-maddie .container-form-upload {
    flex: 1.5;
  }

  .container-upload-video-maddie .container-maddie {
    flex: 1.5;
  }

  .container-upload-video-maddie .container-maddie.video {
    flex: 1;
  }
}

@media screen and (max-width: 610px) {
  .container-upload-video-maddie {
    flex-direction: column;
  }

  .container-maddie {
    min-height: 160px;
    transition: min-height 0.5s ease;
  }

  .container-maddie.video {
    min-height: 70px;
  }
}

#modalLegendGeometricCheck .modal-content {
  padding: 20px;
  padding-bottom: 0.75rem;
  border-radius: 20px;
}

#modalLegendGeometricCheck .modal-content h2 {
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: start;
}

#modalLegendGeometricCheck .modal-content p {
  font-size: 14px;
  color: var(--primary);
  font-weight: 400;
}

#modalLegendGeometricCheck .footer-modal-legend-geometry-check {
  padding-top: 0.75rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--greyscale-400);
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalLegendGeometricCheck .footer-modal-legend-geometry-check button {
  border: 1px solid var(--greyscale-900);
  border-radius: 50px;
  padding: 11px 24px;
  cursor: pointer;
}

.check-geometric-gift-title {
  font-weight: 700;
  line-height: 120%;
  color: var(--greyscale-900);
  font-size: 1.75rem; 
}

.check-geometric-gift-description {
  font-size: 1rem; 
}

.title-modal-with-long-tooltip {
  display: flex;
  align-items: end;
  gap: 1rem;
  justify-content: start;
}

.title-modal-with-long-tooltip.image-to-3d {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

@media screen and (max-width: 770px) {
  .title-modal-with-long-tooltip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.container-switch-upload-image {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-direction: column;
  padding-right: 1.5rem;
}

.switch-toggle-wrapper-image {
  display: flex;
  align-items: center;
  position: relative;
  height: 36px;
  user-select: none;
  gap: 10px;
  border-radius: 50px;
  padding: 8px 16px;
  /* background: #eceeef; */
  transition: background 0.3s ease;
}

.switch-toggle-wrapper-image.checked {
  /* background: #a5ffd6; */
}

.switch-toggle-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--greyscale-600);
  width: 90px;
  text-align: center;
  transition: color 0.2s, font-weight 0.2s;
  z-index: 2;
}

.switch-toggle-text.active {
  color: var(--switch-checked);
  font-weight: 700;
}

.switch-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.switch-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--greyscale-600);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0);
  cursor: pointer;
}

.switch-toggle-input + .switch-toggle-track {
  background: var(--soft-green);
  border: 2px solid transparent;
}

.switch-toggle-input:checked + .switch-toggle-track {
  background: var(--switch-checked);
  border: 2px solid var(--switch-checked);
}

.switch-toggle-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 20px;
  height: 20px;
  gap: 10px;
  opacity: 1;
  border-radius: 50px;
  padding: 10px;
  background: rgb(255, 255, 255);
  transition: left 0.3s, background 0.3s;
  z-index: 3;
  box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.switch-toggle-input:checked + .switch-toggle-track .switch-toggle-thumb {
  left: 20px;
}

.switch-toggle-wrappe-image .left {
  color: var(--switch-color-label);
}

.switch-toggle-input:not(:checked) ~ .left {
  color: var(--switch-color-label);
}

.switch-toggle-input:checked ~ .right {
  color: var(--switch-color-label);
}

.switch-toggle-wrapper-image .right {
  color: var(--switch-color-label);
}

#config-switch-upload-image:disabled + .switch-toggle-track {
  opacity: 0.2;
  cursor: not-allowed;
}

.container-title-switch-upload-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.container-cta-upload-image-view {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 95%;
  max-width: 1600px;
  align-self: center;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease, padding 0.35s ease;
}

.cta-upload-image-view {
  flex: 1;
  border: 1px solid var(--greyscale-400);
  background: var(--greyscale-100);
  color: var(--greyscale-900);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-upload-image-view .subtitle-cta-upload-image-view {
  font-size: 0.75rem;
  font-weight: 400;
}

.cta-upload-image-view:hover {
  border-color: var(--medium-green);
}

.cta-upload-image-view.active {
  color: var(--primary-green);
  border-color: var(--primary-green);
  background: #f2fbf8;
}

.container-cta-upload-image-view.is-hidden {
  display: none;
}

@media (max-width: 768px) {
  .container-title-switch-upload-image {
    flex-direction: column;       /* due righe */
    align-items: flex-start;      /* allinea tutto a sinistra per default */
    gap: 1.25rem;
  }

  .container-title-switch-upload-image .switch-toggle-wrapper-image {
    align-self: center;           /* centra solo questo div */
  }

  .container-upload-file-and-file-uploaded.container-upload-multiview-image {
    gap: 1rem;
  }

  .container-switch-upload-image {
    width: 100%;
    padding-right: 0rem;
  }

  .container-cta-upload-image-view {
    display: none !important;
  }
}

@keyframes warningIconIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Warning multi-body icon (espande verso destra all'hover) ─── */
.upload-with-single-image-container .multibody-warning-icon {
  position: absolute;
  top: 2%;
  left: 2%;
  z-index: 30;
  padding: 0.5rem;
  background: var(--greyscale-100);
  border: 1px solid var(--danger-red);
  border-radius: 2rem;
  display: flex;
  align-items: flex-start;
  cursor: help;
  opacity: 0;
  max-width: 2.6rem;
  max-height: 2.6rem;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, max-height 0.35s ease, padding-right 0.3s ease;
}

.upload-with-single-image-container .multibody-warning-icon.visible {
  animation: warningIconIn 0.3s ease-out both;
}

.upload-with-single-image-container .multibody-warning-icon:hover,
.upload-with-single-image-container .multibody-warning-icon.auto-open {
  max-width: 500px;
  max-height: 200px;
  padding-right: 0.5rem;
}

.upload-with-single-image-container .multibody-warning-tooltip {
  font-size: 12px;
  line-height: 1.4;
  color: #304355;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease 0.15s, padding-left 0.3s ease;
}

.upload-with-single-image-container .multibody-warning-icon:hover .multibody-warning-tooltip,
.upload-with-single-image-container .multibody-warning-icon.auto-open .multibody-warning-tooltip {
  opacity: 1;
  padding-left: 0.5rem;
}

.upload-with-single-image-container .multibody-warning-icon.expanded .multibody-warning-tooltip {
  white-space: normal;
}

.upload-with-single-image-container .multibody-warning-icon > .icon {
  flex-shrink: 0;
}

.upload-with-single-image-container .multibody-warning-tooltip {
  align-self: center;
}

@media (max-width: 500px) {
  .upload-with-single-image-container .multibody-warning-icon:hover {
    max-width: 250px;
  }
}

/* ─── Warning icons stack (multibody + testo OCR impilati verticalmente) ─── */
.upload-with-single-image-container .warning-icons-stack {
  position: absolute;
  top: 2%;
  left: 2%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Le icone dentro lo stack non hanno più il loro posizionamento assoluto */
.upload-with-single-image-container .warning-icons-stack .multibody-warning-icon,
.upload-with-single-image-container .warning-icons-stack .text-warning-icon,
.upload-with-single-image-container .warning-icons-stack .many-points-info-icon {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
}

/* ─── Warning text icon (testo rilevato dall'OCR nell'immagine) ─── */
.upload-with-single-image-container .text-warning-icon {
  position: absolute;
  top: 2%;
  left: 2%;
  z-index: 30;
  padding: 0.5rem;
  background: var(--greyscale-100);
  border: 1px solid #fdd06a;
  border-radius: 2rem;
  display: flex;
  align-items: flex-start;
  cursor: help;
  opacity: 0;
  max-width: 2.6rem;
  max-height: 2.6rem;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, max-height 0.35s ease, padding-right 0.3s ease;
}

.upload-with-single-image-container .text-warning-icon.visible {
  animation: warningIconIn 0.3s ease-out both;
}

.upload-with-single-image-container .text-warning-icon:hover,
.upload-with-single-image-container .text-warning-icon.auto-open {
  max-width: 500px;
  max-height: 200px;
  padding-right: 0.5rem;
}

.upload-with-single-image-container .text-warning-tooltip {
  font-size: 12px;
  line-height: 1.4;
  color: #304355;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease 0.15s, padding-left 0.3s ease;
}

.upload-with-single-image-container .text-warning-icon:hover .text-warning-tooltip,
.upload-with-single-image-container .text-warning-icon.auto-open .text-warning-tooltip {
  opacity: 1;
  padding-left: 0.5rem;
}

.upload-with-single-image-container .text-warning-icon.expanded .text-warning-tooltip {
  white-space: normal;
}

.upload-with-single-image-container .text-warning-icon > .icon {
  flex-shrink: 0;
}

.upload-with-single-image-container .text-warning-tooltip {
  align-self: center;
}

@media (max-width: 500px) {
  .upload-with-single-image-container .text-warning-icon:hover {
    max-width: 250px;
  }
}

/* ─── Many points info icon ─── */
.upload-with-single-image-container .many-points-info-icon {
  position: absolute;
  top: 2%;
  left: 2%;
  z-index: 30;
  padding: 0.5rem;
  background: var(--greyscale-100);
  border: 1px solid #6BB4F6;
  border-radius: 2rem;
  display: flex;
  align-items: flex-start;
  cursor: help;
  opacity: 0;
  max-width: 2.6rem;
  max-height: 2.6rem;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s ease, max-height 0.35s ease, padding-right 0.3s ease;
}

.upload-with-single-image-container .many-points-info-icon.visible {
  animation: warningIconIn 0.3s ease-out both;
}

.upload-with-single-image-container .many-points-info-icon:hover,
.upload-with-single-image-container .many-points-info-icon.auto-open {
  max-width: 500px;
  max-height: 200px;
  padding-right: 0.5rem;
}

.upload-with-single-image-container .many-points-info-tooltip {
  font-size: 12px;
  line-height: 1.4;
  color: #304355;
  padding-left: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease 0.15s, padding-left 0.3s ease;
}

.upload-with-single-image-container .many-points-info-icon:hover .many-points-info-tooltip,
.upload-with-single-image-container .many-points-info-icon.auto-open .many-points-info-tooltip {
  opacity: 1;
  padding-left: 0.5rem;
}

.upload-with-single-image-container .many-points-info-icon.expanded .many-points-info-tooltip {
  white-space: normal;
}

.upload-with-single-image-container .many-points-info-icon > .icon {
  flex-shrink: 0;
}

.upload-with-single-image-container .many-points-info-tooltip {
  align-self: center;
}

@media (max-width: 500px) {
  .upload-with-single-image-container .many-points-info-icon:hover {
    max-width: 250px;
  }
}

/* SVG bounding box OCR: nascosto di default, visibile su hover o nei primi 4s (auto-open) */
.canvas-wrapper-single-image .ocr-boxes-svg {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.canvas-wrapper-single-image:has(.text-warning-icon:hover) .ocr-boxes-svg,
.canvas-wrapper-single-image:has(.text-warning-icon.auto-open) .ocr-boxes-svg {
  opacity: 1;
}

.ocr-boxes-svg .ocr-box-rect-outline {
  fill: none;
  stroke: rgba(15, 25, 41, 0.85);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.ocr-boxes-svg .ocr-box-rect {
  fill: none;
  stroke: #fdd06a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* SVG bounding box multi-body: nascosto di default, visibile su hover o nei primi 4s (auto-open) */
.canvas-wrapper-single-image .multibody-blobs-svg {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.canvas-wrapper-single-image:has(.multibody-warning-icon:hover) .multibody-blobs-svg,
.canvas-wrapper-single-image:has(.multibody-warning-icon.auto-open) .multibody-blobs-svg {
  opacity: 1;
}

.multibody-blobs-svg .multibody-divider-outline {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.multibody-blobs-svg .multibody-divider {
  stroke: var(--danger-red);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}