/* Bulk Size Editor – bse.css */

#bse-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#bse-overlay.bse-open { display: flex; }

#bse-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.bse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    border-bottom: 1px solid #eee;
}
.bse-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.bse-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #888;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bse-close:hover { color: #111; }

/* Farbhinweis */
#bse-color-hint {
    padding: 8px 20px;
    font-size: .83rem;
    color: #555;
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
}
#bse-color-hint strong { color: #111; }

/* Notice */
#bse-notice {
    padding: 10px 20px;
    font-size: .85rem;
    font-weight: 600;
}
#bse-notice.bse-success { background: #e8f5e9; color: #2e7d32; }
#bse-notice.bse-error   { background: #ffebee; color: #c62828; }

/* Body – scrollbare Liste */
.bse-body {
    overflow-y: auto;
    flex: 1;
    padding: 4px 0;
}

/* Größen-Zeile */
.bse-size-row {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f2f2f2;
    gap: 12px;
}
.bse-size-row:last-child { border-bottom: none; }
.bse-size-row.bse-oos { opacity: .45; pointer-events: none; }

.bse-lbl {
    flex: 1;
    font-weight: 600;
    font-size: .95rem;
    color: #111;
}
.bse-prc {
    font-size: .88rem;
    color: #555;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* +/- Stepper */
.bse-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    overflow: hidden;
    height: 36px;
    flex-shrink: 0;
}
.bse-qty-btn {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s;
    /* Reset aller möglichen Theme-Styles */
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}
.bse-qty-btn:hover { background: #e8e8e8; }
.bse-qty-btn:focus { outline: none; }

.bse-qty-input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    font-size: .9rem;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
    border-radius: 0;
    background: #fff;
    color: #111;
    box-shadow: none;
}
.bse-qty-input::-webkit-outer-spin-button,
.bse-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bse-qty-input:focus { outline: none; }

/* Footer */
.bse-footer {
    padding: 8px 16px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fafafa;
}
.bse-total {
    font-size: .95rem;
    color: #111;
}
.bse-total strong {
    font-size: 1.1rem;
    font-weight: 700;
}

#bse-submit {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    /* Theme-Reset */
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
#bse-submit:hover:not(:disabled) { background: #333; }
#bse-submit:disabled { opacity: .45; cursor: default; }

/* Mobile */
@media (max-width: 480px) {
    .bse-footer { flex-direction: column; align-items: stretch; }
    #bse-submit { text-align: center; }
}
