﻿.swe-semantic-editor-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
}

.swe-semantic-editor-overlay.is-open {
    display: block;
}

.swe-semantic-editor-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.swe-semantic-editor-overlay__window {
    position: absolute;
    inset: 4vh 4vw;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.swe-semantic-editor-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #f8f8f8;
}

.swe-semantic-editor-overlay__close {
    border: 0;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.swe-semantic-editor-overlay__frame {
    width: 100%;
    flex: 1 1 auto;
    border: 0;
    background: #fff;
}

.swe-semantic-editor-overlay-open,
.swe-semantic-editor-overlay-open body {
    overflow: hidden;
}

.swe-semantic-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    min-height: 1.75rem;
    margin-inline-start: 0.35rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
    .swe-semantic-editor-overlay__window {
        inset: 0;
        border-radius: 0;
    }
}
