/* wsb_artikel_upload – © 2026 Oliver Stähr – Webshopberatung. Anpassung im Child-Theme über die Variablen unten. */
.wsbau {
    --wsbau-accent: var(--primary, #1f5fbf);
    --wsbau-border: #d5d9e0;
    --wsbau-muted: #6b7280;
    --wsbau-bg: #f7f8fa;
    --wsbau-danger: #b42318;
    --wsbau-radius: 6px;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--wsbau-border);
    border-radius: var(--wsbau-radius);
    background: #fff;
    font-size: .95rem;
    line-height: 1.45;
}
.wsbau-cart { margin: 1.5rem 0; }
.wsbau-cart__title { font-size: 1.15rem; margin: 0 0 .5rem; }
.wsbau-cart .wsbau { margin: .75rem 0; }
.wsbau__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.wsbau__title { font-size: 1rem; font-weight: 600; margin: 0; }
.wsbau__badge {
    font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px;
    background: var(--wsbau-accent); color: #fff;
}
.wsbau__count { margin-left: auto; font-size: .8rem; color: var(--wsbau-muted); }
.wsbau__hint { margin: 0 0 .35rem; }
.wsbau__rules, .wsbau__note { margin: 0 0 .5rem; font-size: .8rem; color: var(--wsbau-muted); }
.wsbau__note { margin: .5rem 0 0; }
.wsbau__rights { display: flex; gap: .5rem; align-items: flex-start; margin: .25rem 0 .5rem; font-size: .9rem; cursor: pointer; }
.wsbau__rights input { margin-top: .2rem; }
.wsbau__input {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wsbau__drop {
    display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center;
    min-height: 4.25rem; padding: .75rem 1rem; margin: 0; cursor: pointer;
    border: 2px dashed var(--wsbau-border); border-radius: var(--wsbau-radius); background: var(--wsbau-bg);
    color: inherit; transition: border-color .15s, background-color .15s;
}
.wsbau__drop:hover, .wsbau__drop.is-over { border-color: var(--wsbau-accent); background: #eef4ff; }
.wsbau__input:focus-visible + .wsbau__drop { outline: 2px solid var(--wsbau-accent); outline-offset: 2px; }
.wsbau__drop.is-disabled { cursor: not-allowed; opacity: .55; }
.wsbau__drop-icon { font-size: 1.4rem; line-height: 1; color: var(--wsbau-accent); }
.wsbau__list { list-style: none; margin: .6rem 0 0; padding: 0; }
.wsbau__item {
    display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto auto; align-items: center; gap: .6rem;
    padding: .4rem .5rem; border: 1px solid var(--wsbau-border); border-radius: var(--wsbau-radius); margin-bottom: .4rem;
}
.wsbau__thumb {
    width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-radius: 4px; background: var(--wsbau-bg); font-size: .65rem; font-weight: 700; color: var(--wsbau-muted);
}
.wsbau__thumb img { width: 100%; height: 100%; object-fit: cover; }
.wsbau__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsbau__meta { font-size: .8rem; color: var(--wsbau-muted); white-space: nowrap; }
.wsbau__del {
    border: 0; background: transparent; color: var(--wsbau-muted); font-size: 1.35rem; line-height: 1;
    width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
}
.wsbau__del:hover, .wsbau__del:focus-visible { background: #fdecea; color: var(--wsbau-danger); }
.wsbau__del:disabled { opacity: .4; cursor: wait; }
.wsbau__item.is-uploading { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
.wsbau__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--wsbau-bg); overflow: hidden; }
.wsbau__bar-fill { display: block; height: 100%; width: 0; background: var(--wsbau-accent); transition: width .2s; }
.wsbau__empty { font-size: .85rem; color: var(--wsbau-muted); padding: .25rem 0; }
.wsbau__msg { margin: .5rem 0 0; color: var(--wsbau-danger); font-size: .875rem; }
.wsbau__msg[hidden] { display: none; }
.wsbau.is-missing { border-color: var(--wsbau-danger); }
@media (max-width: 575.98px) {
    .wsbau__item { grid-template-columns: 2.25rem minmax(0, 1fr) auto; }
    .wsbau__meta { grid-column: 2; grid-row: 2; }
    .wsbau__del { grid-column: 3; grid-row: 1 / span 2; }
}
/* Bestätigungsseite („Bestellung prüfen“) */
.wsbau-co {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem;
    margin: .5rem 0; padding: .45rem .7rem; border-radius: 6px; font-size: .9rem; line-height: 1.4;
    background: #eef7ee; border: 1px solid #b7dfb9; color: #1d4d21;
}
.wsbau-co.is-empty { background: #f7f8fa; border-color: #d5d9e0; color: #4b5563; }
.wsbau-co__files { overflow-wrap: anywhere; }
.wsbau-co__none { font-style: italic; }
.wsbau-co__edit { margin-left: auto; font-size: .85rem; white-space: nowrap; }
.wsbau-co-box { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #d5d9e0; border-radius: 6px; background: #fff; }
.wsbau-co-box__title { font-weight: 600; margin: 0 0 .25rem; }
.wsbau-co-box .wsbau-co { margin: .4rem 0 0; }
