:root {
    --btn-radius: 10px;
    --card-radius: 15px;
    --eyebrow-radius: 5px;
    --radius-md: 8px;
    --input-radius: 5px;
}

select.scb-text-orientation {
    display: none;
}

.saveIconMobile svg path {
    fill: #fff !important;
}

/* container spacing */
.zoomlevelmobile {
    padding: 8px 0;
}

/* base slider */
.scb-zoom-range {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 10px;
    background: #fde68a;
    border-radius: 999px;
    outline: none;
}

.scb-zoom-range {
    background: linear-gradient(to right,
            #f59e0b 0%,
            #f59e0b var(--value, 0%),
            #fde68a var(--value, 0%),
            #fde68a 100%);
}

/* WebKit track */
.scb-zoom-range::-webkit-slider-runnable-track {
    height: 8px;
    background: #fde68a;
    border-radius: 999px;
}

/* WebKit thumb */
.scb-zoom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    /* thumb size */
    background: #f59e0b;
    /* ðŸ”¥ amber */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
}

/* Firefox track */
.scb-zoom-range::-moz-range-track {
    height: 8px;
    background: #fde68a;
    border-radius: 999px;
}

/* Firefox thumb */
.scb-zoom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.zoomlevelmobile {
    display: none;
}

.saveIconMobile {
    display: none;
}

/* Viewport Helpers */
.scb-show-mobile {
    display: none !important;
}

.scb-show-desktop {
    display: none !important;
}

@media (min-width: 768px) {
    .scb-show-desktop {
        display: block !important;
    }
}

@media (max-width:1199px) {
    .scb-show-mobile {
        display: block !important;
    }
}

@media (max-width: 767px) {}


.scb-mobile-scroll-container {
    width: 100%;
}

/* canvas scroll wrapper */
.scb-mobile-scroll-container .scb-canvas-scroll-wrapper {
    padding: 0 !important;
    overflow: unset !important;
}

/* Mobile Dropdown Logic */
.scb-mobile-dropdown-content {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: #fdfdfd;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scb-toggle-input {
    display: none !important;
}

#scb-filter-toggle:checked~#scb-filter-buttons,
#scb-design-toggle:checked~#scb-chosen-design-content {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

.scb-mobile-label-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.scb-filter-mobile {
    width: 100%;
}

/* Label styling */
.scb-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Info icon wrapper */
.scb-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Info icon */
.scb-info-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Tooltip */
.scb-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

/* Tooltip arrow */
.scb-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

.scb-full-title,
h1.header-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.scb-controls .header-text {
    justify-content: center;
}

.sr-right-head {
    text-align: center;
}

@media (min-width:768px) {
    .scb-tooltip {
        position: absolute;
        bottom: -35px;
        left: 150%;
        transform: translateY(-50%);
        background: #000;
        color: #fff;
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 4px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 50;
        white-space: break-spaces;
        width: 280px;
        text-align: center;
    }

    .scb-tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -10px;
        transform: translateY(-50%) rotate(90deg);
        border-width: 5px;
        border-style: solid;
        border-color: #000 transparent transparent transparent;
    }
}

@media (max-width:1199px) {
    .saveIconMobile {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .zoomlevelmobile {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }


    .is-mobile {
        flex-direction: unset !important;
    }

    .is-mobile .btn-text {
        display: none !important;
    }

    .scb-tooltip {
        white-space: break-spaces;
        width: 240px;
        bottom: auto;
        z-index: 9999;
        top: 140%;
        transform: unset;
        left: -10px;
    }

    .scb-tooltip::after {
        top: -10px;
        bottom: auto;
        transform: rotate(180deg);
        left: 15px;
    }

    .scb-filter-mobile .scb-filter-label {
        padding-left: 32px;
        position: relative;
    }

    .scb-filter-mobile .scb-filter-label .scb-info-wrapper {
        position: absolute;
        left: 10px;
    }
}

@media (max-width:767px) {}

/* Show tooltip on icon hover only */
.scb-info-wrapper:hover .scb-tooltip {
    opacity: 1;
}

/* Optional active button styling */
.scb-filter-btn.active {
    outline: 2px solid #000;
}

/* Enlarged modal and three-column layout (taller modal + canvas) */
#scb-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#scb-modal.open {
    display: flex;
}

.scb-modal-inner {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    position: relative;
}

/* make room for loader overlay above content */

/* close button */
.scb-close {
    position: absolute;
    right: 10px;
    top: 9px;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 14px;
    visibility: visible;
    border-radius: 50px;
}

/* builder */
.scb-builder-wrap {
    display: flex;
    gap: 0;
    align-items: flex-start;
    height: 100%;
}

/* left full-image preview (no overlays) */
.scb-full-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: start;
}

.scb-full-image .scb-full-title {
    font-weight: 600;
    font-size: 14px;
}

#scb-full-image-preview {
    width: 100%;
    height: 555px;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    display: block;
    object-fit: contain;
}

.scb-controls .scb-tooltip {
    right: 0;
    left: auto;
    bottom: auto;
    top: 45px;
}

.scb-controls .scb-tooltip::after {
    transform: rotate(180deg);
    top: -10px;
    left: auto;
    right: 5px;
}

/* center canvas (increased height) */
.scb-canvas-wrap {
    width: 100%;
    height: 100%;
    /* background: #F6F6F6; */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 40%;
}

.scb-filter-btn {
    border: none;
    background: transparent;
    /* removes yellow background */
    padding: 0;
    margin-right: 0;
    cursor: pointer;
}

.scb-filter-btn:hover .filter-preview {
    border-color: #666;
    /* subtle hover effect */
}

.scb-upload-error {
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
}

/* right controls with upload rows */
.srb-full-title {
    font-weight: 600;
}

.scb-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border-left: 1px solid #D1CFCF;
    height: 100%;
    padding: 18px;
    background-color: #D3CBE1;
    max-width: 30%;
}

.scb-controls-top-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#scb-zone-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 6px;
}

.scb-zone-upload-row {
    display: flex;
    align-items: start !important;
    gap: 8px;
    margin-bottom: 8px;
    flex-direction: column;
}

.scb-zone-upload-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scb-zone-thumb {
    width: 100% !important;
    height: 318px !important;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

button.button.scb-reset-btn {
    justify-content: center;
    width: 50%;
    border-radius: 8px;
    text-transform: unset;
    font-size: 16px;
    gap: 10px;
}

/* status and preview area */
#scb-preview-area img {
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 6px;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.scb-zone-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

#scb-status {
    font-size: 13px;
    margin-top: 6px;
    color: #111;
}

.scb-all-devices-save-wrap {
    width: 100%;
    margin-bottom: 12px;
}

button.scb-save-data-btn {
    align-items: center !important;
    display: flex;
    border-radius: 8px;
    text-transform: unset;
    font-size: 16px;
    gap: 10px;
    justify-content: center !important;
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
}

button.scb-save-data-btn:hover {
    background-color: #222;
}

