#pz-configurator {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#pz-configurator select,
#pz-configurator input[type="number"] {
    width: 100%;
    max-width: 300px;
}

#pz_error {
    color: #b00020;
    font-weight: 600;
    margin: 10px 0;
}

#pzc-products-table input[type="number"] {
    width: 80px;
}

#pzc-products-table input[type="text"] {
    width: 140px;
}

form.cart select.qty { min-width: 80px; padding: 8px; }

#pzc-materials-table input[type='number'] { width: 90px; }
#pzc-materials-table select { max-width: 180px; }

#pz-configurator input.pz-readonly { background: #f3f3f3; cursor: not-allowed; }

.pz-design-files { margin: 15px 0; }
.pz-design-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.pz-design-row input[type="number"] { max-width: 110px; }

#pz-add-design-file { margin: 8px 0; }
.pz-remove-design-file { white-space: nowrap; }

/* v2.8.2 – clean Druckdateien layout */
.pz-design-files {
    display: block;
    width: 100%;
    margin: 15px 0;
}

.pz-design-files > label {
    display: block;
    margin-bottom: 14px;
}

#pz-design-rows {
    display: block;
    width: 100%;
}

.pz-design-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px 0;
}

.pz-design-row input[type="file"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.pz-design-row input[type="number"] {
    flex: 0 0 110px;
    width: 110px;
    max-width: 110px;
    margin: 0;
    box-sizing: border-box;
}

.pz-design-row .pz-remove-design-file {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

#pz-add-design-file {
    display: inline-block;
    width: auto !important;
    max-width: 100%;
    margin: 4px 0 10px 0 !important;
    padding: 10px 16px !important;
    line-height: 1.3 !important;
    white-space: normal;
}

.pz-design-files > small {
    display: block;
    clear: both;
    width: 100%;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .pz-design-row {
        flex-wrap: wrap;
    }

    .pz-design-row input[type="file"] {
        flex: 1 1 100%;
        width: 100%;
    }

    .pz-design-row input[type="number"] {
        flex: 0 0 110px;
    }
}

/* v2.9.20: keep Menge and each surcharge on separate rows */
#pz-configurator .pz-quantity-field {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 0 1em !important;
}
#pz-configurator .pz-quantity-field + p {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
