.ui-dialog {
    z-index: 10000 !important;
}

.botowski-rewrite-btn,
.botowski-rewrite-title-btn {
    position: relative;
    padding-left: 30px !important;
}

.botowski-rewrite-btn::before,
.botowski-rewrite-title-btn::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('botowski.png');
    background-size: contain;
    background-repeat: no-repeat;
}


.ui-dialog .ui-dialog-titlebar .ui-dialog-titlebar-close {
    font: normal 20px/1 dashicons;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1 !important;
    width: 36px;
    height: 36px;
    content: "\f159";
    top: 0;
    right: 0;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    text-indent: 0;
    text-shadow: none;
    cursor: pointer;
}


/* Add these styles for the spinner */
.botowski-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.botowski-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}