button.scb-save-data-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button#scb-save {
    align-items: center !important;
    display: flex;
    border-radius: 8px;
    text-transform: unset;
    font-size: 16px;
    gap: 10px;
    justify-content: center !important;
}

button.button.scb-upload-button {
    display: none !important;
}


label.filterDiv {
    font-size: 14px;
    font-weight: 600;
}

#scb-preview {
    align-items: center !important;
    display: flex;
    width: 50%;
    border-radius: 8px;
    text-transform: unset;
    font-size: 16px;
    justify-content: center;
    gap: 10px;
}

.left-wrap-div {
    border-right: 1px solid #D1CFCF;
    height: 100%;
    padding: 18px;
    background-color: #D3CBE1;
    width: 100%;
    max-width: 30%;
}

#scb-pdf-preview {
    display: none !important;
}


#scb-preview-wrapper {
    position: relative;
    width: 100%;
}

#scb-pdf-preview {
    width: 100%;
}

.scb-pdf-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.scb-canvas-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.scb-pdf-zoom-btn {
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background-color: #ffc242 !important;
    border: 0;
    height: 40px;
    width: 40px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-transform: unset;
}

.scb-pdf-zoom-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: #fff;
}

.scb-pdf-zoom-btn svg path {
    fill: #fff;
}

.scb-pdf-zoom-btn svg#i-plus path {
    stroke-width: 4px;
}

.scb-pdf-zoom-btn:hover {
    background: #f3edf9;
}

.scb-pdf-zoom-level {
    font-size: 13px;
    font-weight: 600;
    color: #3f3256;
    min-width: 40px;
    text-align: center;
}

.scb-pdf-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: min(70vh, 820px);
    overflow: auto;
    border: 1px solid #c7bfd3;
    border-radius: 16px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.92) 25%, rgba(240, 235, 247, 0.92) 25%, rgba(240, 235, 247, 0.92) 50%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.92) 75%, rgba(240, 235, 247, 0.92) 75%, rgba(240, 235, 247, 0.92) 100%);
    background-size: 24px 24px;
    cursor: grab;
}

.scb-pdf-viewport.is-dragging {
    cursor: grabbing;
}

.scb-pdf-stage {
    width: fit-content;
    min-width: 100%;
    min-height: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.scb-pdf-stage canvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.preview-zone {
    position: relative;
}

.pdf-pages {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.header-text {
    font-size: 24px;
    line-height: 28px;
    font-family: 'Raleway' !important;
    font-weight: 500;
    text-align: center;
    text-transform: unset;
}

#scb-filter-toggle {
    display: none;
}

label.scb-filter-label {
    font-family: 'Raleway' !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-left: 0 !important;
}

.scb-thumb-slider {
    display: flex;
    align-items: center;
    gap: 6px;
    /* width: 100%; */
    margin-bottom: 20px;
}

.scb-thumb-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    /* 5 thumbs Ã— 50px + gaps */
}

.scb-thumb-track {
    display: flex;
    gap: 5px;
    transition: transform 0.3s ease;
    will-change: transform;
}

#scb-pdf-thumbs canvas {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
}

#scb-pdf-thumbs canvas.active {
    border-color: #007aff;
}

.thumb-nav {
    width: 28px;
    height: 28px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    background: #d3cbe1;
    padding-inline: 12px;
}

.thumb-nav:hover {
    background: #FF9800;
}

.scb-thumb-slider:has(#scb-pdf-thumbs:empty) .thumb-nav {
    display: none;
}

.scb-inline-editor .scb-editor-preview {
    border: 0 !important;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
}

.scb-inline-editor .scb-editor-preview:active,
.scb-inline-editor .scb-editor-preview.is-dragging {
    cursor: grabbing;
}

.scb-inline-editor .scb-editor-img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.scb-inline-editor .scb-crop-actions {
    position: absolute;
    top: 3px;
    right: 0;
    width: 100%;
    justify-content: space-between;
    padding-inline: 5px;
}

.scb-inline-editor .scb-crop-actions button {
    width: 25px !important;
    height: 25px !important;
    padding: 5px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.scb-inline-editor {
    position: relative;
    margin-top: 0 !important;
}

canvas#scb-canvas,
canvas.lower-canvas {
    border: none !important;
    /* Do NOT set background here — Fabric.js setBackgroundColor() paints onto this canvas.
       Any CSS background would override the admin-configured canvas color. */
}

canvas.upper-canvas {
    background: none !important;
    border: 2px dashed red !important;
}

.scb-loader {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 1);
    z-index: 10000000000;
    border-radius: 8px;
}

#scb-modal.is-loading .scb-close,
#scb-modal.is-saving-cart .scb-close,
#scb-modal:has(.scb-loader:not([style*="display: none"]):not([style*="display:none"])) .scb-close,
#scb-modal:has(#scb-pdf-loader:not([style*="display: none"]):not([style*="display:none"])) .scb-close {
    display: none !important;
}

.scb-loader-inner {
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 14px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 12px;
    align-items: center;
}

.scb-spinner {
    width: 36px;
    height: 36px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: scb-spin 1.2s linear infinite;
    flex-shrink: 0;
}

.scb-spinner svg,
.scb-spinner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.scb-spinner:empty {
    background-image: url('../images/loader.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.scb-loader-text {
    font-size: 13px;
    color: #222;
}

#scb-pdf-loader {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 1);
    z-index: 10000000000;
}

.scb-zone-upload-panel {
    padding: 10px;
}

.scb-zone-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scb-zone-card {
    box-sizing: border-box;
    align-items: center;
    border-radius: 6px;
    background: transparent;
    width: 100%;
    text-align: center;
    margin-inline: auto;
}

.scb-image-row {
    display: flex;
    gap: 10px;
}

.scb-image-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scb-text-card {
    width: 100%;
}

.scb-text-value {
    resize: vertical;
    min-height: 60px;
    color: #333 !important;
}

.scb-zone-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.scb-zone-thumb {
    cursor: pointer;
    width: 100%;
    height: 318px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
}

.scb-zone-thumb .scb-thumb-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0;
    width: 26px;
    height: 26px;
    line-height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
}

.scb-zone-thumb .scb-thumb-edit {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0;
    width: 26px;
    height: 26px;
    line-height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
}

.scb-text-controls {
    width: 100%;
}

.scb-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#scb-filter-buttons .scb-filter-btn.active {
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.scb-zone-thumb.scb-selected {
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-size: 75% !important;
    background-repeat: no-repeat;
}

.scb-upload-image-hint {
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
    font-weight: 400;
}

.scb-inline-editor .scb-crop-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    font-size: 16px;
    line-height: 30px;
    padding: 0;
    cursor: pointer;
}

.scb-inline-editor .scb-edit-confirm {
    background: #2ecc71;
    color: #fff;
}

.scb-inline-editor .scb-edit-cancel {
    background: #e74c3c;
    color: #fff;
}

@keyframes scb-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.scb-full-image #scb-pdf-preview canvas {
    height: auto;
    width: auto;
    max-width: none;
}

.mobile-only {
    display: none !important;
}

