/* ----------------------------------------------------
   PODSTAWOWE STYLE (ORYGINAŁ)
---------------------------------------------------- */

.stwb-reg-form,
.stwb-reg-form * {
    box-sizing: border-box;
}

.stwb-reg-form { 
    display: grid; 
}

.stwb-field { 
    margin-bottom: 12px; 
}

.stwb-field label {
    font-size: 14px; 
    display: block; 
}

.stwb-field input {
    width: 100%;
    border: solid 2px #000000 !important;
    padding: .5rem 1rem !important;
    border-radius: 4px !important;
}

/* ----------------------------------------------------
   NASZA ZMIANA #1 — SELECT stylowany jak INPUT
---------------------------------------------------- */
.stwb-field select {
    width: 100%;
    border: solid 2px #000000 !important;
    padding: .5rem 1rem !important;
    border-radius: 4px !important;
    background-color: #fff;
}

/* ----------------------------------------------------
   PODGLĄD PRODUKTU (ORYGINAŁ)
---------------------------------------------------- */

.stwb-product-preview {
    display: none;
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    grid-template-columns: 84px 1fr;
    grid-column-gap: 2rem;
    align-items: center;
}

.stwb-product-preview.ok { 
    display: grid; 
    border-color: #22c55e; 
}

.stwb-product-preview.err {
    display: grid;
    border-color: #ef4444;
    color: #b91c1c;
    grid-template-columns: 1fr;
}

.stwb-product-preview.err .stwb-product-thumb { 
    display: none !important; 
}

.stwb-product-thumb {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f7f9;
    display: none;
}

.stwb-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------
   PRZYCISK (ORYGINAŁ, PRZYWRÓCONY 1:1)
---------------------------------------------------- */

.stwb-actions { 
    text-align: center;
}

.stwb-actions button[disabled] { 
    opacity: .5; 
    cursor: not-allowed; 
}

.stwb-actions button {
    background-color: #FFAB00;
    padding: .75rem 2rem;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    border: unset;
    text-transform: uppercase;
}

.stwb-actions button:disabled {
    background-color: #FFAB00;
    color: #000000;
    opacity: unset;
    border: unset;
}

.stwb-hint { 
    display: block; 
}

/* ----------------------------------------------------
   DODATKOWE STYLE (ORYGINAŁ)
---------------------------------------------------- */

.stwb-product-name,
.stwb-product-sku {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1rem;
    font-size: 15px;
    line-height: 24px;
}

#rodo-field label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#rodo-field input {
    margin-top: 5px;
    width: unset;
}

.stwb-product-preview.err .stwb-product-name { 
    grid-template-columns: 1fr !important; 
}

.stwb-product-extra { 
    grid-column: 1 / span 2; 
}

/* ----------------------------------------------------
   NASZA ZMIANA #2 — większy odstęp pod serial number
---------------------------------------------------- */
.stwb-field--serial {
    margin-bottom: 30px !important;
}