#pimcore_copilot {
    display: none;
    position: absolute;
    z-index: 10000;
    opacity: 0.9;
}

.pimcore_copilot_blurry {
    filter: blur(10px) brightness(75%);
}

#pimcore_copilot.filled {
    top: 40px;
    height: 100%;
}

#pimcore_copilot_combo_container .x-form-text {
    font-size: 26px;
    padding-left: 43px;
}

#pimcore_copilot_combo_container .x-form-trigger-wrap {
    border: 0;
}

#pimcore_copilot_combo_container {
    position: relative;
}

#pimcore_copilot_combo_container:after  {
    position: absolute;
    top: 11px;
    left: 10px;
    width: 30px;
    height: 30px;
    z-index: 1000;
    content: '';
    background: url(/bundles/pimcorecopilot/img/flat-white-icons/copilot.svg) center center no-repeat;
    background-size: 34px;
    filter: invert(100%);
}

.pimcore_copilot_picker {
    height: 25% !important;
}

.pimcore_copilot_picker .x-boundlist-list-ct {
    height: 100% !important;
}

.pimcore_copilot_picker .list-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 5px;
}
.pimcore_copilot_picker .list-icon .class-icon {
    width: 20px;
    height: 20px;
}

.pimcore_copilot_picker .list-path {
    line-height: 25px;
}

.pimcore_copilot_picker .x-boundlist-item {
    padding: 3px 10px;
}

#pimcore_copilot_history {
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff;
}

#pimcore_copilot.filled #pimcore_copilot_history {
    padding: 10px;
}

.pimcore_copilot_history .action_run {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #c6c6c6;
    background: #fbfbfb;
    position: relative;
}

.pimcore_copilot_history .action_run h3 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 0;
    font-weight: 600;
}

.pimcore_copilot_history .action_run .title_icon {
    padding-right: 5px;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px
}

.pimcore_copilot_history .close_button {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: url(/bundles/pimcorecopilot/img/close.svg) center center no-repeat !important;
    background-size: 80% !important;
}

.pimcore_copilot_history .x-panel.error {
    border: 1px solid #cf4c35;
}

.plugin_pimcore_automation_actions {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/robot.svg) center center no-repeat !important;
}

.plugin_pimcore_interaction_actions {
    background: url(/bundles/pimcoreadmin/img/twemoji/1f5e8.svg) center center no-repeat !important;
}

.pimcore_copilot_history .action_run .state_information {
    display: flex;
    align-items: stretch;
}


.pimcore_copilot_history .action_run .progress {
    margin: 0 10px 0 0;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    flex-grow: 0;
    flex-shrink: 0;
}

.pimcore_copilot_history .action_run .progress.running {
    border: 8px #0c9400 double;
    padding: 2px;
    border-left-style: solid;
    border-radius: 50%;
    animation: pimcore_copilot_history_action_run_spinner 0.75s infinite linear;
}

.pimcore_copilot_history .action_run .progress.finished {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/approve.svg);
    background-size: cover;
}

.pimcore_copilot_history .action_run .progress.cancelled {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/cancel.svg);
    background-size: cover;
}

.pimcore_copilot_history .action_run .progress.failed {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/high_priority.svg);
    background-size: cover;
}



@keyframes pimcore_copilot_history_action_run_spinner {
    to {
        transform: rotate(360deg);
    }
}

.pimcore_copilot_history .action_run .state_information .texts {
    align-self: center;
    flex-grow: 1;
}

.pimcore_copilot_history .action_run .state_information .step {
    font-size: 15px;
}

.pimcore_copilot_history .action_run .state_information .message {
    padding-top: 5px;
}


.pimcore_copilot_history .action_run .chat_history .entry {
    margin-bottom: 10px;
    padding: 10px;
}

.pimcore_copilot_history .action_run .chat_history .entry.copilot {
    border-bottom: 1px solid #8C5BC9;
    background: rgba(100, 40, 180, 0.05);
}

