[class^="wp-block-cb-"] *,
.modal-mask * {
    box-sizing: border-box;
}

.wp-element-button.modal {
    cursor: pointer;
    display: inline-block;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    padding: 1rem;
    z-index: 99999;
    display: none;
}

.modal-mask .modal-content {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, .3);
    max-width: 700px;
    max-height: 550px;
    padding: 1rem;
    margin: auto;
    border-radius: 1rem;
}

.modal-mask .close {
    position: absolute;
    padding: 5px;
    right: 10px;
    top: 10px;
    border: none;
    background: #fff;
    display: block;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}

.modal-mask .close svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    fill: #000;
}

.modal-mask .modal-content::-webkit-scrollbar {
    width: 18px;
    margin: 1rem 0;
}

.modal-mask .modal-content::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 10px
}

.modal-mask .modal-content::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 10px;
    border: 6px solid #fff
}

.modal-mask .modal-content::-webkit-scrollbar-thumb:hover {
    background: #555
}