

  body.page-template-template-studioe {
    background: #f3f4f7;
}


.canvas-container { 
    box-shadow: 0 4px 32px -14px rgba(64, 87, 109, .3);
}
 

html {
  margin: 0 !important;
} 
 
.panel input, .panel button {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
}
.canvas-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
canvas {
   
}
 
.editor {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 5px;
    padding-top: 48px;
    overflow: hidden;
}

.canvas-wrapper {
    position: relative;
    z-index: 2;
    transform-origin: top left;
}


.ruler-vertical {
    width: 50px;
    position: relative;
    margin-right: 8px;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
        margin-left: -25px;

}

.ruler-horizontal{
  height:50px;
  position:relative;
  margin-top:8px;
      text-align: center;
}

.tick{
  position:absolute;
  background:#333;
}

.tick-h{
  height:1px;
  width:12px;
}

.tick-v{
  width:1px;
  height:12px;
}

.label{
  position:absolute;
  font-size:10px;
  color:#333;
}

.zoomBar{
    position:fixed;
    bottom:88px;
    left:50%;
    transform:translateX(-50%);

    background:#fff;
    padding:10px 20px;
    border-radius:12px;

    box-shadow:0 4px 12px rgba(0,0,0,0.2);

    display:flex;
    gap:15px;
    align-items:center;

    font-weight:bold;

    z-index:9998;
}

div#imageToolbar {
  /*position: absolute;
  text-align: center;
  left: 50%;
  transform: translate(0, -50%);
  top: 29px;
  z-index: 999; */
}

 

.layer-row.active-row {
  background: #e8f2ff;
  font-weight: 600;
}











/* =========================
   PAGE MANAGER
========================= */

#pageManager {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 8px 12px;

    background: #f1f2f5;
    border-radius: 14px;

    box-shadow: 0 4px 15px rgba(0,0,0,.08);

    z-index: 9999;
}

#pageList {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Individual page */

.page-item {
    width: 60px;
    height: 40px;

    background: #fff;

    border: 2px solid transparent;
    border-radius: 12px;

    padding: 3px;

    cursor: pointer;

    position: relative;

    transition: .2s ease;
}

.page-item:hover {
    border-color: #b8a0ff;
}

.page-item.active {
    border-color: #7c3cff;
    box-shadow: 0 0 0 2px rgba(124,60,255,.08);
}

/* Thumbnail */

.page-thumbnail {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;

    background: #fff;
}

/* Page number */

.page-number {
    position: absolute;

    left: 7px;
    bottom: 5px;

    font-size: 13px;
    font-weight: 500;

    color: #222;
}

/* Add page */

.page-add-btn {
    width: 60px;
    height: 40px;

    border: 0;
    border-radius: 12px;

    background: #e7e8eb;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    font-size: 28px;

    color: #111;
}

.page-add-btn:hover {
    background: #dddfe4;
}

.page-plus {
    font-size: 23px;
    line-height: 1;
}

.page-arrow {
    font-size: 24px;
    line-height: 1;
}






.side_bar_new {
    width: 100%;
    background: white;
    padding: 5px 5px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    height: 100vh;
        position: sticky;
    top: 0;
    
}


.side_bar_new ul {
    padding: 0;
    list-style: none;
        position: relative;
}

.side_bar_new li {
    text-align: center;
    font-size: 12px;
        margin-bottom: 20px;
}


.side_bar_new li span {
    display: block;
    width: 100%;
}

.side_bar_new li span.menu_icon {
   display: inline-block;
    padding: 8px 10px;
    width: initial;
    border-radius: 10px;
    font-size: 18px;


}


.side_bar_new li.active span.menu_icon {
    background: #3b7bd9;
    color: #fff;
}


.submenu_right {
    position: absolute;
    left: 80px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    top: 0;
    z-index: 99;
    width: 100%;
    padding: 0px 25px;
    text-align: left;
    border-radius: 10px;
    /* box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.09); */
    height: calc(100vh - 102px);
    overflow: auto;
    display: none;
    font-size: 14px;
    width: 300px;
    padding-right: 8px; 
    padding: 20px;
}


.submenu_right h3 {
    font-size: 17px;
}

.submenu_right input, .submenu_right select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    margin: 0;
        outline: none;
            color: #000;
}

.submenu_right label {
    font-size: 14px;
    margin: 0;
    line-height: 1;
    margin-top: 15px;
        width: 100%;
    display: inline-block;
        text-transform: capitalize;
}

