.wm-stock { display: inline-block; }
.wm-stock__btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .6em 1em; font-size: inherit;
    background: transparent; border: 1px solid currentColor;
    cursor: pointer; border-radius: 4px;
}
.wm-stock__btn:hover { background: rgba(0,0,0,.04); }
.wm-stock__btn:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }

.wm-stock-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.wm-stock-modal[hidden] { display: none; }
.wm-stock-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.wm-stock-modal__panel {
    position: relative; background: #fff;
    border-radius: 8px; width: 100%; max-width: 480px;
    max-height: 90vh; overflow: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.wm-stock-modal__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb;
}
.wm-stock-modal__title { margin: 0; font-size: 1.125rem; }
.wm-stock-modal__close {
    background: transparent; border: 0;
    font-size: 1.5rem; line-height: 1;
    cursor: pointer; padding: .25rem .5rem;
}
.wm-stock-modal__close:hover { color: #c00; }
.wm-stock-modal__body { padding: 1rem 1.25rem; }
.wm-stock-modal__empty { color: #6b7280; margin: 0; }

.wm-stock-list { list-style: none; padding: 0; margin: 0; }
.wm-stock-list__item { padding: .75rem 0; border-bottom: 1px solid #f0f0f0; }
.wm-stock-list__item:last-child { border-bottom: 0; }
.wm-stock-list__item.is-empty { opacity: .6; }
.wm-stock-list__name { font-weight: 600; margin-bottom: .15rem; }
.wm-stock-list__address { font-size: .875rem; color: #6b7280; margin-bottom: .25rem; }
.wm-stock-list__qty { font-size: .95rem; }
.wm-stock-list__badge {
    display: inline-block; padding: .1em .5em;
    background: #fee2e2; color: #991b1b;
    border-radius: 3px; font-size: .85em;
}

@media (max-width: 480px) {
    .wm-stock-modal__panel { max-width: 100%; border-radius: 0; max-height: 100vh; }
}
