/* Edit in place (stage 4). WEBSITE ONLY: every rule sits under html.web-shell main.wsp.is-editing (a page only the website's owner gets). */
html.web-shell main.wsp.is-editing .wse-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 16px;padding:10px 14px;border-radius:14px;background:var(--ws-brand-soft);border:1px solid #f0d8c6}
html.web-shell main.wsp.is-editing .wse-bar-t{display:grid;gap:1px;margin-right:auto;font:600 13.5px 'Archivo',var(--sans);color:var(--ws-ink2)}
html.web-shell main.wsp.is-editing .wse-bar-t b{font:800 16px 'Archivo',var(--sans);color:var(--ws-ink)}
html.web-shell main.wsp.is-editing .wse-view{display:inline-flex;align-items:center;gap:8px;font:700 14px 'Archivo',var(--sans);cursor:pointer}
html.web-shell main.wsp.is-editing .wse-view input{position:absolute;opacity:0}
html.web-shell main.wsp.is-editing .wse-track{width:38px;height:22px;border-radius:999px;background:#cdbfae;position:relative;transition:background .15s}
html.web-shell main.wsp.is-editing .wse-track:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}
html.web-shell main.wsp.is-editing .wse-view input:checked+.wse-track{background:var(--ws-open)}
html.web-shell main.wsp.is-editing .wse-view input:checked+.wse-track:after{transform:translateX(16px)}
html.web-shell main.wsp.is-editing .wse-view input:focus-visible+.wse-track{outline:2px solid var(--ws-ink);outline-offset:2px}