.addbutton{
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 5px;
        font-size: 14px;
        text-transform: capitalize;
        margin-top: 10px;
        background: #3b7bd9;
        color: #fff;
}




  #shapeFill,
#shapeStroke, #canvasBg {
    width: 100%;
    height: 34px;
    padding: 3px;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #888;
    border-radius: 3px;
    appearance: auto;
    -webkit-appearance: auto;
}

#shapeFill::-webkit-color-swatch-wrapper,
#shapeStroke::-webkit-color-swatch-wrapper , #canvasBg::-webkit-color-swatch-wrapper {
    padding: 2px;
}

#shapeFill::-webkit-color-swatch,
#shapeStroke::-webkit-color-swatch, #canvasBg::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}


span.select_shape_notice {
    width: initial !important;
    display: inline-block !important;
    font-size: 9px;
    color: red;
}

.upload-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #f5f5f5;
    color: #111;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 10px 0;
}


.upload-btn:hover {
    background: #eaeaea;
}

.upload-icon {
    font-size: 22px;
    display: initial !important;
    width: initial !important;
}

.display_none{display: none;}


.boxrow {
    display: grid;
    grid-template-columns: minmax(80px, 5%) 1fr 0%;
    transition: grid-template-columns 0.3s ease;
}

.boxrow:has(.side_barnn_creater-1 .side_bar_new ul li.active) {
    /*grid-template-columns: minmax(8px, 23%) 1fr 15%;*/
    /*   grid-template-columns: minmax(8px, 400px) 1fr 0%; */
}

.menu_short {
    width: 60px;
}


button.menu_close , button.menu_close01{
    float: right;
    border: none;
    background: none;
    font-size: 13px;
    outline: none;
}


label.acf-field-label.acf-label-size_in, #acf-size_in, .acf-label-template_width, #acf-template_width,.acf-label-template_height, #acf-template_height{
    display: none !important;
}

.page-template-template-studioe-php header.site-header {
    display: none;
}

.top_bar001 {
    height: 60px;
   /* overflow: hidden; */
    background: #ffffff;
}


.image-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100% - 20px);
    padding: 11px 14px 0px;
    background: #fff;
    /* border: 1px solid #ededed; */
    border-radius: 0;
    justify-content: flex-end;
}

.image-toolbar .image-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #171717;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.image-toolbar .image-tool-btn i {
    font-size: 17px;
}

.image-toolbar .image-tool-btn:hover {
    background: #f2f3f5;
}

.image-toolbar .image-tool-divider {
    display: block;
    width: 1px;
    height: 34px;
    background: #dedede;
    flex-shrink: 0;
}

.image-toolbar .image-tool-control {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 95px;
    color: #262626;
    font-size: 12px;
    font-weight: 600;
    /* white-space: nowrap; */
}

.image-toolbar .image-tool-control > i {
    font-size: 16px;
}

.image-toolbar .image-tool-control input[type="range"] {
    width: 85px;
    height: 4px;
    margin: 2px 0;
    accent-color: #333;
    cursor: pointer;
}

.image-toolbar .delete-image-btn {
    color: #dc2626;
}

.image-toolbar .delete-image-btn:hover {
    background: #fef2f2;
}

/* Crop buttons */
.crop-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: none;
    border-radius: 12px;
    /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); */
    z-index: 9999;
    justify-content: flex-end;
}


.crop-toolbar button {
    padding: 2px 14px;
    border: none;
    border-radius: 8px;
    background: #f2f3f5;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.crop-toolbar #cropApply {
    background: #2563eb;
    color: #fff;
}

.crop-toolbar button:hover {
    opacity: 0.85;
}


.toolbars {
    display: flex;
    justify-content: flex-end;
}



.save_btn {
    
}

.save_btn button.savebtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
} 

.save_btn {
    padding: 10px;
}


/* Main text toolbar */
.text-toolbar {
    /* display: flex; */
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    /* padding: 10px 14px; */
    /* background: #ffffff; */
    /* border: 1px solid #e5e7eb; */
    /* border-radius: 14px; */
    /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10); */
    /* font-family: Arial, sans-serif; */
    /* box-sizing: border-box; */
    /* width: max-content; */
    /* max-width: 100%; */
    /* z-index: 9999; */
}

/* Groups */
.text-tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
}

.text-tool-group > i {
    color: #555;
    font-size: 15px;
}