/* responsive: stack columns on small screens */
@media (max-width:1279px) {
    .left-wrap-div {
        width: 100%;
    }

    #scb-full-image-preview {
        max-width: 332px;
    }
}

@media (max-width: 1199px) {
    .scb-builder-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .scb-canvas-wrap {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .scb-full-image {
        width: 100%;
        order: 0;
    }

    .scb-controls {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: none;
    }

    .header-text {
        display: none !important;
    }

    label.scb-filter-label {
        font-family: 'Raleway' !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-left: 0 !important;
    }

    .scb-full-image {
        display: none;
    }

    .left-wrap-div {
        background-color: transparent;
        height: auto;
        max-width: 100%;
    }

    .canvas-container {
        /* aspect ratio handled by JS scale */
        width: 100%;
        max-width: 555px;
    }

    div#scb-filter-buttons {
        text-align: center;
    }

    label.scb-filter-label {
        text-align: center !important;
        /* width: 100% !important; */
    }

    .scb-filter-mobile {
        text-align: center;
    }

    #scb-canvas-relative {
        overflow: auto;
    }

    .mobile-only {
        display: flex !important;
    }

    .thumb-nav {
        position: absolute;
        left: 5px;
        z-index: 1;
    }

    .thumb-nav.next {
        left: auto;
        right: 5px;
    }

    .scb-filter-mobile {
        position: relative;
        width: 100%;
    }

    #scb-modal.mobile-in-controls .scb-filter-mobile.scb-show-mobile,
    body.scb-in-preview-mode .scb-filter-mobile.scb-show-mobile {
        display: none !important;
    }

    label.scb-filter-label {
        font-family: 'Raleway' !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-left: 0 !important;
    }

    .filter-preview {
        width: 50px !important;
        height: 50px !important;
    }

    .scb-builder-wrap {
        gap: 0;
    }

    label.scb-filter-label {
        margin: 0 !important;
    }

    canvas#scb-canvas {
        /* aspect ratio handled by JS scale */
        max-width: 100%;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
        margin-top: 10px;
    }

    /* input-like label */
    .scb-filter-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px;
        border: 1px solid #cccccc;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        /* font-size: 14px; */
        width: 100%;
        font-family: 'Raleway';
        font-weight: 600 !important;
    }

    .scb-filter-label::after {
        content: "▾";
        font-size: 16px;
    }

    /* checkbox hidden */
    #scb-filter-toggle {
        display: none;
    }

    .left-wrap-div {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: transparent;
        padding: 10px 10px 0 10px;
        height: auto;
        max-width: 100%;
    }

    /* open dropdown */
    #scb-filter-toggle:checked+.scb-filter-label+#scb-filter-buttons {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1px;
        background-color: #ffffffff;
    }

    .scb-controls {
        display: none;
    }

    /* .desktop-only{
       display: none !important;
    } */

    /* buttons */
    .scb-filter-btn {
        padding: 0;
        background: none;
        border: none;
    }

    .srb-full-title {
        margin-left: 0 !important;
        text-align: center;
    }

    .scb-style-group3 {
        display: flex !important;

    }

    h1.header-text {
        display: none;
    }

    .scb-text-font,
    .scb-text-value {
        margin-bottom: 10px;
        width: 100% !important;
    }

    .scb-text-weight {
        width: 100% !important;
        margin-right: 5px;
        margin-bottom: 10px;
    }

    .scb-text-size {
        width: 85% !important;
    }

    .scb-text-color {
        width: 100% !important;
        border-radius: 0 !important;
    }

    .scb-controls>div:nth-child(2),
    .scb-controls-top-wrap>div:nth-child(2) {
        margin-bottom: -2px;
    }

    .scb-canvas-wrap {
        width: 100%;
        height: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
        /* Added spacing between canvas area and buttons */
    }

    /* Hide the variant preview image on mobile â€” show canvas only */
    .scb-full-image,
    #scb-preview-img,
    #scb-pdf-preview {
        display: none !important;
    }

    #scb-full-image-preview {
        height: 410px;
        display: none !important;
    }

    .canvas-container {
        width: 100%;
    }

    .left-wrap-div {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: transparent;
    }

    canvas#scb-canvas {
        max-width: 100%;
    }

    .scb-close {
        z-index: 999;
        right: 10px;
        top: 15px;
        padding: 0 11px 1px;
    }

    .scb-full-image {
        display: none;
    }

    /* hide default grid */
    #scb-filter-buttons {
        display: none;
        position: absolute;
        top: 42px;
        left: 50%;
        width: calc(100% - 30px);
        background: #fff;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        z-index: 999;
        transform: translateX(-50%);
    }

    #scb-filter-toggle:checked~#scb-filter-buttons {
        justify-content: center;
    }

    #scb-canvas-holder {
        /* padding: 0 !important; */
        display: block !important;
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    #scb-pdf-bg {
        display: none;
    }

    .is-mobile {
        gap: 8px !important;
        margin-bottom: 10px;
    }

    .is-mobile div:first-child {
        gap: 8px !important;
    }

    .desktop-only {
        gap: 8px !important;
        margin-bottom: 8px;
    }

    .desktop-only div:first-child {
        gap: 8px !important;
    }

    .mobile-only div:first-child {
        gap: 8px !important;
        width: 100%;
    }

    #scb-goback {
        align-items: center;
        justify-content: center;
    }


    .scb-thumb-viewport {
        overflow: hidden;
        width: 100%;
        max-width: 270px;
    }

    .scb-inline-editor .scb-crop-actions {
        position: absolute;
        top: 3px;
        right: -13px;
        justify-content: space-between;
        flex-direction: column;
        width: 100%;
        max-width: 0;
    }

    .scb-zone-card.scb-selected-card div:last-child {
        display: flex;
        flex-direction: column;
    }

    .scb-zone-card.scb-selected-card div:last-child small {
        font-size: 15px;
        color: black !important;
        font-weight: 500;
    }

    .footer-width-fixer .elementor-element.elementor-element-5a95bb7.e-con-full.e-flex.e-con.e-child {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .elementor-element.elementor-element-ced66d7.e-con-full.e-flex.e-con.e-child {
        text-align: center;
    }

    .mobile-only button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 10px !important;
        min-width: unset !important;
    }

    #scb-goback {
        width: 100% !important;
        padding: 10px !important;
    }

    /* Mobile button visibility control */
    /* By default, show canvas buttons (preview/reset) */
    .mobile-canvas-buttons {
        display: flex !important;
    }

    /* By default, hide controls buttons (go back) */
    .mobile-controls-buttons {
        display: none !important;
    }

    /* When controls are shown (mobile-show), hide canvas buttons and show controls buttons */
    .scb-controls.mobile-show .mobile-canvas-buttons {
        display: none !important;
    }

    .scb-controls.mobile-show .mobile-controls-buttons {
        display: flex !important;
    }

    .scb-mobile-label-row {
        margin-inline: 15px 50px;
    }

}

@media(max-width:767px) {}

