/* Editor-specific styles for Info Block Cover */

/* Disable button link clicking in the editor */
.editor-styles-wrapper .info-block-cover-button,
.block-editor-writing-flow .info-block-cover-button,
.edit-post-visual-editor .info-block-cover-button,
.block-editor .info-block-cover-button {
    pointer-events: none !important;
    cursor: default !important;
}

/* Make sure the RichText component inside the button is still editable */
.editor-styles-wrapper .info-block-cover-button .rich-text,
.block-editor-writing-flow .info-block-cover-button .rich-text,
.edit-post-visual-editor .info-block-cover-button .rich-text,
.block-editor .info-block-cover-button .rich-text {
    pointer-events: auto !important;
    cursor: text !important;
}

/* Optional: Add a visual indicator that the button is not clickable in the editor */
.editor-styles-wrapper .info-block-cover-button::after,
.block-editor-writing-flow .info-block-cover-button::after,
.edit-post-visual-editor .info-block-cover-button::after,
.block-editor .info-block-cover-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}