/* STOCKDIVAR_AD_IMAGE_EDITOR_V806 */
.sd-image-editor-open-v804 {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.sd-image-editor-v804 {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--sd-editor-height-v806, 100vh);
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(12, 18, 28, .84);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  direction: rtl;
  color: #172033;
  font-family: Vazirmatn, IRANSans, Tahoma, sans-serif;
  isolation: isolate;
}

.sd-image-editor-v804 *,
.sd-image-editor-v804 *::before,
.sd-image-editor-v804 *::after {
  box-sizing: border-box;
}

.sd-image-editor-shell-v804 {
  width: min(760px, 100%);
  max-height: calc(100vh - 24px);
  max-height: min(900px, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .44);
  outline: none;
}

.sd-image-editor-header-v804,
.sd-image-editor-actions-v804 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
}

.sd-image-editor-header-v804 {
  justify-content: space-between;
  border-bottom: 1px solid #e8ebf0;
}

.sd-image-editor-header-v804 > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sd-image-editor-header-v804 strong {
  font-size: 17px;
  font-weight: 950;
}

.sd-image-editor-header-v804 small {
  color: #687386;
  font-size: 12px;
  line-height: 1.6;
}

.sd-image-editor-header-v804 button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e6ed;
  border-radius: 14px;
  background: #f5f6f8;
  color: #172033;
  font: 800 25px/1 Tahoma, sans-serif;
  cursor: pointer;
}

.sd-image-editor-stage-v804 {
  position: relative;
  flex: 1 1 360px;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .09), transparent 42%),
    #161c27;
}

.sd-image-editor-canvas-v804 {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 12px 34px rgba(0, 0, 0, .32);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sd-image-editor-canvas-v804:active {
  cursor: grabbing;
}

.sd-image-editor-grid-v804 {
  position: absolute;
  z-index: 2;
  inset: 12px;
  margin: auto;
  width: min(calc(100% - 24px), 520px);
  height: min(calc(100% - 24px), 520px);
  pointer-events: none;
  opacity: 0;
}

.sd-image-editor-controls-v804 {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #e8ebf0;
  background: #fbfbfc;
}

.sd-image-editor-toolbar-v804 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-image-editor-toolbar-v804 button,
.sd-image-editor-aspects-v804 button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #dfe3ea;
  border-radius: 12px;
  background: #fff;
  color: #283244;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.sd-image-editor-toolbar-v804 button {
  min-width: 76px;
}

.sd-image-editor-rotation-v804 {
  margin-inline-start: auto;
  color: #687386;
  font-size: 12px;
}

.sd-image-editor-rotation-v804 b {
  color: #172033;
}

.sd-image-editor-aspects-v804 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sd-image-editor-aspects-v804 legend {
  float: right;
  margin-inline-end: 4px;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
}

.sd-image-editor-aspects-v804 button.is-active {
  border-color: #b51f2d;
  background: #fff0f2;
  color: #a71928;
  box-shadow: inset 0 0 0 1px #b51f2d;
}

.sd-image-editor-zoom-v804 {
  display: grid;
  gap: 7px;
}

.sd-image-editor-zoom-v804 > span {
  display: flex;
  justify-content: space-between;
  color: #687386;
  font-size: 12px;
  font-weight: 800;
}

.sd-image-editor-zoom-v804 output {
  color: #172033;
}

.sd-image-editor-zoom-v804 input {
  width: 100%;
  accent-color: #a71928;
  cursor: pointer;
}

.sd-image-editor-status-v804 {
  min-height: 0;
  margin: 0;
  color: #a71928;
  font-size: 12px;
  font-weight: 800;
}

.sd-image-editor-status-v804:empty {
  display: none;
}

.sd-image-editor-actions-v804 {
  flex: 0 0 auto;
  justify-content: flex-end;
  border-top: 1px solid #e8ebf0;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.sd-image-editor-actions-v804 button {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.sd-image-editor-cancel-v804 {
  border: 1px solid #dfe3ea;
  background: #fff;
  color: #3c4657;
}

