.jm-embed{color:#202124;max-width:1100px;margin:20px auto;font-size:1em}
.jm-embed *{box-sizing:border-box}.jm-embed button,.jm-embed input,.jm-embed select{font:inherit}
.jm-embed .jm-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}
.jm-embed .jm-panel{background:#fff;border:1px solid #e8e8e9;border-radius:9px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.jm-embed .jm-filter{padding:16px}.jm-title{font-size:1em;font-weight:700;margin:0 0 14px}
.jm-embed .jm-fields{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:12px}
.jm-embed label{display:block;font-size:1em;font-weight:600;color:#555;margin-bottom:5px}
.jm-embed input,.jm-embed select{width:100%;height:39px;border:1px solid #dfe1e3;border-radius:4px;padding:0 9px;background:#fff;color:#333;font-size:1em}
.jm-embed input:focus,.jm-embed select:focus{outline:none;border-color:#b82105;box-shadow:0 0 0 2px rgba(184,33,5,.1)}
.jm-embed .jm-min{margin-top:13px;max-width:calc(33.333% - 8px)}
.jm-embed .jm-exclude{margin-top:14px;padding-top:12px;border-top:1px solid #eee}
.jm-embed .jm-checks{display:flex;flex-wrap:wrap;gap:10px 14px}
.jm-embed .jm-checks label{display:flex;align-items:center;gap:5px;margin:0;font-weight:400;cursor:pointer}
.jm-embed .jm-checks input{width:13px;height:13px;padding:0;accent-color:#b82105}
.jm-embed .jm-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-size:1em;color:#777}
.jm-embed .jm-btn{border:0;background:#b82105;color:#fff;border-radius:5px;padding:8px 11px;font-size:1em;cursor:pointer}
.jm-embed .jm-btn:hover{background:#8f1904}
.jm-embed .jm-meal{overflow:hidden;position:sticky;top:12px}
.jm-embed .jm-meal-head{padding:10px 13px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}
.jm-embed .jm-meal-head h3{font-size:1.1em;margin:0}
.jm-embed .jm-summary{padding:12px 13px}
.jm-embed .jm-summary-title{font-size:1em;color:#666;margin-bottom:7px}
.jm-embed .jm-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.jm-embed .jm-metric{text-align:center;background:#fafafa;border-radius:5px;padding:8px 3px;border-bottom:2px solid #ddd}
.jm-embed .jm-metric b{display:block;font-size:1em}.jm-metric span{font-size:.95em;color:#777}
.jm-embed .jm-items{max-height:180px;overflow:auto;border-top:1px solid #eee;border-bottom:1px solid #eee}
.jm-embed .jm-empty{text-align:center;padding:24px 10px;color:#777;font-size:1em}
.jm-embed .jm-item{padding:9px 12px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;gap:8px}
.jm-embed .jm-item:last-child{border-bottom:0}.jm-item strong{font-size:1em}.jm-item small{display:block;color:#777;font-size:.95em;margin-top:2px}
.jm-embed .jm-remove{border:0;background:#b82105;color:#fff;border-radius:3px;width:25px;height:23px;cursor:pointer}
.jm-embed .jm-foot{padding:10px 13px;color:#777;font-size:.95em}
.jm-embed .jm-table{margin-top:16px;padding:13px}
.jm-embed .jm-count{font-size:1em;color:#777;margin:0 0 9px}
.jm-embed .jm-scroll{overflow-x:auto}
.jm-embed table{width:100%;min-width:790px;border-collapse:collapse;font-size:1em}
.jm-embed th{text-align:left;color:#666;border-bottom:1px solid #ddd;padding:11px 8px;white-space:nowrap}
.jm-embed td{padding:11px 8px;border-bottom:1px solid #ececee;vertical-align:middle}
.jm-embed .jm-name{font-weight:700}.jm-sub{display:block;color:#b82105;font-size:.9em;margin-top:1px}
.jm-embed .jm-num{color:#b82105;font-weight:700}.jm-n{text-align:center;font-weight:700;white-space:nowrap}
.jm-embed .jm-controls{display:flex;gap:5px;flex-wrap:wrap}.jm-controls select{max-width:125px;height:33px;padding:0 5px;font-size:.95em}
.jm-embed .jm-add{display:flex;align-items:center;gap:5px;justify-content:flex-end}.jm-qty{width:44px!important;height:33px!important;text-align:center;padding:0!important}
.jm-embed .jm-add button{height:33px;border:0;border-radius:4px;background:#b82105;color:#fff;padding:0 10px;font-size:.95em;font-weight:700;cursor:pointer}
.jm-embed .jm-none{padding:28px;text-align:center;color:#777}
@media(max-width:820px){
.jm-embed .jm-grid{grid-template-columns:1fr;gap:14px}
.jm-embed .jm-meal{position:static;order:-1}
.jm-embed .jm-fields{grid-template-columns:1fr 1fr}
.jm-embed .jm-min{max-width:calc(50% - 6px)}
.jm-embed .jm-table{padding:12px 10px}
.jm-embed .jm-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.jm-embed table{min-width:790px}
.jm-embed .jm-controls select{min-height:40px}
.jm-embed .jm-add button,.jm-embed .jm-qty{min-height:40px}
}@media(max-width:520px){
.jm-embed{margin:14px auto;font-size:inherit}
.jm-embed .jm-fields{grid-template-columns:1fr}
.jm-embed .jm-min{max-width:none}
.jm-embed .jm-exclude{padding-top:14px}
.jm-embed .jm-checks{gap:10px 12px}
.jm-embed .jm-checks label{min-height:34px}
.jm-embed .jm-actions{align-items:stretch;flex-direction:column}
.jm-embed .jm-actions .jm-btn{width:100%;min-height:42px}
.jm-embed .jm-metrics{grid-template-columns:repeat(2,1fr)}
.jm-embed .jm-meal-head{padding:11px 12px}
.jm-embed .jm-meal-head .jm-btn{min-height:40px}
.jm-embed .jm-items{max-height:240px}
.jm-embed .jm-table{margin-top:12px}
.jm-embed th,.jm-embed td{padding:11px 8px}
.jm-embed .jm-controls{flex-direction:column;align-items:stretch}
.jm-embed .jm-controls select{max-width:none;width:100%;min-height:40px}
.jm-embed .jm-add{justify-content:flex-start}
.jm-embed .jm-add button{min-width:72px}
.jm-embed .jm-qty{min-height:40px}
}
.jm-embed button,
.jm-embed input,
.jm-embed select {
  font-size: inherit;
}
.jm-embed .jm-title { font-size: 1.15em; }
.jm-embed .jm-meal-head h3 { font-size: 1.1em; }
.jm-embed th,
.jm-embed td { font-size: 1em; }
.jm-embed label,
.jm-embed .jm-count,
.jm-embed .jm-showing,
.jm-embed .jm-foot,
.jm-embed .jm-summary-title { font-size: .9em; }

/* Mobile safety */
.jm-embed{width:100%;max-width:1100px;min-width:0;overflow:hidden}
.jm-embed .jm-grid,.jm-embed .jm-panel,.jm-embed .jm-table{min-width:0}
