/* RESTAURANT MENUS CSS */
    .mw-ps-menus-layout{
      display:grid;
      grid-template-columns: 320px 1fr;
      gap:14px;
      align-items:start;
      margin-top: 10px;
    }
    @media (max-width: 900px){
      .mw-ps-menus-layout{ grid-template-columns: 1fr; }
    }

    .mw-ps-menus-left{
      border:1px solid rgba(0,0,0,.08);
      border-radius:14px;
      background:#fff;
      padding:12px;
      position:sticky;
      top:10px;
      max-height: calc(100vh - 140px);
      overflow:auto;
    }
    @media (max-width: 900px){
      .mw-ps-menus-left{ position:relative; max-height:none; }
    }

    .mw-ps-menus-left-head{
      display:flex;
      gap:10px;
      align-items:center;
      justify-content:space-between;
      margin-bottom:10px;
    }
    .mw-ps-menus-title{ font-weight:800; }

    .mw-ps-menus-list{ display:flex; flex-direction:column; gap:8px; }

    .mw-ps-menu-item{
width: 100%;
    text-align: left;
    padding: 10px;
    border-radius: 0;
    border-bottom: solid 1px #ebeced;
    background: #ffffff;
    cursor: pointer;
    color: #494953;
    }
  .mw-ps-menu-item:hover {
background: linear-gradient(145deg, #f5f8fc, #ffffff);
    color: #2f87ff !important;
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    transition: color 0.5s 
ease, box-shadow 0.5s 
ease, border 2s 
ease;
    border-radius: 10px;
}
    .mw-ps-menu-item.is-active{
border: solid 1px #2f88ff;
		border-radius: 10px;
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    background: linear-gradient(145deg, #f5f8fc, #ffffff);
    }
  .mw-ps-menu-item-name {
    font-weight: 500;
    font-size: 14px;
}
    .mw-ps-menu-item-meta{ font-size:12px; opacity:.75; margin-top:2px; }

    .mw-ps-menus-right{ min-width:0; }
    .mw-ps-menus-preview .mw-menu-card{ margin:0; } /* prevent double spacing */




 /* PeepSo menus layout */
      .mw-ps-menu-row{display:flex;gap:8px;align-items:stretch}

.mw-ps-menu-edit {
font-size: 14px;
	color: #92919e;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #ffffff;
    text-decoration: none;
}

.mw-ps-menu-edit:hover{background:#f2f2f2}

      .mw-ps-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
		  gap: 6px;
}

button.mw-ps-menu-del {
    background-color: #ffffff;
	color: #92919e;
    border-radius: 5px;
    padding: 7px 15px;
    font-size: 14px;
}

button.mw-ps-menu-del:hover {
    background-color: #f8d7da;
	color: #721c24;
    
}


/* ===== Create/Edit two-column layout ===== */
.mw-menu-editor-grid{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:16px;
  align-items:start;
}

@media (max-width: 980px){
  .mw-menu-editor-grid{ grid-template-columns: 1fr; }
  .mw-menu-editor-left{ position: static; top:auto; }
}

.mw-menu-editor-left{
  position: sticky;
  top: 18px;
}

.mw-menu-editor-card{
  border-radius: 16px;
}

.mw-menu-editor-actions{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mw-menu-save-btn{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
}

/* ===== Builder UX ===== */
.mw-menu-builder-top{
display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    background: #ffffff;
    border: solid 1px #e3e7eb;
    border-radius: 10px;
}

.mw-menu-builder-stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Section card */
.mw-sec{
  border-radius:16px;
  background:#f5f8fc;
  overflow:hidden;
}

.mw-sec-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: solid 1px #e2e6eb;
    margin-bottom: 10px;
}

.mw-sec-toggle{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-weight:800;
}

.mw-sec-drag{
  width:22px;
  text-align:center;
  opacity:.65;
  cursor:grab;
  user-select:none;
  font-weight:900;
}

.mw-sec-title{
  flex:1;
  min-width: 140px;
}

.mw-sec-remove{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}

.mw-sec-body{
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mw-sec.is-collapsed .mw-sec-body{
  display:none;
}

.mw-sec.is-collapsed .mw-sec-toggle{
  transform: rotate(-90deg);
}

/* Banner row */
.mw-sec-banner-row{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Items */
.mw-items{
display: grid;
    grid-template-columns: 1fr 1fr;
  gap:10px;
}

.mw-item{
  border:1px dashed rgba(0,0,0,.14);
  border-radius:14px;
  padding:10px;
  background:#fff;
}

.mw-item-head{
display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: column;
}

@media (max-width: 720px){
  .mw-item-head{
    grid-template-columns: 24px 1fr;
  }
  .mw-item-head .mw-price{ width:100%; }
}

.mw-item-drag{
  opacity:.65;
  cursor:grab;
  user-select:none;
  font-weight:900;
  text-align:center;
}

.mw-item-remove{
    width: 100%;
    background: rgba(255, 0, 0, .06);
    border: solid 1px rgba(255, 0, 0, .18);
    color: #721c24;
    border-radius: 10px;
    margin-top: 16px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 500;
}

/* Drag feedback */
.is-dragging{
  opacity:.6;
  outline:2px solid rgba(0,0,0,.10);
}


 .mw-menu-section-banner{    
	 border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    margin-bottom: 10px;
    aspect-ratio: 16 / 9;}

      .mw-menu-section-banner img{display:block;width:100%;height:auto}


.mw-menu-editor-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.mw-menu-editor-grid{
  display:grid;
  gap:16px;
}
@media(min-width:1000px){
  .mw-menu-editor-grid{ grid-template-columns: 360px 1fr; align-items:start; }
  .mw-menu-editor-left{ position: sticky; top: 90px; }
}

.mw-menu-builder-stack .mw-menu-box{
  background: #fff;
}
.mw-menu-items .mw-menu-box{
  border-style:dashed;
  background: rgba(0,0,0,.015);
}
/* === Modern Menu Builder UI === */
.mw-menu-editor-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
@media(min-width: 980px){
  .mw-menu-editor-grid{
    grid-template-columns: 360px 1fr;
    align-items:start;
  }
}

/* Right side spacing */
.mw-menu-editor-right .mw-menu-editor-card{ 
	padding:0; 
}

.mw-sec.is-collapsed .mw-sec-body{ display:none; }

/* Section header */

.mw-sec-toggle{
  width:34px;height:34px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
}
.mw-sec-title{
  flex:1;
  min-width: 0;
}
.mw-sec-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.mw-sec-remove{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:700;
}
.mw-sec-remove:hover{ background:rgba(255,0,0,.06); border-color:rgba(255,0,0,.18); }

/* Banner row */
.mw-sec-banner-row{
display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #e2e6eb;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #ffffff;
}

/* Items */
.mw-item{
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
  padding:10px;
  background:#fff;
}

@media(max-width: 560px){
  .mw-item-head{ grid-template-columns: 1fr; }
}

.mw-item-remove:hover{ background:rgba(255,0,0,.06); border-color:rgba(255,0,0,.18); }

.mw-item-desc-wrap{ margin-top:8px; }

.mw-item-desc-toggle{
width: 100%;
    background: transparent;
    color: #747474;
    border: solid 1px #d9d9d9;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    opacity: .8;
}

.mw-item.is-desc-collapsed .mw-item-desc-wrap textarea{ display:none; }


.mw-menu-editor-card-title {
	font-size: 140%;
    font-weight: 500;
    color: #494953;
}

/* === Builder shell with sidebar nav === */
.mw-builder-shell{
  display:flex;
	flex-direction: column;
    align-items: stretch;
}
@media(max-width: 980px){
  .mw-builder-shell{ grid-template-columns: 1fr; }
}

.mw-nav-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
	flex-direction: row-reverse;
}



/* Sidebar */
.mw-builder-nav{
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  background:#ffffff;
  padding:10px;
  position:sticky;
  top:12px;
  height: fit-content;
}
.mw-builder-nav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.mw-builder-nav-title {
    font-weight: 500;
    font-size: 16px;
}

.mw-builder-nav-add{
 border: 1px solid #e2e6eb;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #2f87ff;
}
.mw-builder-nav-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 56vh;
  overflow:auto;
  padding-right:4px;
}
.mw-nav-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
    background: #f5f8fc;
    text-decoration: none;
    color: #9191a0 !important;
    font-size: 14px;
    font-weight: 500;
	flex: 1;
}
.mw-nav-sec:hover{ 
background: linear-gradient(145deg, #f5f8fc, #ffffff);
    color: #2f87ff !important;
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    transition: color 1.5s 
ease, box-shadow 0.5s 
ease, border 2s 
ease;
}
.mw-nav-sec.is-active{
border-color: rgb(47 136 255);
}
.mw-nav-sec-title{
font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 275px;
}
.mw-nav-sec-meta{
  font-size:12px;
  opacity:.7;
  white-space:nowrap;
}


/* Item cards: stronger separation */
.mw-item{
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.mw-item + .mw-item{
  border-top:1px solid rgba(0,0,0,.06);
}
.mw-item-head input{
  font-weight:500;
}
.mw-menu-section {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(145deg, #f5f8fc, #ffffff);
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    border-radius: 10px;
	border: solid 1px #f5f8fc;
}

.mw-menu-section:hover {
    background: linear-gradient(310deg, #f5f8fc, #ffffff);
    border-color: #e3e6eb;
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    transition: color 0.5s 
ease, box-shadow 0.5s 
ease, border 1s 
ease, linear-gradient 4s 
ease;
}

      .mw-menu-section h3{
		  text-align:center;
		  margin:10px 0;
}

.mw-menu-item-name {
    font-weight: 500;
    font-size: 16px;
	padding-bottom: 10px;
}

.mw-menu-price {
    white-space: nowrap;
    font-weight: 400;
    font-size: 15px;
}

.mw-menu-item-desc {
color: #494953;
    padding-bottom: 10px;
    font-size: 14px;
}


.mw-menu-card {
    border: none;
    border-radius: 14px;
    padding: 0;
    background: transparent;
}




.mw-menu-card-header {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    border: solid 1px #e3e6eb;
    position: sticky;
    top: 11px;
	z-index: 9;
	display: flex;
    flex-direction: column;
    align-items: center;
}

.mw-menu-small-wrapper {
    display: flex;
    gap: 10px;
	flex-direction: column;
    align-items: center;
}
.mw-menu-small {
    color: #494953;
	font-size:13px;
	opacity:.75
}

h2.mw-menu-preview-title {
    margin-bottom: 6px;
	font-weight: 500;
}


.mw-menu-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}



      .mw-menu-row{
		  display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-direction: row;
}
      .mw-menu-row > *{
		  flex:1;
		  }

      .mw-menu-label{display:block;font-size:13px;opacity:.75;margin:8px 0 6px}
      .mw-menu-input, .mw-menu-select, .mw-menu-textarea{width:100%;padding:10px 12px;border:1px solid rgba(0,0,0,.15);border-radius:10px}

.mw-menu-textarea {
    min-height: 90px;
    margin-top: 10px;
	font-size: 16px;
}
.mw-menu-btn{display:inline-block;padding:10px 14px;border-radius:12px;border:0;cursor:pointer;background:#111;color:#fff;font-weight:600}

.mw-menu-btn.secondary {
    color: #2f88ff;
    border: 1px solid #e2e6eb;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.mw-menu-btn.secondary:hover {
background-color: var(--bg--hover);
}






.mw-menu-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .12);
    align-items: center;
}

.mw-menu-item:last-child{border-bottom:0}
      .mw-menu-tags{margin-top:6px;font-size:12px;opacity:.75}
      .mw-menu-error{padding:10px 12px;border-radius:12px;background:#fff3f3;border:1px solid rgba(255,0,0,.2);margin:12px 0}
      .mw-menu-success{padding:10px 12px;border-radius:12px;background:#f2fff3;border:1px solid rgba(0,128,0,.2);margin:12px 0}
      .mw-menu-builder-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;align-items:center}
      .mw-menu-builder-grid{display:grid;grid-template-columns:1fr;gap:12px}
      @media(min-width:900px){.mw-menu-builder-grid{grid-template-columns:1fr 1fr}}
      .mw-menu-box{border:1px solid rgba(0,0,0,.10);border-radius:14px;padding:12px}




.mw-menu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mw-menu-badge {
display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgb(234 236 240);
    color: #76767e;
}

/* Item meta checklists (Allergens / Other info) */

.mw-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 8px;
}

.mw-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.02);
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.mw-check input {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.mw-item-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mw-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}



/* =========================
   MW Menu Meta Picker UI
   (Allergens / Other info)
========================= */

.mw-menu-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
}

.mw-menu-meta-cell.mw-menu-meta-label {
  font-weight: 700;
  font-size: 13px;
  opacity: 0.85;
  padding-top: 10px;
}

.mw-menu-meta-control {
  position: relative;
}

.mw-menu-meta-search-wrap {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  user-select: none;
}

.mw-menu-meta-selected {
  font-size: 13px;
  font-weight: 600;
}

.mw-menu-meta-placeholder {
  font-size: 13px;
  opacity: 0.6;
}

.mw-menu-meta-values {
display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: -110px;
    right: 0px;
    z-index: 9999;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 250px;
    overflow: auto;
}

.mw-menu-meta-row.is-open .mw-menu-meta-values {
  display: block;
}

.mw-menu-meta-search-input-wrap {
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.mw-menu-meta-search {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
}

.mw-menu-meta-pill {
display: inline-block;
    color: #91919e;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.mw-menu-meta-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}



.mw-menu-meta-pill.is-selected {
  border-color: rgba(0,0,0,0.35);
  font-weight: 700;
}

.mw-menu-meta-hidden {
  display: none;
}

a.mw-menu-author-hit {
    display: flex;
    align-items: center;
    gap: 10px;
}


.mw-menu-author{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.mw-menu-author-avatar img{
  width:48px;
  height:48px;
  border-radius:999px;
  display:block;
}

.mw-menu-author-name{
    font-weight: 500;
    line-height: 1;
    font-size: 16px;
	color: #7f7f85;
}


.mw-menu-author-name:hover{
	color: #2f88ff;
}




.mw-menu-author-link{
  font-size:12px;
  opacity:.8;
  text-decoration:none;
}

.mw-menu-author-link:hover{
  opacity:1;
  text-decoration:underline;
}

.mw-menu-directory-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:16px;
  margin-top:14px;
}

.mw-menu-directory-item{
  width:100%;
  text-align:left;
  background:transparent;
	color: #494953;
  border:0;
  padding:0;
  cursor:pointer;
}

.mw-menu-directory-row{
border: 1px solid #e2e6eb;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

.mw-menu-directory-row:hover {
    background: linear-gradient(145deg, #f5f8fc, #ffffff);
    color: #2f87ff !important;
    box-shadow: 0px 0px 10px 0px #e2e6eb;
    transition: color 1.5s 
ease, box-shadow 0.5s 
ease, border 2s 
ease;
}

.mw-menu-directory-item.is-active .mw-menu-directory-title{
	color: #2f88ff;
}

.mw-menu-directory-title {
    font-weight: 400;
    font-size: 18px;
}


.mw-menu-directory-list {
    display: flex;
    gap: 10px;
    flex-direction: column;
}