/* ============================== */
/*    Assistant IA Panel          */
/* ============================== */
:root {
--Brain-Degraded : linear-gradient(99deg, #FF6450 -1.03%, #FF95B7 29%, #4D56D1 65.19%, #63E0DD 97.81%);  
--Spacing-S-20 : 25px;
}

.ia-assistant-right-panel {
  width: 0%;
  height: 100%;
  border-left: 1px solid #e0e0e0;
  box-shadow: -1px 0 4px rgba(0, 0, 0, 0.04);
  background-color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0%;
  transition: flex-basis 0.3s ease;
}

.ia-assistant-header-container {
	position: relative;
	padding: 10px 20px;
	font-weight: bold;
	font-size: 14px;
	min-height: 25px;
}

.ia-assistant-footer {
	display: flex;
	padding: 5px 5px;
	border-top: 1px solid #eee;
	width: 83%;
	left: 8px;
    top: calc(100vh - 162px) !important;
    .x-box-inner{
        height: 124px !important;
    }
}


.ia-assistant-collapsed {
  width: 0 !important;
  padding: 0 !important;
  border: none;
  overflow: hidden;
}

.ia-assistant-importbtn {
	display: flex;
	padding: 0px var(--Spacing-S-12, 12px);
/* 	justify-content: center; */
	align-items: center;
	gap: 4px;
	border-radius: 8px;
	border: 1px solid var(--Primary-Primary-80, #304287) !important;
	background: var(--Neutral-Neutral-00, #FFF);
	color: var(--Primary-Primary-80, #304287);
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 20px; /* 142.857% */

	/* 	height : 15%; */
	/* 	width : 35%; */
	/* 	padding: 3px 3px 3px 3px; */
}

.ia-assistant-resizer {
	width: 5px;
	cursor: col-resize;
	z-index: 10;
	background: #ccc;
}


.ia-assistant-panel-wrapper {
	display: flex;
	padding: 10px; 
	height: 100%;
	flex-direction: column;
	background: white;
	font-family: 'Inter', sans-serif;
}

.ia-assistant-panel-wrapper .x-box-inner {
	/*    width: 90%; */
	/*    height: 40%; */
	overflow: visible !important;
}

.ia-assistant-footer .x-box-inner {
	border: solid 1px;
	border-radius: 5px;
}

.ia-assistant-footer .ia-assistant-inputarea {
	padding: 2px 2px 2px 2px;
	width: 100% !important;
	height: 70% !important;
}

.ia-assistant-footer .ls-assist-ia-importbtn-container {
	padding-left: 8px;
	top: 70% !important;
	width: 98% !important;
	height: 30% !important;
	display: flex;       
	justify-content: space-between;
	align-items: center; 
}

.ia-assistant-footer .ia-assistant-inputarea > textarea {
	width: 95% !important;
	border: none;
	outline: none;
}

.ia-assistant-header-title {
	color: #222;
}

.ia-assistant-header-bar {
	height: 3px;
	background: linear-gradient(to right, #ec4899, #8b5cf6, #06b6d4);
	border-radius: 2px;
	margin-top: 5px;
}

.ia-assistant-right-panel .ia-assistant-dragndroparea {
	width: 100%;
	height: 100% ;
/* 	top: 5px !important; */
/* 	left: 0px !important; */
	position: absolute !important;
    background-color: rgba(0, 0, 255, 0.1);
}

.ia-assistant-footer .ia-assistant-info-message { 
	position: absolute !important;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background-color: #2f5bea;
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: bold;
	text-align: center;
	margin: 0 auto;
	z-index: 9999;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
	animation: fadeOut 3s forwards;
}

.disclaimer-panel {
    position: relative;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: normal;
    height: 20px;
    margin-top: -5px !important;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.ia-assistant-HoveredBackgroundStyle {
	 background-color: #3D64ED33;
}

.ia-assistant-scenario-header {
    padding: 10px;
    width: 100%;
    flex: 0 0 auto !important;
}

.ia-assistant-body-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  height: 100%;
  width: 100%;
  overflow-y: auto;
   flex: 1 1 auto; 
  overflow: auto;
}

.ia-assistant-body-scrollpanel {
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 5px;
/*   overflow: auto; */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: calc(100vh - 210px);
  top: 45px;
  width: 100%;     
}

.ai-wrapped-field-with-submit {
    position: relative;
    .ai-wrapped-submit-button {
        position: absolute;
        button {
            left: -20px;
            position: relative;
            width: 32px;
        }
    }
    &.textarea-with-submit {
        .ai-wrapped-submit-button {
            bottom: 20px;
        }
    }
    &.multilist-with-submit {
        .ai-wrapped-submit-button {
            bottom: 5px;
        }
    }
}

.ia-assistant-preconfigured-question-section {
    display: block;
}

.ia-assistant-preconfigured-question-wrapper {
    width: 90%;
    background: #DCE4FD;
    color: #000;
    padding: 8px 12px;
	word-wrap: break-word;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
    display: flex;
	border-radius: 4px;
    margin: 10px 0px !important;
	&:last-child {
        margin-bottom: 0px!important;
	}
    .ia-assistant-preconfigured-order {
        width: 26px;
        height: 26px;
        border: solid 2px #3CA7A2;
        color: #3CA7A2;
        text-align: center;
        align-self: center;
        p {
            margin-top: 3px;
            height: 14px;
            font-size: 16px;
            font-weight: bold;
            vertical-align: middle;
        }
    }
    .ia-assistant-preconfigured-question {
        width: calc(100% - 41px);
        margin-left: 8px;
    }
}

.ia-assistant-message-user, 
.ia-assistant-message-bot {
	color: #000;
	max-width: 75%;
	padding: 8px 12px;
	word-wrap: break-word;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	p {
	    font-size: 14px;
    	font-style: normal;
    	font-weight: 500;
        font-family: 'Inter', sans-serif;
	}
}

.ia-assistant-message-user {
  align-self: flex-end;
  clear: both;
  margin: 4px 14px 4px 50px;
  background: #DCE4FD;
}

.ia-assistant-message-bot {
  align-self: flex-start;
}

.ia-assistant-message-user-wrapper,
.ia-assistant-message-bot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ia-assistant-message-user-wrapper {
  align-items: flex-end;
}

.ia-assistant-message-bot-wrapper {
  align-items: flex-start;
  position: relative;
}

.ia-assistant-message-toolbar {
  display: none; /* hidden by default */
  gap: 8px;
  margin-top: 4px;
  padding-left: 8px;
}

.ia-assistant-message-bot-wrapper:hover .ia-assistant-message-toolbar {
  display: flex;
}

.ia-assistant-toolbar-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-assistant-toolbar-btn:hover {
  background: #f0f0f0;
}

.ia-assistant-toolbar-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.ia-assistant-action-button,
.ia-assistant-suggestion-button {
	display: flex;
	padding: 4px 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	border-radius: 4px;
	/* 	border: 1px solid var(--Brain-Degraded, #FF6450); */
	border: 1px solid;
	border-image: var(--Brain-Degraded) 1;
}

.ia-assistant-suggestion-button {
	align-self: flex-end;
	clear: both;
	margin: 4px 14px 4px 50px;
	border-radius: 8px;
}

.ia-assistant-suggestion-box {
    margin-top: 10px;
}

.ia-assistant-actions-header {
	color: #000;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px;
}

.ia-assistant-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ia-assistant-section-title img {
    width: 24px;
    height: 24px;
    display: block;  
    object-fit: contain; 
}

.ia-assistant-action-selected {
	min-height: 30px;
	width: 180px;
	color: white;
	display: flex;
	padding: 4px 8px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	border-radius: 4px;
	/* 	border: 1px solid; */
	/* 	border-image: var(--Brain-Degraded) 1; */
	background: var(--Brain-Degraded, linear-gradient(99deg, #FF6450 -1.03%, #FF95B7 29%
		, #4D56D1 65.19%, #63E0DD 97.81%));
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 20px;
}

.ia-assistant-change-button {
	color: #304287;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px; /* 150% */
}

.ia-assistant-quickaction-section {
	border-radius: 2px;
	border-bottom: 1px solid  #96ACF9;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
}


.ia-assistant-scenario-header-row {
	padding-left: 32px;
	align-items: center;
	gap: 30px;
}

.ia-assistant-quickaction-section,
.ia-assistant-scenario-header-row {
	display: flex;
	min-width: 200px;
	padding: 16px 8px;
	align-self: stretch;
}

.ia-assistant-question {
    margin-bottom: 5px;
}

.ia-assistant-body-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.ia-assistant-welcome {
	display: flex;
	padding: 8px 4px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 2px;
	align-self: stretch;
}

.ia-assistant-welcome-title {
	color: #000;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: 24px; /* 150% */
}

.ia-assistant-welcome-message {
	color: #000;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: 20px; /* 142.857% */
}

.ia-assistant-actions-change-selection {
	color: #304287;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px; 
}

.uploaded-file-tag {
    background-color: #eeeeee;
    border-radius: 12px;
    padding: 6px 12px;
    margin: 5px 5px;
    width: 90%;
    display: flex;
    align-items: center;
}

.file-badge {
	background-color: #e14b4b;
    color: white;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 8px;
}

.file-name {
	color: #000; 
    font-weight: normal;
	margin-right: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	line-height: 20px;
	text-decoration: none;
}

.file-name:hover {
   font-weight: bold;
}

.file-close-button {
    cursor: pointer;
    color: #888;
    font-weight: bold;
}

.file-close-button:hover {
    color: #e14b4b;
}

.file-left {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.rive-brain-container {
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 75px;
  background-color: transparent !important;
  position: relative;
}

.rive-brain-canvas {
  width: 150px;
  height: 150px;
  border-radius: 75px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent !important;
}

.animation-overlay-style {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  background-color: transparent !important;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}


.ls-wizard-toolbar {
  display: flex;
  justify-content: space-between; /* pushes cancel left, download right */
  align-items: center;            /* vertically center buttons */
  padding: 0 16px;                /* optional spacing from edges */
}

.preview-cancel-btn {
  display: inline-flex;
  justify-content: left;
  align-items: left;
  height: 30px;
  padding: 0;                         /* remove any inner spacing */
  background-color: white;
  line-height: 0;                     /* remove extra vertical spacing */
}

.preview-cancel-btn button {
  all: unset;                         /* ✅ resets all browser default margins/padding */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px solid rgba(48, 66, 135, 1) !important;
  background-color: white;
  border-radius: 8px;
  width: fit-content;                 /* shrink to content width */
  line-height: 0;     
  padding: 0;
  width: 80% !important;
  margin-top: 2px;
  color: rgba(48, 66, 135, 1) !important;
}

.preview-cancel-btn button span {
  line-height: 1;
}
/* Right-aligned download button */
.ai-preview-download-btn {
  display: flex;              /* enable flexbox layout */
  justify-content: flex-end;  /* push the button to the right */
  align-items: center;  
  padding: 1px 1px 1px 1px;
}

.ai-preview-download-btn button{
  	width: 80% !important;
	height: 100% !important; padding : 0px 0px 0px 0px;
	background-color: rgba(48, 66, 135, 1) !important;
	padding: 0px 0px 0px 0px;
	border-width: 1px !important;
    border-style: solid !important;
    border-image: initial !important;
    border-radius: 8px;
    margin-top: 2px;
}

.ai-preview-download-btn button .halflings {
    margin-right: 5px;
}

.softlaw-container .softlaw-fieldsets-container .ls-duration-field .duration-subfield input[type="text"]{
	width: 65px !important;
}

.ia-assistant-disabled-action {
    opacity: 0.5;
    pointer-events: none;
}