
/* ============================================================
   V117 — SOLO FORMATTAZIONE VISIVA MASTERCHEF
   NON MODIFICA launcher, display, position, apertura/chiusura chat.
   ============================================================ */

.ma-messages{
  padding:16px 13px 20px !important;
  background:linear-gradient(180deg,#fffdf9 0%,#f6eee3 100%) !important;
}

.ma-row{
  margin-bottom:14px !important;
}

.ma-row.user .ma-bubble{
  max-width:82% !important;
  padding:11px 14px !important;
  border-radius:16px 16px 5px 16px !important;
  font-size:15px !important;
  line-height:1.5 !important;
}

.ma-row.assistant .ma-bubble{
  max-width:96% !important;
  padding:15px !important;
  border:1px solid #e2d0b4 !important;
  border-left:4px solid #b88943 !important;
  border-radius:7px 17px 17px 17px !important;
  background:#fffdf9 !important;
  color:#2d241d !important;
  font-size:15.5px !important;
  line-height:1.62 !important;
  box-shadow:0 7px 22px rgba(56,37,22,.07) !important;
}

.ma-row.assistant .ma-answer-content > p{
  margin:0 0 10px !important;
  padding:10px 12px !important;
  border:1px solid #eadbc7 !important;
  border-radius:10px !important;
  background:linear-gradient(180deg,#fff,#fff9f0) !important;
}

.ma-row.assistant .ma-answer-content > p:last-child{
  margin-bottom:0 !important;
}

.ma-bubble h2{
  margin:14px 0 9px !important;
  padding:10px 12px !important;
  border-left:5px solid #b88943 !important;
  border-radius:8px !important;
  background:linear-gradient(90deg,#312219,#51331f) !important;
  color:#f3d39d !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:20px !important;
  line-height:1.2 !important;
}

.ma-bubble h2:first-child{
  margin-top:0 !important;
}

.ma-bubble h3{
  margin:12px 0 8px !important;
  padding:8px 10px !important;
  border-left:3px solid #7f1717 !important;
  border-radius:7px !important;
  background:#f8ebd8 !important;
  color:#6d1919 !important;
  font-family:Georgia,"Times New Roman",serif !important;
  font-size:17px !important;
  line-height:1.25 !important;
}

.ma-row.assistant .ma-bubble strong{
  color:#711b17 !important;
  font-weight:900 !important;
}

.ma-row.assistant .ma-answer-content > ul,
.ma-row.assistant .ma-answer-content > ol{
  margin:10px 0 !important;
  padding:12px 13px 12px 32px !important;
  border:1px solid #e5d4bb !important;
  border-radius:10px !important;
  background:#fff9ef !important;
}

.ma-row.assistant .ma-bubble li{
  margin:5px 0 !important;
  line-height:1.5 !important;
}

.ma-row.assistant .ma-bubble li::marker{
  color:#b88943 !important;
  font-weight:900 !important;
}

.ma-bubble blockquote{
  margin:11px 0 !important;
  padding:11px 13px !important;
  border:1px solid #e1c28f !important;
  border-left:5px solid #b88943 !important;
  border-radius:8px 11px 11px 8px !important;
  background:#fff2dc !important;
  color:#503922 !important;
  font-weight:800 !important;
}

.ma-link-card{
  margin:11px 0 !important;
  padding:12px 13px !important;
  border:1px solid #d7b77f !important;
  border-left:4px solid #b88943 !important;
  border-radius:11px !important;
  background:linear-gradient(135deg,#fff3dc,#fffdf9) !important;
}

.ma-contact-stack{
  gap:8px !important;
  margin-top:12px !important;
}

.ma-contact-card{
  padding:12px 13px !important;
  border-radius:11px !important;
}

.ma-contact-card.whatsapp{
  border-left:5px solid #27854b !important;
  background:#f1fbf4 !important;
}

.ma-contact-card.phone{
  border-left:5px solid #8d2520 !important;
  background:#fff2ef !important;
}

.ma-budget-answer{
  margin-top:17px !important;
  padding-top:15px !important;
  border-top:2px solid #d8bc8c !important;
}

.ma-budget-answer-title{
  padding:10px 12px !important;
  border-radius:9px !important;
  background:#302219 !important;
}

.ma-budget-answer-title strong{
  color:#f0d09a !important;
  font-size:19px !important;
}

.ma-budget-grid{
  gap:13px !important;
}

.ma-budget-card{
  padding:14px !important;
  border:1px solid #d8bd92 !important;
  border-top:4px solid #b88943 !important;
  border-radius:12px !important;
  background:linear-gradient(180deg,#fffdf8,#fff5e8) !important;
  box-shadow:0 7px 18px rgba(58,39,23,.06) !important;
}

.ma-budget-card h3{
  font-size:18px !important;
  color:#352319 !important;
}

.ma-budget-price{
  color:#811d18 !important;
  font-weight:900 !important;
}

.ma-quick{
  gap:6px !important;
  padding:8px 9px !important;
}

.ma-quick button{
  padding:8px 10px !important;
  border-color:#d6ba89 !important;
  background:#fff4df !important;
  color:#563b23 !important;
  font-size:11px !important;
  font-weight:900 !important;
}

.ma-form textarea{
  border-color:#ceb68e !important;
  background:#fff !important;
  line-height:1.42 !important;
}

@media(min-width:769px){
  .ma-panel.is-fullscreen .ma-row.assistant .ma-bubble{
    max-width:min(920px,92%) !important;
    font-size:16px !important;
  }
}

@media(max-width:768px){
  .ma-messages{
    padding:11px 8px 15px !important;
  }

  .ma-row.assistant .ma-bubble{
    max-width:98% !important;
    padding:12px !important;
    font-size:15px !important;
    line-height:1.55 !important;
  }

  .ma-row.user .ma-bubble{
    max-width:88% !important;
    font-size:14.5px !important;
  }

  .ma-bubble h2{
    font-size:18px !important;
  }

  .ma-bubble h3{
    font-size:16px !important;
  }

  .ma-budget-grid{
    grid-template-columns:1fr !important;
  }
}
