/* Only the shop's local post workflow owns this compact tool row. */
.shop-post-tools{min-width:0;width:100%;box-sizing:border-box;margin:0 0 8px;padding:2px 5px 5px;border:1px solid var(--ifx-color-border);border-radius:var(--ifx-radius-control)}
.shop-post-tools>legend{padding:0 4px;color:var(--ifx-color-text-muted);font:inherit}
.shop-post-tools-row,.shop-post-facts,.shop-post-actions{display:flex;align-items:center;flex-wrap:nowrap;min-width:0}
.shop-post-tools-row{gap:4px}
.shop-post-facts{flex:none;gap:2px}
.shop-post-actions{flex:none;gap:4px;margin-inline-start:auto}
.shop-post-tools :is(summary,.shop-post-scope,.shop-tools-manage){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:36px;min-height:36px;box-sizing:border-box;margin:0;padding:3px 5px;border:1px solid transparent;border-radius:var(--ifx-radius-control);font:inherit;line-height:1.3;white-space:nowrap;text-decoration:none}
.shop-post-tools :is(summary,.shop-tools-manage){color:var(--ifx-color-text-muted);background:transparent}
.shop-post-tools svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.shop-post-tools .shop-tool-info>summary{list-style:none;cursor:pointer;border-color:var(--ifx-color-border);background:var(--ifx-color-surface)}
.shop-post-tools summary::-webkit-details-marker{display:none}
.shop-post-tools .shop-tool-info[open]>summary{background:var(--ifx-color-surface-selected);border-color:var(--ifx-color-border-strong);color:var(--ifx-color-text)}
.shop-post-tools :is(.shop-tool-info>summary,.shop-tools-manage):hover{background:var(--ifx-color-surface-muted);color:var(--ifx-color-text)}
.shop-post-tools .shop-tools-manage{border-color:var(--ifx-color-border)}
.shop-post-tools .shop-post-scope{flex:none;padding-inline:7px;color:var(--ifx-color-action);border-color:var(--ifx-color-border-strong);background:var(--ifx-color-surface)}
.shop-post-tools .shop-post-scope.is-all{border-style:double;border-width:3px;background:var(--ifx-color-surface-selected);color:var(--ifx-color-text);font-weight:650;padding-inline:5px}
.shop-post-tools .shop-post-scope:hover{background:var(--ifx-color-surface-selected)}
.shop-post-tools .shop-tools-publish{margin:0}
.shop-post-tools .shop-tools-publish>summary{min-height:44px;padding-inline:10px;color:var(--ifx-color-on-brand);background:var(--ifx-color-brand);border-color:var(--ifx-color-brand);font-weight:700;cursor:pointer;list-style:none}
.shop-post-tools .shop-tools-publish[open]>summary{outline:1px solid var(--ifx-color-brand);outline-offset:2px}
.shop-post-tools :is(summary,a):focus-visible,[data-shop-popovers] [data-shop-info-close]:focus-visible{outline:var(--ifx-focus-ring);outline-offset:2px}

/* Native details remain usable without JavaScript. Their fallback panel stays inside its shop root. */
[data-shop-popovers]{position:relative}
[data-shop-popovers] [data-shop-info]{position:static}
[data-shop-popovers] [data-shop-popup]{position:absolute;top:calc(100% + 4px);left:0;right:auto;z-index:35;width:min(22rem,100%);max-width:calc(100vw - 16px);min-width:0;max-height:min(18rem,calc(100dvh - 16px));overflow:auto;overscroll-behavior:contain;box-sizing:border-box;margin:0;padding:9px 10px;background:var(--ifx-color-surface);color:var(--ifx-color-text);border:1px solid var(--ifx-color-border-strong);border-radius:var(--ifx-radius-panel);box-shadow:0 4px 16px #382b231f;white-space:normal;overflow-wrap:anywhere}
[data-shop-popovers] [data-shop-info]:not([open])>[data-shop-popup]{display:none}
[data-shop-popovers] [data-shop-popup]>strong{display:block;padding-inline-end:30px}
[data-shop-popovers] [data-shop-popup]>p{margin:5px 0 0!important}
[data-shop-popovers] [data-shop-info-close]{display:none}
[data-shop-popovers].is-shop-popovers-enhanced [data-shop-info-close]{display:inline-flex;align-items:center;justify-content:center;float:right;min-width:36px;min-height:36px;margin:-5px -6px 2px 5px;padding:2px;border:1px solid var(--ifx-color-border);border-radius:var(--ifx-radius-control);background:var(--ifx-color-surface-muted);color:var(--ifx-color-text);font:inherit;font-size:1.2rem;cursor:pointer}
.shop-post-tools .shop-publish-popup{left:auto;right:0;width:12rem;max-width:100%;padding:4px}
.shop-post-tools .shop-publish-popup>a{display:flex;align-items:center;min-height:36px;padding:5px 8px;box-sizing:border-box;border-radius:var(--ifx-radius-control);color:var(--ifx-color-text);text-decoration:none;white-space:normal}
.shop-post-tools .shop-publish-popup>a:hover{background:var(--ifx-color-surface-selected)}
@media(max-width:420px){.shop-post-tools .shop-publish-plus{display:none}.shop-post-tools .shop-tools-publish>summary{padding-inline:8px}}
@media(max-width:360px){.shop-post-tools-row{gap:2px}.shop-post-facts{gap:0}.shop-post-actions{gap:2px}.shop-post-tools .shop-tools-publish>summary{padding-inline:6px}.shop-post-tools .shop-scope-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.shop-post-tools .shop-post-scope{padding-inline:5px}.shop-post-tools .shop-post-scope.is-all{padding-inline:3px}}
