#aiSerialModal .form-group {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
#aiSerialModal .form__label {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
#aiSerialModal .form__value {
  min-width: 0;
  overflow: hidden;
}
#aiSerialModal .custom-file-upload {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}
#aiSerialModal .custom-file-upload .custom-file-name {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  position: relative;
  min-height: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
#aiSerialModal .custom-file-upload .custom-file-name input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#aiSerialModal .custom-file-upload .custom-file-name .file-name-text {
  color: var(--custom-secondary-gray02);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  text-align: left;
}
#aiSerialModal .custom-file-upload .custom-file-label {
  margin-bottom: 0;
  cursor: pointer;
  white-space: nowrap;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
#aiSerialModal .custom-file-preview {
  margin-top: 1rem;
}
#aiSerialModal .custom-file-preview .image-preview__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 1rem;
}
#aiSerialModal .custom-file-preview .image-preview__list li {
  position: relative;
  display: inline-block;
}
#aiSerialModal .custom-file-preview__img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: block;
  background-color: #f8f9fa;
}
#aiSerialModal .custom-file-preview__del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
  -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
#aiSerialModal .custom-file-preview__del:hover {
  background: #c82333;
}
#aiSerialModal .custom-file-preview__del i {
  font-size: 14px;
}
#aiSerialModal .form__file-text {
  text-align: left;
  font-size: 0.875rem;
  color: var(--custom-point-red);
}
#aiSerialModal .modal-footer button {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 3.5rem !important;
  font-size: 1rem !important;
  padding: 0 1.5rem !important;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  -webkit-box-pack: center !important;
      -ms-flex-pack: center !important;
          justify-content: center !important;
  line-height: 1 !important;
}
#aiSerialModal .modal-footer .btn-secondary {
  border-radius: 0.625rem;
  color: var(--custom-primary-blue) !important;
}
#aiSerialModal .modal-footer .btn-primary {
  border-radius: 0.625rem;
}

.alert-danger {
  word-break: auto-phrase;
  border-radius: 0.625rem;
}

.ai-verify-info {
  text-align: left;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  margin: 0 auto;
}
.ai-verify-info__list {
  margin: 0;
}
.ai-verify-info__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid #e9ecef;
}
.ai-verify-info__item:last-child {
  border-bottom: none;
}
.ai-verify-info__item dt {
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 1rem;
  line-height: 1.375rem;
}
.ai-verify-info__item dd {
  margin: 0;
  font-weight: 500;
  color: #212529;
  text-align: right;
  word-break: auto-phrase;
}

@media (min-width: 769px) {
  :where(#ai-error-modal, #ai-warning-modal, #ai-success-modal, #ai-loading-modal) .modal-content {
    right: 0.5rem;
  }
}
@media (max-width: 768.98px) {
  #aiSerialModal .modal-dialog {
    width: 100%;
  }
  #aiSerialModal .modal-footer button {
    width: 100%;
    padding: 0.875rem 2rem !important;
  }
  .ai-verify-info {
    padding: 1rem;
  }
  .ai-verify-info__item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .ai-verify-info__item dd {
    text-align: left;
    margin-top: 0.25rem;
  }
}