/* Edit Template Button Styling - Product Page */
#scb-edit-template {
    background-color: #FF6B35 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

#scb-edit-template:hover {
    background-color: #FF5A24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
}

#scb-edit-template:active {
    transform: translateY(0);
}

#scb-edit-template svg {
    width: 16px;
    height: 16px;
}

/* New css 7 */

@media (min-width:1025px) {
    .scb-inline-editor .scb-crop-actions {
        width: 100% !important;
        flex-direction: row !important;
    }

    .scb-inline-editor .scb-crop-actions-row {
        position: absolute;
        top: 3px;
        left: 0;
    }

    .scb-inline-editor .scb-crop-actions-row .scb-crop-actions {
        position: relative;
        width: 100% !important;
        max-width: 100%;
        left: 0;
    }

    img#scb-canvas-preview-img {
        height: auto !important;
        max-height: calc(100vh - 115px);
        object-fit: contain;
    }
}

.scb-edit-mouse-hint,
.scb-editing-outside-hint,
.scb-image-hint-text {
    font-size: 13px;
    color: #fff;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.scb-hint-desktop {
    display: inline;
}

.scb-hint-mobile {
    display: none;
}

@media (max-width: 1199px) {

    .scb-edit-mouse-hint,
    .scb-editing-outside-hint,
    .scb-image-hint-text {
        color: #000 !important;
    }

    .scb-hint-desktop {
        display: none !important;
    }

    .scb-hint-mobile {
        display: inline !important;
    }
}

/* Custom Confirmation Popup */
#scb-confirm-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

#scb-confirm-wrapper.open {
    display: flex;
    animation: scbFadeIn 0.3s ease;
}

#scb-confirm-popup {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#scb-confirm-wrapper.open #scb-confirm-popup {
    transform: translateY(0);
}

#scb-confirm-popup h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
    margin-top: 0;
}

#scb-confirm-popup p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.scb-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.scb-confirm-btn {
    padding: 12px 25px;
    border-radius: var(--btn-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Raleway', sans-serif;
}

.scb-confirm-yes {
    background: linear-gradient(135deg, #f59e0b, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px #f59e0b;
}

.scb-confirm-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #f59e0b;
}

.scb-confirm-no {
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ddd;
}

.scb-confirm-no:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

/* Mobile Sticky Footer */
.scb-mobile-footer {
    display: none;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

@media (max-width:1199px) {
    .scb-mobile-footer.mobile-only {
        display: flex !important;
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 10px;
        box-shadow: none;
        z-index: 100000;
        justify-content: center;
        gap: 10px;
        border: 0 !important;
    }

    .scb-canvas-wrap .desktop-only.is-mobile {
        position: fixed;
        width: 100%;
        z-index: 9;
        left: 0;
        bottom: 0;
        background-color: #fff;
        padding: 15px;
        justify-content: center;
        margin: 0;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        display: none !important;
    }

    .scb-mobile-footer button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px !important;
        border-radius: 50px !important;
        height: 50px !important;
        min-width: unset !important;
        flex: 1;
        max-width: 140px;
    }

    .scb-mobile-footer .btn-text {
        display: none !important;
    }

    .scb-mobile-footer button {
        padding: 10px !important;
        min-width: 50px !important;
        max-width: 60px !important;
        flex: 0 0 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .save-mobile-sticky-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust modal inner to avoid clipping content behind the sticky footer */
    .scb-modal-inner {
        padding-bottom: 0;
    }

    /* Ensure canvas holder allows scrolling */
    /* #scb-canvas-holder {
        padding-bottom: 20px !important;
    } */
}

@keyframes scbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 767px) {}

/* New css 24 march */

.scb-canvas-relative-wrap {
    width: 100%;
    height: auto;
    overflow: auto;
}


#scb-canvas-preview-img {
    display: block !important;
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

#scb-canvas-holder {
    overflow: auto;
}


@media (min-width:768px) and (max-width:1199px) {


    /* .scb-controls {
        display: block;
    }

    .scb-controls .header-text,
    .scb-controls #scb-zone-upload-controls {
        display: none;
    }

    .scb-controls .desktop-only {
        position: fixed;
        width: 100%;
        z-index: 99;
        bottom: 0;
        left: 0;
        padding: 15px 20px;
        background-color: #fff;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Force visible scrollbar on mobile directly on canvas container 
    #scb-canvas-relative::-webkit-scrollbar {
        height: 25px;
        width: 25px;
        -webkit-appearance: none;
    }

    #scb-canvas-relative::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 8px;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb {
        background: #f500f5;
        border-radius: 25px;
        border: 2px solid #f1f1f1;
        width: 25px;
        height: 25px;
        font-size: 12px !important;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:active {
        background: #f500f5;
        color: black !important;
        font-size: 12px !important;
    }

    /* Vertical scrollbar thumb 
    #scb-canvas-relative::-webkit-scrollbar-thumb:vertical {
        background: #f500f5 url('https://www.clikksy.com/ch-de/wp-content/plugins/simple-card-builder-new/assets/images/scroll-text-vr.svg') center no-repeat;
        color: black !important;
    }

    /* Horizontal scrollbar thumb 
    #scb-canvas-relative::-webkit-scrollbar-thumb:horizontal {
        background: #f500f5 url('https://www.clikksy.com/ch-de/wp-content/plugins/simple-card-builder-new/assets/images/scroll-text-hr.svg') center no-repeat;
    }

    .scb-mobile-message {
        display: block !important;
    } */
}

@media (max-width:1199px) {
    div#scb-modal {
        align-items: flex-start;
    }

    #scb-modal>.scb-modal-inner {
        height: 100%;
        justify-content: start;
    }

    #scb-modal>.scb-modal-inner div#scb-canvas-holder {
        padding: 0 !important;
    }

    /* Popup responsive css */
    .scb-confirm-btn {
        padding: 12px 15px;
        font-size: 14px;
        width: 50%;
        justify-content: center;
    }

    #scb-confirm-popup {
        padding: 20px;
    }

    .scb-canvas-wrap {
        padding: 0 !important;
        min-height: unset !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .scb-builder-wrap {
        flex-direction: column !important;
    }

    #scb-modal {
        padding: 0 !important;
    }

    .scb-modal-inner {
        border-radius: 0 !important;
    }

    /* Force visible scrollbar on mobile directly on canvas container */
    #scb-canvas-relative::-webkit-scrollbar {
        height: 25px;
        width: 25px;
        -webkit-appearance: none;
    }

    #scb-canvas-relative::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 8px;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb {
        background: #f500f5 !important;
        border-radius: 25px;
        border: 2px solid #f1f1f1;
        width: 25px;
        height: 25px;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:active {
        background: #f500f5 !important;
    }

    /* Vertical scrollbar thumb */
    #scb-canvas-relative::-webkit-scrollbar-thumb:vertical {
        background: #f500f5 url('https://printfotor.com/wp-content/uploads/2026/10/Frame-3-1.png') center no-repeat !important;
        background-size: 20px;
    }

    /* Horizontal scrollbar thumb */
    #scb-canvas-relative::-webkit-scrollbar-thumb:horizontal {
        background: #f500f5 url('https://printfotor.com/wp-content/uploads/2026/10/Frame-2-2.png') center no-repeat !important;
        background-size: 88px;
    }

    .scb-mobile-message {
        display: block !important;
        max-width: 80%;
        margin-inline: auto;
        text-align: center;
        margin-top: 20px;
    }

    .scb-mobile-label-row .scb-filter-label .scb-info-wrapper {
        order: -1;
    }

    .scb-mobile-label-row .scb-filter-label::after {
        margin-left: auto;
    }

    .scb-mobile-label-row {
        gap: 10px;
    }

    #scb-preview-img {
        position: relative;
        z-index: 2;
        width: auto;
        display: block;
        height: calc(100vh - 300px);
        object-fit: contain;
        object-position: top;
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width:767px) {}

