/**
 * Shared styles for [data-file-upload-zone] (drag-drop + cumulative files).
 * Pages can override colors via wrapper classes.
 */

[data-file-upload-zone] {
  position: relative;
}

.form-file-zone__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

[data-file-panel] {
  border: 2px dashed rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.35);
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 24px);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

[data-file-panel]:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.form-file-zone__lead {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.65);
}

[data-file-upload-zone].is-dragover [data-file-panel] {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.65);
}

.form-file-zone__types {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.form-file-zone__count {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.form-file-zone__count:empty {
  display: none;
}

.form-file-zone__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: left;
}

.form-file-zone__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.form-file-zone__item:first-child {
  margin-top: 0;
}

.form-file-zone__name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.form-file-zone__meta {
  flex-shrink: 0;
  font-size: 11px;
  opacity: 0.65;
  white-space: nowrap;
}

.form-file-zone__remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.form-file-zone__remove:hover,
.form-file-zone__remove:focus-visible {
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}
