/* Shop status uses the existing theme and a focused state task. */
.community-shop-heading{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;min-width:0;flex:1 1 220px}
.community-shop-heading h1{margin:0;overflow-wrap:anywhere;min-width:0}
.community-shop-heading>[data-shop-state][open]{flex-basis:100%;min-width:0}
.shop-current-state,.shop-state-entry{display:inline-flex;align-items:center;gap:5px;min-height:36px;color:var(--ifx-color-text);font-weight:650;flex-wrap:wrap;max-width:100%;min-width:0}
.shop-state-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.shop-state-entry{list-style:none;border:1px solid var(--ifx-color-border-strong);border-radius:var(--ifx-radius-control);padding:2px 7px;background:var(--ifx-color-surface-muted);cursor:pointer;width:max-content;box-sizing:border-box}
.shop-state-entry::-webkit-details-marker{display:none}.shop-state-entry:focus-visible{outline:var(--ifx-focus-ring);outline-offset:2px}
.shop-state-edit{width:14px;height:14px;color:var(--ifx-color-action)}
.shop-pause-reason,.shop-reason-change{overflow-wrap:anywhere;min-width:0;font-weight:400}.shop-state-entry .shop-pause-reason{flex:1 1 120px}
.shop-state-editor{margin:6px 0 0;padding:8px 10px;background:var(--ifx-color-surface-muted);border:1px solid var(--ifx-color-border);border-radius:var(--ifx-radius-panel);max-width:460px;box-sizing:border-box;min-width:0}
.shop-state-editor header{display:flex;align-items:center;gap:8px;margin:0 0 4px}.shop-state-editor header strong{flex:1;min-width:0;overflow-wrap:anywhere}
.shop-state-editor p{margin:4px 0!important}.shop-state-editor .error{margin:4px 0!important}.shop-state-editor textarea{width:100%;box-sizing:border-box;resize:vertical;min-width:0}
.shop-place-blocker{display:flex;align-items:flex-start;gap:6px;margin:6px 0;color:var(--ifx-color-warning);overflow-wrap:anywhere;font-weight:550;min-width:0}
.community-directory-title>.shop-current-state{min-height:28px;font-size:14px}
@media(max-width:420px){.shop-state-editor{padding:6px 8px}.community-shop-heading{flex-basis:100%}}
.shop-admission-recovery{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:6px 0}.shop-admission-recovery .shop-place-blocker{flex:1 1 220px;margin:0}.shop-admission-recovery button{flex:none}

/* The operating strip owns the full row, independently of translated tool labels. */
.community-list-toolbar.community-shop-toolbar{display:block;margin-bottom:6px}
.community-shop-toolbar>.shop-quick-state{width:100%;max-width:none;margin-top:4px}
.shop-quick-state{position:relative;min-width:0;border:1px solid var(--ifx-color-border);border-inline-start:4px solid var(--shop-state-accent);border-radius:var(--ifx-radius-panel);padding:4px 8px;background:color-mix(in srgb,var(--shop-state-accent) 7%,var(--ifx-color-surface));box-sizing:border-box}
.shop-quick-state.is-open{--shop-state-accent:color-mix(in srgb,#26764b 78%,var(--ifx-color-action))}
.shop-quick-state.is-closed{--shop-state-accent:color-mix(in srgb,#a4413c 78%,var(--ifx-color-action))}
.shop-quick-heading{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;min-width:0}
.shop-quick-heading .shop-current-state{color:var(--shop-state-accent);min-height:30px}
.shop-quick-state form{margin:0}.shop-quick-state p{margin:3px 0!important}
.shop-state-toggle-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none}
.shop-quick-state .shop-state-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:3px 7px;border:1px solid var(--shop-state-accent);border-radius:var(--ifx-radius-control);color:var(--shop-state-accent);background:var(--ifx-color-surface);font:inherit;font-weight:650;white-space:nowrap;cursor:pointer}
.shop-quick-state .shop-state-switch:hover{background:color-mix(in srgb,var(--shop-state-accent) 10%,var(--ifx-color-surface))}
.shop-switch-track{position:relative;display:inline-block;width:24px;height:14px;border:1px solid currentColor;border-radius:10px;background:var(--ifx-color-surface-muted);box-sizing:border-box;flex:none}
.shop-switch-track::after{content:"";position:absolute;top:2px;left:2px;width:8px;height:8px;border-radius:50%;background:currentColor}
.shop-state-switch[aria-checked=true] .shop-switch-track::after{left:12px}
.shop-state-switch[aria-checked=true] .shop-switch-track{background:color-mix(in srgb,var(--shop-state-accent) 15%,var(--ifx-color-surface))}
.shop-auto-close{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.shop-auto-toggle{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:2px 5px;box-sizing:border-box;cursor:pointer;white-space:nowrap;font-weight:550;border:1px solid var(--ifx-color-border);border-radius:var(--ifx-radius-control);background:var(--ifx-color-surface)}
.shop-auto-toggle:has(input:checked){border-color:var(--ifx-color-action);background:var(--ifx-color-surface-selected)}
.shop-auto-toggle input{appearance:none;position:relative;width:24px!important;height:14px;min-height:0;margin:0!important;padding:0!important;border:1px solid var(--ifx-color-border-strong);border-radius:10px;background:var(--ifx-color-surface-muted);box-sizing:border-box;flex:none;cursor:pointer}
.shop-auto-toggle input::after{content:"";position:absolute;top:2px;left:2px;width:8px;height:8px;border-radius:50%;background:var(--ifx-color-text-muted)}
.shop-auto-toggle input:checked::after{left:12px;background:var(--ifx-color-action)}
.shop-auto-toggle input:checked{border-color:var(--ifx-color-action)}
.shop-auto-toggle:focus-within,.shop-state-switch:focus-visible,.shop-operating-more:focus-visible{outline:var(--ifx-focus-ring);outline-offset:2px}
.shop-clock,.shop-operating-more svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.shop-info-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;flex:none}
.shop-operating-details{flex:none;margin-inline-start:auto}
.shop-operating-more{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:40px;box-sizing:border-box;border:1px solid var(--ifx-color-border);border-radius:var(--ifx-radius-control);list-style:none;cursor:pointer;color:var(--ifx-color-action);background:var(--ifx-color-surface)}
.shop-operating-more::-webkit-details-marker{display:none}
.shop-operating-details[open]>.shop-operating-more,.shop-operating-more:hover{background:var(--ifx-color-surface-selected)}
.shop-operating-popup{position:absolute;inset-inline-end:0;top:100%;width:min(24rem,100%);box-sizing:border-box;z-index:40}
.shop-operating-popup>strong{display:block;padding-inline-end:30px}
.shop-operating-popup label{display:block;margin-top:8px}
.shop-operating-popup textarea{display:block;width:100%;box-sizing:border-box;margin:4px 0 6px;resize:vertical;min-height:64px}
.shop-quick-state .shop-state-reason-submit{min-height:36px;padding:3px 9px;border-color:var(--shop-state-accent);color:var(--shop-state-accent);background:var(--ifx-color-surface);font:inherit}
.shop-close-hint{font-size:.9rem;color:var(--ifx-color-text-muted);overflow-wrap:anywhere}
@media(max-width:360px){.shop-quick-heading{gap:4px}.shop-auto-toggle .shop-clock{display:none}.shop-quick-state .shop-state-switch{gap:4px;padding-inline:5px}.shop-auto-toggle{gap:4px;padding-inline:3px}}
