svg foreignObject {
    position: relative;
    line-height: 1.3;
    overflow: visible;
}

svg.editor foreignObject::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

svg.editor g[id^="icdt-"] foreignObject::after {
    display: none;
}

svg.editor foreignObject>[data-node="test"] {
    border: 1px dashed #be5dba;
}

svg.viewer foreignObject.interactive-click::after,
svg.viewer foreignObject.variable-click::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

svg foreignObject input[type="text"],
svg foreignObject textarea {
    width: 100%;
    height: 100%;
    border: 0px;
    padding: 5px 10px;
    box-sizing: border-box;
    background: transparent;
    box-shadow: none;
    outline: none;
}

svg foreignObject h1,
svg foreignObject h2,
svg foreignObject h3,
svg foreignObject h4,
svg foreignObject h5,
svg foreignObject h6 {
    margin: 0;
}

svg foreignObject p:last-child {
    margin: 0;
}

svg .hide {
    display: none;
}

.popup-media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.popup-media-viewer iframe {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
}

.popup-media-viewer .btn-close {
    position: absolute;
    top: 4px;
    right: 4px;
    border-radius: 4px;
    line-height: 0;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 1px -1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.popup-media-viewer .btn-close:hover {
    background-color: #eb445a;
}

.popup-media-viewer .btn-close img {
    width: 32px;
    height: 32px;
}