/* EatsOne V7.146 — layered dependent option details within original product modal */
.product-modal .eatsone-layer-source-hidden-v7146{display:none!important}
.product-modal .eatsone-layer-trigger-v7146{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #e3c4a4;background:#fffaf3;border-radius:11px;padding:13px 14px;margin-top:15px;cursor:pointer;color:#674630}
.product-modal .eatsone-layer-trigger-v7146 span{flex:1;font-size:14px;font-weight:700}
.product-modal .eatsone-layer-trigger-v7146 em{font-style:normal;font-size:12px;color:#ab7855}
.product-modal .eatsone-layer-trigger-v7146 b{font-size:23px;font-weight:400;line-height:1}
.product-modal .eatsone-layer-trigger-v7146.is-complete-v7146{background:#f1f8ec;border-color:#cadcbd}
.product-modal .eatsone-layer-summary-v7146{font-size:12px;color:#738362;line-height:1.6;padding:0 5px;margin:5px 0 0}
/* V7.146.2: retain the existing modal-card absolute/fixed positioning from style.css.
   Using position:relative here moves the desktop dialog off-screen (x < 0).
   The second-stage chooser remains absolutely positioned relative to the positioned card. */
.product-modal .eatsone-layer-screen-v7146{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;background:#fffcf8;border-radius:inherit;overflow:hidden;color:#2c2925}
.product-modal .eatsone-layer-screen-v7146[hidden]{display:none!important}
.product-modal .eatsone-layer-head-v7146{display:flex;align-items:center;gap:12px;flex:none;background:#fdf5eb;border-bottom:1px solid #ecdfd0;padding:20px 18px 14px}
.product-modal .eatsone-layer-head-v7146 button{background:none;border:0;color:#9d6543;font-size:28px;cursor:pointer;padding:5px 12px 5px 0}
.product-modal .eatsone-layer-head-v7146>div{display:grid;gap:4px;flex:1}
.product-modal .eatsone-layer-head-v7146 small{color:#b07c57;font-size:11px;letter-spacing:.08em}
.product-modal .eatsone-layer-head-v7146 strong{font-size:21px}
.product-modal .eatsone-layer-head-v7146>span{font-size:11px;color:#a38d7e}
.product-modal .eatsone-layer-scroll-v7146{flex:1;min-height:0;overflow:auto;padding:20px}
.product-modal .eatsone-layer-progress-v7146{padding:12px;background:#fff0dc;color:#93542d;border-radius:10px;text-align:center;font-weight:700;font-size:13px;margin-bottom:15px}
.product-modal .eatsone-layer-progress-v7146.is-complete-v7146{background:#edf6e9;color:#35683d}
.product-modal .eatsone-layer-item-v7146{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:16px 2px;border-bottom:1px solid #eee6dd}
.product-modal .eatsone-layer-item-v7146 b{font-size:15px;display:block}
.product-modal .eatsone-layer-item-v7146 small{font-size:12px;color:#987b63;display:block;margin-top:5px}
.product-modal .eatsone-layer-item-v7146.is-unavailable-v7146{opacity:.46}
.product-modal .eatsone-layer-stepper-v7146{display:flex;align-items:center;gap:12px;flex:none}
.product-modal .eatsone-layer-stepper-v7146 button{background:white;border:1px solid #c7a992;border-radius:9px;color:#a15d37;width:36px;height:36px;cursor:pointer;font-size:21px}
.product-modal .eatsone-layer-stepper-v7146 button:disabled{opacity:.25;cursor:not-allowed}
.product-modal .eatsone-layer-stepper-v7146 span{font-size:17px;font-weight:700;min-width:20px;text-align:center}
.product-modal .eatsone-layer-actions-v7146{flex:none;background:#fffbf6;padding:14px 20px 18px;border-top:1px solid #eadccd}
.product-modal .eatsone-layer-actions-v7146 p{text-align:center;font-size:12px;color:#a76c48;min-height:18px;margin:0 0 10px}
.product-modal .eatsone-layer-actions-v7146 button{width:100%;background:#964e32;border:0;color:white;border-radius:10px;padding:14px;cursor:pointer;font-size:15px;font-weight:700}
.product-modal .eatsone-layer-actions-v7146 button:disabled{background:#c5b4a5;cursor:not-allowed}
.product-modal .eatsone-layer-empty-v7146{color:#8d7d6d;padding:30px 15px;text-align:center}
@media(max-width:760px){.product-modal .eatsone-layer-screen-v7146{border-radius:0}.product-modal .eatsone-layer-head-v7146{padding-top:25px}}

/* V7.146.1: legacy independent quantity allocation gets its own second-stage chooser.
   Keep underlying inputs in the DOM for existing price, inventory and cart validation. */
.product-modal .eatsone-layer-standalone-v7147 > h3,
.product-modal .eatsone-layer-standalone-v7147 > .option-group-description-v314,
.product-modal .eatsone-layer-standalone-v7147 > .option-group-instruction-v314,
.product-modal .eatsone-layer-standalone-v7147 > .option-list {display:none!important;}
.product-modal .eatsone-layer-standalone-v7147{padding-top:4px;}

/* SAG V7.150: second layer can be radio or checkbox, not only quantity. */
.eatsone-layer-option-v7150{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:1px solid #e5d4c2;border-radius:11px;padding:14px 12px;margin:9px 0;cursor:pointer;color:#332c24;font-weight:600}
.eatsone-layer-option-v7150.is-selected{background:#fff8ed;border-color:#b77b47;box-shadow:0 0 0 1px #b77b47}
.eatsone-layer-option-v7150:disabled{opacity:.35;cursor:not-allowed}

/* =======================================================
   V7.158.5 – second-level dependent chooser UI
   Short groups must not leave a full-screen blank column.
   Keep first-level option inputs, price and cart logic intact.
   ======================================================= */
.product-modal .eatsone-layer-screen-v7146{
  inset:0;
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px;
  border-radius:0;
  background:rgba(40,27,20,.43);
  overflow:hidden;
}
.product-modal .eatsone-layer-panel-v71585{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  max-width:492px;
  max-height:100%;
  overflow:hidden;
  background:#fffcf8;
  border:1px solid #eadbcd;
  border-radius:17px;
  box-shadow:0 16px 45px rgba(48,29,15,.22);
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-head-v7146{
  padding:16px 19px 13px;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-scroll-v7146{
  flex:0 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  padding:16px 20px 12px;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-progress-v7146{
  margin-bottom:14px;
  border-radius:10px;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-option-v7150{
  min-height:56px;
  margin:0 0 10px;
  padding:12px 14px;
  font:inherit;
  font-size:15px;
  font-weight:600;
  color:#352923;
  border-radius:12px;
  transition:background-color .15s,border-color .15s;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-option-v7150:last-child{margin-bottom:0;}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-option-v7150.is-selected{
  background:#fff4e9;
  border-color:#a75d35;
  box-shadow:inset 0 0 0 1px #a75d35;
}
.product-modal .eatsone-layer-option-label-v71585{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1;
  text-align:left;
}
.product-modal .eatsone-layer-option-label-v71585 > span:last-child{
  overflow-wrap:anywhere;
}
.product-modal .eatsone-layer-indicator-v71585{
  flex:0 0 20px;
  width:20px;
  height:20px;
  box-sizing:border-box;
  position:relative;
  border:2px solid #c8a58e;
  border-radius:5px;
  background:#fff;
}
.product-modal .eatsone-layer-indicator-v71585.is-radio{border-radius:50%;}
.product-modal .eatsone-layer-option-v7150.is-selected .eatsone-layer-indicator-v71585{
  border-color:#a75d35;
}
.product-modal .eatsone-layer-option-v7150.is-selected .eatsone-layer-indicator-v71585.is-radio::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:50%;
  background:#a75d35;
}
.product-modal .eatsone-layer-option-v7150.is-selected .eatsone-layer-indicator-v71585.is-checkbox{
  background:#a75d35;
}
.product-modal .eatsone-layer-option-v7150.is-selected .eatsone-layer-indicator-v71585.is-checkbox::after{
  content:"";
  position:absolute;
  left:5px;
  top:1px;
  width:5px;
  height:10px;
  border:solid white;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-actions-v7146{
  padding:12px 20px 18px;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-actions-v7146 p{
  margin-bottom:9px;
  min-height:0;
  line-height:1.5;
}
.product-modal .eatsone-layer-panel-v71585 .eatsone-layer-actions-v7146 button{
  min-height:50px;
}
.product-modal .eatsone-layer-panel-v71585 button:focus-visible{
  outline:3px solid #bd815e;
  outline-offset:2px;
}
/* The first-level modal's global close button must not float over step two. */
.product-modal.eatsone-layer-open-v7146 > .modal-close{display:none!important;}
@media(max-width:760px){
  .product-modal .eatsone-layer-screen-v7146{
    align-items:flex-end;
    justify-content:flex-end;
    padding:0;
  }
  .product-modal .eatsone-layer-panel-v71585{
    width:100%;
    max-width:none;
    max-height:calc(100% - 12px);
    border-radius:20px 20px 0 0;
    border-bottom:0;
  }
  .product-modal .eatsone-layer-panel-v71585 .eatsone-layer-head-v7146{
    padding:18px 18px 12px;
  }
  .product-modal .eatsone-layer-panel-v71585 .eatsone-layer-scroll-v7146{
    padding:16px 18px 10px;
  }
  .product-modal .eatsone-layer-panel-v71585 .eatsone-layer-actions-v7146{
    padding:12px 18px calc(16px + env(safe-area-inset-bottom,0px));
  }
}

/* V7.158.6: first + second stage summary stays inside one obvious selection card. */
.product-modal .eatsone-layer-trigger-v7146{
  min-height:54px;
  gap:10px;
  padding:14px 15px;
  align-items:center;
}
.product-modal .eatsone-layer-trigger-v7146 [data-layer-title-v71586]{
  flex:1 1 auto;
  min-width:0;
  font-size:16px;
  font-weight:750;
  line-height:1.5;
  color:#543a2b;
  overflow-wrap:anywhere;
}
.product-modal .eatsone-layer-trigger-v7146.is-complete-v7146{
  background:#edf7e9;
  border-color:#95bd88;
  box-shadow:inset 0 0 0 1px #d2e7c9;
}
.product-modal .eatsone-layer-trigger-v7146.is-complete-v7146 [data-layer-title-v71586]{color:#295f36;}
.product-modal .eatsone-layer-trigger-v7146 [data-layer-count-v7146]{
  flex:0 0 auto;
  white-space:nowrap;
  font-size:12px;
}
.product-modal .eatsone-layer-trigger-v7146.is-complete-v7146 [data-layer-count-v7146]{color:#306c3e;font-weight:700;}
.product-modal .eatsone-layer-summary-v7146:empty{display:none!important;}
@media(max-width:420px){
  .product-modal .eatsone-layer-trigger-v7146 [data-layer-title-v71586]{font-size:15px;}
  .product-modal .eatsone-layer-trigger-v7146{gap:7px;padding:12px;}
}
