.block-product-upload {
  display: block;
  width: 100%;
  border: 1px solid #FF730010;
  border-radius: 12px;
  background-color: #FF730010;
}

.block-product-upload-header {
  text-align: center;
}

.block-product-upload .title {
  text-align: center;
  /* color: #ec730d; */
  /* margin-bottom: 20px; */
  /* height: 2.5rem; */
  /* background-color: #fff; */
  padding-top: 16px;
  /* border-bottom: 1px solid #e0e0e0; */
  /* font-size: 40px; */
}

.block-product-upload .upload-container {
  padding: 16px;
  background-color: #92929205;
  /* max-width: 600px; */
  /* margin: 50px auto; */
  /* border: 1px solid #e0e0e0; */
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.block-product-upload .upload-area {
  /* border: 2px dashed #ccc; */
  /* border-radius: 6px; */
  /* padding: 20px; */
  text-align: center;
  transition: all 0.3s;
  font-size: larger;
}

.block-product-upload .upload-area {
  border-color: #4285f4;
}

.block-product-upload .upload-area.dragover {
  border-color: #34a853;
  background-color: #fff;
}

.block-product-upload .upload-icon {
  font-size: 48px;
  color: #FF7300;
}

.block-product-upload .upload-text {
  color: #666;
  margin-bottom: 15px;
  padding: 0 10px;
}

.block-product-upload .message.success {
  /* background-color: #e6f4ea; */
  /* color: #34a853; */
  /* border: 1px solid #34a853; */
}

.block-product-upload .message.error {
  /* background-color: #fee; */
  color: #ea4335;
  /* border: 1px solid #ea4335; */
}

.block-product-upload .message.info {
  /* background-color: #e8f0fe; */
  /* color: #4285f4; */
  /* border: 1px solid #4285f4; */
}

#fileInput {
  display: none;
}

.block-product-upload .preview-container {
  /* margin: 20px 0; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-product-upload .preview-title {
  margin-bottom: 10px;
  color: #555;
}

#previewImage {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.image-style {
  margin: 0 25px;
  max-width: 100%;
  max-height: 35px;
}

#resultImage {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* .block-product-upload .progress-container {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
  display: none;
}

.block-product-upload .progress-bar {
  height: 100%;
  background-color: #4285f4;
  width: 0%;
  transition: width 0.3s;
} */

.block-product-upload .btn {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  display: none;
}

.block-product-upload .btn:hover {
  background-color: #3367d6;
  display: none;
}

.block-product-upload .message {
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.block-product-upload .success {
  /* background-color: #e8f5e9;
  color: #2e7d32; */
}

.block-product-upload .error {
  /* background-color: #ffebee; */
  color: #c62828;
}

.upload-border {
  cursor: pointer;
  border: #FF7300 1px dashed;
  background-color: #ffffff;
  border-radius: 8px;
}

.upload-border:hover {
  cursor: pointer;
  background-color: #fdfdfd;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e4a072;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.preview-big-image {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.preview-big-image-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
  font-size: 0;
}

/* .preview-wrapper:hover .delete-btn {
  display: flex;
} */

.preview-image-delete-btn {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgba(255, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  cursor: pointer;
  /* align-items: center; */
  justify-content: center;
}

/* 气泡提示 */
.toast {
  width: fit-content;
  min-width: 280px;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #333;
  padding: 8px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.349);
  font-size: 12px;
  border: 1px solid #ff902260;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999999;
}

.toast.show {
  opacity: 1;
}

.tip-icons-style {
  color: #22c55e;
  font-size: 18px;
  margin-right: 15px;
  z-index: 99999;
}

.spinner-wrapper {
  height: 120px;
  aspect-ratio: 3 / 4;
  background-color: #a0a0a0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate {
  animation: rotateIcon 1s linear infinite;
}

@keyframes rotateIcon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {

  #previewImage,
  #resultImage {
    max-height: 90px;
  }

  .image-style {
    margin: 0 15px;
    max-height: 25px;
  }

  .spinner-wrapper {
    height: 90px;
  }

  .spinner {
    width: 20px;
    height: 20px;
    border-top-color: #FF7300;
    border-radius: 15px;
    animation: spin 1s linear infinite;
  }

  .preview-image-delete-btn {
    padding-top: 0px;
  }
}