/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0
*/

  body {
    background-color: #f5f5f5;
    padding: 20px;
  }

  #order-app {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.65);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  
  #step-search {
      display: flex;
      gap: 10px;
      width: 100%;
      max-width: 500px;
      margin: 0 auto 15px;
    }
  
  #step-search input[type="text"] {
      flex: 7; /* 70% */
    }
    
  #step-search input[type="number"] {
      flex: 3; /* 30% */
    }

  #step-name label,
  #step-order label,
  #order-sheet label {
    font-weight: bold;
    display: block;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 4px;
    text-align: center;
  }
  
  input[type="text"],
  input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-size: 1rem;
  }

  input[type="text"]:focus,
  input[type="number"]:focus {
    /*border-color: #08b1e3;*/
    outline: none;
  }
  

  button {
    /*background-color: #08b1e3;*/
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 1rem;
  }

  button:hover {
    background-color: #0599c7;
  }

  #step-name,
  #step-order {
    width: 100% !important;
    max-width: 500px !important;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-bottom: 10px;
    justify-content: center;
    align-content: center;
    text-align: center;
    
  }

  #step-order p {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-left: 4px solid rgba(0, 0, 0, 1);
    border-radius: 6px;
    font-weight: 500;
    margin-top: 0;
    color: #000;
    text-align: left;
  }

  #waiter-display {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 1);
  padding: 10px 15px;
  border-left: 4px solid rgba(201, 179, 126, 1);
  border-radius: 6px;
  font-size: 1.3rem;
  color: #000;
  margin-bottom: 15px;
  font-weight: 500;
  }

  #waiter-namer {
    font-weight: 600;
    color: #000;
  }

  #waiter-orders {
    font-weight: 700;
    color: #444;
  }



  #product-list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    /*margin-bottom: 40px;*/
    justify-content: center;
  }
   .option-button {
      margin: 5px 5px 0 0;
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid #ccc;
      background-color: #eee;
      cursor: pointer;
      font-size: 0.95rem;
        }
    /* Pulsante opzione attivo (checkbox o radio selezionato) */
    .option-button.active {
      background-color: #08b1e3; /* blu acceso */
      color: white;
      border-color: #0599c7; /* blu scuro */
    }

      .product-item {
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      padding: 10px 10px;
      margin-bottom: 10px;
      max-width: 400px;
      width:90%;
      color: #333;
      transition: box-shadow 0.3s ease;
      
      display: flex;               /* Attiva Flexbox */
      flex-direction: column;      /* Impila verticalmente */
      align-items: center;         /* Centra tutti i contenuti orizzontalmente */
      text-align: center;          /* Centra anche il testo */
      gap: 6px;
    }
    .product-item > * {
      margin-top: 2px;
      margin-bottom: 2px;
    }
    
    /* Titolo nome prodotto dentro la card */
    .product-item > strong {
      width: 100% !important;
      display: block; /* blocco separato */
      font-size: 1.3rem; /* dimensione testo */
      margin-bottom: 0px; /* spazio sotto */
      text-align: center; /* centrato */
    }
    
    /* Input numero quantità nella card prodotto */
    .product-item input[type="number"] {
      width: 60px; /* larghezza fissa */
      padding: 6px 8px; /* padding interno */
      border: 1px solid #ccc; /* bordo grigio */
      border-radius: 8px; /* angoli arrotondati */
      font-size: 1rem; /* dimensione testo */
      text-align: center; /* testo centrato */
    }
    
    /* Bottone "Aggiungi" nella card prodotto */
    .product-item button {
      /*background-color: #08b1e3;  blu */
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 18px; /* spazio interno */
      cursor: pointer;
      font-weight: 600;
      font-size: 1rem;
      transition: background-color 0.3s ease; /* transizione colore */
    }
    
    /* Gruppo di opzioni (checkbox/radio) sotto la card prodotto */
    .option-group {
      display: flex;
      flex-wrap: wrap; /* vanno a capo se necessario */
      gap: 10px; /* spazio tra le opzioni */
      margin-top: 12px; /* spazio sopra */
      padding-top: 8px; /* padding sopra */
      border-top: 1px solid #eee; /* linea separatrice */
    }
    
    /* Titolo gruppo opzioni (es. "Gusti", "Ingredienti") */
    .option-group strong {
      width: 100%;
      font-weight: 600;
      font-size: 1.5rem;
      display: block;
      color: #444; /* grigio scuro */
    }
    
    /* Label di ogni singola opzione checkbox/radio */
    /* Etichette delle opzioni (checkbox/radio) */
    .option-group label {
      width: 100%;
      font-weight: 400; /* normale, così non sono in grassetto */
      font-size: 0.95rem;
      display: inline-flex;
      align-items: center;
      margin-right: 16px;
      margin-bottom: 6px;
      cursor: pointer;
      user-select: none;
      color: #555;
    }
    
    /* Checkbox e radio input all'interno delle opzioni */
    .option-group input[type="checkbox"],
    .option-group input[type="radio"] {
      margin-right: 6px; /* spazio tra input e label */
      cursor: pointer;
      accent-color: #08b1e3; /* colore personalizzato (blu) per il check */
    }
      }
      .quantity-add-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2px;
    }
    
    .quantity-add-wrapper input[type="number"] {
      margin-top: 0px;
    }
    .quantity-add-wrapper button: {
      background-color: #000;
    }
    



  #order-summary {
    list-style: none;
    padding: 0;
    margin: 10px 0;
  }

  #order-summary li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
  }

  #order-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(105, 5, 0, 1);
    color: white;
    text-align: center;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: background-color 0.3s;
    z-index: 9999;
  }

  #order-toggle:hover,
  #order-toggle[aria-expanded="true"] {
    background-color: rgba(105, 5, 0, 1);
  }

  #overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  #order-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 40vh;
    background: rgba(255,255,255,1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: bottom 0.4s ease;
    z-index: 1002;
    margin-bottom: 40px;
  }

  #order-sheet.open {
    bottom: 0;
  }

  #order-sheet h3 {
    margin-top: 0;
    color: #000;
  }

  #order-notes {
    min-height: 75px !important;
    margin: 0px;
    resize: none;
  }

  #order-sheet button {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }

  #order-sheet button.primary-btn {
    display: block;
    margin: 10px auto;
  }

  #close-order-sheet {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: transparent;
    border: none;
    font-size: 50px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.3s;
  }


