/* === SPOLEČNÉ STYLY PRO VŠECHNY CUSTOM BLOKY === */

.wp-editable-highlight {
    position: relative;
    z-index: 25;
    cursor: text;
    min-height: 25px;
    background-color: rgba(0,0,0,0.15);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.block-editor-rich-text__editable.wp-editable-highlight {
    width: max-content;
    position: relative;
}

.wp-editable-highlight:hover,
.wp-editable-highlight:focus-within {
    border: 1px solid var(--wp-admin-theme-color);
}

.wp-custom-add-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    background: #1e1e1e;
    box-shadow: none;
    color: #fff;
    display: none;
    flex-direction: row;
    height: 24px;
    min-width: 24px;
    padding: 0 !important;
    width: 24px;
    cursor: pointer;
}

.wp-custom-add-btn:hover {
    background: var(--wp-admin-theme-color);
    color: #fff;
}

.wp-custom-add-btn:hover > svg {
    color: #fff;
}

.wp-custom-btns-wrapper {
    position: relative;
}

.wp-custom-btns {
    position: absolute;
    top: -15px;
    right: -15px;
    display: flex;
    gap: 5px;
    z-index: 30;
    visibility: hidden;
}

.wp-custom-btns--inner {
    top: 8px;
    left: 8px;
    right: unset;
}

.wp-custom-btns-wrapper:hover .wp-custom-btns,
.wp-custom-btns-wrapper:focus-within .wp-custom-btns {
    visibility: visible;
}

.wp-custom-btns__btn {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    padding: 8px;

    svg {
        height: 100%;
        width: 100%;
    }
}

.wp-custom-btns__btn--remove {
    background-color: #dc2626;
    color: #fff !important;
}

.wp-custom-btns__btn--remove:hover {
    color: #fff !important;
}

.wp-plaintext-editable {
    text-align: center;

    &::placeholder {
        color: #fff;
        opacity: 0.62;
    }
}