/* RACE 2.10 (12/10) Il Consigliere: il piatto composto per il cliente (panino con pane, carne, condimenti) come
   scheda nella chat, con «Cambia» e «Aggiungi»; negli ordini online la barra del carrello lascia posto alla scintilla. */

.g-app .m2-advisor .g-msg:has(.g-chat-combos) { max-width: 94%; }
.g-app .g-chat-combos { display: grid; gap: 10px; margin-top: 10px; }
.g-app .g-chat-combo { display: grid; gap: 12px; padding: 14px; border-radius: 22px; background: var(--m2-card-soft, var(--g-surface));
  border: 1px solid var(--g-line); }
.g-app .g-chat-combo-head { display: flex; align-items: center; gap: 12px; }
.g-app .g-chat-combo-head img, .g-app .g-chat-combo-head .g-chat-product-art { flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--g-bg); font-size: 24px; }
.g-app .g-chat-combo-head .g-chat-product-t { flex: 1; display: grid; min-width: 0; }
.g-app .g-chat-combo-head .g-chat-product-t b { overflow: hidden; color: var(--g-ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.g-app .g-chat-combo-head .g-chat-product-t small { color: var(--g-muted); font-size: 13px; }
.g-app .g-chat-combo-head strong { flex: none; font-size: 16px; font-variant-numeric: tabular-nums; }

.g-app .g-chat-combo-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.g-app .g-chat-combo-lines li { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 14px; padding: 9px 0;
  border-top: 1px solid var(--g-line); font-size: 14px; line-height: 1.35; }
.g-app .g-chat-combo-lines li span { color: var(--g-muted); }
.g-app .g-chat-combo-lines li b { font-weight: 600; text-align: right; text-wrap: balance; }

.g-app .g-chat-combo-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.g-app .g-chat-combo-acts button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 15px;
  font-weight: 700; cursor: pointer; }
.g-app .g-chat-combo-edit { background: color-mix(in srgb, var(--g-ink) 9%, transparent); color: var(--g-ink); }
.g-app .g-chat-combo-add { background: var(--g-ink); color: var(--g-bg); }
.g-app .g-chat-combo-add:disabled { background: #18803C; color: #FFFFFF; cursor: default; }
.g-app .g-chat-combo-acts button:active:not(:disabled) { transform: scale(.97); }

/* ordini online: la barra «Vedi l'ordine» si ferma prima della scintilla del consigliere */
.g-app.g-m2.has-adv button.m2-ocartbar { right: calc(var(--m2-side) + 72px); }

/* 2.10 (12/10) scheda di gusto nel piatto: barre con i due estremi, informazioni, note, «Si abbina benissimo con» */
.g-app .m2-taste { display: grid; gap: 14px; }
.g-app .m2-taste-info { margin: -4px 0 0; color: var(--g-muted); font-size: 14px; font-weight: 600; }
.g-app .m2-taste-bars { display: grid; gap: 14px; }
.g-app .m2-taste-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.g-app .m2-taste-l, .g-app .m2-taste-r { color: var(--g-muted); font-size: 13.5px; font-weight: 500; }
.g-app .m2-taste-r { text-align: right; }
.g-app .m2-taste-l.is-on, .g-app .m2-taste-r.is-on { color: var(--g-ink); font-weight: 700; }
.g-app .m2-taste-track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--g-ink) 10%, transparent); }
.g-app .m2-taste-track i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--g-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-accent) 22%, transparent), 0 2px 6px rgba(0,0,0,.25); }
.g-app .m2-taste-notes { margin: 6px 0 0; color: var(--g-ink); font-size: 14.5px; line-height: 1.45; }
.g-app .m2-taste-notes[hidden], .g-app .m2-taste-match[hidden] { display: none; }
.g-app .m2-taste-match { display: grid; gap: 10px; }
.g-app .m2-taste-match h4 { margin: 0; font-size: 15px; }
.g-app .m2-taste-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-app .m2-taste-chip { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--g-ink) 8%, transparent);
  font-size: 14px; font-weight: 600; }
.g-app [data-chat-open] { cursor: pointer; }

/* 2.23 (15/10) bottoni d'azione del Consigliere (lidi: «Scegli l'ombrellone» apre la scheda Spiaggia sul giorno) */
.g-app .m2-advisor .g-msg:has(.g-chat-acts) { max-width: 92%; }
.g-app .g-chat-acts { display: grid; gap: 8px; margin-top: 10px; }
.g-app .g-chat-act { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 14px 6px 6px; border: 0;
  border-radius: 999px; background: var(--g-ink); color: var(--g-bg); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--g-ink) 18%, transparent); transition: transform .15s ease; }
.g-app .g-chat-act > span:nth-child(2) { flex: 1; min-width: 0; }
.g-app .g-chat-act-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: color-mix(in srgb, var(--g-bg) 18%, transparent); }
.g-app .g-chat-act:active { transform: scale(.97); }
.g-app .g-chat-act:focus-visible { outline: 3px solid var(--g-accent, currentColor); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .g-app .g-chat-act:active { transform: none; } }

/* 3.67 (3/11) Consigliere come l'app: le bevande come schede di Vivino, il + che diventa il numero */
.g-app .g-chat-add.is-on, .g-app .m2-advisor .g-chat-add.is-on { background: var(--g-accent); color: var(--g-on-accent); font-size: 15px; font-weight: 700; }
.g-app .g-chat-drink { display: flex; gap: 14px; margin-top: 8px; padding: 12px; border-radius: 20px; background: var(--m2-card-soft, var(--g-surface)); cursor: default; }
.g-app .g-chat-drink[data-chat-open] { cursor: pointer; }
.g-app .g-chat-drink.is-off, .g-app .g-chat-product.is-off { opacity: .5; }
.g-app .g-chat-bottle { flex: none; display: grid; place-items: center; width: 84px; height: 112px; overflow: hidden; border-radius: 14px;
  background: color-mix(in srgb, var(--g-accent) 12%, transparent); color: var(--g-accent); }
.g-app .g-chat-bottle img { width: 100%; height: 100%; object-fit: cover; }
.g-app .g-chat-drink-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-app .g-chat-drink-t > b { display: -webkit-box; overflow: hidden; color: var(--g-ink); font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-app .g-chat-drink-t > small { color: var(--g-muted); font-size: 13px; }
.g-app .g-chat-drink-t > small.g-chat-drink-k { color: var(--g-accent); font-size: 12.5px; font-weight: 650; }
.g-app .g-chat-drink-r { display: inline-flex; align-items: center; gap: 4px; color: var(--g-accent); }
.g-app .g-chat-drink-r b { color: var(--g-ink); font-size: 14.5px; }
.g-app .g-chat-drink-r small { margin-left: 2px; color: var(--g-muted); font-size: 13px; }
.g-app .g-chat-drink-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.g-app .g-chat-drink-foot strong { color: var(--g-ink); font-size: 16px; }
.g-app .g-chat-product-art { color: var(--g-muted); }
.g-app .m2-taste-src { margin: 0; color: var(--g-muted); font-size: 13.5px; line-height: 1.4; }
.g-app .m2-taste-src[hidden] { display: none; }
