.notification-box {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 70%;
  display: none;
}

#overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 60px;
  border: 2px solid #d9f3f3;
  /* box-shadow: 0 0 0 100px rgba(0, 0, 0, 0.7); */

  /* box-shadow mi da la sfocatura, vedi https://stackoverflow.com/questions/59016575/creating-a-hole-with-0-opacity-inside-a-container-with-color-css-on-react-na */
  /* i 1000px vuol dire grande sfocatura che però deve essere limitata in qualche modo ecco perché ci vuole l'overflow hidden del video-container che è viene usato come parent. rgba(255, 255, 255, 0.5) è un grigino con opacità 0.5, se lo vogliamo più opaco cambiamo lo 0.5 */
}

.viewfinderArrow {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid #d9f3f38b;
}

.OLDviewfinderCircle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 128, 0, 0.5);
  border-radius: 50%; /*  Rende il quadrato un cerchio */
}

.container {
  display: flex;
  flex-flow: column;
  align-items: center;
  width: 100%;
}

.containerTitle {
  display: flex;
  width: 100%;
  height: 50px;
  justify-content: center;
  padding: 15px 0;
  box-sizing: border-box;
  background: #f2f2f2;
  position: fixed;
  top: 0px;
}

.containerTitle h1 {
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
}

.arrowTitle {
  position: absolute;
  left: 15px;
}

.containerCart {
  box-sizing: border-box;
  width: 100%;
  /* height: calc(100% - 440px); */
  /* height: calc(100% - 395px); */
  height: calc(100% - 320px);
  position: fixed;
  /* top: 350px; */
  /* top: 305px; */
  top: 50px;
  overflow: scroll;
}

/* .containerCartButton {
    padding: 0px 24px;
    box-sizing: border-box;
    width: 100%;
    position: fixed;
    top: 275px;
} */

.containerCartFinish {
  display: flex;
  padding: 0px 20px;
  box-sizing: border-box;
  width: 100%;
  position: fixed;
  bottom: 8px;
}

.containerRecap {
  margin-top: 22px;
  box-sizing: border-box;
  width: 100%;
  height: calc(100% - 160px);
  position: fixed;
  top: 50px;
  overflow: scroll;
}

.cameraDisplay {
  /* width: 100%;    
    height: 250px;
    margin-bottom: 50px; */

  /* border-style: solid;
    border-color: red; */

  box-sizing: border-box;
  padding: 0px;
  position: fixed;
  bottom: 65px;
  overflow: hidden;

  /*transform: scale(0.5, 0.5);*/ /* forte, permette di scalare una sola sezione del body in questo modo "annulliamo" il meta viewport scale */
}

/* .cartButton {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #FEEDB8;
    border-radius: 8px;
    padding: 15px 25px;
    box-sizing: border-box;
    box-shadow: 0 0px 53px rgba(0, 0, 0, 0.2);
    cursor: pointer;
} */

.cartAddButton p {
  color: #25875e !important;
}

/* .cartButton p {
    font-weight: bold;
    font-size: 16px;
    line-height: 19px;
    color: #454545
} */

/* .cartButton:hover {
    background-color: #e4d7ab
} */

.disabledButton {
  pointer-events: none;
  opacity: 0.3;
  background-color: #feedb8;
}

/* .addImg {
    margin-right: 12px;
    box-sizing: border-box;
    cursor: pointer;
} */

.cartHeader {
  padding: 0px 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  box-sizing: border-box;
}

.cartHeader p {
  font-weight: bold;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.12px;
}

.productsContainer {
  overflow: hidden;
}

.productContainer {
  /* width: 100%; prima era così poi ho messo il calc() qui sotto come per il pull_delete*/
  width: calc(100% + 100px);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 10px;
  padding: 0px 24px;
  padding-bottom: 16px;
  box-sizing: border-box;
}

.productImg {
  display: flex;
}

.productPrice {
  margin-right: 100px;
  white-space: nowrap;
}

.imgBox {
  /* border-radius: 7px; in origine c'era, era il riquadro dell'immagine del prodotto */
  /* border: 1px solid #BDBDBD; in origine c'era, era il riquadro dell'immagine del prodotto */
  width: 42px;
  height: 42px;
  margin-right: 15px;
}

.products {
  display: flex;
  flex-flow: column;
}

.products p {
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.09px;
  margin-bottom: 8px;
}

