/* FoodOS V9.9.5 — customer undo/cancel + recipe picker scroll/footer + inline category creation */

/* --- Public customer menu: clear undo and cancel controls --- */
.v995-customizer-footer{display:grid!important;grid-template-columns:auto auto minmax(150px,1fr)!important;gap:8px!important;align-items:center!important}
.v995-customizer-cancel{min-height:46px;border:1px solid #fecaca;border-radius:13px;background:#fff1f2;color:#be123c;font:inherit;font-weight:900;padding:0 12px}
.v995-rule-reset{width:100%;margin-top:8px;min-height:38px;border:1px dashed #fdba74;border-radius:10px;background:#fff7ed;color:#9a3412;font:inherit;font-size:11px;font-weight:900}
.v995-cart-head-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.v995-cart-head-actions>span{color:#667085;font-size:9px;font-weight:800}.v995-cart-head-actions>button{min-height:34px;padding:0 9px;border:1px solid #fecaca;border-radius:9px;background:#fff1f2;color:#be123c;font:inherit;font-size:10px;font-weight:900}.v995-cart-head-actions>span{white-space:nowrap}
.v995-cart-line-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.v995-cart-remove{min-height:36px;padding:0 10px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#be123c;font:inherit;font-size:10px;font-weight:900}.v995-cart-remove:active,.v995-customizer-cancel:active,.v995-rule-reset:active{transform:scale(.98)}

/* --- Recipe picker: one real scroll container + persistent action footer --- */
.v930-sheet.open{touch-action:pan-y!important}
.v930-sheet-card{overflow:hidden!important;display:flex!important;flex-direction:column!important;padding-bottom:0!important;max-height:min(90dvh,760px)!important}
.v930-sheet-card>header{flex:0 0 auto;padding:0 2px 10px;margin-bottom:0!important}
.v995-sheet-scroll{min-height:0;flex:1 1 auto;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;padding:4px 2px 18px;scroll-padding-bottom:24px}
.v995-sheet-scroll *{touch-action:auto}.v995-sheet-scroll .v930-material-list,.v995-sheet-scroll .v930-material-option{touch-action:pan-y!important}
.v995-picker-tip{margin:9px 0 2px;padding:8px 10px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:10px;font-weight:800;line-height:1.7}
.v995-material-footer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(120px,.65fr);gap:8px;padding:10px 2px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e2e8f0;background:rgba(255,255,255,.98);box-shadow:0 -12px 24px rgba(15,23,42,.07);z-index:80}
.v995-material-footer[hidden]{display:none!important}
.v995-confirm-material,.v995-confirm-close{min-height:50px;border-radius:14px;font:inherit;font-weight:950;padding:0 12px}.v995-confirm-material{border:1px solid #ea580c;background:linear-gradient(135deg,#f97316,#ea580c);color:#d8cec5;box-shadow:0 8px 20px rgba(234,88,12,.24)}.v995-confirm-close{border:1px solid #cbd5e1;background:#f8fafc;color:#334155}.v995-confirm-material:active,.v995-confirm-close:active{transform:scale(.985)}
#v930PickerStep,#v930AmountStep{min-height:0}.v930-material-list{padding-bottom:12px}.v930-material-option{min-height:64px}

/* Older mobile CSS made the confirm button itself sticky; V9.9.5 uses a dedicated footer instead. */
#v930ConfirmMaterial{position:static!important;bottom:auto!important;padding-bottom:0!important}

/* --- Product category can be created without leaving the product modal --- */
.v995-category-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.v995-category-inline>.v922-primary-field{margin:0}.v995-add-category{min-height:48px;padding:0 12px;border:1px solid #fdba74;border-radius:13px;background:#fff7ed;color:#c2410c;font:inherit;font-weight:900;white-space:nowrap}
.v995-quick-category{margin-top:-2px;padding:10px;border:1px solid #fed7aa;border-radius:14px;background:#fffaf5;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}.v995-quick-category[hidden]{display:none!important}.v995-quick-category input{min-width:0;min-height:44px;border:1px solid #fdba74!important;border-radius:11px!important;background:#fff!important;padding:0 11px!important;font:inherit!important}.v995-quick-category button{min-height:42px;padding:0 10px;border-radius:10px;font:inherit;font-size:11px;font-weight:900}.v995-quick-category button#v995QuickCategorySave{border:1px solid #ea580c;background:#f97316;color:#d8cec5}.v995-quick-category button#v995QuickCategoryCancel{border:1px solid #cbd5e1;background:#fff;color:#475569}.v995-quick-category small{grid-column:1/-1;min-height:16px;color:#9a3412;font-weight:800}

@media(max-width:720px){
  .v995-customizer-footer{grid-template-columns:1fr 1fr!important}.v995-customizer-footer .v99-customizer-add{grid-column:1/-1;order:-1}.v995-customizer-footer button{min-height:48px!important}
  .v930-sheet-card{width:100%!important;height:100dvh!important;max-height:100dvh!important;bottom:0!important;border-radius:20px 20px 0 0!important;padding:10px 12px 0!important}
  .v995-sheet-scroll{padding-bottom:20px!important}
  .v995-material-footer{margin:0 -2px;grid-template-columns:1fr;gap:7px}.v995-confirm-material{order:1}.v995-confirm-close{order:2;min-height:44px}
  .v995-category-inline{grid-template-columns:1fr}.v995-add-category{width:100%}.v995-quick-category{grid-template-columns:1fr 1fr}.v995-quick-category input{grid-column:1/-1}
  .v995-cart-head-actions{justify-content:flex-end}.v995-cart-head-actions>button{min-height:36px}
}

@media(max-width:380px){.v995-customizer-footer{grid-template-columns:1fr!important}.v995-customizer-footer .v99-customizer-add{grid-column:auto}.v995-quick-category{grid-template-columns:1fr}.v995-quick-category input{grid-column:auto}}
