/* STOCKDIVAR_PHOTO_EDITOR_V797 */
body.photo-editor-open-v797 {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.media-slot .media-edit-button-v797 {
  position: absolute !important;
  z-index: 4;
  top: auto !important;
  right: auto !important;
  bottom: 6px !important;
  left: 6px !important;
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 999px !important;
  background: rgba(17, 24, 39, .82) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .25) !important;
  backdrop-filter: blur(8px);
  font-size: 15px;
  line-height: 1;
}

.photo-editor-v797[hidden] {
  display: none !important;
}

.photo-editor-v797 {
  position: fixed;
  z-index: 18000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  direction: rtl;
}

.photo-editor-backdrop-v797 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 12, 20, .76);
  backdrop-filter: blur(7px);
}

.photo-editor-panel-v797 {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #172033);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .42);
}

.photo-editor-header-v797,
.photo-editor-footer-v797 {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-color: var(--color-border, #e1e5ec);
  background: var(--color-surface, #fff);
}

.photo-editor-header-v797 {
  border-bottom: 1px solid var(--color-border, #e1e5ec);
}

.photo-editor-header-v797 > div {
  min-width: 0;
}

.photo-editor-header-v797 strong,
.photo-editor-header-v797 small {
  display: block;
}

.photo-editor-header-v797 strong {
  font-size: 17px;
  font-weight: 950;
}

.photo-editor-header-v797 small {
  max-width: min(62vw, 520px);
  overflow: hidden;
  color: var(--color-text-muted, #697386);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-editor-header-v797 > button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border, #e1e5ec);
  border-radius: 13px;
  background: var(--color-soft, #f4f6f9);
  color: inherit;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}

.photo-editor-body-v797 {
  min-height: 0;
  overflow: auto;
  padding: 14px 18px;
  overscroll-behavior: contain;
}

.photo-editor-canvas-shell-v797 {
  position: relative;
  height: min(56dvh, 560px);
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background: #0d1118;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.photo-editor-canvas-shell-v797 canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: crosshair;
  touch-action: none;
}

.photo-editor-loading-v797 {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  background: rgba(10, 15, 24, .88);
  color: #fff;
  text-align: center;
}

.photo-editor-loading-v797[hidden] {
  display: none;
}

.photo-editor-loading-v797 > span {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stockdivarPhotoEditorSpinV797 .8s linear infinite;
}

.photo-editor-help-v797 {
  margin: 10px 2px 8px;
  color: var(--color-text-muted, #697386);
  font-size: 12px;
  text-align: center;
}

.photo-editor-ratios-v797 {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 7px;
  scrollbar-width: thin;
}

.photo-editor-ratios-v797 button,
.photo-editor-tools-v797 button {
  min-height: 44px;
  border: 1px solid var(--color-border, #dce1e9);
  border-radius: 13px;
  background: var(--color-soft, #f4f6f9);
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.photo-editor-ratios-v797 button {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.photo-editor-ratios-v797 button[aria-pressed="true"] {
  border-color: #a71928;
  background: #a71928;
  color: #fff;
  box-shadow: 0 7px 18px rgba(167, 25, 40, .2);
}

.photo-editor-tools-v797 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.photo-editor-tools-v797 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
}

.photo-editor-tools-v797 button span {
  color: #a71928;
  font-size: 22px;
  line-height: 1;
}

.photo-editor-status-v797 {
  display: block;
  min-height: 1.6em;
  margin-top: 9px;
  color: var(--color-text-muted, #697386);
  font-size: 12px;
  text-align: center;
}

.photo-editor-footer-v797 {
  justify-content: flex-end;
  border-top: 1px solid var(--color-border, #e1e5ec);
}

.photo-editor-footer-v797 button {
  min-width: 130px;
  min-height: 46px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.photo-editor-cancel-v797 {
  border: 1px solid var(--color-border, #dce1e9);
  background: var(--color-surface, #fff);
  color: inherit;
}

.photo-editor-save-v797 {
  border: 1px solid #a71928;
  background: linear-gradient(135deg, #a71928, #c82d3d);
  color: #fff;
  box-shadow: 0 8px 22px rgba(167, 25, 40, .22);
}

.photo-editor-panel-v797 button:disabled {
  opacity: .5;
  cursor: wait;
}

html[data-theme="dark"] .photo-editor-panel-v797,
body.dark-mode .photo-editor-panel-v797 {
  --color-surface: #111827;
  --color-soft: #192235;
  --color-text: #f8fafc;
  --color-text-muted: #b8c0cd;
  --color-border: #334155;
}

@media (max-width: 720px) {
  .photo-editor-v797 {
    place-items: end stretch;
    padding: 0;
  }
  .photo-editor-panel-v797 {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .photo-editor-header-v797 {
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .photo-editor-body-v797 {
    padding: 10px 12px;
  }
  .photo-editor-canvas-shell-v797 {
    height: min(48dvh, 430px);
    min-height: 250px;
    border-radius: 16px;
  }
  .photo-editor-footer-v797 {
    padding: 11px 12px max(11px, env(safe-area-inset-bottom));
  }
  .photo-editor-footer-v797 button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .photo-editor-body-v797 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr);
    grid-template-rows: auto auto 1fr;
    gap: 8px 12px;
  }
  .photo-editor-canvas-shell-v797 {
    grid-row: 1 / -1;
    height: 100%;
    min-height: 320px;
  }
  .photo-editor-help-v797 {
    margin-top: 0;
  }
  .photo-editor-tools-v797 {
    grid-template-columns: 1fr;
  }
}

@keyframes stockdivarPhotoEditorSpinV797 {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-editor-loading-v797 > span {
    animation-duration: 2.2s;
  }
}