/* regions: an outline and a small pencil on hover (always on a phone) */
html.web-shell main.wsp.is-editing .wse-r{position:relative;border-radius:12px;transition:outline-color .12s}
html.web-shell main.wsp.is-editing .wse-r:hover{outline:2px dashed var(--ws-brand);outline-offset:4px}
html.web-shell main.wsp.is-editing .wse-pen{position:absolute;top:-10px;right:-10px;z-index:4;width:32px;height:32px;border-radius:50%;border:1px solid var(--ws-line2);background:var(--ws-surface);color:var(--ws-brand-ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px #2d231d26;opacity:0;transition:opacity .12s}
html.web-shell main.wsp.is-editing .wse-pen svg{width:16px;height:16px}
html.web-shell main.wsp.is-editing .wse-r:hover>.wse-pen,html.web-shell main.wsp.is-editing .wse-pen:focus-visible{opacity:1}
@media(hover:none),(max-width:760px){html.web-shell main.wsp.is-editing .wse-pen{opacity:1;top:-8px;right:-4px}}
html.web-shell main.wsp.is-editing .wsp-cover-edit,html.web-shell main.wsp.is-editing .wsp-logo-cam{opacity:1!important;visibility:visible!important}
html.web-shell main.wsp.is-editing .wse-textblock{padding:2px 0}

/* empty parts: a soft dashed placeholder, not a checklist */
html.web-shell main.wsp.is-editing .wse-ph{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin:6px 0;border:2px dashed #d8c6b3;border-radius:14px;background:#fbf6ee;color:var(--ws-ink2);font:700 15px 'Archivo',var(--sans);cursor:pointer}
html.web-shell main.wsp.is-editing .wse-ph span{font-size:20px;color:var(--ws-brand)}
html.web-shell main.wsp.is-editing .wse-ph:hover{border-color:var(--ws-brand);color:var(--ws-brand-ink)}
html.web-shell main.wsp.is-editing .wse-slot{outline:0!important}
html.web-shell main.wsp.is-editing .wse-addtile{display:grid;place-items:center;align-content:center;gap:4px;min-height:96px;border:2px dashed #d8c6b3;border-radius:14px;background:#fbf6ee;color:var(--ws-ink2);font:700 14px 'Archivo',var(--sans);cursor:pointer}
html.web-shell main.wsp.is-editing .wse-addtile span{font-size:24px;color:var(--ws-brand);line-height:1}
html.web-shell main.wsp.is-editing .wse-additem{grid-column:1/-1;min-height:64px}
html.web-shell main.wsp.is-editing .wsp-ph-grid .wse-addtile{aspect-ratio:1}

/* the menu item: Edit on the card, the inline editor in its place */
html.web-shell main.wsp.is-editing .wse-itemedit{position:absolute;right:10px;bottom:10px;z-index:3;height:32px;padding:0 14px;border-radius:999px;border:1px solid var(--ws-line2);background:var(--ws-surface);font:700 13px 'Archivo',var(--sans);color:var(--ws-brand-ink);cursor:pointer;opacity:0;transition:opacity .12s}
html.web-shell main.wsp.is-editing .wsp-mcard:hover .wse-itemedit,html.web-shell main.wsp.is-editing .wse-itemedit:focus-visible{opacity:1}
@media(hover:none),(max-width:760px){html.web-shell main.wsp.is-editing .wse-itemedit{opacity:1}}
html.web-shell main.wsp.is-editing .wse-item-ed{grid-column:1/-1;display:grid;grid-template-columns:120px minmax(0,1fr) 120px;gap:12px 14px;padding:16px;border:2px solid var(--ws-brand);border-radius:16px;background:var(--ws-surface)}
html.web-shell main.wsp.is-editing .wse-item-pic{grid-row:1/3;display:grid;gap:8px;align-content:start}
html.web-shell main.wsp.is-editing .wse-item-pic img{width:120px;height:120px;border-radius:12px;object-fit:cover;background:var(--ws-sunk)}
html.web-shell main.wsp.is-editing .wse-item-ed .field{display:grid;gap:4px;font:700 13px 'Archivo',var(--sans);color:var(--ws-ink2)}
html.web-shell main.wsp.is-editing .wse-item-ed input:not([type=checkbox]),html.web-shell main.wsp.is-editing .wse-item-ed textarea{width:100%;box-sizing:border-box;border:1px solid var(--ws-line2);border-radius:10px;padding:10px 12px;font:500 15px var(--sans,system-ui);background:#fff}
html.web-shell main.wsp.is-editing .wse-full{grid-column:2/-1}
html.web-shell main.wsp.is-editing .wse-diet{display:flex;flex-wrap:wrap;gap:8px}
html.web-shell main.wsp.is-editing .wse-chip{position:relative}
html.web-shell main.wsp.is-editing .wse-chip input{position:absolute;opacity:0}
html.web-shell main.wsp.is-editing .wse-chip span{display:inline-flex;align-items:center;height:34px;padding:0 14px;border:1px solid var(--ws-line2);border-radius:999px;font:700 13px 'Archivo',var(--sans);cursor:pointer;background:#fff}
html.web-shell main.wsp.is-editing .wse-chip input:checked+span{background:var(--ws-ink);border-color:var(--ws-ink);color:#fffaf3}
html.web-shell main.wsp.is-editing .wse-actions{display:flex;align-items:center;gap:10px}
html.web-shell main.wsp.is-editing .wse-del{margin-left:auto;color:#a33}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-item-ed{grid-template-columns:minmax(0,1fr)}html.web-shell main.wsp.is-editing .wse-item-pic{grid-row:auto}html.web-shell main.wsp.is-editing .wse-full{grid-column:1}}

/* an editor open in place */
html.web-shell main.wsp.is-editing .wse-r.is-open{outline:2px solid var(--ws-brand);outline-offset:4px;background:var(--ws-surface)}
html.web-shell main.wsp.is-editing .wse-r.is-open>.wse-pen{display:none}
html.web-shell main.wsp.is-editing .wse-ed{display:grid;gap:10px;padding:6px 0}
html.web-shell main.wsp.is-editing .wse-ed .editor-panel{padding:0;border:0;box-shadow:none;background:none}
html.web-shell main.wsp.is-editing .wse-ed form{display:grid;gap:12px}
html.web-shell main.wsp.is-editing .wse-cancel{justify-self:start}

/* View as shopper: the page as a shopper sees it */
html.web-shell main.wsp.wse-viewing .wse-pen,html.web-shell main.wsp.wse-viewing .wse-ph,html.web-shell main.wsp.wse-viewing .wse-addtile,html.web-shell main.wsp.wse-viewing .wse-itemedit,html.web-shell main.wsp.wse-viewing .wsp-cover-edit,html.web-shell main.wsp.wse-viewing .wsp-logo-cam{display:none!important}
html.web-shell main.wsp.wse-viewing .wse-r:hover{outline:0}
html.web-shell main.wsp.wse-viewing .wse-slot{display:none}

/* the right column beside the edit page */
@media(min-width:1280px){html.web-shell .ws-grid.ws-seller.ws-editing{grid-template-columns:296px minmax(0,1fr) 344px}}
html.web-shell .ws-grid.ws-seller.ws-editing .ws-mid{max-width:680px;justify-self:center}
html.web-shell .wse-pin{display:flex;align-items:center;gap:12px}
html.web-shell .wse-pin-dot{width:44px;height:44px;border-radius:50%;border:3px solid var(--ws-open-dot);overflow:hidden;display:grid;place-items:center;background:#fff;font:800 16px 'Archivo',sans-serif;color:var(--ws-brand-ink);flex:none}
html.web-shell .wse-pin-dot img{width:100%;height:100%;object-fit:cover}
html.web-shell .wse-pin b{display:block;font:700 15px 'Archivo',var(--sans)}
html.web-shell .wse-pin small{display:block;font-size:13px;color:var(--ws-ink2)}
html.web-shell .wse-feedcard{padding:2px 0}
html.web-shell .wse-feedhead{display:flex;align-items:center;gap:10px}
html.web-shell .wse-feedhead img,html.web-shell .wse-feedhead i{width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--ws-brand-soft);font-style:normal;font-weight:800}
html.web-shell .wse-feedhead small{margin-left:auto;color:var(--ws-ink3);font-size:12.5px}
html.web-shell .wse-feedcard p{margin:10px 0 0;font-size:14.5px;line-height:1.4}
html.web-shell .wse-rail-share input{width:100%;box-sizing:border-box;margin:4px 0 10px;border:1px solid var(--ws-line2);border-radius:10px;padding:10px 12px;font:500 14px var(--sans,system-ui);background:var(--ws-sunk)}

/* the editing page is one wide column: the menu first, then the parts of the page (no posts, tabs or owner strip here) */
html.web-shell .ws-grid.ws-seller.ws-editing .ws-mid{max-width:none;justify-self:stretch}
html.web-shell main.wsp.is-editing .owner-bar,html.web-shell main.wsp.is-editing .wsp-tabs,html.web-shell main.wsp.is-editing #wsp-posts,html.web-shell main.wsp.is-editing .wsp-postsblk,html.web-shell main.wsp.is-editing .wsp-dropbox{display:none!important}
html.web-shell main.wsp.is-editing .wsp-body{display:flex;flex-direction:column;gap:16px}
html.web-shell main.wsp.is-editing .wsp-main{order:-1;width:100%}
html.web-shell main.wsp.is-editing .wsp-side{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;position:static}
html.web-shell main.wsp.is-editing .wsp-side .wsp-about{grid-column:1/-1}
html.web-shell main.wsp.is-editing .wsp-menublk .wo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wsp-side,html.web-shell main.wsp.is-editing .wsp-menublk .wo-grid{grid-template-columns:minmax(0,1fr)}}
html.web-shell main.wsp.is-editing .wsp-side .wsp-visit.is-open{grid-column:1/-1}

/* 2: while editing, the page's own action buttons are not shown */
html.web-shell main.wsp.is-editing .wsp-acts,html.web-shell main.wsp.is-editing .wsp-extra{display:none!important}
/* 1: hours in place, compact */
html.web-shell main.wsp.is-editing .wse-hours{display:grid;gap:10px}
html.web-shell main.wsp.is-editing .wse-hours-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html.web-shell main.wsp.is-editing .wse-hours-top h3{margin:0;font:800 17px 'Archivo',var(--sans)}
html.web-shell main.wsp.is-editing .wse-hours-top span{color:var(--ws-ink2);font-size:13px}
html.web-shell main.wsp.is-editing .wse-hours-top .btn{margin-left:auto}
html.web-shell main.wsp.is-editing .wse-htable{display:grid;border:1px solid var(--ws-line2);border-radius:12px;overflow:hidden}
html.web-shell main.wsp.is-editing .wse-hrow{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 12px;border-top:1px solid var(--ws-line2)}
html.web-shell main.wsp.is-editing .wse-hrow:first-child{border-top:0}
html.web-shell main.wsp.is-editing .wse-hrow b{font:700 14px 'Archivo',var(--sans)}
html.web-shell main.wsp.is-editing .wse-wins{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html.web-shell main.wsp.is-editing .wse-win{display:inline-flex;align-items:center;gap:6px}
html.web-shell main.wsp.is-editing .wse-win[hidden]{display:none}
html.web-shell main.wsp.is-editing .wse-win i{font-style:normal;color:var(--ws-ink3);font-size:13px}
html.web-shell main.wsp.is-editing .wse-win input{width:136px;box-sizing:border-box;border:1px solid var(--ws-line2);border-radius:8px;padding:6px 8px;font:500 14px var(--sans,system-ui);background:#fff}
html.web-shell main.wsp.is-editing .wse-second{font-size:13px}
html.web-shell main.wsp.is-editing .wse-closed{display:inline-flex;align-items:center;gap:6px;font:700 13px 'Archivo',var(--sans);cursor:pointer}
html.web-shell main.wsp.is-editing .wse-hrow.is-closed .wse-wins{opacity:.45}
html.web-shell main.wsp.is-editing .wse-hfoot{margin:0;font-size:14px}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-hrow{grid-template-columns:minmax(0,1fr) auto}html.web-shell main.wsp.is-editing .wse-wins{grid-column:1/-1;order:3}html.web-shell main.wsp.is-editing .wse-win input{width:100px}}

/* phone: the editing bar is one line, sticky under the header; the editors are not outlined boxes */
@media(max-width:760px){
html.web-shell main.wsp.is-editing .wse-bar{position:sticky;top:var(--ws-hh,56px);z-index:30;flex-wrap:nowrap;gap:10px;margin:0;border-radius:0;border-width:0 0 1px;padding:8px 16px}
html.web-shell main.wsp.is-editing .wse-bar-t span{display:none}
html.web-shell main.wsp.is-editing .wse-bar-t b{font-size:15px}
html.web-shell main.wsp.is-editing .wse-view{font-size:13px;white-space:nowrap}
html.web-shell main.wsp.is-editing .wse-r:hover{outline:0}
html.web-shell main.wsp.is-editing .wse-r.is-open{outline:0;background:none}
html.web-shell main.wsp.is-editing .wse-item-ed{border-radius:0;border-width:2px 0}
html.web-shell main.wsp.is-editing .wse-pen{top:6px;right:8px}
html.web-shell main.wsp.is-editing .wsp-side{grid-template-columns:minmax(0,1fr);gap:8px}
}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wsp-name-row{padding-right:40px}}

/* wired editors: the old forms, drawn in place */
html.web-shell main.wsp.is-editing .wse-pcell{position:relative;display:block;aspect-ratio:1}
html.web-shell main.wsp.is-editing .wse-pcell a{height:100%}
html.web-shell main.wsp.is-editing .wse-x{position:absolute;top:6px;right:6px;z-index:3;width:28px;height:28px;border-radius:50%;border:0;background:#2d231dcc;color:#fff;font:700 18px/1 var(--sans,system-ui);cursor:pointer;display:grid;place-items:center;padding:0}
html.web-shell main.wsp.is-editing .wse-menuphoto{display:flex;align-items:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--ws-line2,#eadfce);font:700 14px 'Archivo',var(--sans)}
html.web-shell main.wsp.is-editing .wse-menuphoto span{margin-right:auto}
html.web-shell main.wsp.is-editing .wse-orderlink{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid var(--ws-line2);border-radius:12px;text-decoration:none;color:var(--ws-ink);background:var(--ws-surface)}
html.web-shell main.wsp.is-editing .wse-orderlink span{color:var(--ws-brand-ink);font-weight:700;font-size:14px}
html.web-shell main.wsp.is-editing .wse-grid1{display:grid}
html.web-shell main.wsp.is-editing .wse-item-ed{display:block;grid-column:1/-1;padding:12px;border:2px solid var(--ws-brand);border-radius:16px;background:var(--ws-surface)}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-editor-item{margin:0;border:0;padding:0;box-shadow:none}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-actions .form-error{flex:1 1 100%;margin:0}
html.web-shell main.wsp.is-editing .is-open .pickup-editor{padding:0;border:0;box-shadow:none;background:none}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-r{border-radius:0}}
@media(max-width:760px){html.web-shell .wt-rail-after .wt-card{margin:0 0 8px;border-radius:0;border-width:1px 0}}

/* the menu row editor in place: a roomy row, the name across the top */
html.web-shell main.wsp.is-editing .wse-item-ed .menu-editor-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-editor-row>.field:first-of-type{flex:1 1 100%}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-editor-row .field input:not([type=checkbox]),html.web-shell main.wsp.is-editing .wse-item-ed textarea{width:100%;box-sizing:border-box}
html.web-shell main.wsp.is-editing .wse-item-ed .menu-editor-row>.field:nth-of-type(2){flex:0 0 130px}
html.web-shell main.wsp.is-editing .wse-itemedit{top:10px;bottom:auto}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-item-ed{border-width:2px 0;border-radius:0;margin:0 -0px}
html.web-shell .wsp .owner-bar{border:0;border-radius:0;box-shadow:none;background:var(--ws-brand-soft,#fbeee3)}}

/* phone: the pencils sit in the margin beside a line, never over its text; hours days are plain lines, not boxes */
@media(max-width:760px){
html.web-shell main.wsp.is-editing .wsp-name-row.wse-r,html.web-shell main.wsp.is-editing .wsp-meta.wse-r{padding-left:44px;padding-right:44px}
html.web-shell main.wsp.is-editing .wsp-name-row.wse-r>.wse-pen,html.web-shell main.wsp.is-editing .wsp-meta.wse-r>.wse-pen{top:50%;right:6px;transform:translateY(-50%)}
html.web-shell main.wsp.is-editing .wse-htable{border:0;border-radius:0}
html.web-shell main.wsp.is-editing .wse-hrow{padding:10px 0;border-top:1px solid var(--ws-line2,#eadfce);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
html.web-shell main.wsp.is-editing .wse-hrow:first-child{border-top:0}
html.web-shell main.wsp.is-editing .wse-hrow b{grid-column:1}
html.web-shell main.wsp.is-editing .wse-closed{grid-column:2;grid-row:1}
html.web-shell main.wsp.is-editing .wse-wins{grid-column:1/-1;order:0}
html.web-shell main.wsp.is-editing .wse-ed{padding:0 16px}
}
@media(max-width:760px){
html.web-shell main.wsp.is-editing .wse-textblock,html.web-shell main.wsp.is-editing .wsp-sells.wse-r,html.web-shell main.wsp.is-editing .shop-contact.wse-r{padding-right:44px}
html.web-shell main.wsp.is-editing .wse-textblock>.wse-pen,html.web-shell main.wsp.is-editing .wsp-sells.wse-r>.wse-pen,html.web-shell main.wsp.is-editing .shop-contact.wse-r>.wse-pen{top:0;right:0}
}
html.web-shell main.wsp.is-editing .wse-ed{text-align:left}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-orderlink{margin:0;border-width:1px 0;border-radius:0;padding:14px 16px;width:auto}}
@media(max-width:760px){html.web-shell main.wsp.is-editing .wse-r.is-open{padding-left:0!important;padding-right:0!important}html.web-shell main.wsp.is-editing .wse-r.is-open .wse-ed{padding:0 16px}}
html.web-shell main.wsp.is-editing .wse-r.is-open{display:block!important;width:100%;box-sizing:border-box}
html.web-shell main.wsp.is-editing .wse-r.is-open .wse-ed{width:100%;box-sizing:border-box}
