
/* NUJIZ SMART CROP STUDIO V1 */

html body #ncsStudio {
  --ncs-bg:#f8f7ff;
  --ncs-card:#ffffff;
  --ncs-text:#25213c;
  --ncs-muted:#64748b;
  --ncs-border:#d8d1ea;
  --ncs-active:#ede5ff;
  display:grid;
  gap:15px;
  padding:16px;
  margin-bottom:18px;
  border:1px solid var(--ncs-border);
  background:var(--ncs-bg);
  border-radius:16px;
}

html[data-theme="dark"] body #ncsStudio {
  --ncs-bg:#191d28;
  --ncs-card:#242a38;
  --ncs-text:#f5f3ff;
  --ncs-muted:#cbd5e1;
  --ncs-border:#41495d;
  --ncs-active:#38275f;
}

html body #ncsStudio .ncs-header {
  display:flex;
  align-items:center;
  gap:13px;
  padding:18px 14px;
  background:linear-gradient(135deg,#392475,#7045c6);
  border-radius:12px;
}

html body #ncsStudio .ncs-header strong {
  display:block;
  font-size:19px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

html body #ncsStudio .ncs-header small {
  display:block;
  margin-top:5px;
  font-size:13px!important;
  color:#e9ddff!important;
  -webkit-text-fill-color:#e9ddff!important;
}

html body #ncsStudio .ncs-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex-shrink:0;
  background:#ffffff24;
  border-radius:12px;
  color:#fff!important;
  font-size:29px;
}

html body #ncsStudio h4 {
  margin:0;
  font-size:16px!important;
  color:var(--ncs-text)!important;
  -webkit-text-fill-color:var(--ncs-text)!important;
}

html body #ncsStudio .ncs-presets {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

html body #ncsStudio button {
  border:1px solid var(--ncs-border)!important;
  background:var(--ncs-card)!important;
  color:var(--ncs-text)!important;
  -webkit-text-fill-color:var(--ncs-text)!important;
  border-radius:10px!important;
  cursor:pointer;
  min-height:44px;
  box-shadow:none!important;
}

html body #ncsStudio .ncs-presets button {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:12px 4px!important;
  min-height:82px;
}

html body #ncsStudio .ncs-presets svg {
  width:38px;
  height:32px;
  color:#9871ed!important;
}

html body #ncsStudio .ncs-presets b {
  font-size:14px!important;
  color:var(--ncs-text)!important;
  -webkit-text-fill-color:var(--ncs-text)!important;
}

html body #ncsStudio button.active {
  background:var(--ncs-active)!important;
  border-color:#9871ed!important;
  box-shadow:inset 0 0 0 1px #9871ed!important;
}

html body #ncsStudio .ncs-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

html body #ncsStudio .ncs-actions button {
  font-size:13px!important;
  font-weight:700;
  padding:10px 5px!important;
}

html body #ncsStudio .ncs-dimensions {
  display:grid;
  justify-items:center;
  gap:6px;
  padding:17px;
  background:var(--ncs-card);
  border:1px solid var(--ncs-border);
  border-radius:12px;
}

html body #ncsStudio .ncs-dimensions small,
html body #ncsStudio .ncs-dimensions span {
  font-size:13px!important;
  color:var(--ncs-muted)!important;
  -webkit-text-fill-color:var(--ncs-muted)!important;
}

html body #ncsDimensions {
  font-size:25px!important;
  font-weight:800!important;
  color:var(--ncs-text)!important;
  -webkit-text-fill-color:var(--ncs-text)!important;
}

html body #ncsStudio .ncs-privacy {
  font-size:13px!important;
  color:#15803d!important;
  -webkit-text-fill-color:#15803d!important;
  text-align:center;
}

html[data-theme="dark"] body #ncsStudio .ncs-privacy {
  color:#86efac!important;
  -webkit-text-fill-color:#86efac!important;
}

/* Clear selected image area */

html body .crop-selector.visible {
  background:transparent!important;
  border:2px solid #a78bfa!important;
  box-shadow:0 0 0 9999px rgba(0,0,0,.56)!important;
  touch-action:none;
}

html body .crop-selector .crop-grid {
  background:rgba(255,255,255,.65)!important;
  pointer-events:none;
}

html body .crop-selector .crop-handle {
  background:#8b5cf6!important;
  border:2px solid #ffffff!important;
  width:15px!important;
  height:15px!important;
  border-radius:50%!important;
  touch-action:none;
}

html body .crop-selector::after {
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

@media(max-width:600px){
  html body #ncsStudio {
    padding:12px;
    gap:12px;
  }

  html body #ncsStudio .ncs-presets {
    gap:6px;
  }

  html body #ncsStudio .ncs-presets button {
    min-height:72px;
  }

  html body .crop-selector .crop-handle {
    width:20px!important;
    height:20px!important;
  }
}


/* NUJIZ SMART CROP STUDIO V2 */

html body[data-tool-id="crop"] .nujiz-crop-toolbar,
html body[data-tool-id="crop"] .nujiz-crop-stage{
  display:none!important;
}

html body[data-tool-id="crop"] .crop-selector.visible{
  background:transparent!important;
  background-color:transparent!important;
  opacity:1!important;
  filter:none!important;
  border:2px solid #a78bfa!important;
  box-shadow:0 0 0 9999px rgba(0,0,0,.60)!important;
  touch-action:none!important;
  user-select:none!important;
}

html body[data-tool-id="crop"] .crop-selector .crop-handle{
  width:16px!important;
  height:16px!important;
  background:#8b5cf6!important;
  border:2px solid #fff!important;
  border-radius:50%!important;
  opacity:1!important;
  touch-action:none!important;
  box-shadow:0 2px 8px #0005!important;
}

html body[data-tool-id="crop"] .crop-selector::after{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:13px!important;
  font-weight:800!important;
}

html body[data-tool-id="crop"]:has(
  #downloadButton.visible[href^="blob:"]
) .crop-selector{
  display:none!important;
}

html body[data-tool-id="crop"] #ncsStudio button{
  transition:
    background .15s,
    border-color .15s,
    box-shadow .15s;
}

html body[data-tool-id="crop"] #ncsStudio button:hover{
  border-color:#a78bfa!important;
}

html body[data-tool-id="crop"] #ncsStudio button:focus-visible{
  outline:2px solid #a78bfa;
  outline-offset:3px;
}

html body[data-tool-id="crop"] #ncsDimensions{
  font-size:28px!important;
  font-variant-numeric:tabular-nums;
}

@media(max-width:700px){

  html body[data-tool-id="crop"]
  .crop-selector .crop-handle{
    width:22px!important;
    height:22px!important;
  }

  html body[data-tool-id="crop"]
  #ncsStudio .ncs-presets button{
    min-height:76px!important;
  }
}