/* MOBILE ONLY CANVAS FIXED WRAPPER */
@media (max-width: 676px) {
    .scb-mobile-scroll-container {
        position: relative;
        width: calc(100% - 30px);
        height: 56vh;
        margin: 10px 15px 34px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        /* border: 2px dashed #ddd; */
    }


    .scb-canvas-scroll-wrapper {
        width: 100%;
        height: 100% !important;
        padding: 0 !important;
        display: block;
        text-align: center;
        -webkit-overflow-scrolling: touch;
        user-select: none;
    }

    #scb-canvas-relative {
        display: block;
        max-width: none !important;
        max-height: none !important;
        /* iOS Safari: required for momentum scrolling inside an overflow:auto element */
        -webkit-overflow-scrolling: touch;
        /* Let browser handle pan gestures natively on iOS */
        touch-action: pan-x pan-y;
        /* direction:rtl removed — was causing scrollLeft=0 at rightmost position on iOS
           breaking the horizontal scrollbar thumb position calculation */
        direction: ltr;
    }

    /* Reset direction for canvas internals so text elements remain LTR */
    #scb-canvas-relative .canvas-container,
    #scb-canvas-relative canvas {
        direction: ltr;
        /* Allow touch events to propagate to the scroll container on iOS */
        touch-action: pan-x pan-y;
    }

    .scb-mobile-message {
        display: block !important;
    }

}

/* Thumb Edit/Remove Buttons */
.scb-zone-thumb {
    position: relative;
}

.scb-thumb-remove,
.scb-thumb-edit {
    display: none !important;
}

/* Mobile text action buttons – hidden on desktop, shown on mobile */
.scb-thumb-actions-mobile {
    display: none;
}

.scb-thumb-mobile-edit,
.scb-thumb-mobile-remove {
    flex: 1;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.scb-thumb-desktop-edit,
.scb-thumb-desktop-remove {
    flex: 1;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* New css 18 june */
.left-wrap-div,
.scb-controls {
    background-color: rgba(102, 70, 246, 0.8);
    border-color: rgba(102, 70, 246, 0.8);
    color: #fff;
}

.scb-controls .header-text,
.left-wrap-div .header-text {
    color: #fff;
}

/* New css 18 june end */

@media (max-width:1199px) {

    /* On mobile: hide overlay icon buttons, show text action row instead */
    .scb-thumb-remove,
    .scb-thumb-edit {
        display: none !important;
    }

    .scb-thumb-actions-mobile {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-top: 6px;
    }

    .scb-mobile-scroll-container .scb-canvas-scroll-wrapper {
        padding: 0 !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
        justify-content: safe center !important;
        align-items: safe center !important;
    }

    #scb-canvas-relative {
        position: relative !important;
        min-height: 100% !important;
        height: -moz-fit-content !important;
        height: fit-content !important;
        max-height: 100% !important;
        width: -moz-fit-content !important;
        width: fit-content !important;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    /* 18 june responsive css */

    #scb-canvas-holder .srb-full-title {
        font-size: 14px;
        padding: 0 12px;
        line-height: 1.5;
    }

    .scb-mobile-message {
        line-height: 1.5;
    }

    .scb-zone-card.scb-selected-card>div {
        flex-wrap: wrap;
    }

    .scb-controls.mobile-show #scb-zone-upload-controls div input.scb-text-letterspacing,
    .scb-controls.mobile-show .scb-zone-card.scb-selected-card>div .scb-text-size,
    .scb-controls.mobile-show .scb-zone-card.scb-selected-card>div .scb-text-lineheight {
        width: 100% !important;
        height: 40px;
    }

    .left-wrap-div {
        background-color: transparent;
        border-color: transparent;
    }

    #scb-modal>.scb-modal-inner {
        overflow-x: hidden;
    }

    /* Override inline padding:18px on #scb-canvas-holder (set in editorModal.html) */
    #scb-canvas-holder {
        /* padding: 0 !important; */
        background: transparent !important;
    }

    /* Override inline padding:30px on .scb-canvas-scroll-wrapper (set in editorModal.html) */
    .scb-canvas-scroll-wrapper {
        padding: 0 !important;
    }

    /* Hide the Vorschau header, subtitle, and zoom toolbar inside the
       canvas holder on mobile — they waste vertical space */
    #scb-canvas-holder>.header-text,
    #scb-canvas-holder>.srb-full-title {
        display: none !important;
    }

    /* july 24 css */
    .scb-mobile-label-row .scb-filter-label:first-child {
        flex: 1;
    }

    .scb-filter-mobile .scb-filter-label {
        flex: 1.5;
    }

    #scb-zone-upload-controls .zoomlevelmobile small {
        color: #fff !important;
    }

    #scb-zone-upload-controls {
        margin-bottom: 20px;
    }

    /* aug 5 css */
    /* #scb-canvas-relative .canvas-container {
        height: 100% !important;
    } */

    .scb-mobile-footer button .save-mobile-sticky-content svg {
        width: 22px;
        height: 20px;
        margin-top: 3px;
    }

    #scb-canvas-preview-img {
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain;
    }
}

@media (max-width: 767px) {}

/* ============================================================
   iOS Safari: Custom overlay scrollbars
   iOS ignores ::-webkit-scrollbar pseudo-elements entirely.
   These div-based scrollbars are injected by JS on iOS only
   and styled to match the desktop ::-webkit-scrollbar rules.
   ============================================================ */

/* Remove old hint (no longer used) */
.scb-ios-scroll-hint {
    display: none !important;
}

