.copilot-popup {
    /**transform: translateY(-100%);*/
}

.copilot {
    position: relative;
    padding: 10px 3px 5px;
}

.gwt-PopupPanel .copilot {
    min-width: 375px;
    min-height: 50px;
    padding-bottom: 110px;
}

.copilot .response-container {
    overflow: auto;
    position: relative;
    bottom: 100px;
    right: 0;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.copilot .acceptRejectSuggestion {
    padding: 20px 5px;
    position: relative;
    color: #5E5E5E;
}

.copilot .acceptRejectSuggestion .actionContainer {
    position: absolute;
    right: 5px;
    top: 10px;
}

.copilot .acceptRejectSuggestion .actionContainer .btn {
    margin-left: 5px;
}

.copilot .acceptRejectSuggestion .actionContainer .revise {
    color: #428bca;
}

.copilot .acceptRejectSuggestion .actionContainer .revise i {
    margin-right: 5px;
}

.copilot .copilot-close {
    position: absolute;
    right: 20px;
    top: 40px;
    cursor: pointer;
}

.copilot .initial-message {
    font-size: 14px;
    font-family: Arial;
    font-weight: bold;
    position: absolute;
    top: 5px;
}

.copilot .content {
    font-family: sans-serif;
    font-weight: bold;
    white-space: pre-wrap;
    min-height: 20px;
    color: #3A414A;
}

.copilot .response-container .query {
    font-size: 14px;
    padding: 15px 15px 15px 45px;
    background-color: #F2F3F5;
    margin-bottom: 10px;
    margin-top: 10px;
    border-radius: 2px;
    color: #4C535D;
    font-family: sans-serif;
    position: relative;
}

.copilot .response-container .query .userAvatar {
    position: absolute;
    left: 15px;
    top: 15px;
    height: 24px;
    width: 24px;
    font-size: 24px;
    font-weight: bold;
}

.copilot .response-container .responses {
    background-color: #D8EDFF;
    border-radius: 2px;
    position: relative;
    padding: 15px 15px 15px 45px;
    min-height: 50px;
}

.copilot .response-container .responses .ettoIcon {
    height: 24px;
    width: 24px;
    position: absolute;
    left: 10px;
    top: 15px;
    background-size: cover;
}

.copilot .response-container .responses .responseText {
    padding-top: 5px;
}

.copilot .response-container .code-block {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    background-color: #F2F3F5;
    border: 1px solid #ddd;
    color: #3A414A;
    padding: 10px;
}

.copilot .response-container .code-block .content {
    color: #4C535D;
    font-weight: normal;
}

.copilot .response-container .code-block .warning {
    margin-top: 5px;
    padding: 5px;
    background-color: rgba(255, 157, 0, .5);
    border: 1px solid #ff9d00;
    border-radius: 2px;
    color: #000;
    font-size: 10px;
}

.copilot .response-container .code-block .warning a {
    margin-left: 5px;
    color: #08c;
}

.copilot .copilot-textarea {
    position: absolute;
    bottom: 0;
    right: 5px;
    left: 5px;
    padding-top: 10px;
    border-top: 1px solid #F3F3F3;
    background-color: #fff;
}

.copilot .copilot-textarea .gwt-Label {
    position: absolute;
    top: 4px;
    left: 10px;
    color: #7d7d7d;
    padding: 0 3px;
    background-color: #fff;
}

.copilot .copilot-textarea .gwt-TextArea {
    width: 100%;
    font-size: 14px;
    padding: 10px 25px 4px 4px;
    resize: none;
    height: 100px;
    border: 1px solid #6eaadf;
    border-radius: 3px;
}

.copilot .copilot-textarea .buttonContainer {
    position: absolute;
    right: 16px;
    bottom: 10px;
}

.copilot .copilot-textarea .btn {background-color: transparent; border: none;}
.copilot .copilot-textarea .btn:active {box-shadow: none;}

.copilot .copilot-textarea .btn.voice {color: #5E5E5E; padding: 0 10px;}

/* Base button styles */
.copilot .copilot-textarea .btn.send {
    position: relative;
    background-color: transparent;
    color: #ffffff;
    padding: 8px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
}

/* Triangle on top of the button */
.copilot .copilot-textarea .btn.send::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-width: 7px 0 7px 16px;
    border-color: transparent transparent transparent #2A92F3;
    border-style: solid;
    padding: 0;
    border-radius: 0;
}

/* Smaller triangle on top */
.copilot .copilot-textarea .btn.send::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;

    border-width: 2px 0 2px 11px;
    border-color: transparent transparent transparent #fff;
    border-style: solid;
    padding: 0;
    border-radius: 0;
}


