@charset "UTF-8";
@import 'ckeditor5.css';
@import 'ckeditor5-premium-features.css';

:root {
    /* Overrides the border radius setting in the theme. */
    --ck-border-radius: 0;
    /* Helper variables to avoid duplication in the colors. */
    --ck-custom-border: var(--ck-color-base-border);
    /* -- Overrides generic colors. ------------------------------------------------------------- */
    --ck-color-focus-border: var(--ck-custom-border);
    /* -- Overrides the default .ck-dialog class colors. ----------------------------------- */
    --ck-color-dialog-form-header-border: var(--ck-custom-border);
    /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
    --ck-color-panel-border: var(--ck-custom-border);
    /* increase z-index of editor */
    --ck-z-default: 50;
    /* disable inner box-shadow of editing area when focused, also applies to td and other elements */
    --ck-inner-shadow: none;
}

.ck-rounded-corners .ck.ck-dropdown > .ck-dropdown__panel > .ck-list, .ck.ck-dropdown > .ck-dropdown__panel > .ck-list.ck-rounded-corners {
    max-height: 350px;
    overflow-x: hidden;
    overflow-y: auto;
}

.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content:has(> .ck-toolbar > .ck-toolbar__items:empty) {
    border: 0;
}

.ck-content .table {
    margin: 0;
}

.ck-content p {
    margin: 0;
}

/* In case the first or last element are figures we want to leave the maring (for example to leave space for buttons around the table) */
.ck.ck-editor__editable_inline > :first-child:not(figure), .ck.ck-editor__editable_inline > :last-child:not(figure) {
    margin: 0;
}

/*Targets only ckeditor text fields that have the editor right above them*/
.ck-content-sizing-wrapper > .ck-editor__main > .ck.ck-editor__editable_inline {
    padding-left: 1em;
    padding-top: 1em;
}

/* hide empty balloon panels (e.g. when inline editor toolbar was moved to different element) */
.ck.ck-balloon-panel.ck-balloon-panel_visible:empty {
    display: none;
}

/* Styles for sizing plugin */
.ck.ck-sizing-wrapper {
    width: 100%;
    height: fit-content;
}

.ck.ck-content-sizing-wrapper {
    border: var(--ck-focus-ring);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ck.ck-content-sizing-wrapper.ck-content-sizing-wrapper__resizable {
    resize: vertical;
    overflow: hidden;
    height: 150px;
    min-height: 100px;
    max-height: 100vh;
}

.ck.ck-content-sizing-wrapper.ck-content-sizing-wrapper__resizable.ck-sizing-safari {
    padding-right: 8px;
}

.ck.ck-sizing-wrapper .ck.ck-editor {
    height: 100%;
    border: 0;
}

.ck.ck-sizing-wrapper .ck.ck-editor__main {
    flex-grow: 1;
    flex-shrink: 1;
    overflow: hidden;
    border: 0;
}

.ck-source-editing-area {
    text-align: left;
}

.ck.ck-sizing-wrapper .ck.ck-content, .ck.ck-sizing-wrapper .ck-source-editing-area {
    height: 100%;
    box-sizing: border-box;
    border: 0;
}

.ck.ck-sizing-wrapper .ck.ck-content, .ck.ck-sizing-wrapper .ck-source-editing-area textarea {
    overflow: auto;
    white-space: normal;
}

/* max-length indicator */
.ck.ck-editor + span.length-indicator, .ck.ck-sizing-wrapper + span.length-indicator {
    color: #FFF;
    background: rgba(51, 51, 51, 0.75);
    padding: 5px;
    display: none;
    opacity: 0;
    transition: opacity ease .5s;
}

.ck-ems-toolbar .ck.ck-sticky-panel__content {
    position: static !important;
}

.ck-ems-toolbar .ck-sticky-panel__placeholder {
    display: none !important;
}

.ck-ems-toolbar .ck.ck-sticky-panel__content {
    bottom: unset !important;
    top: 0 !important;
    width: 100% !important;
    border-bottom-width: 1px !important;
}

.ck-ems-toolbar .ck.ck-sticky-panel__content.ck-sticky-panel__content_sticky {
    box-shadow: none;
}

/* styling for image hspace/vspace plugin */
.ck.ck-button.spacing + .ck-dropdown__panel {
    padding-bottom: var(--ck-spacing-standard);
}

/* Avoid that text-align: left is overriding template styles */
.ck.ck-editor__editable_inline[dir="ltr"] {
    text-align: unset;
}

/* Avoid setting th background in ckeditor. It is not going to be used in the campaign */
.ck-content .table table th {
    background: unset;
}

.ck-dialog.placeholder-chooser-dialog #hidden-focus-element {
    width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0;
    line-height: 0;
    background: transparent;
    opacity: 0;
}