.productsPrice p {
  font-weight: normal;
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.09px;
}

.products span {
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.08px;
  color: #b1b1ba;
}

/* OLD .addDishButton{
    font-weight: bold;
    color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    flex-flow: row;   
    background-color: #000000;
    border-radius: 8px;
    padding: 13px 15px;
    box-sizing: border-box;
    cursor: pointer;
}  */

.addDishButton {
  font-weight: bold;
  color: white;
  position: relative;
  /* display: inline-block; */
  /* padding: 13px 15px; */
  padding-top: 8px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #007BFF;
  border-radius: 8px;  
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  user-select: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.addDishButton:active {
  background-color: orange;
  transform: scale(0.98); /* per ripple */
}

.addDishButton .ripple {
  /* per ripple */
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

@keyframes ripple-animation {
  /* per ripple */
  to {
    transform: scale(4);
    opacity: 0;
  }
}


.pulse-hint {
  font-size: 14px;
  color: #ffffff;
  animation: pulse 2s 5;
  /* margin-left: 8px; */
}

@keyframes pulse {
  0% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
  100% {
      opacity: 1;
  }
}


/* OLD .doneButton {
  display: flex;
  justify-content: space-between;
  flex-flow: row;
  background-color: #D9F3F3;
  border-radius: 8px;
  padding: 15px 25px;
  margin-right: 5px;
  box-sizing: border-box;
  cursor: pointer;
} */

.doneButton {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 15px 5px;
  background-color: #d9f3f3;
  border-radius: 8px;
  margin-right: 5px;
  margin-top: 5px;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  user-select: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.doneButton .ripple {
  /* per ripple */
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.doneButton:active {
  transform: scale(0.98); /* per ripple */
}

.doneButton:hover {
  background-color: #cbe0e0;
}

.doneButton p {
  font-weight: bold;
  font-size: 16px;
  line-height: 19px;
  color: #454545;
}

.doneButton span {
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #454545;
}

.payButton {
  display: flex;
  justify-content: space-between;
  flex-flow: row;
  background-color: #b8e986;
  border-radius: 8px;
  padding: 15px 25px;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
}

.payButton:active {
  background-color: #7ea05c;
  transform: scale(0.98); /* per ripple */
}

.payButton p {
  font-weight: bold;
  font-size: 16px;
  line-height: 19px;
  color: #454545;
}

.payButton span {
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #454545;
}

.payButton .ripple {
  /* per ripple */
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.checkImg {
  margin-right: 15px;
  box-sizing: border-box;
}

.doneTitle {
  display: flex;
}

.deleting {
  position: relative;
  left: -120px;
}

.deleting-pull {
  position: absolute;
  right: -120px;
  top: -10px;
  width: 120px;
  height: 70px;
  background-color: #ef7281;
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  line-height: 70px;
}

.numberCircle {
  border-radius: 50%;
  width: 22px;
  height: 22px;
  padding: 8px;

  /* background: #F9FBFE; */
  background: #dc493a;
  border: 1px solid #454545;
  color: white;
  text-align: center;

  font: 20px Arial, sans-serif;
}

#video {
  position: relative;
  z-index: 1;
}


/* per la demo menu with print */
.simulated-payment-form {
  
  max-width: 400px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  border-color: black;
}
.simulated-payment-form h2 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
  color: #32325d;
}
.form-group {
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-group label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #21262d;
  text-align: left;
  width: 100%;
  max-width: 300px;
}
.form-group input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  font-size: 16px;
  color: #32325d;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  background-color: #f6f9fc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease-in-out;
}

.form-group.inline {
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.form-group.inline label {
  width: auto;
  margin-right: 10px;
}

.form-group.inline input {
  width: 80%;
  margin-left: 15px;
}

.form-group input:focus {
  border-color: #6772e5;
  outline: none;
}
.form-group button {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background-color: #6772e5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.form-group button:hover {
  background-color: #5469d4;
}
.simulated-success-message {
  padding: 12px;
  display: none;
  text-align: center;
  color: #28a745;
  font-size: 20px;
  font-weight: bold;
}

.simulated-contact-section {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

.simulated-contact-section h2 {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
  white-space: pre-line;
  /* color: #32325d; */
}

.simulated-contact-section a {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}
.simulated-contact-section a:hover {
  text-decoration: underline;
}