.pv-image-editor {
  border-top: 1px solid var(--line, rgba(35, 42, 51, .14));
  margin: 10px 0 4px;
  min-width: 0;
  padding-top: 10px;
}
.pv-image-editor-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.pv-image-picker {
  align-items: center;
  border: 1px solid var(--line, rgba(35, 42, 51, .2));
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
}
.pv-image-picker > span { line-height: 1.1; white-space: nowrap; }
.pv-image-picker > span:first-child { font-size: 18px; line-height: 1; }
.pv-image-picker.is-disabled { cursor: not-allowed; opacity: .55; }
.pv-image-picker input {
  cursor: inherit;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}
.pv-image-picker:focus-within {
  outline: 2px solid var(--focus, #2876df);
  outline-offset: 2px;
}
.pv-image-help,
.pv-image-notice,
.pv-images-hidden {
  color: var(--ink-3, #66707c);
  font-size: 12px;
}
.pv-image-help { flex: 1 1 230px; line-height: 1.35; margin: 0; min-width: 0; }
.composer .body .pv-image-help { color: var(--ink-3, #66707c); font-size: 12px; line-height: 1.35; }
.pv-image-notice { color: var(--ink-2, #434d59); line-height: 1.35; margin: 6px 0 0; }
.composer .body .pv-image-notice { font-size: 12px; line-height: 1.35; }
.pv-image-items {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.pv-image-item {
  align-self: flex-start;
  background: var(--paper, #fff);
  border: 1px solid var(--line, rgba(35, 42, 51, .12));
  border-radius: 0;
  display: flex;
  flex: 0 0 96px;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}
.pv-image-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: var(--tint-2, #f0f2f4);
  display: grid;
  justify-items: center;
  overflow: hidden;
  width: 100%;
}
.pv-image-thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
.pv-image-placeholder {
  color: var(--ink-3, #66707c);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 5px;
  text-align: center;
}
.pv-image-placeholder.is-error { color: var(--danger, #a32323); }
.pv-image-status {
  color: var(--ink-3, #66707c);
  font-size: 11px;
  line-height: 1.25;
  margin: 6px 6px 0;
  overflow-wrap: anywhere;
}
.pv-image-status.is-error { color: var(--danger, #a32323); }
.pv-image-item progress { display: block; height: 5px; margin: 6px; width: calc(100% - 12px); }
.pv-image-retry {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: var(--ink-2, #434d59);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  margin: 2px 6px 6px;
  min-height: 28px;
  padding: 0 5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pv-image-retry:hover { color: var(--ink, #202830); }
.pv-image-retry:focus-visible { outline: 2px solid var(--focus, #2876df); outline-offset: 1px; }
.pv-image-actions { border-top: 1px solid var(--line, rgba(35, 42, 51, .12)); display: flex; margin-top: auto; }
.pv-image-actions button {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line, rgba(35, 42, 51, .12));
  color: var(--ink-2, #434d59);
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 0;
  font-family: inherit;
  font-size: 17px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  padding: 0;
}
.pv-image-actions button:last-child { border-right: 0; }
.pv-image-actions button:not(:disabled):hover { background: var(--tint, rgba(90, 103, 120, .035)); color: var(--ink, #202830); }
.pv-image-actions button:focus-visible { outline: 2px solid var(--focus, #2876df); outline-offset: -2px; position: relative; z-index: 1; }
.pv-image-actions button:disabled { color: var(--ink-3, #66707c); cursor: default; opacity: .45; }
.pv-image-item[data-image-count="1"] .pv-image-actions { justify-content: flex-end; }
.pv-image-item[data-image-count="1"] .pv-image-actions button { border-left: 1px solid var(--line, rgba(35, 42, 51, .12)); flex: 0 0 32px; }
.pv-image-drop-outline[hidden] { display: none !important; }
.pv-image-drop-outline:not([hidden]) {
  border: 2px dashed var(--focus, #2876df);
  box-sizing: border-box;
  pointer-events: none;
  position: fixed;
  z-index: 900;
}
.pv-image-drop-feedback[hidden] { display: none !important; }
.pv-image-drop-feedback:not([hidden]) {
  align-items: center;
  background: var(--paper, #fff);
  border: 1px dashed var(--focus, #2876df);
  border-radius: 999px;
  box-shadow: 0 3px 14px rgba(17, 17, 17, .14);
  color: var(--ink, #111);
  display: flex;
  font-family: var(--font-ui, Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 8px 14px;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}
.pv-image-gallery {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 4px;
  max-width: 760px;
  width: min(100%, 760px);
}
.pv-image-gallery--single {
  gap: 0;
}
.pv-image-gallery-item {
  aspect-ratio: auto;
  background: var(--tint-2, #f0f2f4);
  border: 1px solid var(--line, rgba(35, 42, 51, .16));
  border-radius: 9px;
  cursor: pointer;
  display: block;
  height: auto;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  width: fit-content;
}
.pv-image-gallery-item img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}
@media (min-width: 861px) {
  .pv-image-gallery-item img {
    max-height: min(72vh, 760px);
  }
}
@media (max-width: 860px) {
  .pv-image-gallery-item { width: 100%; }
  .pv-image-gallery-item img {
    max-height: none;
    width: 100%;
  }
}
.pv-image-gallery-item:focus-visible {
  outline: 3px solid var(--focus, #2876df);
  outline-offset: 2px;
}
.pv-images-hidden { margin: 12px 0 4px; }
.pv-image-link-error {
  color: var(--danger, #a32323);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}
.profile-shelf-cell .pv-image-gallery-item.profile-shelf-image-link { cursor: pointer; }
@media (max-width: 560px) {
  .pv-image-item { flex-basis: 80px; }
}