/* Font dropdown */
.font-family-group {
    padding: 0 8px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.font-family-group select {
    width: 155px;
    max-width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #222;
    font-size: 13px;
    cursor: pointer;
}

/* Font size */
.font-size-group {
    gap: 4px;
}

.font-size-group input {
    width: 48px;
    height: 32px;
    padding: 0 3px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 13px;
    outline: none;
}

.font-size-group button {
    width: 30px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8f9fb;
    color: #333;
    cursor: pointer;
}

.font-size-group button:hover {
    background: #e9efff;
    color: #2563eb;
}

/* Common buttons */
.text-toolbar .text-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.text-toolbar .text-tool-btn:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* Color picker */
.color-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #333;
    cursor: pointer;
        margin-bottom: 0;
}

.color-tool:hover {
    background: #eef2ff;
}

.color-tool > i {
    font-size: 17px;
}

.color-tool input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Line height */
.line-height-group {
    padding: 0 7px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8f9fb;
}

.line-height-group input {
    width: 48px;
    border: none;
    outline: none;
    background: transparent;
    color: #222;
    font-size: 13px;
}

/* Alignment */
.alignment-group {
    gap: 2px;
}

.alignment-group .text-tool-btn {
    width: 34px;
    padding: 0;
}

/* Separators */
.text-tool-divider {
    width: 1px;
    height: 27px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Delete button */
.text-toolbar .delete-text-btn {
    color: #dc2626;
    background: #fff5f5;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.text-toolbar .delete-text-btn:hover {
    color: #fff;
    background: #dc2626;
}

 



.layers_paneller {
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    position: absolute;
    right: 0;
    max-width: 300px;
        z-index: 999;
}

.layers_paneller h3 {
       font-size: 17px;
}

/* Layers list */
#layersPanel {
    height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    padding: 5px;
    background: #fafafa;
    box-sizing: border-box;
}

#layersPanel .layer-row {
    position: relative;
    display: flex;
    align-items: center;
    /* min-height: 38px; */
    padding: 6px 10px !important;
    margin-bottom: 3px;
    border: none !important;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background 0.2s ease, color 0.2s ease;
    background: #d7d9de;
    margin-bottom: 6px;
}

#layersPanel .layer-row:hover {
    background: #686868;
    color: #000;
}

/* Selected layer */
#layersPanel .layer-row.active-row {
    background: #686868;
    color: #000;
    font-weight: 600;
}

#layersPanel .layer-row.active-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: #2563eb;
}

/* Scrollbar */
#layersPanel::-webkit-scrollbar {
    width: 6px;
}

#layersPanel::-webkit-scrollbar-track {
    background: transparent;
}

#layersPanel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

#layersPanel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Action buttons container */
.layers_paneller > div > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px !important;
}

/* All action buttons */
.layers_paneller button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 9px 12px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: all 0.2s ease;
        width: 46%;
}

.layers_paneller button:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #2563eb;
}

.layers_paneller button:active {
    transform: scale(0.97);
}

/* Delete */
.layers_paneller button[onclick="deleteLayer()"] {
    color: #dc2626;
    background: #fff;
}

.layers_paneller button[onclick="deleteLayer()"]:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Fix positions */
.layers_paneller button[onclick="bringObjectsInsideCanvas()"] {
    background: #f3f6ff;
    border-color: #dbe4ff;
    color: #3730a3;
        width: 100%;
}

/* Clipping mask */
#makeClippingMaskBtn {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
        width: 100%;
}

#makeClippingMaskBtn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
 

.layers_paneller .layer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.layer-preview img.layer-image-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-right: 3px;
    object-fit: cover;
}


.toggle-layers-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px; 
    border-radius: 9px;
    background: #fff;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
        border: 1px solid #ccc;
}

.toggle-layers-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #2563eb;
}


.ruler-vertical:after {
    content: '';
    position: absolute;
    width: 1px;
    background: #a3a3a3;
    height: 100%;
    top: 0;
        z-index: 9;
}

.ruler-vertical div {
    background: #f3f4f7;
    position: relative;
    z-index: 99;
    padding: 10px 0;
    text-transform: capitalize;
        text-align: center;
    line-height: 1.3;
}


.ruler-horizontal:after {
    content: '';
    position: absolute;
    width:100%;
    background: #a3a3a3;
    height:  1px;
    left: 0;
    top: 13px;
}

