.je-box{

    margin-top:30px;

    border:1px solid #eee;

    padding:25px;

    border-radius:12px;

    background:#fff;

}

.je-field{

    margin-bottom:18px;

}

.je-field label{

    display:block;

    font-weight:600;

    margin-bottom:8px;

}

#je-text{

    width:100%;

}

#je-font{

    width:100%;

}

.je-symbols{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}

.je-symbols button{

    width:42px;

    height:42px;

    font-size:20px;

    cursor:pointer;

}

.je-preview-wrapper{
/*     position:absolute;
    inset:0;
    z-index:999;
    pointer-events:none; */
position: absolute;
	overflow:visible;

    left: 39%;
    top: 53%;

    width: 20%;
    height: 8%;

    z-index: 50;

    pointer-events: none;
}
.woocommerce-product-gallery{
    position:relative;
}

#je-preview-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:26px;
    color:#000;
    font-family:'Great Vibes', cursive;
    white-space:nowrap;
    cursor:move;
    user-select:none;
    touch-action:none;
    z-index:999;
}
#je-preview-text{
    pointer-events:auto;
    cursor:move;
    user-select:none;
    touch-action:none;
}
.zoomImg{
    display:none !important;
}

.woocommerce-product-gallery__image img{
    pointer-events:none;
}

#je-preview-text{

    cursor:grab;

    touch-action:none;

    user-select:none;

    -webkit-user-select:none;

}

#je-preview-text:active{

    cursor:grabbing;

}

/* ///////////////////////// */

.je-font-card-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.je-font-option,
.woocommerce div.product form.cart .je-font-option {
    width: 62px;
    min-height: 66px;
    margin: 0;
    padding: 7px 4px;

    border: 1px solid #d9d9d9 !important;
    border-radius: 10px;

    background: #ffffff !important;
    color: #111111 !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    box-shadow: none !important;
    outline: none;
    text-transform: none;
}

.je-font-option span {
    display: block;
    font-size: 19px;
    line-height: 1.2;
    color: #111111;
    pointer-events: none;
}

.je-font-option small {
    display: block;
    margin-top: 5px;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;

    color: #333333;
    pointer-events: none;
}

.je-font-option:hover {
    border-color: #7c3aed !important;
}

.je-font-option.active,
.woocommerce div.product form.cart .je-font-option.active {
    border: 2px solid #7c3aed !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important;
}

/* rotation */

.je-rotation-control {
    width: 100%;
    margin-top: 15px;
}

.je-rotation-control label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

#je-rotation {
    width: 100%;
    cursor: pointer;
}

#je-preview-text {
    transform-origin: center center;
    will-change: left, top, transform;
}

@media (max-width: 767px) {

    .je-rotation-control {
        margin-top: 12px;
    }

    .je-rotation-control label {
        font-size: 13px;
    }

    #je-rotation {
        min-height: 24px;
    }
}

/* Preview invisible box CSS */

.woocommerce-product-gallery {
    position: relative;
}

/*
 * Complete preview positioning area.
 * Left, top, width aur height product image ke hisaab se adjust kar sakte hain.
 */
.je-preview-wrapper {
    position: absolute;
    left: 39%;
    top: 53%;
    width: 20%;
    height: 7%;
    z-index: 20;
    pointer-events: none;
	overflow:visible;
}

/*
 * Invisible fitting box.
 * Temporary testing ke liye border uncomment kar sakte hain.
 */
.je-preview-fit-box {
    width: 100%;
    height: 100%;

    overflow: hidden;

    box-sizing: border-box;

    pointer-events: none;

    /* Testing ke liye: */
/*     border: 1px dashed red; */
}

#je-preview-text {
/*     position: absolute;
    left: 50%;
    top: 50%;

    display: inline-block;

    max-width: 100%;
    white-space: nowrap;

    font-size: 26px;
    line-height: 1;
    color: #111;

    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;

    user-select: none;
    cursor: move;
    pointer-events: auto;

    box-sizing: border-box; */

    position: absolute;

    left: 50%;
    top: 50%;

    display: inline-block;

    width: max-content;
    max-width: none;

    margin: 0;
    padding: 0;

    white-space: nowrap;

    font-size: 26px;
    line-height: 1;

    color: #111;

    text-align: center;

    transform:
        translate(-50%, -50%)
        rotate(0deg);

    transform-origin: center center;

    user-select: none;
    touch-action: none;

    cursor: move;

    pointer-events: auto;

    box-sizing: border-box;
}
}

.je-range-wrap {
    display: flex;
    align-items: center;

    width: 100%;

    gap: 12px;
}

.je-range-wrap input[type="range"] {
    flex: 1;

    min-width: 0;
}

.je-range-min,
.je-range-max {
    flex: 0 0 auto;

    font-size: 13px;
    font-weight: 600;
}

.je-size-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}