.custom-file-upload-996 {
  margin-top: 10px;
}

.custom-file-upload-996 .native-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-file-upload-996 .upload-box {
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  background: var(--bg-color);
  padding: 16px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.custom-file-upload-996 .upload-box.is-dragover {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.custom-file-upload-996 .upload-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.custom-file-upload-996 .upload-btn {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: #eb0000;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  max-width: 320px;
  border: 2px solid #eb0000;
  transition: transform .06s ease, opacity .2s ease;
}

.custom-file-upload-996 .upload-btn:hover {
  opacity: .92;
}

.custom-file-upload-996 .upload-btn:active {
  transform: translateY(1px);
}

.custom-file-upload-996 .upload-help {
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
}

.custom-file-upload-996 .upload-meta {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.custom-file-upload-996 .upload-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.4;
}

.custom-file-upload-996 .upload-error.is-visible {
  display: block;
}

.custom-file-upload-996 .preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.custom-file-upload-996 .preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.custom-file-upload-996 .preview-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e5e7eb;
}

.custom-file-upload-996 .preview-info {
  padding: 8px 10px 10px;
}

.custom-file-upload-996 .preview-name {
  font-size: 12px;
  line-height: 1.35;
  color: #111827;
  word-break: break-word;
}

.custom-file-upload-996 .preview-size {
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
}

.custom-file-upload-996 .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .85);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .custom-file-upload-996 .upload-box {
    padding: 20px;
  }

  .custom-file-upload-996 .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .custom-file-upload-996 .upload-help {
    font-size: 15px;
  }
}