.ruler-horizontal div {
    background: #f3f4f7;
    position: relative;
    z-index: 9;
    padding: 0 10px;
    text-transform: capitalize;
    display: inline-block;
}




/* Zoom buttons */
.zoomBar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #f8fafc;
    color: #222;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoomBar button:hover {
    background: #e8efff;
    border-color: #a5b4fc;
    color: #2563eb;
}

.zoomBar button:active {
    transform: scale(0.94);
}

/* Zoom percentage */
.zoomBar #zoomValue {
    min-width: 48px;
    text-align: center;
    color: #252a34;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


.submenu_right h4.studio-field-group-title {
    font-size: 16px;
    background: #ffecd7;
    padding: 7px;
    text-align: center;
    margin-bottom: 14px;
    border-radius: 3px;
    font-size: 13px;
    border-radius: 6px;
    text-transform: capitalize;
}

 
/* Guide toggle buttons */
.print-guides-toolbar {
    position: absolute;
    top: -42px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.guide-btn {
    padding: 2px 12px;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
        min-width: 95px;
    text-wrap: nowrap;
}

.safety-btn {
    border: 1px solid #43b995;
    color: #237c60;
}

.bleed-btn {
    border: 1px solid #38a8ed;
    color: #1677b9;
}

.guide-btn.active {
    background: #e9f8f1;
    box-shadow: 0 0 0 1px rgba(67, 185, 149, 0.15);
}

.bleed-btn.active {
    background: #eaf6ff;
}

/* Overlay stays above the artwork but does not block canvas interaction */
.print-guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: visible;
}

.print-guide-bleed {
    position: absolute;
    inset: 0;
    border: 2px solid #38a8ed;
    box-sizing: border-box;
}

.print-guide-safety {
    position: absolute;
   /* inset: 5% 3%; */
    inset: var(--guide_safety);
    border: 1px dashed #43b995;
    border-radius: var(--canvas-radius);
    box-sizing: border-box;
}

.print-guide-bleed.hidden,
.print-guide-safety.hidden {
    display: none;
}


.canvas-wrapper {
    position: relative;
    overflow: visible;
}

.canvas-container {
    position: relative;
    overflow: visible !important;
}

.canvas-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.canvas-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    border: none;
    background: transparent;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.canvas-action-btn i {
    font-size: 22px;
}

.canvas-action-btn:hover:not(:disabled) {
    color: #1685d1;
}

.canvas-action-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

#deleteCanvasBtn {
    color: #555;
}

#resetCanvasBtn i {
    font-size: 22px;
}

.page-item {
    position: relative;
}

.change-template-btn {
    /* position: absolute; */
    bottom: 11px;
    left: -14px;
    /* transform: translateX(-50%); */
    z-index: 10;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    /* padding: 6px 10px; */
    /* border: 1px solid #743cff; */
    /* border-radius: 20px; */
    /* background: #fff; */
    color: #743cff;
    font-size: 7px;
    /* font-weight: 600; */
    cursor: pointer;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); */
    border: none;
    background: no-repeat;
    position: relative;
}

.change-template-btn:hover {
    background: #743cff;
    color: #fff;
}

.backTemplatePicker {
    background: #fff;
    padding: 20px;
    margin: 0 !important;
    position: absolute;
    right: -14px;
    max-width: 300px;
    height: 100vh;
}

.backTemplatePicker h2 {
    font-size: 17px;
}
 
.back-template-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.back-template-card {
    min-width: 0;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}

.back-template-card:hover {
    border-color: #a78bfa;
}

.back-template-card.selected {
    border-color: #743cff;
    box-shadow: 0 0 0 2px rgba(116, 60, 255, .15);
}

.back-template-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 7px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.back-template-card > span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.blank-thumb {
    color: #9ca3af;
    font-size: 25px;
    border: 1px dashed #d1d5db;
}

.no-template-thumb {
    color: #9ca3af;
    font-size: 24px;
}

#loadBackTemplateBtn {
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: #743cff;
    color: #fff;
    cursor: pointer;
}

#loadBackTemplateBtn:disabled {
    opacity: .6;
    cursor: wait;
}
 

.alignment-guide-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    overflow: visible;
}

.alignment-guide {
    position: absolute;
    display: none;
    pointer-events: none;
}

.alignment-guide.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
    border-left: 1px dashed #ff3b8d;
}

.alignment-guide.horizontal {
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed #ff3b8d;
} 

.shape-picker-label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.shape-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.shape-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 5px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}

