select.mjs-font-select-original,
.mjs-font-select-item-full {
    display: none;
}

.mjs-font-select {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 500px;
}

.mjs-font-select-item {
    width: 100%;
    border: 2px solid #f9f9f9;
    flex: 1 0 calc(50% - 1.6rem);
    container: radio-wrapper / inline-size;
    padding: 5px;
    align-items: center;
    display: flex;
}

.mjs-font-select-item-container,
.mjs-font-select-item-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mjs-font-select-item-in > span{
    font-size: 13px;
    color: #02A477;
}

.mjs-font-select-item-in > img {
    max-height: 33px;
}

.mjs-font-select-item-preview {
    cursor: pointer;
    font-weight: 400;
    font-size: 1.6rem;
    text-decoration: underline;
    position: relative;
    margin-right: 10px;
}

.mjs-font-select-item-preview:hover {
    text-decoration: none;
}

.mjs-fake-radio {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #141414;
    position: relative;
    margin-right: 10px;
}

.mjs-fake-radio.checked {
    background: #141414;
    border-color: #141414;
    color: #fff;
    box-shadow: 0 0 0 0.2rem #fff inset;
}

.mjs-fake-radio:hover {
    border-color: #FDBCB4;
    cursor: pointer;
}

.mjs-fake-radio.checked:hover {
    background: #FDBCB4;
}

.mjs-font-select-item:hover {
    cursor: pointer;
    border-color: #FDBCB4;
}

.mjs-font-select-item-preview.active .mjs-font-select-item-full {
    display: block;
    border: 2px solid #FDBCB4;
    position: absolute;
    z-index: 999999;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 400px;

}

@media (max-width: 480px) {
    .mjs-font-select {
        flex-direction: column;
    }

    .mjs-font-select-item-preview.active .mjs-font-select-item-full {
        position: fixed;
        bottom: auto;
        top: 0;
        left: 0;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        background: #000000a1;
        border: none;
        padding: 20px;
    }

    .mjs-font-select-item-full img {
        border: 2px solid #FDBCB4;
    }
}