/* Upload UI inspirowany wtyczką podnadrukiem-custom-product-files (wfu-uploads) — minimalny zestaw dla formularza reklamacji */
.wfu-upload { margin: 16px 0 10px; }
.wfu-upload .wfu-label { display:inline-block; margin-bottom:8px; font-weight:700; font-size:14px; }

/* Globalne, lekkie zaokrąglenie wszystkich pól formularza reklamacji */
.podncf-form input[type="text"],
.podncf-form input[type="email"],
.podncf-form input[type="tel"],
.podncf-form input[type="number"],
.podncf-form select,
.podncf-form textarea {
  border-radius: 4px; /* lekkie zaokrąglenie */
}

/* Layout pola + przycisk */
.wfu-upload .wfu-file-ui { display:flex; align-items:stretch; gap:0; border:1px solid #111827; border-radius:6px; background:#fff; overflow:hidden; }
.wfu-upload .wfu-file-ui:focus-within { outline:2px solid #2563eb; outline-offset:2px; }

/* Natywny input ukryty, ale dostępny dla SR */
.wfu-upload .wfu-input-file { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; clip:rect(0 0 0 0); clip-path: inset(50%); white-space:nowrap; }

/* Lewy box wyglądający jak input tekstowy */
.wfu-upload .wfu-file-box { flex:1 1 auto; display:flex; align-items:center; min-height:40px; border:0; border-right:0; border-radius:0; background:#fff !important; padding:0 12px; cursor:pointer; box-shadow:none !important; outline:none !important; }
.wfu-upload .wfu-file-box:focus { outline:none !important; }
.wfu-upload .wfu-file-name { display:block; width:100%; color:#6b7280; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wfu-upload.has-file .wfu-file-name { color:#111827; }

/* Prawy przycisk z ikoną upload */
.wfu-upload .wfu-file-btn { flex:0 0 auto; height:40px; width:42px; border:0 !important; border-left:0 !important; border-radius:0; background:#fff !important; color:#111827; display:flex; align-items:center; justify-content:center; cursor:pointer; position:relative; font-size:0; line-height:0;
  background-repeat:no-repeat !important; background-position:center !important; background-size:18px 18px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M8 8l4-4 4 4'/%3E%3Cpath d='M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") !important;
  box-shadow:none !important; filter:none !important; transform:none !important; outline:none !important;
}
.wfu-upload .wfu-file-btn::before,
.wfu-upload .wfu-file-btn::after { content:none !important; display:none !important; }
.wfu-upload .wfu-file-box:hover,
.wfu-upload .wfu-file-btn:hover { box-shadow:none !important; }
.wfu-upload .wfu-file-btn:hover,
.wfu-upload .wfu-file-btn:active,
.wfu-upload .wfu-file-btn:focus {
  background-color:#fff !important;
  color:#111827 !important;
  border-color:transparent !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:18px 18px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M8 8l4-4 4 4'/%3E%3Cpath d='M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") !important;
  box-shadow:none !important; filter:none !important; transform:none !important;
}

/* Podgląd miniatury */
.wfu-upload .wfu-preview { margin-top:6px; }
.wfu-upload .wfu-preview .wfu-thumb { position:relative; display:inline-block; }
.wfu-upload .wfu-preview .wfu-thumb img { display:block; max-width:80px; max-height:80px; }
.wfu-upload .wfu-preview .wfu-remove { position:absolute; top:-6px; right:-6px; width:18px; height:18px; border-radius:50%; background:#000; color:#fff; border:0; padding:0; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; cursor:pointer; box-shadow:0 0 0 1px rgba(0,0,0,0.12); line-height:1; }
.wfu-upload .wfu-preview .wfu-remove:hover { background:#111; }
.wfu-upload .wfu-preview .wfu-remove:focus { outline:2px solid #fff; outline-offset:0; }

/* Komunikat błędu pod kontrolką upload */
.wfu-upload .wfu-error { margin-top:6px; color:#b71c1c; font-size:13px; }