.pimcore_copilot_history .action_run .chat_history .entry.copilot .x-form-trigger-wrap-default {
    border: none;
}

.pimcore_copilot_history .action_run .chat_history .entry.copilot textarea {
    background: rgba(100, 40, 180, 0.08);
    padding: 0;
    padding-top: 10px;
}

.pimcore_copilot_history .action_run .chat_history .entry.copilot textarea:focus {
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 5px 10px 4px;
}

.pimcore_copilot_history .action_run .chat_history .entry.copilot .role {
    color: #8C5BC9;
}

.pimcore_copilot_history .action_run .chat_history .entry.you .role {
    color: #353535;
}

.pimcore_copilot_history .action_run .cta_container {
    margin-top: 10px;
    display: none;
}

.pimcore_copilot_window {
    border: 0;
    padding: 8px 14px 14px 14px;
}

.pimcore_copilot_detail_window {
    top: 10% !important;
}

.pimcore_copilot_window .x-window-header-default {
    background: #fff;
    border: 0;
}

.pimcore_copilot_window .x-window-header-default .x-tool {
    background-color: #D9D9D9;
    padding: 4px;
    margin-left: -7px !important;
    top: 5px !important;
}

.pimcore_copilot_window .x-window-header-default .x-title-text-default {
    color: #8C5BC9;
    font-weight: 600;
    font-size: 1.5em;
}

.pimcore_copilot_window .x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default {
    width: 35px;
    height: 35px;
}

.pimcore_copilot_window .x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-left {
    width: 42px;
}

.pimcore_copilot_window .x-window-header-default-top {
    padding-bottom: 0;
}

.pimcore_copilot_window .x-window-body-default {
    background: #fff;
}

.pimcore_copilot_window .x-panel-default,
    .pimcore_copilot_window .x-panel-body-default {
    background: transparent;
}

.pimcore_copilot_window_search_panel {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;

    border-right: 1px solid #D6D6D6;
}

.pimcore_copilot_available_actions_title h3 {
    padding-top: 10px;
    margin: 0px;
    font-weight: 600;
    font-size: 1.4em;
}

.pimcore_copilot_available_actions .x-grid-with-row-lines .x-grid-item {
    padding: 3px;
    background: transparent;
    border: 0;
}

.pimcore_copilot_available_actions .x-grid-item-alt {
    background: transparent;
}

.pimcore_copilot_available_actions .x-grid-with-row-lines .x-grid-item:hover,
.pimcore_copilot_available_actions .x-grid-with-row-lines .x-grid-item-selected {
    background: rgba(100, 40, 180, 0.1);
}

.pimcore_copilot_available_actions .x-grid-body {
    border: 0;
}

.pimcore_copilot_available_actions .x-grid-cell-inner {
    padding: 0;
}

.pimcore_copilot_grid_icon {
    height: 30px;
    background-size: 24px 24px !important;
    background-position: left !important;
}

.pimcore_copilot_grid_custom_icon {
    height: 30px;
    width: 30px;
    background-size: 24px 24px !important;
    background-position: left !important;
}

.pimcore_copilot_grid_custom_icon_invert {
    filter: invert(0.7);
}


.pimcore_copilot_grid_cell_title .x-grid-cell-inner  {
    padding: 6px;
}

.pimcore_copilot_history_panel {
    padding-left: 8px;
}

.pimcore_copilot_current_actions_title h3 {
    padding-top: 16px;
    padding-bottom: 16px;
    margin: 0;
    font-weight: 600;
    font-size: 1.4em;
}

#pimcore_copilot_history {
    padding: 0 4px 4px 4px;
}

.x-btn-over.action_item_expander,
.x-keyboard-mode .x-btn-focus.action_item_expander,
.action_item_expander {
    left: 0 !important;
    background: #D9D9D9;
    width: 32px !important;
    min-width: auto !important;
    border: 0;
    height: 32px;
}

.apply_container {
    display: flex;
}

