.form-control,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  min-height: 40px !important;
  font-size: 16px !important;
}
.shared-file-picker {
  --file-ink: #243252;
  --file-muted: #586783;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #aeb9d1;
  border-radius: 9px;
  background: #fff;
  color: var(--file-ink);
}
.shared-file-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 52px;
  padding: 6px 10px;
  pointer-events: none;
}
.shared-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--regeasy-navy, #12235E);
  border-radius: 7px;
  background: #EEF1FA;
  color: var(--regeasy-navy, #12235E);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.shared-file-name {
  flex: 1 1 130px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--file-ink);
  font-size: 16px;
  line-height: 1.35;
}
.shared-file-name.is-empty { color: var(--file-muted); }
.shared-file-size {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--file-muted);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
/* Also cover preserved transparent photo/receipt inputs without changing handlers. */
input[type="file"] {
  font-size: 16px !important;
  touch-action: manipulation;
}

.shared-file-picker > input[type="file"] {
  font-size: 16px !important;
  line-height: 1.25 !important;
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.shared-file-picker:focus-within {
  outline: 3px solid var(--regeasy-navy, #12235E);
  outline-offset: 2px;
}
.shared-file-picker input[type="file"]:focus-visible {
  outline: none;
}
.shared-file-picker-hint {
  display: block;
  margin-top: 6px;
  color: #586783;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shared-file-picker-error {
  display: block;
  margin-top: 6px;
  color: #a61f24;
  font-size: 15px;
  line-height: 1.45;
}
.shared-file-error {
  color: #a61f24;
  font-size: 15px;
  line-height: 1.45;
}
.shared-file-picker-status {
  margin-top: 6px;
  color: var(--regeasy-navy, #12235E);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.shared-file-picker[aria-invalid="true"] { border-color: #a61f24; }
@media (max-width: 575.98px) {
  .shared-file-display { align-items: flex-start; }
  .shared-file-size { flex-basis: 100%; padding-left: 2px; }
}
