/* Base styles for customizer-header */
.design-preview {
    z-index: 992; /* Make sure it's above other content */
    border-radius: 10px 10px 0px 0px;
    width: 100%;
}

/* Ensure styles apply only to tablets and desktop devices */
@media (max-width: 768px) {
    .design-preview {
        position: fixed; /* Fixed positioning */
        top: 50px;
    }
}

/* Ensure styles apply only to tablets and desktop devices */
@media (min-width: 768px) {
    .design-preview {
        position: fixed; /* Fixed positioning */
        top: 180px;
        left: 0; /* Align to the left edge */
        margin-left: 10px;
        width: calc(60% - 20px);
    }
    
    .design-preview.visible {
        opacity: 1;
        pointer-events: auto;


    }
}

.design-preview.visible {
    opacity: 1;
    pointer-events: auto;
}

.design-preview.hidden-vb {
    opacity: 0;
    pointer-events: none;

}






.customizer-shortcode{
    
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.22);
    border-radius: 10px;
}

/* Ensure styles apply only to tablets and desktop devices */
@media (max-width: 768px) {

    .customizer-shortcode{
        
        box-shadow: none;
    }
}















    .close-pip {
        text-indent: -9999px; /* Hide any inner text */
    }
    
    .pip-activate-icon {
    text-indent: -9999px; /* Hide any inner text */
    }
    
    .enlarge-pip {
    text-indent: -9999px; /* Hide any inner text */
    }
    
    .fpd-product-designer-wrapper {
    padding-top: 30px;
    }


@media (min-width: 769px) {
    .pip-header {
        top: 0;
    }
}



@media (max-width: 768px) {
    .fpd-pip-mode {
        position: fixed !important;
        top: 90px;
        left: 10px;
        transform: scale(0.5); /* Scale down to 50% of its original size */
        transform-origin: top left; /* Adjust the origin of transformation */
        border-radius: 10px;
        overflow: auto; /* Allows scrolling within the PiP window */
        z-index: 992;
        transition: transform 0.5s ease-in-out;
        box-shadow: 0px 0px 22px 5px rgba(0, 0, 0, 0.25);
        border: solid 2px #9c9c9c;
        overflow: hidden;
    }
    
    .fpd-pip-mode .fpd-view-prev, .fpd-pip-mode .fpd-view-next, .close-pip {
        pointer-events: auto; /* Enable pointer events for buttons */
        z-index: 993; /* Ensure buttons are clickable and above the PiP mode layer */
    }
    
    .fpd-product-designer-wrapper {
    will-change: transform;
    padding-top: 0;
    padding-bottom: 30px;
    }
    
    .pip-header {
        bottom: 0;
    }
}

.pip-header {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #efefef;
    display: flex;
    align-items: center;
    justify-content: space-between; /* This keeps elements on both ends */
    padding: 0 10px;
    border-radius: 10px 10px 0 0;
    z-index: 99999;
}

.pip-title {
    font-size: 20px;
    color: #000;
    flex-grow: 1; /* This will ensure it always takes available space and centers itself */
    text-align: center;
}

@media (max-width: 768px) {
/* General button styling */
.enlarge-pip, .close-pip, .pip-activate-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    cursor: pointer;
    position: absolute; /* Absolute position to place specifically */
    border-radius: 5px;
    z-index: 993;
}

.enlarge-pip {
    right: 10px;
    background-image: url('images/enlarge-icon2.png');
}

.pip-activate-icon {
    left: 10px; /* Positioned on the right edge */
    background-image: url('images/pip-icon3.png');
    width: 50px;
    height: 50px;
}


.pip-title {
        font-size: 1.2rem;
}

}

