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;
    /* centers thumb */
}

/* 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: 767px) {
    .scb-show-mobile {
        display: block !important;
    }
}

.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:767px) {

    .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: 35px;
        position: relative;
    }

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

/* 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: 17px;
    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;
    gap: 8px;
    width: 100%;
    border-left: 1px solid #D1CFCF;
    height: 100%;
    padding: 18px;
    background-color: #D3CBE1;
    max-width: 30%;
}

#scb-zone-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 650px;
    overflow: auto;
    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;
}


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;
}

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;
}

.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: 9999999;
}

.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: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: #FF9800;
    animation: scb-spin 1s linear infinite;
}

.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: 9999;
}

.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-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-canvas-holder .canvas-container {
    width: 60vh !important;
    height: 66vh !important;
}
#scb-canvas-holder .canvas-container canvas {
    height: 100% !important;
    width: 100% !important;
} */
.scb-full-image #scb-pdf-preview canvas {
    height: auto;
    width: auto;
    max-width: none;
}

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


@media (max-width:1365px) {
    .scb-full-image {
        width: 340px;
    }
}

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

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

    .scb-full-image {
        width: 280px;
    }

    .scb-canvas-wrap {
        width: 480px;
    }

    /* button#scb-preview svg {
        width: 45px;
        height: 25px;
    } */
}

@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;
    }

}

@media(max-width:767px) {

    .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%;
    }

    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) {
        margin-bottom: -2px;
    }

    /* button#scb-save{
        padding:5px 4px;
    } */

    .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%;
    }

    /* div#scb-filter-buttons {
        display: none !important;
    } */


    .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-canvas-relative {
        /* min-width: 600px; */
        margin: 15px auto 40px auto;
    }

    #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 {
        /* width: 50%;
        border-radius: 8px; */
        /* text-align: center; */
        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;
    }

    /* Hide button text on mobile, show only icons */
    /* .mobile-only .btn-text {
        display: none !important;
    } */

    .mobile-only button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 10px !important;
        /* width: 50px !important; */
        /* height: 50px !important; */
        /* border-radius: 50% !important; */
        min-width: unset !important;
    }

    #scb-goback {
        width: 100% !important;
        /* height: 50px !important; */
        /* border-radius: 50% !important; */
        padding: 10px !important;
    }

    #scb-goback svg {
        display: none;
    }

    /* 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;
    }

    .scb-canvas-preview-toolbar {
        /* display: none !important; */
    }
}

/* @media (max-width:575px) {
    #scb-canvas-holder .canvas-container {
        width: 38vh !important;
        height: 55vh !important;
    }
} */

/* 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-editor-preview+div {
        position: absolute;
        top: 3px;
        left: 0;
    }

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

    img#scb-canvas-preview-img {
        height: calc(100vh - 115px);
    }
}

/* 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: 50px;
    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: 767px) {
    .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;
    }
}

/* 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: #FFC242;
        border-radius: 25px;
        border: 2px solid #f1f1f1;
        width: 25px;
        height: 25px;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:active {
        background: #FFC242;
    }

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

    /* Horizontal scrollbar thumb */
    #scb-canvas-relative::-webkit-scrollbar-thumb:horizontal {
        background: #FFC242 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:767px) {
    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: #FFC242;
        border-radius: 25px;
        border: 2px solid #f1f1f1;
        width: 25px;
        height: 25px;
    }

    #scb-canvas-relative::-webkit-scrollbar-thumb:active {
        background: #FFC242;
    }

    /* Vertical scrollbar thumb */
    #scb-canvas-relative::-webkit-scrollbar-thumb:vertical {
        background: #FFC242 url('https://www.clikksy.com/ch-de/wp-content/uploads/2026/04/scroll-vr.png') center no-repeat;
        background-size: 20px;
    }

    /* Horizontal scrollbar thumb */
    #scb-canvas-relative::-webkit-scrollbar-thumb:horizontal {
        background: #FFC242 url('https://www.clikksy.com/ch-de/wp-content/uploads/2026/04/scroll-hr.png') center no-repeat;
        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%;
    }
}

/* MOBILE ONLY CANVAS FIXED WRAPPER */
@media (max-width: 676px) {
    .scb-mobile-scroll-container {
        position: relative;
        width: 100%;
        height: 58vh;
        margin: 10px auto 34px;
        /* Use auto instead of hidden so iOS Safari can scroll child elements */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        border: 2px dashed #ddd;
        /* helps visibility of bounds */
    }


    .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: 767px) {

    /* 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: 100% !important;
    }

}

/* ============================================================
   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: #FFC242;
    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: #e6a800;
    border-color: #e6a800;
}

/* 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;
}

@media (max-width:1199px) {

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