/* Scrollbar track — the groove */
.scb-ios-sb-track {
    position: absolute;
    background: #f1f1f1;
    border-radius: 25px;
    z-index: 9999;
    box-sizing: border-box;
    /* Smooth fade-in so it doesn't flash on load */
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show track when parent is hovered / being touched */
.scb-ios-sb-track.scb-ios-sb-visible,
.scb-ios-sb-track:active {
    opacity: 1;
}

/* Scrollbar thumb — the draggable pill */
.scb-ios-sb-thumb {
    position: absolute;
    background-color: #e1e1e1;
    border-radius: 25px;
    border: 2px solid #f1f1f1;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    /* Smooth position transitions while scrolling */
    transition: left 0.05s linear, top 0.05s linear;
}

.scb-ios-sb-thumb:active {
    background-color: #e1e1e1;
    border-color: #e1e1e1;
}

/* Horizontal track: sits at the bottom of the wrapper */
.scb-ios-sb-track-h {
    bottom: 0;
    left: 0;
    height: 25px;
}

/* Vertical track: sits at the right of the wrapper */
.scb-ios-sb-track-v {
    top: 0;
    right: 0;
    width: 25px;
}

/* Always show the tracks on iOS (no hover state on touch) */
@supports (-webkit-touch-callout: none) {
    .scb-ios-sb-track {
        opacity: 1;
    }

    #scb-canvas-relative {
        -webkit-overflow-scrolling: touch !important;
        overflow: auto !important;
    }

    .scb-mobile-scroll-container {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* inset the card so the overlay scrollbars sit BESIDE it, not over it */
        padding-right: 35px !important;
        padding-bottom: 35px !important;
        box-sizing: border-box !important;
    }

    /* when zoomed, keep the card left/top aligned inside its own scroll area
       so BOTH red edges are reachable (centre clips the far side on iOS) */
    #scb-canvas-relative {
        text-align: left !important;
    }

    #scb-canvas-relative>.canvas-container,
    #scb-canvas-relative>#scb-pdf-bg {
        margin: 0 !important;
    }

}

/* July 21 css */
.woocommerce-edit-account fieldset label {
    text-transform: capitalize;
}

/* New aug 14 css */
body.builder-editor-open {
    overflow: hidden;
}

.scb-builder-wrap .scb-controls {
    padding: 0;
    border-top-right-radius: 6px;
    border: 0;
}

button.scb-save-data-btn {
    font-weight: 500;
}

.scb-controls .desktop-only {
    margin-top: 0;
    padding: 18px;
    background-color: rgba(102, 70, 246, 0.6);
    border-bottom-right-radius: 6px;
}

.scb-all-devices-save-wrap .scb-save-data-btn {
    background-color: var(--e-global-color-primary);
}

.scb-controls .scb-zone-card>div>div input {
    height: 40px !important;
}

.scb-zone-card.scb-selected-card>div:nth-child(3) {
    margin-top: 12px !important;
}

.scb-controls .scb-controls-top-wrap {
    padding: 18px;
    max-height: calc(100% - 147px);
}

#scb-modal .scb-modal-inner {
    overflow: visible;
}

.scb-builder-wrap,
.scb-modal-inner {
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.scb-builder-wrap::-webkit-scrollbar,
.scb-modal-inner::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}



#scb-modal .scb-modal-inner .scb-close {
    background-color: #ff6767;
    top: 5px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    z-index: 9999999999;
}

.left-wrap-div {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border: 0;
}

.right-wrap-div {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 0;
}

.scb-controls button {
    border-radius: var(--btn-radius) !important;
}

.scb-controls button svg {
    width: 16px;
    flex-shrink: 0;
    height: 13px;
}

/* sep 28 css */

.scb-controls-top-wrap .scb-save-data-btn>svg,
.desktop-only #scb-save>svg {
    margin: -2px 0 0;
}

.print-text-wt {
    margin-bottom: 10px;
}

.scb-controls .scb-controls-top-wrap #scb-zone-upload-controls input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: 0;
    border-radius: 0 !important;
}

.scb-controls .scb-controls-top-wrap #scb-zone-upload-controls input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 0 !important;
}

.scb-controls .scb-controls-top-wrap #scb-zone-upload-controls input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 0 !important;
}

@media (min-width:1800px) {
    .scb-controls .scb-controls-top-wrap {
        padding: 18px 25px;
    }

    .left-wrap-div {
        padding: 18px 25px;
    }

    .scb-controls .desktop-only {
        padding: 18px 25px;
    }
}

@media (max-width:1499px) {
    .scb-controls .desktop-only button {
        font-size: 14px !important;
    }

    button.scb-save-data-btn {
        font-size: 14px;
    }
}

@media (max-width:1199px) {

    .left-wrap-div,
    .scb-controls {
        background-color: transparent;
        border-color: transparent;
    }

    #scb-canvas-relative {
        margin-inline: auto;
    }

    .scb-loader {
        height: 100% !important;
    }
}

@media (min-width:1280px) and (max-width:1365px) {
    .scb-controls .desktop-only button {
        font-size: 13px !important;
    }
}

@media (max-width:1199px) {
    #scb-modal .scb-modal-inner .scb-close {
        right: 10px;
        top: 12px;
        width: 35px;
        height: 35px;
    }

    .scb-zone-card.scb-selected-card>div>div {
        color: #000 !important;
    }

    #scb-zone-upload-controls {
        max-height: unset;
    }

    .scb-controls .scb-controls-top-wrap {
        max-height: unset;
    }

    #scb-zone-upload-controls {
        max-height: unset;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    #scb-goback {
        max-width: 50%;
        gap: 10px;
    }

    #scb-goback svg {
        display: block;
    }

    .scb-zone-card.scb-selected-card>div {
        color: #000;
        font-size: 14px;
    }

    .scb-zone-card.scb-selected-card>div>div label {
        color: #000 !important;
    }

    .scb-text-value,
    .scb-zone-card.scb-selected-card>div .scb-gradient-toggle,
    label.scb-filter-label {
        font-size: 13px !important;
    }

    .scb-controls .scb-controls-top-wrap {
        padding-top: 5px;
    }

    .scb-controls.mobile-show .mobile-controls-buttons {
        display: flex !important;
        margin-bottom: 8px !important;
    }

    .scb-desktop-thumb-actions {
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    @supports (-webkit-touch-callout: none) {
        .scb-canvas-relative {
            transform: scale(0.9);
            transform-origin: center center;
        }
    }
}

@media (max-width:767px) {}

/* ::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #FFC226;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5aa00;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #FFC226 transparent;
} */

