
/* NUJIZ IMAGE SHAPE PRO V1 */

[data-image-studio] [hidden]{
    display:none!important;
}

.nsp-title{
    padding:16px;
    border:1px solid rgba(124,92,255,.35);
    border-radius:14px;
    background:rgba(124,92,255,.08);
    margin-bottom:16px;
}

.nsp-title strong{
    display:block;
    font-size:17px;
    font-weight:900;
    color:inherit;
}

.nsp-title small{
    display:block;
    font-size:12px;
    margin-top:7px;
    line-height:1.8;
    color:inherit;
}

.nsp-shapes{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-bottom:20px;
}

.nsp-shape{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:0;
    min-height:86px;
    padding:8px 3px;
    border:1px solid rgba(135,135,160,.4);
    border-radius:12px;
    background:transparent;
    cursor:pointer;
    color:inherit!important;
}

.nsp-shape i{
    font-style:normal;
    font-size:30px;
    line-height:1.1;
    color:#9475ff!important;
}

.nsp-shape span{
    font-size:11px;
    font-weight:800;
    color:inherit!important;
}

.nsp-shape.active{
    background:#6946df!important;
    border-color:#967bff!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

.nsp-shape.active *{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

.nsp-section{
    border:1px solid rgba(135,135,160,.3);
    border-radius:15px;
    padding:15px;
    margin:14px 0;
}

.nsp-section > strong{
    display:block;
    font-size:15px;
    font-weight:900;
    margin-bottom:15px;
}

.nsp-section label{
    margin-bottom:14px;
}

.nsp-section label b{
    color:#9475ff!important;
    font-size:12px;
    float:inline-end;
}

.nsp-section input[type="range"]{
    width:100%;
    accent-color:#805afb;
}

.nsp-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.nsp-actions button,
#nspReset{
    min-height:43px;
    padding:7px;
    background:transparent;
    border:1px solid rgba(135,135,160,.4);
    border-radius:10px;
    font-size:12px;
    font-weight:800;
    color:inherit;
    cursor:pointer;
}

.nsp-actions button.active{
    background:#6946df!important;
    color:white!important;
}

#nspReset{
    width:100%;
    margin-top:9px;
}

.nsp-output{
    border:1px solid rgba(124,92,255,.35);
    background:rgba(124,92,255,.09);
    padding:14px;
    text-align:center;
    border-radius:11px;
}

.nsp-output small{
    display:block;
    font-size:12px;
    color:inherit;
}

.nsp-output b{
    display:block;
    font-size:19px;
    direction:ltr;
    margin-top:6px;
}

#previewCanvas.nsp-preview{
    cursor:grab;
    touch-action:none;
    background-color:#fff!important;
    background-image:
      linear-gradient(45deg,#cbd0d8 25%,transparent 25%),
      linear-gradient(-45deg,#cbd0d8 25%,transparent 25%),
      linear-gradient(45deg,transparent 75%,#cbd0d8 75%),
      linear-gradient(-45deg,transparent 75%,#cbd0d8 75%)!important;
    background-size:20px 20px!important;
    background-position:
      0 0,0 10px,10px -10px,-10px 0!important;
    max-width:100%;
    max-height:650px;
    object-fit:contain;
}

#previewCanvas.nsp-dragging{
    cursor:grabbing;
}

.nsp-privacy{
    color:#166534!important;
    -webkit-text-fill-color:#166534!important;
    background:#ecfdf5!important;
    border:1px solid #86efac!important;
    padding:12px;
    font-size:13px;
    font-weight:800;
    text-align:center;
    line-height:1.8;
    border-radius:11px;
}

html.dark .nsp-privacy,
body.dark .nsp-privacy,
.dark-mode .nsp-privacy,
[data-theme="dark"] .nsp-privacy{
    color:#86efac!important;
    -webkit-text-fill-color:#86efac!important;
    background:#10281f!important;
    border-color:#166534!important;
}

@media(max-width:600px){
    .nsp-shapes{
        gap:6px;
    }

    .nsp-shape{
        min-height:72px;
    }

    .nsp-shape i{
        font-size:25px;
    }

    .nsp-shape span{
        font-size:10px;
    }

    .nsp-section{
        padding:12px;
    }

    #previewCanvas.nsp-preview{
        max-height:420px;
    }
}

/* NSP BUTTON CONTRAST START */

#nspFlipH,
#nspFlipV,
#nspReset{
    color:#334155!important;
    -webkit-text-fill-color:#334155!important;
    background:#f8fafc!important;
    border:1px solid #cbd5e1!important;
    font-size:14px!important;
    font-weight:800!important;
    opacity:1!important;
    min-height:46px!important;
    transition:background .2s,border-color .2s;
}

html.dark #nspFlipH,
html.dark #nspFlipV,
html.dark #nspReset,
.dark-mode #nspFlipH,
.dark-mode #nspFlipV,
.dark-mode #nspReset,
[data-theme="dark"] #nspFlipH,
[data-theme="dark"] #nspFlipV,
[data-theme="dark"] #nspReset{
    color:#f1f5f9!important;
    -webkit-text-fill-color:#f1f5f9!important;
    background:#242b39!important;
    border-color:#495468!important;
}

#nspReset{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    background:#475569!important;
    border-color:#64748b!important;
}

#nspFlipH:hover,
#nspFlipV:hover,
#nspFlipH.active,
#nspFlipV.active{
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    background:#6946df!important;
    border-color:#967bff!important;
}

#nspReset:hover{
    background:#64748b!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

/* NSP BUTTON CONTRAST END */
