.image-upload-popover {
  position: fixed;
  z-index: 1800;
  width: min(430px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, .18);
}

.image-upload-popover[hidden] {
  display: none;
}

.image-upload-dropzone {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px dashed #98bdf8;
  border-radius: 10px;
  background: #f8faff;
  color: #667085;
  text-align: center;
  outline: 0;
}

.image-upload-dropzone.dragging,
.image-upload-dropzone:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.image-upload-dropzone strong {
  display: block;
  color: #344054;
  font-size: 14px;
}

.image-upload-dropzone small {
  display: block;
  margin-top: 7px;
  color: #98a2b3;
  font-size: 11px;
}

.image-upload-actions {
  display: flex;
  justify-content: center;
  padding-top: 11px;
}

.image-upload-local {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: inherit;
  cursor: pointer;
}

.image-upload-local:hover {
  border-color: #84adf5;
  color: #175cd3;
}

.image-upload-local:disabled,
.image-upload-dropzone[aria-busy="true"] {
  cursor: wait;
  opacity: .66;
}

.image-upload-trigger {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.image-upload-trigger:hover {
  border-color: #84adf5;
  color: #175cd3;
}

.image-thumbnail {
  position: relative;
  width: 62px;
  height: 62px;
  margin: auto;
}

.image-thumbnail-button {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}

.image-thumbnail.editable .image-thumbnail-button {
  cursor: pointer;
}

.image-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-thumbnail-delete {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #344054;
  color: #fff;
  font: 700 15px/1 Arial, sans-serif;
  box-shadow: 0 2px 7px rgba(16, 24, 40, .22);
  cursor: pointer;
}

.image-thumbnail-delete:hover {
  background: #d92d20;
}

@media (max-width: 640px) {
  .image-upload-popover {
    width: calc(100vw - 20px);
  }
}
