/* FOODYA Menu Editor PRO 4.8.4 (isolated) */
:root{color-scheme:light}
.fy-ed{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111;background:#f8f8f8}
.fy-ed *{box-sizing:border-box}
.fy-ed-loading{padding:24px;text-align:center;border:1px dashed #ddd;border-radius:12px;margin:18px;background:#fff}

/* Floating edit-mode button */
#fy-edit-fab{position:fixed;right:14px;bottom:18px;width:56px;height:56px;border-radius:999px;border:0;background:#eaeaea;color:#333;font-size:22px;font-weight:900;box-shadow:0 10px 26px rgba(0,0,0,.18);cursor:pointer;z-index:10060;transition:transform .15s ease, background .15s}
#fy-edit-fab.on{background:#ff5722;color:#fff;transform:rotate(-6deg)}
#fy-edit-fab:hover{transform:scale(1.05)}

/* Inline pen inside menu-only scope */
#foodya-menu-root.fy-inline-pens-on .fy-pen-inline{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;border:0;background:transparent;color:#8a8a8a;cursor:pointer;font-size:16px;line-height:1;margin-left:6px}
#foodya-menu-root.fy-inline-pens-on .fy-pen-inline:hover{color:#ff5722;background:#fff0ea}

/* Top bar editor */
.fy-top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #eee;padding:10px}
.fy-chipbar{position:relative;overflow:hidden}
.fy-chiplane{display:inline-flex;gap:10px;overflow-x:auto;white-space:nowrap;width:100%;padding-bottom:8px;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.fy-chip{display:inline-flex;align-items:center;border:1px solid #e9e9e9;border-radius:999px;padding:8px 14px;background:#fff;font-weight:800;cursor:pointer}
.fy-chip.active{background:#ff5722;color:#fff;border-color:#ff5722}

.fy-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;align-items:center;justify-content:space-between}
.fy-search{flex:1;min-width:220px;border:1px solid #ddd;border-radius:10px;padding:8px 10px}
.fy-actions{display:flex;align-items:center;gap:8px}
.fy-btn{border:0;border-radius:12px;padding:10px 14px;background:#f4f5f7;font-weight:800;cursor:pointer}
.fy-btn.prim{background:#ff5722;color:#fff}
.fy-btn.danger{background:#e53935;color:#fff}
.fy-btn.ghost{background:#ececec}
.fy-btn.xs{padding:6px 10px;border-radius:9px}

/* Presets: trash button should be orange outline (no filled red background) */
.fy-btn.fy-trash-outline{
  background:transparent !important;
  border:2px solid #ff5722;
  color:#ff5722;
}
.fy-btn.fy-trash-outline:hover{
  background:#ff5722 !important;
  color:#fff;
}

/* Better header action layout (product groups) */
.tab .th .ta{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
.fy-preset-tools{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.fy-preset-pick{min-width:200px;border:1px solid #ddd;border-radius:12px;padding:6px 10px;background:#fff;font-size:13px}

/* Inline checkbox row (preset modal) */
.fy-inline-check{display:inline-flex;align-items:center;gap:10px;width:auto}
.fy-inline-check input{margin:0}
.fy-inline-check span{font-weight:800}

/* Presets list (match "Guarniciones" style: full width, orange borders) */
.fy-presets{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.fy-preset-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #ff6a00;border-radius:16px;padding:12px 14px;background:#fff}
.fy-preset-card .t{font-weight:800}
.fy-preset-card .meta{font-size:12px;color:#666;margin-top:2px}
.fy-preset-card .left{display:flex;flex-direction:column}
.fy-preset-card .acts{display:flex;gap:8px;align-items:center}

/* Preset modal: "Obligatorio" row (wide + orange accent) */
.fy-preset-meta-row{width:100%;border:1px solid #ffd2c2;background:#fff7f3;border-radius:14px;padding:10px 12px;margin-top:2px}
.fy-checkline{display:inline-flex !important;align-items:center !important;justify-content:flex-start !important;gap:10px !important;font-weight:800 !important;color:#ff6a00 !important}
.fy-checkline input{margin:0 !important}

/* Save status chip in modal actions */
.fy-save-status{font-weight:800;opacity:0;transition:opacity .2s;align-self:center}
.fy-save-status.sh{opacity:1}

/* Mini dialog for naming presets (inside product modal) */
.fy-preset-mini-bg{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.fy-preset-mini{background:#fff;border-radius:16px;max-width:520px;width:100%;padding:16px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.fy-preset-mini-tt{font-size:18px;font-weight:900;margin-bottom:4px}
.fy-preset-mini-sub{font-size:13px;opacity:.8;margin-bottom:12px}
.fy-preset-mini-inp{width:100%;border:1px solid #ddd;border-radius:12px;padding:10px 12px;font-weight:700}
.fy-preset-mini-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}

/* View */
.fy-view{padding:12px}
.fy-empty{border:1px dashed #ddd;background:#fff;border-radius:14px;padding:20px;text-align:center}
.fy-empty .t{font-weight:800;margin-bottom:10px}

/* Cards in editor */
.fy-catttl{font-size:18px;font-weight:900;margin:12px 2px}
.fy-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;min-height:68px;border:2px dashed transparent;border-radius:14px;padding:4px}
.fy-cards.bigthumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fy-cards.dragover{border-color:#ffe1d7;background:#fff7f3}
.fy-mini{position:relative;display:grid;grid-template-columns:86px 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid #eee;border-radius:14px;padding:10px;cursor:grab;box-shadow:0 1px 4px rgba(0,0,0,.05);transition:transform .1s ease,box-shadow .1s ease,opacity .1s}
.fy-mini:hover{transform:scale(1.02);box-shadow:0 4px 10px rgba(0,0,0,.1)}
.fy-mini.dragging{opacity:.5}
.fy-mini .pic{border-radius:12px;overflow:hidden;background:#fafafa;border:1px solid #eee;display:flex;align-items:center;justify-content:center}
.fy-mini .pic img{width:100%;height:100%;object-fit:cover}
.fy-mini .t{font-weight:900;display:flex;align-items:center;gap:6px}
.fy-mini .r{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.fy-mini .badge{font-weight:700;background:#f7f7f8;border-radius:999px;padding:2px 8px;font-size:12px}
.fy-mini .price{font-weight:900}

.fy-fab{position:fixed;right:16px;bottom:92px;background:#ff5722;color:#fff;border:0;border-radius:999px;padding:14px 18px;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;z-index:10050}

/* Centered modal */
.fy-modal-bg{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:999999;padding:16px}
.fy-modal{width:min(880px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 12px 32px rgba(0,0,0,.28);transform:scale(.98);opacity:.01;transition:all .2s ease;padding:18px}
.fy-modal.sh{transform:scale(1);opacity:1}
.mh{display:flex;justify-content:space-between;align-items:center;padding-bottom:10px}
.mh .tt{font-weight:900;font-size:19px}
.mh .x{border:0;border-radius:10px;padding:6px 10px;background:#f7f7f7;cursor:pointer}
.m-top{display:grid;grid-template-columns:180px 1fr;gap:12px}
.imgbox{height:160px;border:1px solid #eee;border-radius:12px;background:#fafafa;display:flex;align-items:center;justify-content:center;overflow:hidden}
.imgbox img{width:100%;height:100%;object-fit:cover}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
@media(max-width:720px){ .grid2{grid-template-columns:1fr} .m-top{grid-template-columns:1fr} }
.fld label{font-size:12px;color:#555;margin-left:4px}
.fld input,.fld textarea,.fld select{width:100%;border:1px solid #ddd;border-radius:10px;padding:8px 10px}

.m-tabs{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.tab{border:1px solid #eee;border-radius:12px;padding:8px;background:#fff}
.tab .th{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.tab .rows{display:flex;flex-direction:column;gap:8px}
.tab .r{display:grid;grid-template-columns:1fr 120px 60px;gap:8px;align-items:center}
.tab .r .nm,.tab .r .pr{border:1px solid #ddd;border-radius:10px;padding:8px 10px}

.m-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:8px}

.fy-toast{position:fixed;left:50%;transform:translateX(-50%) translateY(10px);bottom:14px;background:#111;color:#fff;border-radius:999px;padding:10px 16px;opacity:0;transition:.2s;z-index:10070}
.fy-toast.sh{opacity:1;transform:translateX(-50%) translateY(0)}


/* ==== FOODYA Editor 4.8.4 visual FIX (scoped) ==== */
#foodya-editor-root.fy-ed .fy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 14px !important;
  justify-items: stretch;
  align-items: start;
}
#foodya-editor-root.fy-ed .fy-mini {
  max-width: 100%;
  overflow: hidden;
}
#foodya-editor-root.fy-ed .fy-mini .pic {
  width: 86px !important;
  height: 86px !important;
  flex-shrink: 0;
}
#foodya-editor-root.fy-ed .fy-mini .pic img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#foodya-editor-root.fy-ed .fy-mini .t,
#foodya-editor-root.fy-ed .fy-mini .r {
  word-break: break-word;
  max-width: 100%;
}
/* ==== Centrado modal del editor ==== */
.fy-modal-bg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px;
}

.fy-modal {
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  max-height: 90vh;
  overflow-y: auto;
}
/* ==== Mini menú de acciones (estilo limpio) ==== */
.fy-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  display: none;
  flex-direction: column;
  z-index: 1000;
  padding: 4px;
}
.fy-dropdown.sh { display: flex; }
.fy-dropdown .dd-item {
  padding: 8px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
}
.fy-dropdown .dd-item:hover {
  background: #ffe9e0;
}
.fy-dropdown .dd-item.filelike input {
  display: none;
}
/* ==== FOODYA Editor - Layout limpio 2025 ==== */
.fy-prodwrap.clean { background:#fff; padding:10px 0; }
.fy-chipbar-row { display:flex; gap:8px; overflow-x:auto; padding:6px 0; }
.fy-chipbar-row::-webkit-scrollbar { height:6px; }
.fy-chipbar-row .chip { border:1px solid #ff6a2a; border-radius:999px; background:#fff; color:#ff6a2a; padding:6px 14px; white-space:nowrap; cursor:pointer; transition:.2s; }
.fy-chipbar-row .chip.active { background:#ff6a2a; color:#fff; }
.fy-chipbar-row.subs { margin-bottom:10px; }
.fy-cards.singlecol { display:flex; flex-direction:column; gap:12px; max-width:600px; margin:auto; }
.fy-prodcard { display:flex; align-items:center; justify-content:space-between; border:1px solid #eee; border-radius:16px; padding:12px; background:#fff; transition:.2s; }
.fy-prodcard:hover { box-shadow:0 4px 12px rgba(0,0,0,.05); }
.fy-prodcard .imgbox { width:70px; height:70px; border-radius:12px; background:#fafafa; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.fy-prodcard img { width:100%; height:100%; object-fit:cover; }
.fy-prodcard .info { flex:1; margin-left:10px; display:flex; align-items:center; gap:6px; }
.fy-prodcard .price { font-weight:600; color:#000; text-align:right; }
.fy-prodcard .stock { font-size:12px; color:#888; text-align:right; }


/* ===== Chips editor (categorías / subcategorías) ===== */
.chips-scroll.edit.clean{
  max-width: 650px;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chips-scroll.edit.clean .chip.editable{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #ff6a2a;
  border-radius: 14px;
  padding: 10px 12px;
  background:#fff;
}
.chips-scroll.edit.clean .pill-edit{
  flex:1;
  border:0;
  outline:none;
  font-weight:700;
  font-size:14px;
  background:transparent;
}
.chips-scroll.edit.clean .chip-actions{
  display:flex;
  gap:6px;
  align-items:center;
}
.chips-scroll.edit.clean button.mv,
.chips-scroll.edit.clean button.x{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid #e9e9e9;
  background:#f8f8f8;
  cursor:pointer;
  font-weight:900;
  line-height:1;
}
.chips-scroll.edit.clean button.x{
  border-color:#ffd3c2;
  background:#fff1ea;
}
.chips-scroll.edit.clean button.mv:hover,
.chips-scroll.edit.clean button.x:hover{
  filter:brightness(.98);
}
.fy-bottom {
    display: none !important;
}

/* Hide edit-mode floating button */
#fy-edit-fab{display:none !important;visibility:hidden !important;pointer-events:none !important;}

/* ===== Master lists (ingredientes/extras/tamaños/guarniciones) con estilo chips ===== */
.chips-scroll.edit.clean.master .pill-num{
  width: 92px;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 800;
  background: #fff;
  margin-left: 10px;
}
.chips-scroll.edit.clean.master .incwrap{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-weight: 800;
  color: #555;
  user-select: none;
}
.chips-scroll.edit.clean.master .incwrap input{
  width: 16px;
  height: 16px;
}
.chips-scroll.edit.clean.master button.ap{
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.chips-scroll.edit.clean.master button.ap:hover{
  background: #fff6f1;
}


/* --- Mobile tweaks (MENU patch) --- */
@media (max-width: 768px){
  .fy-cards{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }
  .fy-cards > *{ width:100% !important; }
}
/* Hide floating +Producto when modal is open */
body.fy-modal-open .fy-fab{ display:none !important; }
/* Fallback for browsers supporting :has() */
body:has(.fy-modal-bg) .fy-fab{ display:none !important; }

/* iOS fix: evitar zoom automático al escribir */
.fy-editor input,
.fy-editor textarea,
.fy-editor select,
.fy-editor button,
.fy-modal input,
.fy-modal textarea,
.fy-modal select,
.fy-modal button {
  font-size: 16px !important;
}
/* === Modal mobile: no desplazamiento lateral + layout en 1 columna === */
@media (max-width: 768px){

  /* 1) Evitar cualquier overflow horizontal dentro del modal */
  .fy-modal,
  .fy-modal *{
    box-sizing: border-box;
  }

  .fy-modal{
    width: calc(100vw - 24px) !important;
    max-width: 520px !important;
    margin: 12px auto !important;
    overflow-x: hidden !important;
  }

  /* Si el scroll horizontal viene del "body" interno del modal */
  .fy-modal .fy-modal-body,
  .fy-modal .fy-modal-content{
    overflow-x: hidden !important;
  }

  /* 2) Inputs/Selects ocupan todo el ancho */
  .fy-modal input,
  .fy-modal textarea,
  .fy-modal select{
    width: 100% !important;
    min-width: 0 !important;
  }

  /* 3) Cualquier grid/flex en 2 columnas -> 1 columna */
  .fy-modal .fy-row,
  .fy-modal .fy-grid,
  .fy-modal .fy-form-row{
    display: block !important;
  }

  .fy-modal .fy-col,
  .fy-modal .fy-field{
    width: 100% !important;
  }

  /* 4) Filas tipo "Ingrediente + incluido + papelera" sin desbordar */
  .fy-modal .fy-item-row,
  .fy-modal .fy-line,
  .fy-modal .fy-option-row{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* el input se encoge bien (clave para iOS) */
  .fy-modal .fy-item-row input,
  .fy-modal .fy-line input,
  .fy-modal .fy-option-row input{
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* botones (incluido / papelera) no empujan el layout */
  .fy-modal .fy-item-row .fy-btn,
  .fy-modal .fy-line .fy-btn,
  .fy-modal .fy-option-row .fy-btn,
  .fy-modal .fy-trash,
  .fy-modal .fy-delete{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* 5) Botones largos (“Duplicar”, “Cambiar”, “Quitar”) que no desborden */
  .fy-modal .fy-actions,
  .fy-modal .fy-top-actions{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    max-width: 100% !important;
  }

  .fy-modal .fy-actions .fy-btn,
  .fy-modal .fy-top-actions .fy-btn{
    max-width: 100% !important;
  }

}



@media (max-width:768px){
  .m-actions .fy-btn{flex:1 1 100%}
}

/* Required toggle UI */
.fy-req{ display:inline-flex; align-items:center; gap:6px; font-size:12px; opacity:.85; margin-right:10px; }
.fy-max{ display:inline-flex; align-items:center; gap:6px; font-size:12px; opacity:.85; margin-right:10px; }
.fy-max em{ font-style:normal; }
.fy-max select{ border:1px solid #ddd; border-radius:10px; padding:4px 8px; background:#fff; }
.fy-inline{ display:inline-flex; align-items:center; gap:8px; font-size:13px; }


/* Preset editor: linked products */
.fy-linked{margin-top:12px;border:1px solid #eee;border-radius:12px;padding:10px;background:#fafafa}
.fy-linked .th{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.fy-linked .linked-pick-row{display:flex;align-items:center;gap:8px}
.fy-linked .linked-pick-row.is-empty{opacity:.8}
.fy-linked .fy-linked-pick{flex:1 1 auto;border:1px solid #ddd;border-radius:12px;padding:8px 10px;background:#fff}
.fy-linked .linked-opts{margin-top:8px;display:flex;flex-direction:column;gap:6px}
.fy-check{display:flex;align-items:center;gap:8px;font-size:13px}
.fy-check input{margin:0}
.muted{color:#777;font-size:13px}

/* Preset picker inside group headers */
.fy-modal .fy-preset-pick{width:160px;max-width:40vw;border:1px solid #ddd;border-radius:12px;padding:6px 10px;background:#fff;font-size:13px}


/* ==== FoodYA 4.8.6 mobile app editor ==== */
@media (max-width: 760px) {
  body.fy-mobile-editor-open { overflow: hidden !important; }
  #foodya-editor-root.fy-ed .fy-modal-bg.mobile {
    position: fixed !important;
    inset: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    z-index: 2147483000 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-product-editor {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    padding: 0 14px 145px !important;
    background: #fff !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-columns: 48px 1fr auto !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 12px 0 !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid #eee !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  #foodya-editor-root.fy-ed .fy-back,
  #foodya-editor-root.fy-ed .fy-save-mini {
    border: 0 !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    font-weight: 950 !important;
  }
  #foodya-editor-root.fy-ed .fy-back {
    background: #f5f5f5 !important;
    font-size: 25px !important;
  }
  #foodya-editor-root.fy-ed .fy-save-mini {
    background: #ff6a21 !important;
    color: #fff !important;
    padding: 0 14px !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-title {
    font-size: 21px !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-section,
  #foodya-editor-root.fy-ed .fy-mobile-accordion,
  #foodya-editor-root.fy-ed .fy-mobile-footer {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 18px !important;
    padding: 14px !important;
    margin: 12px 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.035) !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-field {
    display: grid !important;
    gap: 6px !important;
    margin: 0 0 12px !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-field span {
    color: #555 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-field input,
  #foodya-editor-root.fy-ed .fy-mobile-field textarea,
  #foodya-editor-root.fy-ed .fy-mobile-field select,
  #foodya-editor-root.fy-ed .fy-mobile-add-group input,
  #foodya-editor-root.fy-ed .fy-mobile-add-group select {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    border: 1px solid #ddd !important;
    padding: 11px 13px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-field textarea { min-height: 92px !important; }
  #foodya-editor-root.fy-ed .fy-mobile-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-accordion {
    padding: 0 !important;
    overflow: hidden !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-accordion summary {
    list-style: none !important;
    cursor: pointer !important;
    padding: 16px 14px !important;
    font-size: 19px !important;
    font-weight: 1000 !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-accordion summary::-webkit-details-marker { display:none !important; }
  #foodya-editor-root.fy-ed .fy-mobile-accordion summary:after {
    content: "＋" !important;
    float: right !important;
    color: #ff6a21 !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-accordion[open] summary:after { content: "−" !important; }
  #foodya-editor-root.fy-ed .fy-photo-compact,
  #foodya-editor-root.fy-ed .fy-mobile-group-inner,
  #foodya-editor-root.fy-ed .fy-mobile-add-group {
    padding: 0 14px 14px !important;
  }
  #foodya-editor-root.fy-ed .fy-photo-compact .imgbox,
  #foodya-editor-root.fy-ed .fy-photo-compact img,
  #foodya-editor-root.fy-ed .fy-photo-compact .ph2 {
    width: 100% !important;
    height: 120px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }
  #foodya-editor-root.fy-ed .fy-photo-compact .ph2 {
    display:flex!important;align-items:center!important;justify-content:center!important;
    background:#f7f7f7!important;border:1px dashed #ddd!important;font-weight:900!important;
  }
  #foodya-editor-root.fy-ed .fy-photo-compact .imgbtns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-group-inner .tab {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-group-inner .th {
    display: none !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-group-inner .r,
  #foodya-editor-root.fy-ed .fy-mobile-group-inner .grid2 {
    grid-template-columns: 1fr !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-group-inner input,
  #foodya-editor-root.fy-ed .fy-mobile-group-inner select,
  #foodya-editor-root.fy-ed .fy-mobile-group-inner textarea {
    min-height: 46px !important;
    border-radius: 13px !important;
    font-size: 16px !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 30 !important;
    display: grid !important;
    grid-template-columns: .8fr 1.2fr !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-footer .fy-btn,
  #foodya-editor-root.fy-ed .fy-mobile-add-group .fy-btn {
    min-height: 50px !important;
    border-radius: 14px !important;
    font-weight: 950 !important;
  }
  #foodya-editor-root.fy-ed .fy-mobile-footer .prim { background:#ff6a21!important; color:#fff!important; }
  #foodya-editor-root.fy-ed .fy-mobile-footer .danger { background:#fff!important; color:#991b1b!important; border:1px solid #fecaca!important; }
}


/* ===== FOODYA 4.8.7 · editor visual mobile ===== */
#foodya-editor-root.fy-ed{max-width:980px;margin:0 auto 130px;background:transparent!important;padding:0 12px 24px}
.fy-editor-hero{margin:8px 0 14px;padding:18px 18px 14px;background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;border-radius:22px}
.fy-editor-hero .eyebrow{display:inline-block;color:#f97316;font-size:11px;font-weight:950;letter-spacing:.16em;margin-bottom:4px}
.fy-editor-hero h2{margin:0;color:#111827;font-size:28px;line-height:1.05;letter-spacing:-.04em}
.fy-editor-hero p{margin:7px 0 0;color:#6b7280;font-size:14px;font-weight:650}
#foodya-editor-root .fy-top{top:8px;border:1px solid #e5e7eb;border-radius:20px;padding:10px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(17,24,39,.08);backdrop-filter:blur(10px);margin-bottom:14px}
#foodya-editor-root .fy-chipbar{min-width:0}
#foodya-editor-root .fy-chiplane{gap:7px;padding:2px 2px 7px}
#foodya-editor-root .fy-chip{min-height:42px;padding:9px 13px;border-color:#e5e7eb;color:#374151;font-size:14px}
#foodya-editor-root .fy-chip.active{background:#f97316;border-color:#f97316;color:#fff;box-shadow:0 5px 12px rgba(249,115,22,.2)}
#foodya-editor-root .fy-tools{justify-content:flex-end;margin-top:6px}
#foodya-editor-root .fy-btn.prim{background:#f97316;min-height:44px;border-radius:13px;padding:10px 16px}
#foodya-editor-root .fy-btn.ghost{min-width:44px;min-height:44px;border-radius:13px}
#foodya-editor-root .fy-view{padding:0}
#foodya-editor-root .fy-prodwrap.clean{padding:0}
#foodya-editor-root .fy-chipbar-row{padding:5px 1px 8px;gap:7px}
#foodya-editor-root .fy-chipbar-row .chip{min-height:40px;border:1px solid #fed7aa;background:#fff;color:#c2410c;font-weight:850;padding:7px 13px}
#foodya-editor-root .fy-chipbar-row .chip.active{background:#f97316;border-color:#f97316;color:#fff}
#foodya-editor-root .fy-cards.singlecol{max-width:none;width:100%;gap:10px}
#foodya-editor-root .fy-prodcard{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;border:1px solid #e5e7eb;border-radius:20px;padding:10px;background:#fff;box-shadow:0 3px 12px rgba(17,24,39,.045);cursor:pointer}
#foodya-editor-root .fy-prodcard:hover{border-color:#fdba74;box-shadow:0 8px 22px rgba(17,24,39,.08)}
#foodya-editor-root .fy-prodcard .imgbox{width:76px;height:76px;border-radius:15px}
#foodya-editor-root .fy-prodcard .info{min-width:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
#foodya-editor-root .fy-prodcard .name{font-size:17px;font-weight:900;line-height:1.15;color:#111827;word-break:break-word}
#foodya-editor-root .fy-prodcard .right{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:86px}
#foodya-editor-root .fy-prodcard .price{font-size:17px;font-weight:950;color:#111827}
#foodya-editor-root .fy-prodcard .stock{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:850}
#foodya-editor-root .fy-prodcard .stock.ok{background:#ecfdf5;color:#047857}
#foodya-editor-root .fy-prodcard .stock.out{background:#f3f4f6;color:#6b7280}
#foodya-editor-root .fy-edit-product-btn{border:0;border-radius:999px;background:#fff7ed;color:#ea580c;padding:6px 9px;font-size:12px;font-weight:900;cursor:pointer}
#foodya-editor-root .fy-fab{background:#f97316;right:18px;bottom:96px;border-radius:18px;padding:14px 18px;box-shadow:0 10px 28px rgba(249,115,22,.28)}
body:has(#foodya-editor-root) .entry-title{font-size:30px!important;line-height:1.08!important;letter-spacing:-.04em!important;text-transform:none!important;margin-bottom:18px!important}
@media(max-width:768px){
  #foodya-editor-root.fy-ed{padding:0 10px 24px;margin-bottom:120px}
  .fy-editor-hero{margin-top:4px;border-radius:18px;padding:15px}
  .fy-editor-hero h2{font-size:24px}
  #foodya-editor-root .fy-top{position:sticky;top:8px;border-radius:17px;padding:8px}
  #foodya-editor-root .fy-tools{display:flex;justify-content:flex-end}
  #foodya-editor-root .fy-actions{width:100%;justify-content:flex-end}
  #foodya-editor-root .fy-save{flex:1}
  #foodya-editor-root .fy-prodcard{grid-template-columns:68px minmax(0,1fr) auto;padding:9px;gap:10px;border-radius:17px}
  #foodya-editor-root .fy-prodcard .imgbox{width:68px;height:68px;border-radius:13px}
  #foodya-editor-root .fy-prodcard .name{font-size:16px}
  #foodya-editor-root .fy-prodcard .right{min-width:76px}
  #foodya-editor-root .fy-prodcard .price{font-size:16px}
  #foodya-editor-root .fy-edit-product-btn{font-size:11px;padding:5px 8px}
  body:has(#foodya-editor-root) .entry-title{font-size:27px!important;margin:12px 0 16px!important}
}


/* ===== FOODYA Editor 4.8.8 · stable mobile layout ===== */
body:has(#foodya-editor-root) .entry-title,
body:has(#foodya-editor-root) .entry-header { display:none !important; }
#foodya-editor-root.fy-ed{max-width:920px!important;margin:0 auto 130px!important;padding:0 14px 28px!important;overflow:hidden!important}
#foodya-editor-root .fy-editor-hero{margin:6px 0 12px!important;padding:16px!important;border-radius:20px!important;background:#fff7ed!important;border:1px solid #fed7aa!important}
#foodya-editor-root .fy-editor-hero .eyebrow{font-size:11px!important;color:#f97316!important;font-weight:900!important;letter-spacing:.14em!important}
#foodya-editor-root .fy-editor-hero h2{font-size:28px!important;margin:2px 0 0!important;color:#111827!important;text-transform:none!important}
#foodya-editor-root .fy-editor-hero p{font-size:14px!important;margin:6px 0 0!important;color:#6b7280!important}
#foodya-editor-root .fy-top{display:block!important;position:sticky!important;top:8px!important;z-index:50!important;border:1px solid #e5e7eb!important;border-radius:18px!important;background:rgba(255,255,255,.97)!important;padding:8px!important;margin:0 0 12px!important;box-shadow:0 8px 24px rgba(17,24,39,.08)!important;overflow:hidden!important}
#foodya-editor-root .fy-chipbar{width:100%!important;min-width:0!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
#foodya-editor-root .fy-chiplane{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;width:max-content!important;padding:0 0 7px!important}
#foodya-editor-root .fy-chip{flex:0 0 auto!important;white-space:nowrap!important;min-height:40px!important;border-radius:999px!important;padding:8px 13px!important;font-size:14px!important}
#foodya-editor-root .fy-tools{display:flex!important;width:100%!important;margin:0!important;padding-top:2px!important;justify-content:flex-end!important}
#foodya-editor-root .fy-actions{display:flex!important;width:100%!important;gap:8px!important;justify-content:flex-end!important}
#foodya-editor-root .fy-save{flex:1 1 auto!important;min-height:44px!important;border-radius:13px!important}
#foodya-editor-root .fy-more{flex:0 0 46px!important}
#foodya-editor-root .fy-chipbar-row{display:flex!important;width:100%!important;overflow-x:auto!important;gap:7px!important;padding:4px 0 8px!important;-webkit-overflow-scrolling:touch!important}
#foodya-editor-root .fy-chipbar-row .chip{flex:0 0 auto!important;white-space:nowrap!important;min-height:38px!important;border-radius:999px!important;padding:7px 12px!important}
#foodya-editor-root .fy-cards.singlecol{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;gap:9px!important;margin:0!important}
#foodya-editor-root .fy-prodcard{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:6px 11px!important;align-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;border:1px solid #e5e7eb!important;border-radius:18px!important;padding:10px!important;background:#fff!important;box-sizing:border-box!important}
#foodya-editor-root .fy-prodcard .imgbox{grid-row:1 / 3!important;width:72px!important;height:72px!important;border-radius:14px!important;overflow:hidden!important}
#foodya-editor-root .fy-prodcard .info{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;margin:0!important}
#foodya-editor-root .fy-prodcard .name{min-width:0!important;font-size:16px!important;line-height:1.2!important;font-weight:900!important;color:#111827!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
#foodya-editor-root .fy-edit-product-btn{flex:0 0 auto!important;border:0!important;background:#fff7ed!important;color:#ea580c!important;border-radius:999px!important;padding:7px 10px!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important}
#foodya-editor-root .fy-prodcard .right{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;width:100%!important}
#foodya-editor-root .fy-prodcard .price{font-size:16px!important;font-weight:950!important;color:#111827!important;white-space:nowrap!important}
#foodya-editor-root .fy-prodcard .stock{font-size:11px!important;font-weight:850!important;border-radius:999px!important;padding:4px 8px!important;white-space:nowrap!important}
#foodya-editor-root .fy-fab{right:16px!important;bottom:104px!important;border-radius:999px!important;padding:13px 18px!important;background:#f97316!important;color:#fff!important;z-index:99990!important}

/* Product editor sheet */
.fy-modal-bg.mobile{align-items:flex-end!important;justify-content:center!important;padding:14px 14px 104px!important;background:rgba(17,24,39,.45)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
.fy-modal.fy-mobile-product-editor{width:min(560px,100%)!important;max-height:calc(100dvh - 150px)!important;margin:0 auto!important;border-radius:24px!important;padding:16px!important;box-shadow:0 24px 70px rgba(0,0,0,.28)!important;overflow:auto!important;background:#fff!important}
#foodya-editor-root ~ .fy-modal-bg .fy-mobile-head,.fy-modal-bg .fy-mobile-head{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;position:sticky!important;top:-16px!important;z-index:20!important;background:#fff!important;padding:12px 0 10px!important;border-bottom:1px solid #f1f5f9!important;margin-bottom:12px!important}
.fy-modal-bg .fy-back{width:44px!important;height:44px!important;border:0!important;border-radius:14px!important;background:#f3f4f6!important;color:#111827!important;font-size:24px!important}
.fy-modal-bg .fy-mobile-title{font-size:20px!important;font-weight:950!important;color:#111827!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.fy-modal-bg .fy-save-mini{min-height:44px!important;border:0!important;border-radius:14px!important;background:#f97316!important;color:#fff!important;padding:0 14px!important;font-size:14px!important;font-weight:900!important}
.fy-modal-bg .fy-mobile-section,.fy-modal-bg .fy-mobile-accordion,.fy-modal-bg .fy-mobile-footer{border:1px solid #e5e7eb!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
.fy-modal-bg .fy-mobile-field input,.fy-modal-bg .fy-mobile-field textarea,.fy-modal-bg .fy-mobile-field select{font-size:16px!important;min-height:48px!important;border-radius:13px!important}
.fy-modal-bg .fy-mobile-row{grid-template-columns:1fr 1fr!important;gap:9px!important}
.fy-modal-bg .fy-mobile-footer{position:sticky!important;bottom:-16px!important;z-index:25!important;background:rgba(255,255,255,.98)!important;padding:12px!important;display:grid!important;grid-template-columns:.8fr 1.2fr!important;gap:9px!important}

@media(max-width:560px){
  #foodya-editor-root.fy-ed{padding:0 10px 24px!important;margin-bottom:118px!important}
  #foodya-editor-root .fy-editor-hero{padding:14px!important;border-radius:18px!important}
  #foodya-editor-root .fy-editor-hero h2{font-size:24px!important}
  #foodya-editor-root .fy-editor-hero p{font-size:13px!important}
  #foodya-editor-root .fy-prodcard{grid-template-columns:64px minmax(0,1fr)!important;padding:9px!important;gap:5px 10px!important;border-radius:16px!important}
  #foodya-editor-root .fy-prodcard .imgbox{width:64px!important;height:64px!important;border-radius:12px!important}
  #foodya-editor-root .fy-prodcard .name{font-size:15px!important}
  #foodya-editor-root .fy-edit-product-btn{padding:6px 8px!important;font-size:11px!important}
  #foodya-editor-root .fy-prodcard .price{font-size:15px!important}
  .fy-modal-bg.mobile{padding-left:8px!important;padding-right:8px!important;padding-bottom:96px!important}
  .fy-modal.fy-mobile-product-editor{border-radius:22px!important;padding:14px!important;max-height:calc(100dvh - 130px)!important}
}


/* ===== FOODYA Product Editor · polished minimal mobile UI ===== */
@media (max-width:760px){
  body.fy-mobile-editor-open{overflow:hidden!important}

  .fy-modal-bg.mobile{
    position:fixed!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:14px 12px calc(86px + env(safe-area-inset-bottom))!important;
    background:rgba(17,24,39,.42)!important;
    backdrop-filter:blur(7px)!important;
    -webkit-backdrop-filter:blur(7px)!important;
  }
  .fy-modal-bg.mobile .fy-modal.fy-mobile-product-editor{
    position:relative!important;
    width:min(620px,100%)!important;
    max-width:100%!important;
    max-height:min(84dvh,920px)!important;
    margin:0!important;
    padding:0 18px 20px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    border:0!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:0 26px 80px rgba(17,24,39,.32)!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
  }

  /* Header */
  .fy-modal-bg.mobile .fy-mobile-head{
    position:sticky!important;
    top:0!important;
    z-index:50!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    margin:0 -18px 12px!important;
    padding:16px 18px 14px!important;
    border-bottom:1px solid #f0f1f3!important;
    background:rgba(255,255,255,.96)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }
  .fy-modal-bg.mobile .fy-back{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    padding:0!important;
    border:0!important;
    border-radius:15px!important;
    background:#f5f6f7!important;
    color:#111827!important;
    font-size:27px!important;
    line-height:1!important;
    font-weight:600!important;
  }
  .fy-modal-bg.mobile .fy-mobile-title{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#111827!important;
    font-size:21px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:-.025em!important;
  }
  .fy-modal-bg.mobile .fy-save-mini{
    min-height:46px!important;
    padding:0 16px!important;
    border:0!important;
    border-radius:15px!important;
    background:#f97316!important;
    color:#fff!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:900!important;
    box-shadow:none!important;
  }

  /* Main fields: no giant admin cards */
  .fy-modal-bg.mobile .fy-mobile-section{
    display:block!important;
    margin:0!important;
    padding:2px 0 6px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-field{
    display:block!important;
    margin:0 0 12px!important;
  }
  .fy-modal-bg.mobile .fy-mobile-field>span{
    display:block!important;
    margin:0 0 6px 1px!important;
    color:#6b7280!important;
    font-size:12px!important;
    line-height:1.15!important;
    font-weight:800!important;
  }
  .fy-modal-bg.mobile .fy-mobile-field input,
  .fy-modal-bg.mobile .fy-mobile-field textarea,
  .fy-modal-bg.mobile .fy-mobile-field select{
    width:100%!important;
    min-height:46px!important;
    margin:0!important;
    padding:10px 12px!important;
    border:1px solid #e5e7eb!important;
    border-radius:13px!important;
    outline:0!important;
    background:#fff!important;
    color:#111827!important;
    font-size:16px!important;
    line-height:1.25!important;
    font-weight:650!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-field textarea{
    min-height:82px!important;
    resize:vertical!important;
  }
  .fy-modal-bg.mobile .fy-mobile-field input:focus,
  .fy-modal-bg.mobile .fy-mobile-field textarea:focus,
  .fy-modal-bg.mobile .fy-mobile-field select:focus{
    border-color:#fdba74!important;
    box-shadow:0 0 0 3px rgba(249,115,22,.10)!important;
  }
  .fy-modal-bg.mobile .fy-mobile-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }

  /* Continuous sections */
  .fy-modal-bg.mobile .fy-mobile-clean-section{
    display:block!important;
    margin:0!important;
    padding:16px 0!important;
    border:0!important;
    border-top:1px solid #f1f2f4!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .fy-modal-bg.mobile .fy-mobile-section-title{
    margin:0 0 10px!important;
    padding:0!important;
    color:#111827!important;
    font-size:15px!important;
    line-height:1.2!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
  }

  /* Image: thumbnail, never full-screen */
  .fy-modal-bg.mobile .fy-photo-compact{
    display:grid!important;
    grid-template-columns:88px minmax(0,1fr)!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  .fy-modal-bg.mobile .fy-photo-compact>img,
  .fy-modal-bg.mobile .fy-photo-compact>.ph2,
  .fy-modal-bg.mobile .fy-photo-compact .imgbox,
  .fy-modal-bg.mobile .fy-photo-compact .imgbox img{
    display:block!important;
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    height:88px!important;
    min-height:88px!important;
    max-height:88px!important;
    margin:0!important;
    border:1px solid #eceef0!important;
    border-radius:16px!important;
    object-fit:cover!important;
    overflow:hidden!important;
    background:#f7f7f8!important;
  }
  .fy-modal-bg.mobile .fy-photo-compact>.ph2{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#9ca3af!important;
    font-size:12px!important;
    font-weight:800!important;
    text-align:center!important;
  }
  .fy-modal-bg.mobile .fy-photo-compact .imgbtns{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:8px!important;
    min-width:0!important;
    margin:0!important;
  }
  .fy-modal-bg.mobile .fy-photo-compact .fy-btn{
    min-height:38px!important;
    margin:0!important;
    padding:8px 11px!important;
    border:1px solid #e5e7eb!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#374151!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:800!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-photo-compact .fy-btn:first-child{
    border-color:#fed7aa!important;
    background:#fff7ed!important;
    color:#ea580c!important;
  }

  /* Option groups */
  .fy-modal-bg.mobile .fy-mobile-groups{display:block!important;margin:0!important;padding:0!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner{display:block!important;margin:0!important;padding:0!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .tab{
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .tab>.th{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    min-height:0!important;
    margin:0 0 9px!important;
    padding:0!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .tab>.th>strong{display:none!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .tab>.th>.ta{
    display:flex!important;
    flex:1 1 100%!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    width:100%!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .fy-btn.xs{
    min-height:36px!important;
    padding:7px 10px!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#4b5563!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:800!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .tab>.th>.ta>.fy-btn:first-child{
    border-color:#fed7aa!important;
    background:#fff7ed!important;
    color:#ea580c!important;
  }
  .fy-modal-bg.mobile .fy-preset-tools{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:7px!important;
    flex:1 1 100%!important;
    width:100%!important;
    margin-top:1px!important;
  }
  .fy-modal-bg.mobile .fy-preset-pick{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    padding:7px 10px!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    background:#fafafa!important;
    color:#374151!important;
    font-size:12px!important;
    font-weight:650!important;
  }

  /* rows */
  .fy-modal-bg.mobile .fy-mobile-group-inner .rows{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(82px,.58fr) 38px!important;
    align-items:center!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:8px!important;
    border:1px solid #eceef0!important;
    border-radius:13px!important;
    background:#fafafa!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .nm,
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .pr{
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    margin:0!important;
    padding:8px 10px!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#111827!important;
    font-size:14px!important;
    line-height:1.15!important;
    font-weight:650!important;
    box-shadow:none!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r>button.fy-btn{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border:1px solid #e5e7eb!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#9ca3af!important;
    font-size:15px!important;
  }

  /* Ingredient rows with Included / Required switches */
  .fy-modal-bg.mobile .fy-mobile-group-inner .r:has(.sw){
    grid-template-columns:minmax(0,1fr) auto 38px!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw{
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    white-space:nowrap!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw input{
    width:18px!important;
    height:18px!important;
    min-height:18px!important;
    margin:0!important;
    accent-color:#f97316!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw .sl{display:none!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw em{
    color:#4b5563!important;
    font-size:11px!important;
    line-height:1!important;
    font-style:normal!important;
    font-weight:750!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw.req{display:none!important}

  /* Creating a group */
  .fy-modal-bg.mobile .fy-mobile-create-group{padding-bottom:14px!important}
  .fy-modal-bg.mobile .fy-mobile-add-group{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 112px!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  .fy-modal-bg.mobile .fy-mobile-add-group .ng{grid-column:1 / -1!important}
  .fy-modal-bg.mobile .fy-mobile-add-group input,
  .fy-modal-bg.mobile .fy-mobile-add-group select{
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    margin:0!important;
    padding:8px 10px!important;
    border:1px solid #e5e7eb!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#374151!important;
    font-size:14px!important;
    font-weight:650!important;
  }
  .fy-modal-bg.mobile .fy-mobile-add-group .fy-btn{
    grid-column:1 / -1!important;
    justify-self:start!important;
    min-height:38px!important;
    padding:8px 11px!important;
    border:1px solid #fed7aa!important;
    border-radius:11px!important;
    background:#fff7ed!important;
    color:#ea580c!important;
    font-size:12px!important;
    font-weight:850!important;
  }

  /* Product delete: final quiet action, never sticky */
  .fy-modal-bg.mobile .fy-mobile-footer,
  .fy-modal-bg.mobile .fy-mobile-footer-minimal{
    position:static!important;
    display:block!important;
    margin:0!important;
    padding:14px 0 2px!important;
    border:0!important;
    border-top:1px solid #f1f2f4!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .fy-modal-bg.mobile .fy-delete-link{
    display:inline-flex!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:5px 1px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#dc2626!important;
    font-size:13px!important;
    line-height:1.2!important;
    font-weight:800!important;
    box-shadow:none!important;
  }

  /* Meta controls for custom groups */
  .fy-modal-bg.mobile .fy-req,
  .fy-modal-bg.mobile .fy-max{
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    margin:0!important;
    color:#6b7280!important;
    font-size:11px!important;
    font-weight:750!important;
  }
  .fy-modal-bg.mobile .fy-max select{
    min-height:32px!important;
    padding:4px 7px!important;
    border:1px solid #e5e7eb!important;
    border-radius:9px!important;
    background:#fff!important;
    font-size:11px!important;
  }
}

@media (max-width:430px){
  .fy-modal-bg.mobile{padding-left:8px!important;padding-right:8px!important}
  .fy-modal-bg.mobile .fy-modal.fy-mobile-product-editor{padding-left:14px!important;padding-right:14px!important;border-radius:22px!important}
  .fy-modal-bg.mobile .fy-mobile-head{margin-left:-14px!important;margin-right:-14px!important;padding-left:14px!important;padding-right:14px!important}
  .fy-modal-bg.mobile .fy-mobile-title{font-size:19px!important}
  .fy-modal-bg.mobile .fy-save-mini{padding:0 14px!important}
  .fy-modal-bg.mobile .fy-mobile-row{grid-template-columns:1fr 1fr!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .r{grid-template-columns:minmax(0,1fr) 78px 36px!important;gap:6px!important;padding:7px!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .r:has(.sw){grid-template-columns:minmax(0,1fr) auto 36px!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .sw em{font-size:10px!important}
}

/* === FOODYA 4.8.9 polish: currency + clean remove action === */
.fy-price-wrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
}
.fy-price-wrap>input{
  width:100%!important;
  padding-right:38px!important;
}
.fy-price-wrap .fy-currency{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#6b7280;
  font-weight:800;
  pointer-events:none;
}
.fy-price-small .fy-currency{right:10px;font-size:14px}

/* Replace ugly bin glyphs with a compact red × action */
.fy-btn.fy-remove-x,
.fy-modal-bg.mobile .fy-mobile-group-inner .r>button.fy-btn.fy-remove-x{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:24px!important;
  line-height:1!important;
  font-weight:500!important;
  box-shadow:none!important;
}
.fy-btn.fy-remove-x:hover{background:#dc2626!important}

@media (max-width: 760px){
  .fy-modal-bg.mobile .fy-mobile-row .fy-mobile-field .fy-price-wrap{width:100%!important}
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .fy-price-wrap{
    min-width:0!important;
    width:100%!important;
  }
  .fy-modal-bg.mobile .fy-mobile-group-inner .r .fy-price-wrap .pr{
    width:100%!important;
  }
}

/* ===== FOODYA Editor: clean wide menu header + consistent 3-line options ===== */
#foodya-editor-root.fy-ed{
  width:min(1120px,calc(100% - 20px));
  max-width:none !important;
  margin:0 auto;
  background:#fff;
}
#foodya-editor-root .fy-editor-hero{
  margin:12px 0 12px;
  padding:4px 2px 10px;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
}
#foodya-editor-root .fy-editor-hero h2{
  margin:0;
  color:#111827;
  font-size:clamp(30px,5vw,46px);
  line-height:1;
  letter-spacing:-.045em;
  font-weight:850;
  text-transform:none;
}
#foodya-editor-root .fy-editor-hero p{
  margin:9px 0 0;
  color:#6b7280;
  font-size:15px;
  font-weight:650;
}
#foodya-editor-root .fy-top{
  position:relative;
  top:auto;
  padding:0 0 10px;
  border-bottom:0;
  background:#fff;
}
#foodya-editor-root .fy-chiplane{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  overflow:visible;
  padding:0;
}
#foodya-editor-root .fy-chip{
  min-width:0;
  justify-content:center;
  padding:10px 9px;
  border-radius:16px;
  border-color:#e5e7eb;
  color:#374151;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
}
#foodya-editor-root .fy-chip.active{
  background:#f47a2a;
  border-color:#f47a2a;
  color:#fff;
}
#foodya-editor-root .fy-tools{
  margin-top:8px;
  justify-content:flex-end;
}
#foodya-editor-root .fy-actions{margin-left:auto}
#foodya-editor-root .fy-save{display:none!important}
#foodya-editor-root .fy-menu{position:relative}
#foodya-editor-root .fy-more{
  width:48px;
  height:44px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  color:#374151;
  font-size:24px!important;
  line-height:1;
}
#foodya-editor-root .fy-menu-lines{display:block;transform:translateY(-1px)}
#foodya-editor-root .fy-view{padding:4px 0 16px}
#foodya-editor-root .fy-prodwrap.clean{padding:4px 0}
#foodya-editor-root .fy-cards.singlecol{
  max-width:none!important;
  width:100%;
  margin:0;
}
#foodya-editor-root .fy-prodcard{
  width:100%;
  padding:12px;
  border-color:#e5e7eb;
  border-radius:18px;
}
#foodya-editor-root .fy-prodcard .imgbox{
  width:82px;
  height:82px;
  flex:0 0 82px;
}
#foodya-editor-root .fy-prodcard .info{
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
#foodya-editor-root .fy-prodcard .name{
  font-weight:850;
  font-size:17px;
  color:#111827;
}
#foodya-editor-root .fy-card-actions{
  display:flex;
  align-items:center;
  gap:7px;
}
#foodya-editor-root .fy-edit-product-btn,
#foodya-editor-root .fy-product-options-btn{
  height:34px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#374151;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
}
#foodya-editor-root .fy-edit-product-btn{padding:0 12px}
#foodya-editor-root .fy-product-options-btn{
  width:38px;
  padding:0;
  font-size:18px!important;
  line-height:1;
}
#foodya-editor-root .fy-prodcard .right{margin-left:10px;min-width:82px}
#foodya-editor-root .fy-prodcard .price{font-weight:850;color:#f47a2a}
#foodya-editor-root .fy-chipbar-row{gap:8px;padding:8px 0}
#foodya-editor-root .fy-chipbar-row .chip{padding:8px 14px;font-weight:800}

@media(max-width:768px){
  #foodya-editor-root.fy-ed{width:calc(100% - 16px)}
  #foodya-editor-root .fy-editor-hero{padding-left:2px;padding-right:2px}
  #foodya-editor-root .fy-editor-hero h2{font-size:34px}
  #foodya-editor-root .fy-editor-hero p{font-size:14px}
  #foodya-editor-root .fy-chiplane{
    grid-template-columns:repeat(3,minmax(105px,1fr));
    overflow-x:auto;
    padding-bottom:2px;
  }
  #foodya-editor-root .fy-prodcard{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
  }
  #foodya-editor-root .fy-prodcard .imgbox{width:72px;height:72px;flex-basis:72px}
  #foodya-editor-root .fy-prodcard .info{margin-left:0}
  #foodya-editor-root .fy-prodcard .name{font-size:16px}
  #foodya-editor-root .fy-edit-product-btn{padding:0 10px}
  #foodya-editor-root .fy-prodcard .right{margin-left:0;min-width:72px}
}

/* ===== FOODYA 4.9 mockup implementation ===== */
#foodya-editor-root.fy-ed{width:min(1180px,calc(100vw - 16px))!important;max-width:none!important;position:relative!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important}
#foodya-editor-root .fy-editor-hero{margin:8px 0 12px!important;padding:6px 2px 10px!important;background:transparent!important;border:0!important;border-radius:0!important}
#foodya-editor-root .fy-editor-hero h2{margin:0!important;font-size:32px!important;line-height:1!important;font-weight:900!important;letter-spacing:-.04em!important;color:#111827!important}
#foodya-editor-root .fy-editor-hero p{margin:7px 0 0!important;font-size:14px!important;color:#6b7280!important;font-weight:650!important}
#foodya-editor-root .fy-top{border:0!important;background:transparent!important;padding:0 0 10px!important}
#foodya-editor-root .fy-chiplane{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;overflow:visible!important;padding:0!important}
#foodya-editor-root .fy-chip{justify-content:center!important;min-width:0!important;padding:10px 8px!important;border-radius:16px!important}
#foodya-editor-root .fy-tools{position:absolute!important;right:0!important;top:58px!important;margin:0!important}
#foodya-editor-root .fy-save{display:none!important}
#foodya-editor-root .fy-more{width:44px!important;height:44px!important;border:1px solid #e5e7eb!important;border-radius:14px!important;background:#fff!important;color:#374151!important;box-shadow:none!important}
#foodya-editor-root .fy-prodwrap.clean{padding:2px 0 12px!important}
#foodya-editor-root .fy-chipbar-row{display:flex!important;gap:8px!important;overflow-x:auto!important;padding:8px 0!important;scrollbar-width:none!important}
#foodya-editor-root .fy-chipbar-row::-webkit-scrollbar{display:none!important}
#foodya-editor-root .fy-chipbar-row .chip{flex:0 0 auto!important;padding:9px 15px!important;border-radius:999px!important;font-weight:850!important}
#foodya-editor-root .fy-product-list-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:10px 0 10px!important;padding-top:10px!important;border-top:1px solid #f0f1f3!important}
#foodya-editor-root .fy-product-count{color:#111827!important;font-size:16px!important;font-weight:900!important}
#foodya-editor-root .fy-inline-add-product{min-height:40px!important;padding:0 15px!important;border:0!important;border-radius:14px!important;background:#f97316!important;color:#fff!important;font-size:14px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(249,115,22,.18)!important}
#foodya-editor-root .fy-cards.singlecol{gap:10px!important}
#foodya-editor-root .fy-prodcard{display:grid!important;grid-template-columns:76px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:7px 12px!important;align-items:center!important;width:100%!important;padding:10px!important;border:1px solid #e5e7eb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 3px 12px rgba(17,24,39,.04)!important}
#foodya-editor-root .fy-prodcard .imgbox{grid-row:1 / 3!important;width:76px!important;height:76px!important;border-radius:14px!important}
#foodya-editor-root .fy-prodcard .info{grid-column:2 / 4!important;grid-row:1!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;margin:0!important}
#foodya-editor-root .fy-prodcard .name{min-width:0!important;font-size:16px!important;font-weight:900!important;line-height:1.18!important;color:#111827!important}
#foodya-editor-root .fy-card-actions{flex:0 0 auto!important}
#foodya-editor-root .fy-edit-product-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;padding:0!important;border:1px solid #e5e7eb!important;border-radius:13px!important;background:#fff!important;color:#111827!important;font-size:24px!important;line-height:1!important;font-weight:500!important;box-shadow:none!important}
#foodya-editor-root .fy-product-options-btn{display:none!important}
#foodya-editor-root .fy-prodcard .right{grid-column:2 / 4!important;grid-row:2!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important}
#foodya-editor-root .fy-prodcard .price{color:#f97316!important;font-size:16px!important;font-weight:950!important}
#foodya-editor-root .fy-prodcard .stock{padding:5px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:850!important}
.fy-modal-bg.mobile .fy-mobile-field select.fy-mobile-select{appearance:auto!important;-webkit-appearance:auto!important;background:#fff!important}
.fy-modal-bg.mobile .fy-delete-link{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;margin:0!important;padding:0 16px!important;border:0!important;border-radius:13px!important;background:#ef4444!important;color:#fff!important;font-size:14px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(239,68,68,.16)!important}
.fy-modal-bg.mobile .fy-delete-link::before{content:'🗑';margin-right:7px;font-size:14px}
@media(max-width:768px){#foodya-editor-root.fy-ed{width:calc(100vw - 12px)!important}#foodya-editor-root .fy-editor-hero h2{font-size:30px!important}#foodya-editor-root .fy-editor-hero p{font-size:13px!important}#foodya-editor-root .fy-chiplane{grid-template-columns:repeat(3,minmax(108px,1fr))!important;overflow-x:auto!important}#foodya-editor-root .fy-tools{top:55px!important}#foodya-editor-root .fy-prodcard{grid-template-columns:68px minmax(0,1fr) auto!important;padding:9px!important;gap:6px 10px!important}#foodya-editor-root .fy-prodcard .imgbox{width:68px!important;height:68px!important}#foodya-editor-root .fy-prodcard .name{font-size:15px!important}#foodya-editor-root .fy-edit-product-btn{width:40px!important;height:40px!important;font-size:22px!important}}

/* ===== FOODYA 4.9.1 · filtros limpios + presets como productos ===== */
#foodya-editor-root .fy-more,
#foodya-editor-root .fy-menu{display:none!important}
#foodya-editor-root .fy-tools{display:none!important}
#foodya-editor-root .fy-chiplane{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}
#foodya-editor-root .fy-chip{white-space:nowrap!important}

/* Presets list mirrors product-card language */
#foodya-editor-root .fy-presets-product-style{
  display:block!important;
  margin:0!important;
  padding:6px 0 24px!important;
}
#foodya-editor-root .fy-list-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:6px 0 12px!important;
}
#foodya-editor-root .fy-list-title{
  color:#111827!important;
  font-size:18px!important;
  font-weight:900!important;
}
#foodya-editor-root .fy-add-preset{
  min-height:42px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:14px!important;
  background:#f97316!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
}
#foodya-editor-root .fy-preset-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
#foodya-editor-root .fy-preset-product-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid #e5e7eb!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:none!important;
}
#foodya-editor-root .fy-preset-card-info{min-width:0!important}
#foodya-editor-root .fy-preset-product-card .t{
  color:#111827!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:900!important;
}
#foodya-editor-root .fy-preset-product-card .meta{
  margin-top:4px!important;
  color:#6b7280!important;
  font-size:12px!important;
  font-weight:700!important;
}
#foodya-editor-root .fy-preset-pencil{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  padding:0!important;
  border:1px solid #e5e7eb!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:700!important;
}
#foodya-editor-root .fy-empty-clean{
  margin-top:10px!important;
  padding:20px!important;
  border:1px dashed #e5e7eb!important;
  border-radius:16px!important;
  color:#6b7280!important;
  background:#fafafa!important;
  text-align:center!important;
}

/* Preset editor adopts the product editor shell */
.fy-preset-editor-bg .fy-preset-editor{
  width:min(620px,calc(100vw - 24px))!important;
  max-height:min(84dvh,920px)!important;
  padding:0 18px 20px!important;
  overflow-y:auto!important;
  border-radius:24px!important;
  background:#fff!important;
}
.fy-preset-editor .fy-modal-inner{padding:0!important}
.fy-preset-editor .fy-preset-form{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0!important;
  padding:4px 0 14px!important;
}
.fy-preset-editor .fy-preset-form .fld{
  margin:0!important;
  padding:0!important;
}
.fy-preset-editor .fy-preset-form .fld:first-child,
.fy-preset-editor .fy-preset-form .fld:nth-child(2),
.fy-preset-editor .fy-preset-meta-row{grid-column:1 / -1!important}
.fy-preset-editor .fy-preset-form label,
.fy-preset-editor .fy-linked .th strong,
.fy-preset-editor .tab>.th strong{
  display:block!important;
  margin:0 0 6px 1px!important;
  color:#6b7280!important;
  font-size:12px!important;
  font-weight:800!important;
}
.fy-preset-editor .fy-preset-form input,
.fy-preset-editor .fy-preset-form select,
.fy-preset-editor .fy-linked select{
  width:100%!important;
  min-height:46px!important;
  padding:10px 12px!important;
  border:1px solid #e5e7eb!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:15px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.fy-preset-editor .fy-preset-meta-row{
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid #eceef0!important;
  border-radius:13px!important;
  background:#fafafa!important;
}
.fy-preset-editor .fy-linked,
.fy-preset-editor .tab{
  margin:0!important;
  padding:16px 0!important;
  border:0!important;
  border-top:1px solid #f1f2f4!important;
  border-radius:0!important;
  background:transparent!important;
}
.fy-preset-editor .linked-pick-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:7px!important;
  align-items:center!important;
}
.fy-preset-editor .linked-opts{margin-top:10px!important}
.fy-preset-editor .fy-check{display:flex!important;align-items:center!important;gap:8px!important;margin:7px 0!important;color:#4b5563!important;font-size:12px!important;font-weight:700!important}
.fy-preset-editor .tab>.th{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:8px!important}
.fy-preset-editor .rows{display:flex!important;flex-direction:column!important;gap:8px!important}
.fy-preset-editor .rows .r{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(90px,.6fr) 38px!important;
  gap:7px!important;
  align-items:center!important;
  padding:8px!important;
  border:1px solid #eceef0!important;
  border-radius:13px!important;
  background:#fafafa!important;
}
.fy-preset-editor .rows .r .nm,
.fy-preset-editor .rows .r .pr{
  width:100%!important;
  min-height:40px!important;
  padding:8px 10px!important;
  border:1px solid #e5e7eb!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:14px!important;
  font-weight:700!important;
}
.fy-preset-editor .fy-preset-actions{
  display:block!important;
  margin:0!important;
  padding:14px 0 0!important;
  border-top:1px solid #f1f2f4!important;
}
.fy-preset-editor .fy-preset-actions>.fy-btn.prim{display:none!important}
.fy-preset-editor .fy-preset-delete{
  width:100%!important;
  min-height:48px!important;
  border:0!important;
  border-radius:14px!important;
  background:#ef4444!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
}

/* Creating a preset from a product: same visual shell */
.fy-preset-create-mini{
  width:min(560px,calc(100vw - 24px))!important;
  padding:0 18px 18px!important;
  border-radius:24px!important;
  background:#fff!important;
}
.fy-preset-create-body{padding:8px 0 4px!important}
.fy-preset-create-body .fy-mobile-field{display:block!important;margin:0!important}
.fy-preset-create-body .fy-mobile-field>span{display:block!important;margin:0 0 6px 1px!important;color:#6b7280!important;font-size:12px!important;font-weight:800!important}
.fy-preset-create-body input{width:100%!important;min-height:48px!important;padding:10px 12px!important;border:1px solid #e5e7eb!important;border-radius:13px!important;background:#fff!important;color:#111827!important;font-size:16px!important;font-weight:700!important}
.fy-preset-create-hint{margin-top:10px!important;color:#6b7280!important;font-size:12px!important;line-height:1.35!important}

@media(max-width:760px){
  #foodya-editor-root .fy-chiplane{
    grid-template-columns:repeat(5,max-content)!important;
    overflow-x:auto!important;
    justify-content:flex-start!important;
  }
  #foodya-editor-root .fy-chip{padding:10px 14px!important}
  .fy-preset-editor .fy-preset-form{grid-template-columns:1fr 1fr!important}
  .fy-preset-editor .linked-pick-row{grid-template-columns:1fr 1fr!important}
  .fy-preset-editor .linked-pick-row select{grid-column:1/-1!important}
}


/* ===== FOODYA 4.9.2 · SOLO Productos / Categorías / Subcategorías ===== */
#foodya-editor-root .fy-editor-hero{display:none!important}
#foodya-editor-root .fy-top{margin-top:0!important}
#foodya-editor-root .fy-chiplane{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;overflow:visible!important}
#foodya-editor-root .fy-chiplane .fy-chip{min-width:0!important;width:100%!important}
@media(max-width:520px){
 #foodya-editor-root .fy-chiplane{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 #foodya-editor-root .fy-chiplane .fy-chip{padding:10px 7px!important;font-size:13px!important}
}

/* ===== FOODYA 4.9.3 · retoque visual solicitado ===== */
/* Filtro principal sin tarjeta/fondo envolvente */
#foodya-editor-root .fy-top{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  padding:0!important;
  overflow:visible!important;
}
/* Lápiz naranja, sin caja, inclinado hacia el otro lado */
#foodya-editor-root .fy-edit-product-btn{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#ff6b00!important;
  width:42px!important;
  height:42px!important;
  padding:0!important;
  border-radius:0!important;
  font-size:25px!important;
  transform:scaleX(-1)!important;
}
/* Eliminar producto rojo limpio, sin icono de papelera */
.fy-modal-bg.mobile .fy-delete-link::before{content:none!important;display:none!important}
.fy-modal-bg.mobile .fy-delete-link{
  background:#ef4444!important;
  color:#fff!important;
  border:0!important;
}


/* ===== FOODYA 4.9.6 · Actualizar público del menú ===== */
#foodya-editor-root .fy-purge-cache-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  width:100%!important;
  min-height:88px!important;
  margin:0 0 18px!important;
  padding:14px 18px!important;
  border:0!important;
  border-radius:18px!important;
  background:#ff6b00!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(255,107,0,.18)!important;
  cursor:pointer!important;
  text-align:left!important;
}
#foodya-editor-root .fy-purge-cache-btn::before{content:none!important;display:none!important}
#foodya-editor-root .fy-purge-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#ff6b00!important;
  font-size:31px!important;
  line-height:1!important;
  font-weight:800!important;
}
#foodya-editor-root .fy-purge-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  min-width:0!important;
}
#foodya-editor-root .fy-purge-copy strong{
  color:#fff!important;
  font-size:17px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
#foodya-editor-root .fy-purge-copy small{
  color:rgba(255,255,255,.92)!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:650!important;
}
#foodya-editor-root .fy-purge-cache-btn:disabled{
  opacity:.72!important;
  cursor:wait!important;
}
@media(max-width:520px){
  #foodya-editor-root .fy-purge-cache-btn{
    min-height:82px!important;
    padding:12px 14px!important;
    border-radius:16px!important;
    gap:12px!important;
  }
  #foodya-editor-root .fy-purge-icon{
    flex-basis:44px!important;
    width:44px!important;
    height:44px!important;
    font-size:28px!important;
  }
  #foodya-editor-root .fy-purge-copy strong{font-size:16px!important}
  #foodya-editor-root .fy-purge-copy small{font-size:12px!important}
}

/* ===== FOODYA 4.9.7 · navegación superior limpia ===== */
#foodya-editor-root .fy-chipbar{
  width:100%!important;
  overflow:visible!important;
  border-bottom:1px solid #e5e7eb!important;
}
#foodya-editor-root .fy-chiplane{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
  width:100%!important;
  padding:0!important;
  overflow:visible!important;
}
#foodya-editor-root .fy-chiplane .fy-chip{
  position:relative!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  padding:14px 5px 13px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#111827!important;
  font-size:15px!important;
  font-weight:900!important;
}
#foodya-editor-root .fy-chiplane .fy-chip.active{
  background:transparent!important;
  border:0!important;
  color:#f97316!important;
  box-shadow:none!important;
}
#foodya-editor-root .fy-chiplane .fy-chip.active::after{
  content:""!important;
  position:absolute!important;
  left:10%!important;
  right:10%!important;
  bottom:-1px!important;
  height:3px!important;
  border-radius:999px 999px 0 0!important;
  background:#f97316!important;
}
@media(max-width:520px){
 #foodya-editor-root .fy-chiplane .fy-chip{font-size:13px!important;padding-left:2px!important;padding-right:2px!important}
}
