.aisketchproduct-actions {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.aisketchproduct-actions .action-inline-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aisketchproduct-generate-btn {
  position: relative;
  min-width: 12rem;
}

.aisketchproduct-generate-btn[aria-busy='true'] {
  pointer-events: none;
  opacity: 0.85;
}

.aisketchproduct-btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: aisketchproduct-spin 0.75s linear infinite;
}

.aisketchproduct-btn-spinner[hidden] {
  display: none;
}

@keyframes aisketchproduct-spin {
  to {
    transform: rotate(360deg);
  }
}

.aisketchproduct-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.aisketchproduct-status.is-error {
  color: #c0392b;
}

.aisketchproduct-disclaimer,
.aisketchproduct-gdpr {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.aisketchproduct-preview-inline,
.aisketchproduct-preview-modal {
  text-align: center;
}
.aisketchproduct-preview-inline {
  margin-top: 1rem;
}
.aisketchproduct-preview-modal {
  max-height: 66vh;
  height: 100vh;
}

.aisketchproduct-preview-inline img,
.aisketchproduct-preview-modal img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  /* border: 1px solid #ddd; */
}
.aisketchproduct-preview-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* .aisketchproduct-preview-inline.is-stale img {
  opacity: 0.45;
} */

.aisketchproduct-modal .modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
}
.aisketchproduct-modal .modal-content {
  /* height: 100vh; */
}
.aisketchproduct-modal .modal-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0;
}
.aisketchproduct-modal .modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
.aisketchproduct-modal .modal-footer .action-block {
  display: flex;
  justify-content: end;
  gap: 12px;
  width: 100%;
}

.aisketchproduct-required-fields {
  color: #c0392b;
  font-weight: 700;
  text-align: center;
}

.btn-success {
  border-radius: 5px;
}

#aisketchproduct-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.modal .aisketchproduct-status {
  margin: 0;
}

@media (max-width: 575.98px) {
  .aisketchproduct-modal .modal-content {
    min-height: auto;
  }
  .aisketchproduct-modal .modal-header {
    padding-bottom: 1rem;
  }

  .aisketchproduct-preview-modal {
    max-height: 50vh;
  }

  .aisketchproduct-modal .modal-footer .action-block {
    flex-direction: column;
  }

  .aisketchproduct-actions .action-inline-block .btn {
    padding: 14px 21px;
    width: 100%;
  }
}