.code-toolbar {
    position: relative;
    margin: 1em 0;
    background: #282c34;
    border-radius: 6px;
    /* padding-top: 40px; */
    box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;
}

.code-toolbar:hover .toolbar {
    opacity: 1;
}

.code-toolbar pre {
    margin: 0 !important;
    border-radius: 6px;
}

.code-toolbar pre::-webkit-scrollbar {
    height: 8px;
    background-color: #282c34;
}

.code-toolbar pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.code-toolbar pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.code-toolbar pre code {
    padding: 0 10px 0 5px;
}

.linenums li {
    padding: 0 !important;
}

.code-toolbar:before {
    content: '';
    height: 40px;
    width: 100%;
    background: #21252b;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* .code-toolbar:after {
    content: '';
    position: absolute;
    top: 12px;
    left: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 25px 0 0 #ffbd2e, 50px 0 0 #27c93f;
    z-index: 1;
} */

.toolbar {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .toolbar {
        opacity: 1;
        display: block !important;
        pointer-events: auto !important;
    }
    
    .wp-block-jetpack-markdown .code-toolbar .toolbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .toolbar-item button {
        display: block !important;
        pointer-events: auto !important;
    }
}

.toolbar-item button {
    padding: 5px 10px;
    color: #ccc;
    cursor: pointer;
    background: #0e78f9;
    border-radius: 3px;
    line-height: 1.4;
}