.action_apply_label {
    margin-right: 6px;
    margin-top: 7px;
}

.apply_container .apply_right {
    display: flex;
    justify-content: end;
    width: 100%;
}

.manual_edit_text_area .x-form-text-default.x-form-textarea {
    min-height: 30px;
}

.old_chat_message.hidden {
    display: none;
}

.error-icon {
    padding-right: 5px;
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-right: 10px;
}

.pimcore_copilot_history .action-error {
    margin-top: 2px;
    padding: 10px;
    background: #fff4f4;
}

.pimcore_copilot_history .action-warning {
    margin-top: 2px;
    padding: 10px;
    background: #FFFDF4;
}

.pimcore_copilot_history .history-container-error {
    border: 1px solid #fcacac;
}

.pimcore_copilot_history .history-container-warning {
    border: 1px solid #FFE2AB;
}

.pimcore_copilot_history .action-error-container-inner {
    display: flex;
}

.pimcore_copilot_history .action-error-message {
    padding-top: 4px;
    display: flex;
}

.pimcore_copilot_history .action-error-message a {
    color: inherit;
}

.pimcore_copilot_history .action-error-message:after {
    color: inherit;
}


.pimcore_copilot_history .action-error-message-details {
    padding-left: 32px;
    padding-top: 4px;
}

.pimcore_copilot_history .action-anchor {
    text-decoration: underline;
}

.pimcore_copilot_history .action-anchor:hover {
    cursor: pointer;
}

.pimcore_copilot_history .action-anchor:before {
    content: "\00a0";
    display: inline-block;
    white-space: pre-wrap;
}

.pimcore_copilot_history .detail-links:before {
    content: "\00a0";
    display: inline-block;
    white-space: pre-wrap;
}

.pimcore_copilot_history .no-detail-link:before {
    content: "\00a0";
    display: inline-block;
    white-space: pre-wrap;
}

.pimcore_copilot_history .action-error-details {
    padding-left: 42px;
}

.pimcore_copilot_history .highlight-border {
    border: 1px solid #ff5858;
}

.pimcore_copilot_history .action-error-background {
    background: #fff4f4;
}

.pimcore_copilot_history .action-warning-background {
    background: #FFFDF4;
}

.pimcore_copilot_history .error-timestamp {
    position: absolute;
    padding-top: 4px;
    right: 40px;
}

.pimcore_copilot_available_actions .label {
    display: inline;
    padding: 0.2em 0.6em 0.3em;
    font-size: 75%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25em;
    margin-right: 0.2em;
}

.pimcore_copilot_available_actions .label-default {
    background-color: #d2d6de;
    color: #444;
}

.pimcore_copilot_available_actions .label-regular {
    background-color: #8C5BC9;
}

.pimcore_copilot_available_actions .label-purple {
    background-color: #8C5BC9;
}

.pimcore_copilot_available_actions .label-blue {
    background-color: #5b9cf5;
}

.pimcore_copilot_available_actions .label-green {
    background-color: #5bba7d;
}

.environment-variable-matrix-grid .x-grid-row {
    height: 31px;
}

.environment-variable-matrix-grid .x-grid-cell-inner {
    padding: 6px 10px 2px;
}


.pimcore_copilot_configuration_inline_help h3 {
    margin-top: 0;
}

.pimcore_copilot_configuration_inline_help h4 {
    margin-top: 30px;
}

.pimcore_copilot_configuration_inline_help .pre_container {
    padding: 10px;
    margin-bottom: 10px;
    width: max-content;
    border-radius: 4px;
    background-color: #d0d0d0;
    min-width: 300px;
}

.pimcore_copilot_configuration_inline_help .pre_container pre {
    padding: 0;
    margin: 0;
}

.pimcore_copilot_ai_generated_image {
    max-width: 100%;
    max-height: 100%;
}

.pimcore_copilot_post_interaction_reload_subject_button {
    position: absolute;
    right: 10px;
    bottom: 10px;
}