.shape-item svg {
    width: 38px;
    height: 38px;
}

.shape-item span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.shape-item:hover {
    border-color: #743cff;
    background: #f7f3ff;
    color: #743cff;
    transform: translateY(-2px);
}

.shape-item:focus-visible {
    outline: 2px solid #743cff;
    outline-offset: 2px;
}
 

.shape-item svg rect{
        fill: #000;
}


.shape-properties-panel {
    
}

.shape-properties-heading {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    font-size: 14px;
    font-weight: 600;
    color: #222;
        padding-right: 10px;
}

.shape-properties-badge {
    padding: 4px 8px;
    border-radius: 20px;
    background: #f0eaff;
    color: #743cff;
    font-size: 10px;
    font-weight: 600;
}

.shape-property {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px; 
        margin: 0 2px;
}

.shape-property > label {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
        margin: 0;
        text-wrap: nowrap;    overflow: hidden;
    text-align: left;
}

.shape-property input[type="color"] {
    width: 44px !important;
    height: 34px !important;
    padding: 3px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.shape-property input[type="number"] {
    width: 75px;
    padding: 2px 9px;
    border: 1px solid #d1d5db; 
        cursor: pointer;
    background-color: transparent;
    border: 1px solid #888;
    border-radius: 3px;
}

.shape-image-property {
    display: flex;
    margin-bottom: 0;
}

.shape-image-property > label:first-child {
    display: flex; 
}

.shape-image-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px dashed #b8a1ff;
    border-radius: 9px;
    background: #faf8ff;
    color: #743cff !important;
    cursor: pointer;
    transition: background .2s ease;
    margin: 0;
}

.shape-image-upload:hover {
    background: #f0eaff;
}

.shape-image-upload .upload-icon {
    font-size: 20px;
}




.background-panel { 
}

.background-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.background-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#closeBackgroundPanel {
    border: 0;
    background: transparent;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.background-current {
    margin-bottom: 24px;
}

.background-current label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.background-current input[type="color"] {
    width: 100%;
    height: 43px;
    padding: 5px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.palette-section {
    margin-bottom: 20px;
}

.palette-section h4 {
    margin: 0 0 9px;
    font-size: 14px;
    font-weight: 600;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.color-swatch {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 5px;
    background: var(--swatch);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.color-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}

.color-swatch.active {
    outline: 2px solid #00aaff;
    outline-offset: 2px;
    border-color: #00aaff;
}

.color-swatch:focus-visible {
    outline: 2px solid #743cff;
    outline-offset: 2px;
}
 


.top_bar001 .logo_image img.custom-logo {
    max-width: 100%;
    max-height: 40px;
    /* padding: 10px 0; */
    mask-size: cover;
    width: inherit;
}

.top_bar001 .logo_image {
    padding: 6px 10px;
}


#textToolbar .nice-select {
    border: none;
    padding: 0 30px;
}

#textToolbar .nice-select ul.list {
    z-index: 9999;
    min-width: 200px;
    border: 1px solid #ececec;
}
 

img.bg_image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
        transform-origin: top center;
}

.editor {
    position: relative; 
    isolation: isolate;
        text-align: center;
}
 

button#toggleMockupEditing {
    background: #a7a7a7;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 5px 16px;
    font-size: 15px;
    font-weight: 500;
    margin: 10px 0;
}


.product-details-content select {
    border: 1px solid #ccc;
    width: 100%;
    padding: 5px 20px;
    border-radius: 5px;
    font-size: 14px;
}



.adding_buttons {
    background: #ffecd7;
    padding: 14px;
    margin: 10px 0;
    border-radius: 10px;
}



div#dynamicFields {
    padding: 5px 0;
}



.side_barnn_creater-1 {
    position: relative;
    z-index: 99;
}

.editor_contaner_8 {
    max-width: calc(100vw - 80px);
    max-height: 100vh;
    overflow: auto;
     /* Hide scrollbar */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Internet Explorer / Edge legacy */
}

.editor_contaner_8::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Edge */
}

div#wp-media-modal {
    border-radius: 15px;
    overflow: hidden;
}


.save-loader {
    position: fixed;
    top: 10vh;
    right: 20px;
    z-index: 999999;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    font-size: 14px;
}

.save-loader.active {
    display: flex;
}

.save-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid #e5e7eb;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: saveSpin 0.7s linear infinite;
}

@keyframes saveSpin {
    to {
        transform: rotate(360deg);
    }
}