/* File drop zone (UploadHelper#drop_zone). The real file input covers the zone,
   invisible, so clicks and drops go straight to it. */

.drop-zone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--steel);
  color: var(--ink-2);
  text-align: center;
  transition: border-color 0.12s, background-color 0.12s;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone-field.is-dragging .drop-zone {
  border-color: var(--carbon);
  background: var(--carbon-wash);
}

.drop-zone:has(input:focus-visible) {
  outline: 2px solid var(--carbon);
  outline-offset: 2px;
}

.drop-zone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--carbon);
  box-shadow: 0 1px 2px rgb(19 28 51 / 0.12);
}

.drop-zone-text {
  font-size: 14px;
}

.drop-zone-text strong {
  color: var(--carbon);
  font-weight: 600;
}

.drop-zone-hint {
  color: var(--ink-3);
  font-size: 12.5px;
}

.drop-zone-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drop-zone-files li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13.5px;
}

.drop-zone-files li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drop-zone-files small {
  margin-left: auto;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* Settings, Logo: the zone sits beside the logo preview, wrapping below it on phones. */
.pf-logo > .stack {
  flex: 1 1 280px;
}
