.wp-block-code.yia-hljs-ready {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 24px;
    border: 0;
    border-radius: 8px;
    background: #0f111a;
    box-shadow: 0 5px 10px rgba(15, 17, 26, .4);
}

.yia-hljs-tools {
    display: flex;
    min-height: 30px;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
    background: #0b0d14;
    color: #8f93a2;
}

.yia-hljs-mac,
.yia-hljs-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.yia-hljs-mac {
    gap: 6px;
}

.yia-hljs-mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.yia-hljs-close {
    background: #fc625d;
}

.yia-hljs-minimize {
    background: #fdbc40;
}

.yia-hljs-maximize {
    background: #35cd4b;
}

.yia-hljs-lang {
    min-width: 0;
    margin-left: 8px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}

.yia-hljs-actions {
    gap: 4px;
    margin-left: auto;
}

.yia-hljs-collapse,
.yia-hljs-copy {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.yia-hljs-collapse::before {
    content: '-';
    font-size: 16px;
    line-height: 1;
}

.yia-hljs-collapsed .yia-hljs-collapse::before {
    content: '+';
}

.yia-hljs-collapse:hover,
.yia-hljs-copy:hover,
.yia-hljs-collapse:focus-visible,
.yia-hljs-copy:focus-visible {
    background: rgba(143, 147, 162, .16);
}

.yia-hljs-copy.yia-copied {
    color: #35cd4b;
}

.yia-hljs-copy svg {
    fill: currentColor;
}

.yia-hljs-body {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    background: #0f111a;
}

.yia-hljs-clipped:not(.yia-hljs-height-expanded) .yia-hljs-body {
    max-height: var(--yia-code-max-height);
    overflow-y: hidden;
}

.yia-hljs-collapsed .yia-hljs-body {
    display: none;
}

.wp-block-code.yia-hljs-ready code,
.wp-block-code.yia-hljs-ready .hljs-ln-n,
.wp-block-code.yia-hljs-ready .hljs-ln-code {
    font-family: Consolas, Menlo, monospace, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 22.4px;
}

.wp-block-code.yia-hljs-ready code {
    display: block;
    padding: 12px 16px;
}

.wp-block-code.yia-hljs-ready:not(.yia-hljs-light) code {
    background: #0f111a;
}

.hljs-ln {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.hljs-ln-line {
    display: table-row;
}

.hljs-ln-n {
    display: table-cell;
    min-width: 3em;
    padding: 0 12px 0 16px;
    text-align: right;
    vertical-align: top;
    color: #8f93a2;
    user-select: none;
}

.hljs-ln-code {
    display: table-cell;
    width: 100%;
    padding-right: 16px;
    vertical-align: top;
    white-space: pre;
}

.yia-hljs-height-toggle {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 26px;
    padding: 0;
    border: 0;
    background: linear-gradient(rgba(15,17,26,.6), rgba(15,17,26,.9));
    color: #8f93a2;
    cursor: pointer;
}

.yia-hljs-height-toggle::before {
    content: '...';
    font-size: 14px;
    line-height: 1;
}

.yia-hljs-clipped .yia-hljs-height-toggle {
    display: block;
}

.wp-block-code.yia-hljs-ready pre {
    margin: 0;
}

@media (max-width: 640px) {
    .wp-block-code.yia-hljs-ready code {
        padding-right: 12px;
        padding-left: 12px;
    }
}
