.writersblock-wrapper {
    --writersblock-grey-100 : #eeeeee;
	--writersblock-grey-200 : #e0e0e0;
	--writersblock-grey-900 : #333333;

}

.writersblock-wrapper {
    position: relative;
}

.writersblock-wrapper .writersblock-editor{
	position: relative;
    box-sizing: border-box;
    padding: 20px;
    min-height: 300px;
    overflow: auto;
    outline: none;
}

.writersblock-wrapper .writersblock-editor.resize{
    resize: vertical;
}

.writersblock-wrapper .writersblock-editor:empty:not(:focus)::before {
    content: attr(placeholder);
    opacity: 0.7;
    pointer-events: none;
}


.writersblock-wrapper .writersblock-toolbar {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.writersblock-wrapper .writersblock-toolbar .tool-group {
    display: flex;
    flex-direction: row;
    border-right: 1px solid var(--writersblock-grey-100);
	margin-right: 10px;
	padding-right: 10px;
}

.writersblock-wrapper .writersblock-toolbar .tool-group:last-child {
	border-right: none;
	margin-right: 0;
	padding-right: 0;
}

.writersblock-wrapper .writersblock-toolbar .tool,
.writersblock-wrapper .writersblock-popup-tools .tool{
	width: 35px;
	height: 35px;
	padding: 5px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--writersblock-grey-900);
}

.writersblock-wrapper .writersblock-toolbar .tool i,
.writersblock-wrapper .writersblock-popup-tools .tool i{
    font-size: 14px;
}

.writersblock-wrapper .writersblock-toolbar .tool span,
.writersblock-wrapper .writersblock-popup-tools .tool span{
    font-weight: 600;
    font-family: sans-serif;
    font-size: 14px;
}

.writersblock-wrapper .writersblock-popup-tools {
	display: none;
}

.writersblock-wrapper .writersblock-popup-tools.active {
	display: flex;
    flex-direction: row;
    width: fit-content;
    background: var(--writersblock-grey-100);
    border-radius: 3px;
    position: fixed;

    -webkit-animation: writersblockPopin 0.1s forwards;
    animation: writersblockPopin 0.1s forwards;
}

.writersblock-modal {
    position: absolute;
    top: 50%;
    left : 50%;

    max-width: 50%;
    min-width: 30%;


    transform: translate(-50%,-50%);
}

.writersblock-modal .writersblock-modal-inner{
    display: flex;
    flex-direction: column;
    font-size: 14px;
    padding: 15px;
    border-radius: 3px;

    color: var(--writersblock-grey-900);
    
    background: var(--writersblock-grey-100);
    
    -webkit-animation: writersblockPopin 0.2s forwards;
    animation: writersblockPopin 0.2s forwards;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-header{
    font-weight: 600;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-header:after,
.writersblock-modal .writersblock-modal-inner .writersblock-modal-body:after{
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    margin-top: 10px;
    opacity: 0.1;
    background: var(--writersblock-grey-900);
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-body{
    margin-bottom: 10px;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-body .writersblock-modal-field{
    display: flex;
    flex-direction: row;
    align-items:center;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-body .writersblock-modal-field *{
    flex:  1;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-body .writersblock-modal-field input,
.writersblock-modal .writersblock-modal-inner .writersblock-modal-body .writersblock-modal-field select{
    padding: 5px;
    border: none; 
    border-radius: 3px;
    margin-bottom: 5px;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-footer{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-footer button{
    background: #fff;
    border: none;
    border-radius: 3px;
    margin-left: 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
    cursor: pointer;
}

.writersblock-modal .writersblock-modal-inner .writersblock-modal-footer button:hover{
    opacity: 1;
}

.writersblock-wrapper .writersblock-editor *[data-prediction]::after {
    content:  attr(data-prediction);
    opacity: 0.5;
}

.writersblock-wrapper .writersblock-toolbar a.tool.active {
    background: var(--writersblock-grey-100);
}

.writersblock-wrapper .writersblock-popup-tools a.tool.active {
    background: var(--writersblock-grey-200);
}

.writersblock-hidden {
	display: none !important;
}

@-webkit-keyframes writersblockPopin {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% {  transform: scale(1); }
}

@keyframes writersblockPopin {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% {  transform: scale(1); }
}