/* =====================================================
🧭 ONBOARDING & DASHBOARD — Stili generali condivisi
===================================================== */

.pagina-dashboard-negozio {
  padding: 40px 20px;
  max-width: 960px; /* stesso respiro del wizard onboarding */
  margin: 0 auto;
  box-sizing: border-box;
}

.titolo-dashboard {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* =====================================================
📦 BOX BASE — Usato per form e sezioni
===================================================== */

.dashboard-negozio-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.dashboard-negozio-box h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.dashboard-negozio-box .campo {
  margin-bottom: 1.2rem;
}

.dashboard-negozio-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.dashboard-negozio-box input,
.dashboard-negozio-box select,
.dashboard-negozio-box textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* =====================================================
🧩 FORM ACF — Input nei vari step
===================================================== */

.acf-form input,
.acf-form select,
.acf-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.acf-form .acf-button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.acf-form .acf-button:hover {
  background: #222;
}

/* =====================================================
🔐 LOGIN BOX / MESSAGGI UTENTE
===================================================== */

.messaggio-login {
  background: #fff3f3;
  padding: 2rem;
  border: 1px solid #e0c3c3;
  border-radius: 8px;
  text-align: center;
}

.btn-login {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #cc4f33;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
  font-weight: 500;
}

.btn-login:hover {
  background: #a53f28;
}

/* =====================================================
🧱 WRAPPERS E TITOLI
===================================================== */

.dashboard-negozio-wrapper {
  max-width: 960px !important;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.dashboard-negozio-wrapper h1,
.dashboard-negozio-wrapper .titolo-dashboard {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
  text-align: center;
}

.dashboard-negozio-wrapper p.sottotitolo,
.sottotitolo {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* Dashboard estesa (se usata in altre pagine) */
body.page-template-page-dashboard-negozio .pagina-dashboard-negozio,
.pagina-dashboard-negozio.dashboard-estesa {
  max-width: 1280px !important;
}

/* =====================================================
🧾 STEP / STATO AVANZAMENTO / AVVISI
===================================================== */

.dashboard-step {
  background: #fdfdfd;
  border: 1px dashed #ccc;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.dashboard-step h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.stato-badge {
  display: inline-block;
  background-color: #e9f5ff;
  color: #0077b6;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.alert-nero {
  background-color: #fff;
  color: #000;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #000;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.3rem;
  text-align: center;
}

.dashboard-avviso {
  background-color: #fff8e1;
  padding: 1rem 1.5rem;
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #e8f9e1;
  border: 1px solid #a3d59b;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  color: #2d7a1f;
  font-weight: 600;
}

/* =====================================================
✍️ TinyMCE Frontend — Toolbar e pulsanti
===================================================== */

/* Toolbar generica */
.mce-toolbar {
  padding: 4px 0;
}

/* Pulsanti */


/* Rimuove il reset */
.mce-widget.mce-btn button {
  all: unset !important;
  width: 100% !important;
  height: 100% !important;
  text-align: center;
  cursor: pointer;
}

/* Icone leggibili */
.mce-widget.mce-btn .mce-ico {
  color: #111 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

/* Hover */
.mce-widget.mce-btn:hover {
  background-color: #eee !important;
}

/* Checkbox step 4 (orari ecc.) */
.acf-input input[type="checkbox"] {
  width: 30px;
  height: 30px;
  accent-color: #000;
  margin-right: 10px;
  vertical-align: middle;
}

/* Descrizione Campo - didascalie / istruzioni */
.descrizione-campo,
.descrizione-logo {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  line-height: 1.6;
}

/* Nasconde messaggi WP "Articolo aggiornato" in frontend */
#message.updated,
.updated.notice.notice-success {
  display: none !important;
}

/* separa il pulsante "aggiungi riga" da "salva" - step 4 */
.acf-field-repeater .acf-actions {
  margin-bottom: 2rem;
}

form.acf-form input[type="submit"] {
  margin-top: 2rem;
}

/* =====================================================
   RIEPILOGO / TESTI VARI
===================================================== */

.dashboard-negozio-box .contenuto {
  line-height: 1.6;
  color: #444;
}

.lista-riepilogo {
  list-style: disc;
  padding-left: 1.5rem;
  color: #444;
}

.lista-riepilogo li {
  margin-bottom: 0.25rem;
}

/* Immagini nei contenuti onboarding/dashboard */
.wizard-wrapper img,
.dashboard-negozio-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* =====================================================
🎯 WIZARD ONBOARDING NEGOZIO
===================================================== */

.wizard-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.wizard-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.wizard-istruzioni {
  background: #f0f8ff;
  padding: 1rem 1.25rem;
  border-left: 5px solid #0073aa;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 0.95rem;
}

.wizard-step-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.wizard-navigazione {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Bottoni navigazione wizard */
.btn-back,
.btn-next {
  background: #0073aa;
  color: #fff;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-back {
  background: #6b7280;
}

.btn-back:hover {
  background: #4b5563;
}

.btn-next:hover {
  background: #005e8c;
}