.modal_overlay {
  background: rgba(0,0,0,0.45);
  width: 100%;
  height: 100%;
  z-index: 100;
  position: fixed;
  overflow: auto;
  padding: 30px;
  display: none;
  backdrop-filter: blur(2px);
}

.upload_wrap {
  background-color: white;
  max-width: 1100px;
  width: 100%;
  /* height: 680px; */
  margin: 80px auto;
  position: relative;
}

.close_modal {
  width: fit-content;
  color: rgba(50, 50, 50);
  font-size: 28px;
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
}

.upload_header {
  background-color: #ffc4c4;
  padding: 0px 10px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #d31a1a;
  font-weight: 600;
  font-size: 15px;
}

.upload_area {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
  margin: auto;
  height: calc(100% - 50px);
  padding: 80px 100px;
}

.upload_div.left_div {
  width: 45%;
}

.up_thumb_area {
  display: flex;
  gap: 15px;
  width: fit-content;
  align-items: center;
  justify-content: flex-start;
  overflow: auto;
}
.swipe-hint {
  font-size: 14px;
  margin-bottom: 5px;
  color: #545454;
  opacity: 1;
  animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

.up_thumbnail::-webkit-scrollbar {
  height: 7px;
}

.up_thumbnail::-webkit-scrollbar-thumb {
  background-color: #545454;
  border-radius: 10px;
}

.up_thumbnail::-webkit-scrollbar-track {
  background-color: rgb(211, 211, 211);
  border-radius: 10px;
}

.up_thumbnail_upload {
  width: 100px;
  aspect-ratio: 1/1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #dcdcdc;
  margin-bottom: 10px;
  position: relative;
}

.cad_upload {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #dcdcdc;
  margin-bottom: 10px;
  position: relative;
}

.container {
  width: 100%;
  max-width: 400px;
}

.file-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

#cad-file {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  display: none;
}

.custom-file-label {
  display: inline-block;
  width: 100%;
  padding: 10px 20px;
  background-color: #323232;
  color: white;
  font-weight: 800;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #323232;
}

.file-container {
  display: none;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  background-color: #fff;
  justify-content: space-between;
}

.file-name {
  flex-grow: 1;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
}

.up_thumbnail_upload .text:nth-child(1) {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.up_thumbnail_upload .text:nth-child(2) {
  font-size: 14px;
  font-weight: 500;
  color: rgb(100, 100, 100);
  line-height: 1.5;
}

.up_thumbnail_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  width: 50px;
  color: white;
  border-radius: 100%;
  cursor: pointer;
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.153);
  font-size: 22px;
}

.absolute_input {
  position: absolute;
}

.up_thumbnail_img {
  max-width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  margin: auto;
  z-index: 1;
}

.delete_btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: red;
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  display: none;
}

.upload_div.right_div {
  width: 55%;
}

.info_upload {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 40px;
}

.input_div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.wish_price {
  display: none;
}

.product_size .input_box {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  border-bottom: 0;
}

.product_size .input_box input {
  width: 70px;
  border-bottom: 1px solid rgb(100, 100, 100);
  text-align: center;
}

.div_title {
  font-size: 15px;
  font-weight: bold;
  color: rgb(50, 50, 50);
  min-width: fit-content;
  width: 120px;
}

.div_title span {
  color: red;
}

.input_box {
  border-bottom: 1px solid rgb(100, 100, 100);
  max-width: 100%;
  width: 100%;
}

.input_box input {
  width: 100%;
  border: none;
  padding: 5px 0;
  outline: none;
  font-size: 15px;
}

input[type="checkbox"]{
  width: unset;
  border: unset;
  padding: unset;
  outline: unset;
  font-size: unset;
}

.input_box input::placeholder {
  color: rgb(180, 180, 180);
  font-size: 15px;
  letter-spacing: -1px;
}

.check_free .input_box,
.pattern_cate .input_box {
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.check_free .input_box div,
.pattern_cate .input_box div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  gap: 5px;
}

.check_free .input_box div label,
.pattern_cate .input_box div label {
  white-space: nowrap;
}

.content_upload {
  padding: 12px 0px;
  background-color: rgb(50, 50, 50);
  color: white;
  text-align: center;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  max-width: 110px;
  width: 100%;
  margin: 0 0 0 auto;
}

.content_upload:disabled {
  background-color: rgb(216, 216, 216);
}

.content_tag{
    display: block;
}

.tag_flex{
    display: flex;
}

#tag_input::placeholder {
  color: rgb(180, 180, 180) !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: -2px !important;
}

#tag_input{
  width: 100%;
  border: none;
  padding: 5px 0;
  outline: none;
  font-size: 15px;
  resize: none;
  height: 27px;
  line-height: 17px;
}

.tags_container::-webkit-scrollbar {
    width: 7px;
}
  
.tags_container::-webkit-scrollbar-thumb {
    background-color: #545454;
    border-radius: 10px;
}
.tags_container::-webkit-scrollbar-track {
    background-color: rgb(211, 211, 211);
    border-radius: 10px;
}

.tags_container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 0;
    max-height: 75px; 
    overflow-y: auto;
}

.tag {
    display: flex;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid rgb(200, 200, 200);
    width: fit-content;
    border-radius: 30px;
    white-space: nowrap;
}

.tag .remove_tag {
    cursor: pointer;
    color: red;
    font-weight: bold;
}


@media screen and (max-width: 975px) {
  .upload_wrap {
    background-color: white;
    max-width: 1100px;
    width: 100%;
    height: fit-content;
    margin: 80px auto;
    position: relative;
  }

  .close_modal {
    font-size: 20px;
    top: 3px;
    right: 3px;
  }

  .upload_header {
    background-color: #ffc4c4;
    padding: 10px 40px;
    height: unset;
    line-height: unset;
    text-align: center;
    color: #d31a1a;
    font-weight: 600;
    font-size: 15px;
  }

  .upload_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 50px;
    margin: auto;
    height: unset;
    padding: 80px 100px;
  }

  .upload_div.left_div {
      width: 100%;
  }

  .upload_div.right_div {
      width: 100%;
  }

  .up_thumbnail_upload {
    width: 90px;
    gap: 0px;
    padding: 10px 0;
  }

  .up_thumbnail_upload .text:nth-child(1) {
    margin: 30px 0;
  }

  .up_thumbnail_upload .text:nth-child(2) {
    margin: 0 0 30px 0;
  }


  .absolute_input {
    margin: 0;
  }

  .container {
      width: 100%;
      max-width: unset;
  }

  .info_upload {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .content_upload {
    max-width: unset;
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {
  .modal_overlay {
    padding: 0px;
  }

  .upload_wrap {
      margin: 0px auto;
  }

  .upload_area {
    gap: 50px;
    margin: auto;
    padding: 40px 30px;
  }

  .input_div {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .tag_flex {
      display: flex;
      flex-direction: column;
      gap: 15px;
  }
}
