.ege-file-input {
  align-items: center;
  background: var(--ege-surface);
  border: 1px solid var(--ege-border-strong);
  border-radius: var(--ege-radius-sm);
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 52px;
  padding: 7px;
  position: relative;
  width: min(100%, 680px);
}

.ege-file-input:focus-within {
  border-color: var(--ege-primary);
  box-shadow: 0 0 0 3px rgba(232, 176, 0, 0.18);
}

.ege-file-native {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px !important;
  margin: -1px !important;
  min-height: 1px !important;
  opacity: 0;
  overflow: hidden;
  padding: 0 !important;
  pointer-events: none;
  position: absolute;
  width: 1px !important;
}

.ege-file-button {
  align-items: center;
  background: var(--ege-primary);
  border: 1px solid var(--ege-primary);
  border-radius: 6px;
  color: var(--ege-on-primary) !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800 !important;
  justify-content: center;
  line-height: 1;
  margin: 0 !important;
  min-height: 36px;
  padding: 0 14px !important;
  width: auto !important;
}

.ege-file-button:hover {
  background: var(--ege-primary-strong);
  border-color: var(--ege-primary-strong);
}

.ege-file-name {
  color: var(--ege-muted);
  flex: 1 1 auto;
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ege-file-input.has-files .ege-file-name {
  color: var(--ege-text);
  font-weight: 700;
}

@media (max-width: 420px) {
  .ege-file-button {
    min-height: 34px;
    padding: 0 10px !important;
  }

  .ege-file-name {
    font-size: 12px;
  }
}