.ck .ck-ai-form-content .ck-textarea,
.ck .ck-ai-form-content .ck-ai-form__content-area {
    font-family: 'Inter', Verdana, Arial, Helvetica, Sans-Serif;
}

.ck-ai-assistant-ui_theme {
    --ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);
    --ck-color-button-default-active-background: hsl(0, 0%, 94.1%);
    --ck-color-button-on-background: hsl(212, 100%, 97.1%);
    --ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);
    --ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);
    --ck-color-button-on-disabled-background: hsl(0, 0%, 94.1%);
    --ck-color-button-on-color: hsl(0, 0, 20%);
    --ck-color-button-action-background: hsl(0, 0%, 94.1%);
    --ck-color-button-action-hover-background: hsl(0, 0%, 94.1%);
    --ck-color-button-action-active-background: hsl(211.7, 100%, 92.9%);
    --ck-color-button-action-disabled-background: hsl(0, 0%, 94.1%);
    --ck-color-list-button-hover-background: hsl(0, 0%, 92%);
}

.ck .ck-ai-form-content .ck-toolbar .ck-button {
    border: 1px solid #5a5f6e;
    color: #5a5f6e;
    background: transparent;
    border-radius: 15px;
    cursor: pointer;

    span {
        padding: 0 5px;
    }
}

.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit {
    border: 1px solid #5a5f6e;
    color: #5a5f6e;
    background: transparent;
    cursor: pointer
}

.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit:hover {
    background: #5a5f6e;
    color: #fff;
}

.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled {
    cursor: default;
    border-color: #EFEEEA;
    cursor: default;
}

.ck .ck-ai-form .ck-ai-form-content .ck-autocomplete>.ck.ck-ai-form__submit.ck-disabled:hover {
    background-color: transparent;
    color: #5a5f6e;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button.ck-disabled.ck-button-action {
    cursor: default;
    border: 1px solid #EFEEEA;
    color: #5a5f6e;
    background: unset;
    box-shadow: unset;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button.ck-disabled.ck-button-action:hover {
    background-color: transparent;
    color: #5a5f6e;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button.ck-disabled {
    cursor: default;
    border-color: #EFEEEA;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button:hover {
    background: #5a5f6e;
    color: #fff;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button.ck-disabled:hover {
    background-color: transparent;
    color: #5a5f6e;
}

.ck .ck-ai-form-content .ck-toolbar .ck-button-action {
    border: unset;
    background: linear-gradient(90deg, #D1132A 0%, #202750 100%);
    border-radius: 15px;
    color: #ffffff;
    cursor: pointer;

    span {
        padding: 0 5px;
    }
}

.ck .ck-ai-form-content .ck-toolbar .ck-button-action:hover {
    background: linear-gradient(90deg, #D1132A 0%, #202750 100%);
    box-shadow: 0 10px 15px -8px rgba(10, 60, 125, 0.4);
    background-color: transparent;
}

.ck .ck-tooltip__text {
    display: inline-block;
    max-width: 500px;
    word-wrap: break-word;
    white-space: normal;
}

.ck.ck-dropdown .ck-dropdown__arrow {
    z-index: auto;
}