/* Localized file picker: hides the browser-locale native control. v=20261204-1 */
.bd-file{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin-top:4px;
}
.bd-file-input,
input[type=file].bd-file-input,
input.form-control.bd-file-input{
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  width:1px !important;
  max-width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none;
}
.bd-file-btn{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid #c5d4e8;
  border-radius:10px;
  background:#fff;
  color:#17375f;
  font:inherit;
  font-size:14px;
  font-weight:650;
  line-height:1.2;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(16,40,72,.04);
}
.bd-file-btn:hover{
  background:#f4f8fd;
  border-color:#9eb4d2;
}
.bd-file-btn:focus-visible{
  outline:3px solid rgba(23,105,224,.3);
  outline-offset:2px;
}
.bd-file-name{
  flex:1 1 140px;
  min-width:0;
  font-size:13.5px;
  color:#5a6f8a;
  word-break:break-word;
}
.bd-file.has-file .bd-file-name{
  color:#16325a;
  font-weight:600;
}
.bd-file-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex-basis:100%;
}
.bd-file-thumbs[hidden]{display:none !important}
.bd-file-thumbs img{
  width:56px;
  height:56px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #d5e0ee;
  background:#edf3fa;
}
.bd-file.is-drag{
  outline:2px dashed #1769e0;
  outline-offset:4px;
  background:#eef5ff;
  border-radius:12px;
  padding:6px 8px;
}
.bd-file.is-drag .bd-file-name{color:#1769e0}
.bd-file.is-invalid .bd-file-btn{
  border-color:#d23c3c;
  box-shadow:0 0 0 3px rgba(210,60,60,.15);
}
.bd-file.is-disabled,
.bd-file.is-disabled .bd-file-btn{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}

/* Keep custom attach buttons (messages etc.) untouched */
.bd-mm-file-btn input[type=file],
.mm-file-btn input[type=file]{
  /* already hidden by those components */
}
