.ComponentPreview {
    &.is-ready {
        .ComponentPreview-iframe {
            visibility: visible;
            height: auto;
        }
        .ComponentPreview-wrapper:before,
        .ComponentPreview-wrapper:after {
            display: none;
        }
    }
}
.ComponentPreview-iframe {
    visibility: hidden;
    height: 50px;
    width: 100%;
    background-color: #fff;
    display: block;
}
.ComponentPreview-wrapper {
    position: relative;
    z-index: 1;
    background-color: #fff;
    outline: 1px solid #ddd;
    outline-offset: -1px;
    &:before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        text-align: center;
        display: block;
        z-index: 2;
        content: " ";
    }
    &:after {
        content: "Loading preview...";
        display: inline-block;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
        color: #792C5C;
        font-family: Hack, Consolas, Monaco, 'Andale Mono', monospace;
        font-weight: bold;
        position: absolute;
        top: 52%;
        left: 50%;
        margin: 0 auto;
        transform: translate(-50%, -50%);
        z-index: 3;
        text-transform: uppercase;
    }
}