@media (max-width:1199px) {

    /* 1. Only allow scrolling when content actually overflows */
    .scb-mobile-scroll-container,
    #scb-canvas-relative,
    #scb-canvas-holder {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* 2. Restore 25px Editor Box Custom Canvas WebKit Scrollbars */
    #scb-canvas-relative::-webkit-scrollbar,
    .scb-mobile-scroll-container::-webkit-scrollbar,
    #scb-canvas-holder::-webkit-scrollbar {
        width: 25px !important;
        height: 25px !important;
        -webkit-appearance: none !important;
    }

    #scb-canvas-relative::-webkit-scrollbar-track,
    .scb-mobile-scroll-container::-webkit-scrollbar-track,
    #scb-canvas-holder::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 8px !important;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb,
    .scb-mobile-scroll-container::-webkit-scrollbar-thumb,
    #scb-canvas-holder::-webkit-scrollbar-thumb {
        background: #f1f1f1 !important;
        border-radius: 25px !important;
        border: 2px solid #f1f1f1 !important;
        width: 25px !important;
        height: 25px !important;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:vertical {
        background: #f500f5 url('https://printfotor.com/wp-content/uploads/2026/10/Frame-3-1.png') center no-repeat !important;
        background-size: 20px !important;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:horizontal {
        background: #f500f5 url('https://printfotor.com/wp-content/uploads/2026/10/Frame-2-2.png') center no-repeat !important;
        background-size: 88px !important;
    }

    .scb-back-btn {
        display: none;
    }

    .scb-mobile-message {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        background: #fff;
        box-shadow: 0 0 15px #ddd;
        padding: 15px 0;
        z-index: 9999;
    }

    div#scb-chosen-design-content {
        position: fixed;
        top: 48px;
        left: 0;
        width: 100%;
        z-index: 999;
        height: calc(100dvh - 150px);
    }

    div#scb-chosen-design-content img {
        position: absolute;
        left: 50%;
        top: 20px;
        width: auto !important;
        height: 85%;
        transform: translateX(-50%);
    }

    .desktop-only {
        display: none !important;
    }

    body div#scb-canvas-relative {
        max-height: calc(100dvh - 260px) !important;
    }

    .scb-mobile-message>span {
        font-size: 12px;
    }

    button#scb-goback span {
        display: none;
    }

    button#scb-goback {
        width: 35px !important;
        height: 35px;
        background: #525252;
        border-radius: 100% !important;
        padding: 0 12px !important;
        position: relative;
        top: -13px;
    }

    .scb-zone-thumb-wrapper.scb-zone-thumb-parent.scb-selected {
        max-height: calc(100dvh - 254px);
    }

    span.scb-thumb-placeholder-text {
        margin-top: 20px;
        display: inline-block;
        color: rgba(255, 0, 0, 0.5);
    }

}

@media (max-width: 767px) {}

/* Hide JS overlay canvas scrollbars on WebKit desktop/Android so there is strictly ONLY ONE scrollbar */
.scb-ios-sb-track {
    display: none !important;
}

/* On iOS devices (where ::-webkit-scrollbar is ignored), show .scb-ios-sb-track and hide native ::-webkit-scrollbar */
@supports (-webkit-touch-callout: none) {
    .scb-ios-sb-track {
        display: block !important;
        opacity: 1 !important;
    }

    #scb-canvas-relative::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Modal Persistent Custom Scrollbar (JS toggles display: block only when content overflows) */
.scb-builder-sb-track {
    position: absolute;
    top: 5px;
    right: 2px;
    bottom: 5px;
    width: 5px;
    background: #f1f1f1;
    border-radius: 20px;
    z-index: 99999;
    pointer-events: auto;
    box-sizing: border-box;
    display: none;
    opacity: 1 !important;
}

.scb-builder-sb-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #cbcbcb;
    border-radius: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color .2s ease;
}

.scb-builder-sb-thumb:hover,
.scb-builder-sb-thumb:active {
    background-color: #cbcbcb;
}

/* -------------------------------------------------------
   Hide ONLY Canvas/Editor Box Scrollbars in Preview Mode
   ------------------------------------------------------- */
body.scb-in-preview-mode #scb-canvas-relative::-webkit-scrollbar,
body.scb-in-preview-mode .scb-mobile-scroll-container::-webkit-scrollbar,
body.scb-in-preview-mode #scb-canvas-holder::-webkit-scrollbar,
body.scb-in-preview-mode .scb-ios-sb-track,
body.scb-in-preview-mode .scb-ios-sb-thumb,
body.preview-mode #scb-canvas-relative::-webkit-scrollbar,
body.preview-mode .scb-ios-sb-track,
body.preview-mode .scb-ios-sb-thumb,
.scb-in-preview-mode #scb-canvas-relative::-webkit-scrollbar,
.scb-in-preview-mode .scb-ios-sb-track,
.scb-preview-mode #scb-canvas-relative::-webkit-scrollbar,
.scb-preview-mode .scb-ios-sb-track,
#scb-modal.is-preview #scb-canvas-relative::-webkit-scrollbar,
#scb-modal.is-preview .scb-ios-sb-track {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

#scb-modal #scb-preview-img,
img#scb-preview-img.scb-preview-img {
    display: none !important;
}

/* -------------------------------------------------------
   Hide Hint & Save Button in Preview Mode
   ------------------------------------------------------- */
body.scb-in-preview-mode .scb-image-before-edit-hint,
body.scb-in-preview-mode #scb-image-before-edit-hint,
body.scb-in-preview-mode #scb-save-data-all,
body.scb-in-preview-mode .scb-all-devices-save-wrap,
body.scb-in-preview-mode .scb-editing-outside-hint,
body.preview-mode .scb-image-before-edit-hint,
body.preview-mode #scb-image-before-edit-hint,
body.preview-mode #scb-save-data-all,
body.preview-mode .scb-all-devices-save-wrap,
body.preview-mode .scb-editing-outside-hint,
.scb-in-preview-mode .scb-image-before-edit-hint,
.scb-in-preview-mode #scb-image-before-edit-hint,
.scb-in-preview-mode #scb-save-data-all,
.scb-in-preview-mode .scb-all-devices-save-wrap,
.scb-in-preview-mode .scb-editing-outside-hint,
.scb-preview-mode .scb-image-before-edit-hint,
.scb-preview-mode #scb-image-before-edit-hint,
.scb-preview-mode #scb-save-data-all,
.scb-preview-mode .scb-all-devices-save-wrap,
.scb-preview-mode .scb-editing-outside-hint,
#scb-modal.is-preview .scb-image-before-edit-hint,
#scb-modal.is-preview #scb-image-before-edit-hint,
#scb-modal.is-preview #scb-save-data-all,
#scb-modal.is-preview .scb-all-devices-save-wrap,
#scb-modal.is-preview .scb-editing-outside-hint {
    display: none !important;
}

/* aug 20 css */
.scb-gradient-extras label {
    color: #fff !important;
}


.scb-upload-image-hint {
    color: #000;
}

#scb-canvas-preview-img {
    -webkit-filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.48));
    -moz-filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.48));
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.48));
}

/* -------------------------------------------------------
   Hide Filters in Preview Mode 15 Sept
   ------------------------------------------------------- */
body.scb-in-preview-mode .scb-desktop-filter-section,
body.scb-in-preview-mode #scb-desktop-filter-section,
body.preview-mode .scb-desktop-filter-section,
body.preview-mode #scb-desktop-filter-section,
.scb-in-preview-mode .scb-desktop-filter-section,
.scb-in-preview-mode #scb-desktop-filter-section,
.scb-preview-mode .scb-desktop-filter-section,
.scb-preview-mode #scb-desktop-filter-section,
#scb-modal.is-preview .scb-desktop-filter-section,
#scb-modal.is-preview #scb-desktop-filter-section {
    display: none !important;
}

body.scb-in-preview-mode .scb-template-label,
body.preview-mode .scb-template-label,
.scb-in-preview-mode .scb-template-label,
.scb-preview-mode .scb-template-label,
#scb-modal.is-preview .scb-template-label {
    margin-top: 0 !important;
}