.copilot-preview-container {
    border-radius: 3px;
    position: relative;
    padding: 5px;
    min-height: 40px;
}

.copilot-action-container {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
}

.copilot-preview-container .copilot-suggest-actions {
    position: sticky;
    top: 0;
    z-index: 100;
    float: right;
    margin-right: -40px;
    height: 0;
}

.copilot-action-container .copilot-suggest-actions .accept-ai-suggest,
.copilot-action-container .copilot-suggest-actions .reject-ai-suggest {
    cursor: pointer;
    padding: 5px;
    text-decoration: none;
    font-size: 24px;
    border: 3px solid #ccc;
    border-radius: 3px;
    background-color: #fff !important;
    /* !important necessary due to some forced transparent backgrounds in base.less.
        need to review necessity of !important hacks in base.less */
}

.copilot-action-container .copilot-suggest-actions .accept-ai-suggest {
    color: #0f0;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.copilot-action-container .copilot-suggest-actions .accept-ai-suggest[enabled='false'] {
    color: #0f04;
    cursor: default;
}

.copilot-action-container .copilot-suggest-actions .reject-ai-suggest {
    color: #f00;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.copilot-action-container .copilot-suggest-actions .accept-ai-suggest:hover {
    background-color: #efe;
}

.copilot-action-container .copilot-suggest-actions .accept-ai-suggest[enabled='false']:hover {
    background-color: #fff;
}

.copilot-action-container .copilot-suggest-actions .reject-ai-suggest:hover {
    background-color: #fee;
}

.ai-insert + textnode {
    color: green;
    text-decoration: underline;
}

.ai-remove + textnode {
    color: red;
    text-decoration: line-through;
}

.copilot-popup {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.copilot-header {
    position: relative;
    padding: 0 50px 0 7px;
    margin-bottom: 20px;
}

.copilot-header .etto-avatar-circle {
    display: inline-block;
    height: 75px;
    width: 75px;
    background-size: contain;
    margin-bottom: -20px;
}

.copilot-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.copilot-welcome p {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.read-the-docs-btn {
    align-items: center;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 5px;
    text-decoration: none;
    color: inherit;
    float: right;
    margin-top: 20px;
}

.read-the-docs-btn:visited, .read-the-docs-btn:focus, .read-the-docs-btn:active, .read-the-docs-btn:hover {
    color: inherit;
}

.read-the-docs-btn .ji-Topic:before {
    color: #237ECF;
    margin-right: 5px;
    font-size: 24px;
}

.copilot-title {
    margin-top: 0;
    font-size: 4rem;
    line-height: 3.5rem;
    color: #237ECF;
    display: inline-block;
    font-family: sans-serif;
    font-weight: 500;
}

.copilot-title sup {
    font-size: 25%;
    top: -2em;
}

.copilot-examples-container {
    display: flex;
    row-gap: 1rem;
    column-gap: 1rem;
}

.copilot-examples-title {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    padding-left: 10px;
}

.copilot-example {
    width: 100%;
    background-color: #F2F3F5;
    color: #4C535D;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.copilot-example:hover {
    background-color: #ebebeb;
}

/**
   Editor copilot specifics
 */

.etto-editor-gutter {
    height: 20px;
    width: 20px;
    background-size: cover;
    top: -25px;
    left: -8px;
    cursor: pointer;
    position: absolute;
    background-image: url("../images/heretto_dog_icon_no_H_bg_250x250.png");
}