.sd-image-editor-save-v804 {
  border: 1px solid #a71928;
  background: linear-gradient(135deg, #bd2635, #981725);
  color: #fff;
  box-shadow: 0 9px 20px rgba(167, 25, 40, .2);
}

.sd-image-editor-v804 button:focus-visible,
.sd-image-editor-v804 input:focus-visible {
  outline: 3px solid rgba(33, 109, 230, .34);
  outline-offset: 2px;
}

.sd-image-editor-v804 button:disabled,
.sd-image-editor-v804 input:disabled {
  cursor: wait;
  opacity: .58;
}

.media-edit-button-v804 {
  position: absolute !important;
  inset: auto auto 6px 6px !important;
  z-index: 4;
  width: auto !important;
  min-width: 52px;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(17, 24, 39, .82) !important;
  color: #fff !important;
  font: 800 10px/1 Vazirmatn, Tahoma, sans-serif !important;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
}

.wizard-upload-slot.media-processing-v804 {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(167, 25, 40, .34);
  background: linear-gradient(145deg, #fff7f8, #f5f7fa);
  color: #a71928;
  cursor: wait;
  pointer-events: none;
}

.wizard-upload-slot.media-processing-v804::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid rgba(167, 25, 40, .18);
  border-top-color: #a71928;
  border-radius: 50%;
  animation: sd-media-spin-v804 .72s linear infinite;
}

.wizard-upload-slot.media-processing-v804::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--tile-progress, 0%);
  height: 4px;
  background: linear-gradient(90deg, #c52a39, #e95c68);
  transition: width .2s ease;
}

.wizard-upload-slot.media-processing-v804 small {
  max-width: 88%;
  color: #7a2730;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

body[data-page="create"] .media-upload-progress {
  display: none !important;
}

@keyframes sd-media-spin-v804 {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .sd-image-editor-v804 {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #111722;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sd-image-editor-shell-v804 {
    width: 100%;
    height: 100%;
    max-height: none;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
  }

  .sd-image-editor-header-v804 {
    padding: 11px 14px;
  }

  .sd-image-editor-header-v804 strong {
    font-size: 15px;
  }

  .sd-image-editor-header-v804 small {
    font-size: 11px;
  }

  .sd-image-editor-header-v804 button {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .sd-image-editor-stage-v804 {
    flex: 1 1 220px;
    min-height: 150px;
    padding: 8px;
  }

  .sd-image-editor-controls-v804 {
    gap: 9px;
    padding: 10px 14px;
  }

  .sd-image-editor-toolbar-v804 button {
    min-width: 66px;
    min-height: 38px;
    padding: 7px 10px;
  }

  .sd-image-editor-aspects-v804 {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .sd-image-editor-aspects-v804::-webkit-scrollbar {
    display: none;
  }

  .sd-image-editor-aspects-v804 legend {
    min-width: 52px;
  }

  .sd-image-editor-aspects-v804 button {
    min-height: 37px;
    white-space: nowrap;
  }

  .sd-image-editor-actions-v804 {
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  }

  .sd-image-editor-actions-v804 button {
    flex: 1;
  }
}

@media (max-height: 650px) {
  .sd-image-editor-header-v804 small,
  .sd-image-editor-rotation-v804,
  .sd-image-editor-status-v804:empty {
    display: none;
  }

  .sd-image-editor-controls-v804 {
    gap: 7px;
    padding-block: 8px;
  }

  .sd-image-editor-stage-v804 {
    min-height: 120px;
  }
}

.sd-image-editor-loading-shell-v806 {
  min-height: min(520px, calc(100vh - 24px));
}

.sd-image-editor-loading-stage-v806 {
  flex: 1 1 auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.10), transparent 42%),
    #161c27;
  color: #fff;
  text-align: center;
}

.sd-image-editor-loading-stage-v806 strong {
  font-size: 16px;
}

.sd-image-editor-loading-stage-v806 p {
  max-width: 360px;
  min-height: 22px;
  margin: 0;
  color: #cbd2dc;
  font-size: 12px;
  line-height: 1.8;
}

.sd-image-editor-spinner-v806 {
  width: 46px;
  height: 46px;
  display: block;
  border: 4px solid rgba(255,255,255,.20);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sd-editor-spin-v806 .8s linear infinite;
}

.sd-image-editor-loading-action-v806 {
  min-width: 132px;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.sd-image-editor-v806.is-error-v806 .sd-image-editor-spinner-v806 {
  animation: none;
  border: 0;
}

.sd-image-editor-v806.is-error-v806 .sd-image-editor-spinner-v806::before {
  content: "!";
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #ff9aa5;
  border-radius: 50%;
  color: #ffb4bc;
  font-size: 27px;
  font-weight: 900;
}

@keyframes sd-editor-spin-v806 {
  to { transform: rotate(1turn); }
}

@media (max-width: 640px) {
  .sd-image-editor-loading-shell-v806 {
    min-height: 0;
  }

  .sd-image-editor-loading-stage-v806 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-image-editor-spinner-v806 {
    animation-duration: 1.8s;
  }

  .wizard-upload-slot.media-processing-v804::before {
    animation-duration: 1.8s;
  }

  .wizard-upload-slot.media-processing-v804::after {
    transition: none;
  }
}
