/* style tools */
.stone-hide {
    display: none !important;
}

.stone-ml {
    margin-left: 15px !important;
}

.stone-ml2 {
    margin-left: 30px !important;
}

.stone-mr {
    margin-right: 15px !important;
}

.stone-mr2 {
    margin-right: 30px !important;
}

.stone-pl {
    padding-left: 15px !important;
}

.stone-pl2 {
    padding-left: 30px !important;
}

.stone-pr {
    padding-right: 15px !important;
}

.stone-pr2 {
    padding-right: 30px !important;
}

/* default style */
.stone-editor {
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
}

.stone-editor p{
    margin-bottom: 0px;
}

.stone-editor *{
    box-sizing: border-box;
}

.stone-content-wrap {
    position: relative;
}

.stone-toolbar {
    background-color: #fff;
    border-bottom: 1px solid #dfdfdf;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.stone-toolbar * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
}

.stone-toolbar>* {
    font-size: 0.9rem;
}

.stone-btn {
    display: inline-block;
    position: relative;
}

.stone-btn,
.stone-btn * :not(input){
    background-color: #fff;
    border: none;
    color: #444;
}

.stone-btn i {
    font-size: 0.9rem;
}

.stone-btn button {
    padding: 6px 8px;
    cursor: pointer;
}

.stone-btn button:active,
.stone-btn button:focus {
    outline: none;
}

.stone-toolbar>.stone-btn>button *,
.stone-toolbar>.stone-btn>button {
    transition: 0.3s;
}

.stone-toolbar>.stone-btn.active>button,
.stone-toolbar>.stone-btn.active>button *,
.stone-toolbar>.stone-btn:hover>button,
.stone-toolbar>.stone-btn:hover>button * {
    transition: 0.2s;
    background-color: #f0f0f0;
}

.stone-toolbar>.stone-btn:active>button,
.stone-toolbar>.stone-btn:active>button * {
    background-color: #dedede;
}

.stone-btn button:hover *,
.stone-btn button:active *,
.stone-btn button:focus * {
    color: #5629ee;
}

.stone-btn svg {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 16px;
}

.stone-stroke {
    fill: none;
    stroke: #444;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.stone-btn:hover .stone-btn-list {
    display: flex;
    flex-direction: column;
}

.stone-btn-list {
    position: absolute;
    display: none;
    list-style: none;
    padding: 0 !important;
    z-index: 1;
    background-color: #fff !important;
    border-radius: 2px;
    border: 1px solid #dfdfdf;
    width: fit-content;
}

.stone-btn-list .stone-btn{
    width: 100%;
    border-radius: 0;
    border: none;
}

.stone-btn-list .stone-btn *{
    width: 100%;
    text-align: left;
}

.stone-btn-list>li {
    width: 100%;
}

.stone-btn-list .stone-btn button {
    margin: 0;
}

.stone-btn.active .stone-btn-list {
    display: block;
    position: absolute;
    top: 100%;
    left: -1px;
}

.stone-flex{
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.stone-color-input,
.stone-hilite-input {
    display: inline-block;
    width: 30px;
    height: 1.2em;
    padding: 1px;
    border: 1px solid #eee;
    border-radius: 2px;
}

.stone-editor img {
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    cursor: pointer;
}

.stone-editor iframe {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

.stone-exit {
    position: fixed;
    width: 1px;
    height: 1px;
    background-color: transparent;
    top: 0;
    left: 0;
    opacity: 0;
    border: none;
}

.stone-editor,
.stone-toolbar,
.stone-content {
    border-radius: 4px;
}

.stone-content {
    outline: none;
    padding: 10px;
    min-height: 12rem;
}

.stone-html-content{
    border: none;
    border-top: 1px solid #eee;
    outline: none;
    background-color: #fcfcfc;
    margin: 0;
    padding: 10px;
    width: 100%;
    min-height: 12rem;
    resize: vertical;
    position: sticky;
    bottom: 0;
}

.stone-content:active,
.stone-content:focus {
    outline: none;
}

.stone-image-alt {
    display: block;
    width: 100%;
    font-size: 1em;
    font-weight: 400;
    padding: 8px;
    background-color: rgba(0,0,0,0.05);
    border: 2px solid #eee;
    border-radius: 0px;
    resize: vertical;
    margin-top: calc(-0.25rem - 1px);
    -webkit-appearance: none;
    -webkit-border-radius:none;
}

.stone-image-alt:focus,
.stone-image-alt:active{
    outline: none;
    border: 2px solid #5629ee;
}

.stone-image-alt::placeholder {
    color: #495057;
}

.stone-image-alt-hover{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    font-size: 0.75rem;
    padding: 0 0.25rem;
    box-shadow: 0 0 #0000;
    border:1px solid rgba(209, 213, 219, 0.4);
    transform: translate(10%, 70%);
    width: fit-content;
    height: auto;
    border-radius: 4px;
    background-color: #fff;
}

.stone-html label{
    display: inline-flex;
    align-items: center;
}

.stone-html-check{
    margin-right: 4px;
}

@media (max-width:720px){
    .stone-responsive .stone-html-group,
    .stone-responsive .stone-color-group{
        display: none !important;
    }
}

@media (max-width:540px){
    .stone-responsive .stone-heading-group,
    .stone-responsive .stone-font-size-group{
        display: none !important;
    }
}

@media (max-width:320px){
    .stone-responsive .stone-list-group{
        display: none !important;
    }
}