#scb-image-before-edit-hint {
    color: #212529;
}

button.button.scb-upload-button {
    display: none;
}

.scb-modal .scb-modal-inner .scb-builder-wrap .scb-reset-btn {
    align-items: center !important;
    display: flex;
    text-transform: unset;
    font-size: 16px;
    justify-content: center;
    gap: 9px;
}

/* new css oct 13 */
.scb-editing-outside-hint {
    color: #000;
}

div#scb-chosen-design-content-desktop {
    margin: 0 !important;
    background: transparent !important;
    border: hidden !important;
    display: flex;
    border-radius: 0 !important;
}

div#scb-filter-buttons {
    flex-wrap: nowrap !important;
}

.scb-zone-thumb-wrapper.scb-zone-thumb-parent.scb-selected {
    overflow: auto;
    max-height: calc(100dvh - 424px);
}

.scb-zone-card.scb-selected-card>br {
    display: none;
}

.scb-actions-wrapper.scb-actions-parent.scb-thumb-save-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.scb-desktop-thumb-actions {
    margin: 0 !important;
}

.scb-desktop-thumb-actions button {
    height: 44px;
    padding: 0 !important;
    width: 44px;
}

.scb-desktop-thumb-actions button svg {
    width: 22px !important;
    height: 22px !important;
}

.scb-desktop-thumb-actions button#scb-desktop-remove svg {
    width: 30px !important;
    height: 30px !important;
}

.scb-all-devices-save-wrap {
    margin: 0 !important;
}

.scb-desktop-thumb-actions button#scb-desktop-remove {
    background: rgba(255, 0, 0, 0.2);
}

.scb-desktop-thumb-actions button#scb-desktop-remove svg path {
    fill: red;
}

button#scb-desktop-edit {
    background-color: rgba(0, 153, 255, 0.2);
}

button#scb-desktop-edit svg path {
    stroke: #0069ff;
}

.scb-desktop-thumb-actions {
    gap: 10px !important;
}

.scb-text-controls.scb-text-controls-wrapper.scb-text-controls-parent {
    max-height: calc(100dvh - 336px);
    overflow: auto;
}

.scb-editor-preview-wrapper.scb-editor-preview-parent {
    overflow: auto;
    max-height: calc(100dvh - 413px);
}

button#scb-desktop-edit[data-action-mode="save"] {
    background: rgba(37, 255, 0, 0.25);
}

button#scb-desktop-edit[data-action-mode="save"] svg path {
    stroke: #1ab500;
}

button#scb-desktop-edit[data-action-mode="save"] svg {
    height: 30px !important;
    width: 30px !important;
}

.scb-editor-preview-wrapper.scb-editor-preview-parent {
    display: flex;
    justify-content: center;
}

#scb-zone-upload-controls .zoomlevelmobile small {
    color: #000 !important;
}

button#scb-goback svg path {
    fill: #fff;
}

#scb-confirm-popup h2 {
    font-family: 'Fraunces';
    font-size: 25px !important;
}



.scb-modal .scb-modal-inner .scb-builder-wrap .scb-reset-btn {
    border-radius: 100% !important;
}

.scb-zone-thumb.scb-selected {
    background-size: 40% !important;
}

/* Make the iOS custom editor scrollbars match the Android/WebKit style */
@supports (-webkit-touch-callout: none) {
    .scb-ios-sb-track {
        background-color: #f1f1f1 !important;
        border-radius: 8px !important;
    }

    .scb-ios-sb-thumb {
        background-color: #f500f5 !important;
        border: 2px solid #f1f1f1 !important;
        border-radius: 25px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .scb-ios-sb-thumb-h {
        background-image: url("https://printfotor.com/wp-content/uploads/2026/10/Frame-2-2.png") !important;
        background-size: 88px !important;
    }

    .scb-ios-sb-thumb-v {
        background-image: url("https://printfotor.com/wp-content/uploads/2026/10/Frame-3-1.png") !important;
        background-size: 20px !important;
    }

    .scb-ios-sb-thumb:active {
        background-color: #f500f5 !important;
        border-color: #f1f1f1 !important;
    }
}

@media (max-width:1439px) {
    #scb-filter-buttons .filter-preview {
        height: 50px !important;
        width: 50px !important;
    }
}

@media (max-width:1199px) {
    .scb-zone-thumb-wrapper.scb-zone-thumb-parent.scb-selected {
        max-height: calc(100dvh - 254px);
    }

    .scb-editor-preview-wrapper.scb-editor-preview-parent {
        max-height: calc(100dvh - 340px);
    }
}

@media (max-width:567px) {
    .woosw-item-inner {
        flex-wrap: wrap;
        justify-content: flex-start !important;
        position: relative;
    }

    .woosw-item-inner .woosw-item--remove {
        width: 25px !important;
        flex-shrink: 0 !important;
        background: rgba(255, 0, 0, 0.15);
        border-radius: 100%;
        height: 25px;
        position: absolute;
        top: 10px;
        right: -10px;
    }

    .woosw-item-inner .wwosw-item-image {
        width: 80px;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    .woosw-item-inner .woosw-item--info {
        width: calc(100% - 135px);
    }

    .woosw-item-inner .woosw-item--actions {
        width: 100%;
    }


    .woosw-item-inner p.product.woocommerce.add_to_cart_inline a {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

/* ============================================================
   SCB Watermarked Design Preview in Cart and Checkout
   ============================================================ */
.scb-cart-thumb-wrapper,
.scb-checkout-thumb-wrapper {
    position: relative !important;
    display: inline-block !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    line-height: 0 !important;
    background: #ffffff !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.scb-cart-thumb-wrapper:hover,
.scb-checkout-thumb-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.scb-cart-thumb-wrapper .scb-thumb-watermark-overlay,
.scb-checkout-thumb-wrapper .scb-thumb-watermark-overlay {
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    pointer-events: none !important;
    background-image: url('https://printfotor.com/wp-content/themes/printfotor/assests/images/logo1.png') !important;
    background-repeat: repeat !important;
    background-size: 55px auto !important;
    background-position: center !important;
    transform: rotate(-25deg) !important;
    opacity: 0.16 !important;
    z-index: 2 !important;
}

.scb-thumb-watermark-overlay img {
    display: none !important;
}

.scb-checkout-item-display {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 4px 0 !important;
}

.scb-checkout-item-title {
    flex: 1 !important;
}

/* Editor Preview Mode Watermark Overlay */
.scb-preview-watermark-wrap,
#scb-canvas-preview-wrap,
#scb-preview-img-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.scb-preview-watermark-overlay {
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    pointer-events: none !important;
    background-image: url('https://printfotor.com/wp-content/themes/printfotor/assests/images/logo1.png') !important;
    background-repeat: repeat !important;
    background-size: 65px auto !important;
    background-position: center !important;
    transform: rotate(-25deg) !important;
    opacity: 0.16 !important;
    z-index: 10 !important;
}