:root {
    --cerb-interaction-badge-bg-color: rgb(207, 221, 235);
    --cerb-interaction-badge-border: 3px solid rgb(65, 172, 255);
    --cerb-interaction-badge-shadow: 0 0 12px 2px rgb(50, 50, 50);
    --cerb-interaction-button-alt-bg-color: rgb(225, 225, 225);
    --cerb-interaction-button-alt-text-color: rgb(0, 0, 0);
    --cerb-interaction-button-outline-border-color: rgb(150, 150, 150);
    --cerb-interaction-button-outline-text-color: rgb(100, 100, 100);
    --cerb-interaction-button-bg-color: rgb(70, 150, 250);
    --cerb-interaction-button-text-color: white;
    --cerb-interaction-form-element-border: 1px solid rgb(220,220,220);
    --cerb-interaction-sheet-cell-bg-color: white;
    --cerb-interaction-sheet-cell-border: 1px solid rgb(200,200,200);
    --cerb-interaction-sheet-cell-selected-bg-color: rgb(70, 150, 250);
    --cerb-interaction-sheet-cell-selected-text-color: white;
    --cerb-interaction-sheet-fieldset-heading-text-color: rgb(120, 120, 120);
    --cerb-interaction-window-bg-color: white;
    --cerb-interaction-window-bg-alt-color: rgb(220, 220, 220);
    --cerb-interaction-window-close-bg-color: rgb(95, 95, 95);
    --cerb-interaction-window-close-hover-bg-color: rgb(125, 125, 125);
    --cerb-interaction-window-close-text-color: white;
    --cerb-interaction-window-error-bg-color: rgb(255, 240, 240);
    --cerb-interaction-window-error-text-color: rgb(200, 0, 0);
    --cerb-interaction-window-text-color: black;
    --cerb-interaction-window-title-bg: rgb(26, 26, 26);
    --cerb-interaction-window-title-bg-color: rgb(35,35,35);
    --cerb-interaction-window-title-bg-color-gradient: rgb(75,75,75);
    --cerb-interaction-window-title-bg-gradient: linear-gradient( 0deg, var(--cerb-interaction-window-title-bg-color) 10%, var(--cerb-interaction-window-title-bg-color-gradient) 90% );
    --cerb-interaction-window-title-text-color: white;
}

.cerb-interaction--hidden {
    display: none;
}

.cerb-interaction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.cerb-interaction-overlay--active {
    opacity: 1;
    pointer-events: all;
}

.cerb-interaction-popup {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--cerb-interaction-window-bg-color);
    color: var(--cerb-interaction-window-text-color);
    box-shadow: 0 0 10px 0 rgb(50, 50, 50);

    /*opacity: 0;*/
    /*transform: scale(0.8);*/
    /*transition: opacity 0.3s ease, transform 0.3s ease;*/
}

.cerb-interaction-popup--style-embed {
    position: relative;
    max-width: 95vw;
    margin: 1em auto;
}

.cerb-interaction-popup--style-embed .cerb-interaction-popup--title {
}

.cerb-interaction-popup--style-float {
    width: 40vw;
    max-height: 95vh;
    bottom: 2.5vh;
    right: 2.5vw;
    position: fixed;
    z-index: 10000;
}

.cerb-interaction-popup--style-full {
    width: 75vw;
    right: 12.5vw;
    bottom: unset;
    max-height: unset;
    top: 2.5vh;
}

.cerb-interaction-popup--style-full:after {
    position: absolute;
    content: "";
    bottom: -40px;
    height: 40px;
    width: 1px;
}

.cerb-interaction-popup--close {
    z-index: 10010;
    position: absolute;
    width: 32px;
    height: 32px;
    right: -10px;
    top: -5px;
    font-size: 28px;
    line-height: 32px;
    cursor: pointer;
    background-color: var(--cerb-interaction-window-close-bg-color);
    color: var(--cerb-interaction-window-close-text-color);
    text-align: center;
    border-radius: 24px;
    background-image: url(close.svg);
    background-position: center center;
}

.cerb-interaction-popup--close:hover {
    background-color: var(--cerb-interaction-window-close-hover-bg-color);
}

.cerb-interaction-popup--title {
    text-align: center;
    font-weight: bold;
    font-size: 32px;
    padding: 10px;
}

.cerb-interaction-popup--style-float .cerb-interaction-popup--container {
    max-height: 95vh;
    overflow: auto;
}

.cerb-interaction-popup--style-embed .cerb-interaction-popup--container {
    max-height: unset;
    overflow: unset;
}

