/*!
 * @package     VP Prime Framework
 * @author      Abhishek Das <info@virtueplanet.com>
 * @link        https://www.virtueplanet.com
 * @copyright   Copyright (C) 2023-2025 Virtueplanet Services LLP. All Rights Reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

.sitepreview-control {
    flex: 1 0 100% !important;
}

.sitepreview-frame {
    width: 100%;
    overflow: auto;
    height: 700px;
    border: 0 none;
    border: 1px solid #DDD;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sitepreview-container {
    position: relative;
    overflow: hidden;
}

.sitepreview-loader {
    display: none;
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.6);
}

.sitepreview-loader:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 25px;
    width: 25px;
    -webkit-animation: loaderSpin 0.8s infinite linear;
    animation: loaderSpin 0.8s infinite linear;
    border: 2px solid #333;
    border-right-color: transparent;
    border-radius: 50%;
}

.sitepreviw-loading .sitepreview-loader {
    display: block;
}

@-webkit-keyframes loaderSpin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loaderSpin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}