/* Demo "product-extras" (/extras). Base: fl-phone.css.
   data-state: start | done (término elegido) | bacon | cheese | sent | cooking */

.lla-pe { --lla-brand: #dc2626; --lla-cursor-ring: rgba(220, 38, 38, .5); }

.lla-pe__chip--rules { left: 22px; top: 120px; }
.lla-pe__chip--rules .bi { color: #dc2626; }
.lla-pe__chip--price { left: 30px; top: 410px; animation-delay: -2.5s; }
.lla-pe__chip--price .bi { color: #16a34a; }

/* Comanda (pantalla de cocina: fondo oscuro como el KDS real) */
.lla-pe__kds { left: 310px; top: 60px; width: 230px; background: #111827; color: #f9fafb; }
.lla-pe:is([data-state="sent"], [data-state="cooking"]) .lla-pe__kds { opacity: 1; transform: none; }
.lla-pe__kds-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.lla-pe__kds-st { padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; transition: opacity .3s; }
.lla-pe__kds-st--p { background: #f59e0b; color: #111827; }
.lla-pe__kds-st--c { position: absolute; right: 0; background: #3b82f6; color: #fff; opacity: 0; }
.lla-pe[data-state="cooking"] .lla-pe__kds-st--p { opacity: 0; }
.lla-pe[data-state="cooking"] .lla-pe__kds-st--c { opacity: 1; }
.lla-pe__kds-item { display: block; font-size: 12.5px; }
.lla-pe__kds-desc { display: block; margin-top: 3px !important; color: #fcd34d; font-size: 11px; line-height: 1.35; }

.lla-pe__photo {
  display: flex; align-items: center; justify-content: center; height: 96px; margin: 8px 12px 0; border-radius: 14px;
  background: radial-gradient(60% 70% at 50% 60%, #f59e0b, #b45309 60%, #78350f); color: #fde68a; font-size: 34px;
}
.lla-pe__body { display: flex; flex-direction: column; gap: 5px; padding: 10px 14px; }
.lla-pe__name { font-size: 14px !important; font-weight: 800; }
.lla-pe__muted { color: var(--lla-muted); }

.lla-pe__group { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 8px; border-radius: 10px; background: var(--lla-surface); }
.lla-pe__gh { display: flex; justify-content: space-between; align-items: baseline; }
.lla-pe__gh small { color: var(--lla-muted); font-size: 9px; }
.lla-pe__opt { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 7px; background: #fff; transition: transform .15s; }
.lla-pe__opt em { margin-left: auto; color: var(--lla-muted); font-size: 9.5px; }
.lla-pe__radio, .lla-pe__check { flex: none; width: 12px; height: 12px; border: 2px solid #cbd5e1; transition: border .2s, background .2s; }
.lla-pe__radio { border-radius: 50%; }
.lla-pe__check { border-radius: 3px; }
.lla-pe:not([data-state="start"]) .lla-pe__opt--34 .lla-pe__radio { border: 4px solid var(--lla-brand); }
.lla-pe:is([data-state="bacon"], [data-state="cheese"], [data-state="sent"], [data-state="cooking"]) .lla-pe__opt--bacon .lla-pe__check,
.lla-pe:is([data-state="cheese"], [data-state="sent"], [data-state="cooking"]) .lla-pe__opt--cheese .lla-pe__check { background: var(--lla-brand); border-color: var(--lla-brand); }

.lla-pe__req { display: flex; align-items: center; gap: 4px; color: #dc2626; font-size: 9.5px; font-weight: 600; transition: opacity .3s; }
.lla-pe:not([data-state="start"]) .lla-pe__req { opacity: 0; }

.lla-pe__add { margin-top: 4px; opacity: .55; }
.lla-pe:not([data-state="start"]) .lla-pe__add { opacity: 1; }
.lla-pe__tot { display: inline-grid; }
.lla-pe__tot > span { grid-area: 1 / 1; opacity: 0; transition: opacity .3s; }
.lla-pe:is([data-state="start"], [data-state="done"]) .lla-pe__t0,
.lla-pe[data-state="bacon"] .lla-pe__t1,
.lla-pe:is([data-state="cheese"], [data-state="sent"], [data-state="cooking"]) .lla-pe__t2 { opacity: 1; }