.cerb-interaction-badge {
    z-index:9999;
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
}

.cerb-interaction-badge--icon {
    position:relative;
    width:60px;
    height:60px;
    border: var(--cerb-interaction-badge-border);
    border-radius:60px;
    background-color: var(--cerb-interaction-badge-bg-color);
    background-size: 60px 60px;
    background-image:url(icon.png);
    box-shadow: var(--cerb-interaction-badge-shadow);
    cursor:pointer;
}

.cerb-interaction-popup--style-float .cerb-interaction-popup--form {
    overflow: auto;
}

.cerb-interaction-popup--form-elements {
    padding: 10px 10px 10px 10px;
}

.cerb-interaction-popup--form .cerb-interaction-style--text-center {
    text-align: center;
}
.cerb-interaction-popup--form .cerb-interaction-style--text-large {
    font-size: 1.2em;
}
.cerb-interaction-popup--form .cerb-interaction-style--text-left {
    text-align: left;
}
.cerb-interaction-popup--form .cerb-interaction-style--text-right {
    text-align: right;
}
.cerb-interaction-popup--form .cerb-interaction-style--text-small {
    font-size: 0.8em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H1,
.cerb-interaction-popup .cerb-interaction-popup--form-elements H2,
.cerb-interaction-popup .cerb-interaction-popup--form-elements H3,
.cerb-interaction-popup .cerb-interaction-popup--form-elements H4,
.cerb-interaction-popup .cerb-interaction-popup--form-elements H5,
.cerb-interaction-popup .cerb-interaction-popup--form-elements H6 {
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    margin: 0.5em 0;
    padding: 0;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H1 {
    font-size: 1.6em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H2 {
    font-size: 1.5em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H3 {
    font-size: 1.4em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H4 {
    font-size: 1.3em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H5 {
    font-size: 1.2em;
}

.cerb-interaction-popup .cerb-interaction-popup--form-elements H6 {
    font-size: 1.1em;
}

.cerb-interaction-popup--form-elements-fileUpload .cerb-button-remove {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 0 8px;
    cursor: pointer;
    border: 2px solid var(--cerb-interaction-window-close-bg-color);
    background-color: var(--cerb-interaction-window-close-bg-color);
    color: var(--cerb-interaction-window-close-text-color);
    text-align: center;
    vertical-align: middle;
    border-radius: 16px;
    background-image: url(close.svg);
    background-position: center center;
}

.cerb-interaction-popup--form-elements-fileUpload .cerb-button-remove:hover {
    border: 2px solid var(--cerb-interaction-window-close-hover-bg-color);
    background-color: var(--cerb-interaction-window-close-hover-bg-color);
}

.cerb-interaction-popup--form-elements-say {
    
}

.cerb-interaction-popup--form-elements-say a {
    color: black;
}

.cerb-interaction-popup--form-elements-say img {
    max-width: 100%;
}

.cerb-interaction-popup--form-elements-say--style-error {
    background-color: var(--cerb-interaction-window-error-bg-color);
    color: var(--cerb-interaction-window-error-text-color);
    padding: 15px;
}

.cerb-interaction-popup--form-elements-say--style-error H1 {
    margin: 0;
    color: var(--cerb-interaction-window-error-text-color);
}

.cerb-interaction-popup--form-elements-say--style-error > P {
    margin: 0;
    padding: 0;
    color: inherit;
}

.cerb-interaction-popup--form-elements-button {
    flex:1 1;
    background-color: var(--cerb-interaction-button-bg-color);
    color: var(--cerb-interaction-button-text-color);
    height: unset;
    font-size: 1.1em;
    border: 0;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    min-width: 200px;
}

.cerb-button-style-secondary {
    background-color: var(--cerb-interaction-button-alt-bg-color);
    color: var(--cerb-interaction-button-alt-text-color);
}

.cerb-button-style-outline {
    background: none;
    color: var(--cerb-interaction-button-outline-text-color);
    border: 1px solid var(--cerb-interaction-button-outline-border-color);
    font-weight: normal !important;
}

.cerb-button-size-whole {
    flex: 1 1 100%;
}

.cerb-button-size-half {
    flex: 1 1 49%;
}

.cerb-button-size-third {
    flex: 1 1 32%;
}

.cerb-button-size-quarter {
    flex: 1 1 25%;
}

.cerb-interaction-popup--form-elements-button:hover {
    filter: brightness(0.8);
}

.cerb-interaction-popup--form-elements-submit {
    display: flex;
    flex-wrap: wrap;
    margin-top:1.5em;
}

.cerb-interaction-popup--form-elements-continue {
    font-weight: bold;
    margin: 0.25em;
}

.cerb-interaction-popup--form-elements-reset {
    font-weight: bold;
    margin: 0.25em;
}

.cerb-interaction-popup--form-elements-text input[type=text],
.cerb-interaction-popup--form-elements-textarea textarea {
    border: var(--cerb-interaction-form-element-border);
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    font-size: 1em;
    outline: none;
}

.cerb-interaction-popup--form-elements-textarea textarea {
    min-height:6.5em;
    font-size: 1em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role] pre:has(> code) {
    background-color: rgb(32, 32, 32);
    color: rgb(255, 255, 255);
    padding: 1em;
    overflow: auto;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role] ul {
    padding-left: 1.5em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role] ol {
    padding-left: 1.5em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role] {
    margin-bottom: 2em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role=user] {
    background-color: var(--cerb-interaction-window-bg-alt-color);
    padding: 0.1em 0.5em;
    margin-bottom: 1em;
    border-radius: 10px;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-transcript-role=assistant] {
    padding-left: 1em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-dom=transcript-toolbar] button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-dom=transcript-disclaimer] {
    line-height: 32px;
    vertical-align: top;
    font-size: 0.8em;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-tool] {
    padding: 0.5em 1em;
    border-radius: 1em;
    background-color: rgb(32, 32, 32);
    color: white;

    display: inline-block;
    vertical-align: middle;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-tool] svg {
    display: inline-block;
    vertical-align: middle;
}

.cerb-interaction-popup--form-elements-llm-transcript [data-cerb-tool] svg path {
    fill: white;
    stroke: white;
}

.cerb-interaction-popup--form-elements-sheet a {
    color: #333333;
    text-decoration: underline;
}

.cerb-interaction-popup--form-elements-sheet .cerb-shadow {
    box-shadow: 0 0 5px rgb(200,200,200);
}

.cerb-interaction-popup--form-elements-sheet [data-cerb-sheet-container] {
    position: relative;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet {
    width: 100%;
    margin-top: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet th {
    font-weight: bold;
    font-size: 1.25em;
    text-align: left;
    padding: 0 5px 5px 5px;
}
.cerb-interaction-popup--form-elements-sheet .cerb-sheet td {
    padding: 5px;
}
.cerb-interaction-popup--form-elements-sheet tbody:nth-child(even) td {
    background-color: whitesmoke;
}
.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody {
    cursor: pointer;
}
.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.selected td {
    background-color: #fbec88;
}

.cerb-interaction-popup--form-elements-sheet .cerb-font-bold {
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet [data-column-type=markdown] pre:has(> code) {
    background-color: rgb(32, 32, 32);
    color: rgb(255, 255, 255);
    padding: 1em;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet--row-title {
    font-size: 1.1em;
    font-weight: bold;
    padding: 0 0 0 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet--row-title a {
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row .cerb-sheet--row-selection {
    width: 20px;
    text-align: center;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row .cerb-sheet-row--selection-label {
    font-weight: bold;
    cursor: pointer;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row td > pre {
    border: 1px solid rgb(200,200,200);
    background-color: rgb(245,245,245);
    padding: 5px;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    _white-space: pre;
    word-break: break-word;
    font-family: inherit;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row p > code,
.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row li > code  {
    background-color: rgb(245,245,245);
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet tbody.cerb-sheet--row:hover td {
    /*background-color: #ffffc8;*/
}

/* Sheet fieldsets */

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets .cerb-sheet--row-title {
    font-size: 1.1em;
    font-weight: bold;
    padding: 0.3em 0;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets .cerb-sheet--row-title a {
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets .cerb-sheet--row-selection {
    width: 0;
    text-align: center;
    vertical-align: top;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets .cerb-sheet--row td {
    padding-bottom: 0.3em;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets .cerb-sheet--row tr:last-child td {
    padding-bottom: 1em;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-fieldsets td[data-column-key] {
    text-transform: uppercase;
    color: var(--cerb-interaction-sheet-fieldset-heading-text-color);
    font-size: 0.7em;
    padding: 0.2em 1em 0 0;
    text-align: right;
    vertical-align: top;
}

/* Sheet buttons */

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons {
    margin-top: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons--button {
    background: var(--cerb-interaction-button-bg-color) none;
    color: var(--cerb-interaction-button-text-color);
    padding: 10px;
    border-radius: 5px;
    margin: 5px 0 0 0;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons--button:hover {
    filter: brightness(1.2);
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons--title {
    font-size: 120%;
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons--button input[type=checkbox],
.cerb-interaction-popup--form-elements-sheet .cerb-sheet-buttons--button input[type=radio] {
    display: none;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale {
    margin-top: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-paging {
    text-align: right;
    padding-bottom: 10px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-paging .cerb-paging {
    text-decoration: underline;
    cursor: pointer;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cells {
    box-sizing: border-box;
    column-fill: balance;
    column-gap: 2px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--labels {
    column-count: 2;
    margin-top: 10px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--labels div:nth-child(1) {
    text-align: left;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--labels div:nth-child(2) {
    text-align: right;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cell {
    background-color: var(--cerb-interaction-sheet-cell-bg-color);
    text-align: center;
    cursor: pointer;
    padding: 8px 0;
    border: var(--cerb-interaction-sheet-cell-border);
    border-bottom-width: 3px;
    border-radius: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cell-selected {
    background-color: var(--cerb-interaction-sheet-cell-selected-bg-color);
    color: var(--cerb-interaction-sheet-cell-selected-text-color);
    border: 1px solid var(--cerb-interaction-sheet-cell-selected-bg-color);
    border-bottom-width: 3px;
    border-radius: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cell:hover {
    border: 1px solid var(--cerb-interaction-sheet-cell-selected-bg-color);
    border-bottom-width: 3px;
    border-radius: 5px;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--title {
    font-size: 120%;
    font-weight: bold;
}

.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cell input[type=checkbox],
.cerb-interaction-popup--form-elements-sheet .cerb-sheet-scale--cell input[type=radio] {
    display: none;
}

svg.cerb-spinner {
    animation: 2s linear infinite cerb-spinner-animation;
    display: inline-block;
    width: 32px;
    max-width: 32px;
    margin: 5px;
    vertical-align: middle;
    opacity: 1;
}

svg.cerb-spinner circle {
    animation: 1.4s ease-in-out infinite both cerb-spinner-circle-animation;
    fill: transparent;
    stroke: rgb(47, 61, 76);
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 280;
    stroke-width: 10px;
    transform-origin: 50% 50%;
}

@keyframes cerb-spinner-animation {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg)
    }
}

@keyframes cerb-spinner-circle-animation {
    0%,
    25% {
        stroke-dashoffset: 280;
        transform: rotate(0);
    }

    50%,
    75% {
        stroke-dashoffset: 75;
        transform: rotate(45deg);
    }

    100% {
        stroke-dashoffset: 280;
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 1500px) {
    .cerb-interaction-popup--style-float {
        width: 50vw;
        max-height: 90vh;
        bottom: 5vh;
        right: 2.5vw;
    }

    .cerb-interaction-popup--style-float .cerb-interaction-popup--container {
        max-height: 90vh;
    }

    .cerb-interaction-popup--style-full {
        max-height: unset;
        width: 60vw;
        right: 20vw;
        bottom: unset;
        top: 2.5vh;
    }
}

@media screen and (max-width: 1050px) {
    .cerb-interaction-popup--style-float {
        width: 50vw;
        max-height: 90vh;
        bottom: 5vh;
        right: 2.5vw;
    }

    .cerb-interaction-popup--style-float .cerb-interaction-popup--container {
        max-height: 90vh;
    }

    .cerb-interaction-popup--style-full {
        max-height: unset;
        width: 75vw;
        right: 12.5vw;
        bottom: unset;
        top: 2.5vh;
    }
}

@media screen and (max-width: 800px) {
    .cerb-interaction-popup--style-float {
        width: 75vw;
        max-height: 90vh;
        bottom: 5vh;
        right: 2.5vw;
    }

    .cerb-interaction-popup--style-float .cerb-interaction-popup--container {
        max-height: 90vh;
    }

    .cerb-interaction-popup--style-full {
        max-height: unset;
        width: 90vw;
        right: 5vw;
        bottom: unset;
        top: 2.5vh;
    }
}

@media screen and (max-width: 500px) {
    .cerb-interaction-popup--style-float {
        width: 95vw;
        max-height: 95vh;
        bottom: 2.5vh;
        right: 2.5vw;
    }

    .cerb-interaction-popup--style-float .cerb-interaction-popup--container {
        max-height: 95vh;
    }

    .cerb-interaction-popup--style-full {
        max-height: unset;
        width: 95vw;
        right: 2.5vw;
        bottom: unset;
        top: 2.5vh;
    }
}