
/* File Upload UI */
.lm-product-upload {
  margin-bottom: 24px;
}

.lm-upload-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text-color);
}

.lm-upload-label .required {
  color: #e2401c;
  margin-left: 4px;
}

.lm-upload-box {
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.lm-upload-box:hover,
.lm-upload-box.drag-over {
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.8);
}

.lm-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.lm-upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none; /* Let clicks pass to input */
}

.lm-upload-icon {
  color: var(--primary-color);
  margin-bottom: 4px;
}

.lm-upload-text {
  font-weight: 500;
  font-size: 0.95em;
}

.lm-upload-hint {
  font-size: 0.8em;
  color: #888;
}

.lm-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4f8;
  padding: 10px 14px;
  border-radius: 6px;
  position: relative;
  z-index: 20; /* Above input so button works */
}

.lm-file-name {
  font-weight: 500;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.lm-remove-file {
  background: none;
  border: none;
  color: #999;
  font-size: 1.4em;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.lm-remove-file:hover {
  color: #e2401c;
}

/* Ensure z-index handling allows input click but also button click */
.lm-upload-box.has-file .lm-upload-input {
  display: none; /* Hide input when file selected so remove button is clickable */
}
