/* OWDEX Food R7 UX2. Incremental fixes to R7, last after historical styles. */
/* R7 UX2 - deliberate visual fixes confirmed from actual production screenshots. */
body.owdex-r7 #app .marketplace-page .marketplace-welcome{
  position:relative!important;isolation:isolate;overflow:hidden!important;
  background:#fff!important;border:1px solid #e1e6ee!important;
  box-shadow:0 2px 8px rgba(21,42,67,.045)!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-welcome>div:first-child{
  position:relative!important;inset:auto!important;transform:none!important;translate:none!important;
  clip-path:none!important;min-height:0!important;padding:0!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-kicker{
  display:block!important;padding:0!important;margin:0 0 12px!important;line-height:1.35!important;
  position:static!important;transform:none!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-welcome h1{max-width:none!important;margin:0 0 10px!important;}
body.owdex-r7 #app .marketplace-page .marketplace-welcome .food-home-actions{margin-top:20px!important;}
body.owdex-r7 #app .marketplace-page .marketplace-grid>*{
  border:1px solid #e1e6ed!important;box-shadow:0 1px 4px rgba(13,37,64,.045)!important;
}
body.owdex-r7 #app .shop-intro .food-r7-store-head{
  min-height:176px!important;overflow:hidden!important;display:flex!important;
  gap:18px!important;align-items:center!important;position:relative!important;
}
body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-store-copy{
  position:relative!important;z-index:2!important;min-width:0!important;
}
body.owdex-r7 #app .shop-intro .food-r7-store-head.has-cover :is(h1,p,.food-r7-kicker){
  color:#fff!important;text-shadow:0 1px 4px rgba(0,0,0,.35)!important;
}
body.owdex-r7 #app .shop-intro .food-r7-store-head h1{margin:4px 0 7px!important;line-height:1.19!important;}
body.owdex-r7 #app .shop-intro .food-r7-store-head p{margin:0!important;opacity:.95;}
body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-kicker{display:block!important;line-height:1.5!important;}
body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-jump{position:relative;z-index:2;flex:none;margin-left:auto;}
body.owdex-r7 #app .ow-r7-availability.shop-availability{
  display:flex!important;align-items:center!important;gap:10px 20px!important;
  min-height:52px!important;margin:0 0 22px!important;padding:11px 17px!important;
  border:1px solid #e1e6ed!important;border-top:0!important;
  background:#fff!important;box-shadow:none!important;
}
body.owdex-r7 #app .ow-r7-availability .ow-r7-availability-main{display:flex!important;flex:1 1 320px!important;align-items:center!important;gap:7px 12px!important;}
/* The R6 generic `.shop-availability span {flex:1 1 380px}` stretched the green dot across 400 px. */
body.owdex-r7 #app .ow-r7-availability .ow-r7-status-dot{
  display:inline-block!important;width:8px!important;height:8px!important;
  min-width:8px!important;min-height:8px!important;max-width:8px!important;
  flex:0 0 8px!important;border-radius:50%!important;
}
body.owdex-r7 #app .ow-r7-availability .ow-r7-status-description{
  display:inline!important;flex:0 1 auto!important;min-width:0!important;width:auto!important;
  color:#607081!important;
}
body.owdex-r7 #app .ow-r7-hours-details{flex:0 0 auto!important;min-width:0!important;}
body.owdex-r7 #app .ow-r7-hours-popover{width:min(370px,calc(100vw - 36px))!important;padding:18px!important;}
body.owdex-r7 #app .ow-r7-hours-popover .ow-r7-hours-list{margin:0!important;padding:0!important;list-style:none!important;}
body.owdex-r7 #app .ow-r7-hours-popover .ow-r7-hours-list li{
  display:grid!important;grid-template-columns:44px 1fr!important;gap:12px!important;
  padding:6px 0!important;border-bottom:1px solid #f0f2f5!important;
  line-height:1.4!important;align-items:center!important;
}
body.owdex-r7 #app .ow-r7-hours-popover .ow-r7-hours-list li:last-child{border-bottom:0!important;}
body.owdex-r7 #app .ow-r7-hours-popover .ow-r7-hours-list li strong{
  white-space:nowrap!important;text-align:right!important;font-variant-numeric:tabular-nums!important;
}
body.owdex-r7 #app .shop-intro .section-heading{margin:10px 0 15px!important;align-items:center!important;gap:15px!important;}
body.owdex-r7 #app .shop-intro .search-wrap{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;padding:4px 10px!important;max-width:340px!important;}
body.owdex-r7 #app .shop-intro .search-wrap input{width:100%!important;min-width:0!important;border:0!important;padding:8px 2px!important;outline-offset:0!important;}
body.owdex-r7 #app .shop-intro .food-r7-categories{position:relative!important;min-width:0!important;}
body.owdex-r7 #app .shop-intro .food-r7-category-hint{pointer-events:none!important;opacity:.45!important;}
body.owdex-r7 #app .dialog{border-radius:10px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;}
body.owdex-r7 #app .dialog .dialog-art{background:#f5f7fa!important;}
body.owdex-r7 #app .dialog .dialog-body{padding:clamp(17px,2.4vw,25px)!important;}
body.owdex-r7 #app .dialog .dialog-body h2{font-size:clamp(22px,2.6vw,28px)!important;margin:0 0 8px!important;}
body.owdex-r7 #app .dialog .dialog-body>p{line-height:1.55!important;color:#657285!important;}
body.owdex-r7 #app .dialog .qty-control{border-radius:6px!important;}
body.owdex-r7 #app .dialog .qty-control button:disabled{opacity:.35!important;cursor:not-allowed!important;}
body.owdex-r7 #app .admin-shell>.admin-main,
body.owdex-r7 #app .admin-shell .admin-main{
  margin-block:0!important;margin-inline:auto!important;align-self:start!important;
  padding-top:18px!important;min-height:0!important;
}
body.owdex-r7 #app .admin-shell .admin-top{margin:0 0 15px!important;}
body.owdex-r7 #app .admin-shell .admin-top h1{line-height:1.2!important;}
body.owdex-r7 #app .admin-shell .food-master-section-heading{margin-top:0!important;margin-bottom:13px!important;}
body.owdex-r7 #app .admin-shell .food-master-section-heading h2{margin:7px 0 0!important;}
body.owdex-r7 #app .admin-shell :where(.admin-card,.feature-panel,.ops-card,.metric){overflow-wrap:break-word;}
body.owdex-r7 #app .admin-shell .admin-card{max-width:100%!important;}
@media(max-width:750px){
 body.owdex-r7 #app .shop-intro .food-r7-store-head{flex-wrap:wrap!important;align-items:flex-end!important;min-height:190px!important;}
 body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-jump{margin-left:0!important;}
 body.owdex-r7 #app .ow-r7-availability .ow-r7-availability-main{flex-basis:100%!important;}
 body.owdex-r7 #app .shop-intro .section-heading{align-items:stretch!important;}
 body.owdex-r7 #app .shop-intro .search-wrap{max-width:none!important;width:100%!important;}
 body.owdex-r7 #app .admin-shell .admin-main{padding-top:13px!important;}
}

.catalog-reuse {
  margin-block: 12px;
}
.catalog-reuse summary {
  cursor: pointer;
  font-weight: 600;
}
.catalog-reuse-items {
  display: grid;
  gap: 8px;
  margin-block: 10px;
}
.catalog-reuse-items label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.catalog-reuse-items small {
  display: block;
  overflow-wrap: anywhere;
}


.catalog-custom .catalog-group-picker {
  min-width: 0;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--r7-line, #dce3e9);
}
.catalog-group-picker legend {
  padding: 0 10px 0 0;
  font-size: 14px;
  font-weight: 650;
}
.catalog-group-checks {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.catalog-group-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--r7-line, #dce3e9);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.catalog-group-check:has(input:checked) {
  border-color: #a6c3e6;
  background: #f2f7ff;
}
.catalog-group-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--r7-blue, #1764c0);
}
.catalog-group-check strong,
.catalog-group-check small {
  display: block;
  overflow-wrap: anywhere;
}
.catalog-group-check small {
  margin-top: 3px;
  color: var(--r7-muted, #526377);
  line-height: 1.5;
}
.catalog-group-empty {
  margin: 0 0 12px;
}

.catalog-existing-addons .catalog-group-checks {
  margin-top: 10px;
}
