body {
    background-color: skyblue;
}

/* Frontend inline block editor */
.bb-block {
    position: relative;
}

.bb-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.bb-block:hover .bb-edit-btn {
    display: inline-flex;
}

.bb-modal {
    width: min(900px, calc(100vw - 32px));
    border: 0;
    border-radius: 10px;
    padding: 0;
}

.bb-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.bb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
}

.bb-modal-title {
    margin: 0;
    font-size: 16px;
}

.bb-modal-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.bb-modal-body {
    padding: 14px;
}

/* Block Highlighting */
body.bb-dimmed-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    pointer-events: none;
    transition: background 0.3s ease;
}

.bb-block.bb-is-highlighted {
    z-index: 1000;
    position: relative;
    /* box-shadow: 0 0 0 100vmax rgba(0,0,0,0.5); Alternative to body::after if z-index fails, but body::after is safer for full page */
}
