.shanti-rte {
    overflow: hidden;
    border: 1px solid #c4c4c4;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font:
        14px Arial,
        sans-serif;
}

.shanti-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
    padding: 4px;
    border-bottom: 1px solid #c4c4c4;
    background: #f5f5f5;
}

.shanti-rte-separator {
    width: 1px;
    height: 34px;
    flex: 0 0 1px;
    margin: 0 5px;
    background: #c4c4c4;
}

.shanti-rte-toolbar select {
    width: 162px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
}

.shanti-rte-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.shanti-rte-toolbar button:hover,
.shanti-rte-toolbar button.active {
    background: #e1e1e1;
}

.shanti-rte-toolbar .shanti-rte-caret {
    font-size: 10px;
}

.shanti-rte-area,
.shanti-rte-source {
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    max-height: 60vh;
    overflow: auto;
    padding: 8px 10px;
    border: 0;
    outline: none;
    background: #fff;
    color: #333;
}

.shanti-rte-area:empty::before {
    content: attr(data-placeholder);
    color: #777;
    pointer-events: none;
}

.shanti-rte-area img,
.shanti-rte-area iframe {
    max-width: 100%;
}

.shanti-rte-area table {
    width: 100%;
    border-collapse: collapse;
}

.shanti-rte-area th,
.shanti-rte-area td {
    padding: 6px;
    border: 1px solid #c4c4c4;
}

.shanti-rte-area blockquote {
    margin: 8px 0;
    padding-left: 10px;
    border-left: 4px solid #c4c4c4;
}

.shanti-rte-source {
    display: none;
    resize: vertical;
    font: 13px/1.5 monospace;
}

.shanti-rte-fullscreen {
    position: fixed;
    z-index: 1080;
    inset: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

.shanti-rte-fullscreen .shanti-rte-area,
.shanti-rte-fullscreen .shanti-rte-source {
    max-height: none;
    flex: 1 1 auto;
}

@media (max-width: 700px) {
    .shanti-rte-toolbar select {
        width: 130px;
    }
}
