:root {
    --ai-yellow: #f9d875;
    --ai-blue: #032235;
    --ai-blue-light: #003d4f;
}


/* header buton */
ul.ai-menu-button {
    position: absolute;
    top: 54px;
    right: 50px;
    z-index: 9999;
}

@media (min-width: 980.98px) {
    ul.ai-menu-button {
        right: 0;
        top: 0;
    }
}

/* Banner on the slider */
#home-slider-section {
    position:relative;
}
.home-nogap {
    margin:0 !important;
    padding:0 !important;
}
#chatbot-container {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translate(-50%, 51%);
    z-index: 10;
}

.ai-bg {
    margin: 0 auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
}

#aiStart {
    color: #FFF;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

#aiStart #aiFieldWrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

#aiStart #aiFieldWrap #homeAiInput {
    position: relative;
    flex: 1 auto;
    min-width: 100%;
}

#aiStart #aiFieldWrap input#homeAiText {
    min-width: 100%;
    background: #EEE;
    border: solid 3px var(--ai-yellow);
    box-shadow: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    min-height: 40px;
}

#aiStart #aiFieldWrap .button_ai-voice-search {
    position: absolute;
    right: 2.75rem;
    top: 0.5rem;
    font-size: 24px;
    color: #525252;
    transition: all, 0.15s;
    cursor: pointer;
    border: 0;
    background: transparent;
}

#aiStart #aiFieldWrap button#homeAiInputSubmit {
    position: absolute;
    background: var(--ai-blue);
    color: #fff;
    border-radius: 7px;
    border: 0;
    right: 8px;
    top: 6px;
    font-weight: 700;
    vertical-align: middle;
    height: 35px;
    font-weight: 400;
    font-size: 1.5rem;
}
#aiStart #aiFieldWrap button#homeAiInputSubmit:hover {
	cursor:pointer;
}
.homeAi-disclaimer {
    margin-top: 1rem;
}

.homeAi-disclaimer p {
    font-size: 0.85rem;
    line-height: 1.25rem;
}

@media (min-width: 900.02px) {
    .ai-bg {
        max-width: 55%;
    }
}

@media (max-width: 900px) {
    .ai-bg {
        width: 96%;
        padding: 20px;
    }
}

/* Chat open */
#aiOverlay #aiHistory {
    padding: 1rem;
    background: #eee;
    border-radius: 10px;
    flex: 0 20%;
}
#aiOverlay #aiHistory h2{
    font-size:1.25rem;
}
#aiOverlay #aiHistory #aiHistoryList {
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
	overflow: auto;
	max-height: calc(100dvh - 12rem);
	margin-bottom:0.5rem;
}
#aiOverlay #aiHistory #aiHistoryList .history-empty {
    list-style: none;
    padding: 0.75rem 0.75rem ;
    line-height: 1.25rem;
    display: block;
    font-weight: bold;
    color: #555;
    border: solid 1px #ddd;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}
#aiOverlay #aiHistory #aiHistoryList .history-item {
    list-style: none;
    padding: 0.75rem 0.75rem ;
    cursor: pointer;
    line-height: 1.25rem;
    display: block;
    font-weight: bold;
    color: #555;
    border: solid 1px #ddd;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all, 0.25s;
}
#aiOverlay #aiHistory #aiHistoryList .history-item:hover {
    background: #e7e5e5;
    border-radius: 0.75rem;
    padding: auto;
}
#aiOverlay #aiHistory #aiHistoryList .history-item .history-text {
    display: block;
}
#aiOverlay #aiHistory #aiHistoryList .history-item .history-time {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: normal;
    font-size: 0.7rem;
}
#aiOverlay #aiHistory #aiHistoryClear {
	border-radius: 10px;
	width: 100%;
	background-color: #012e3d;
	color: #ffffff;
	padding: .5em;
	border: 0;
}
#aiOverlay #aiHistory #aiHistoryClear:hover {
	background-color: #000000;
}


#aiOverlay .analysis-wrapper .summary-container .spinner-container {
    display: grid;
    min-height: 100px;
    place-items: center;
}
#aiOverlay .analysis-wrapper .summary-container .spinner-container .loading-spinner {
    margin-top: -36px;
}
#aiOverlay .widget-body .response .message-overflow .ai-response-spinner {
    border-radius: 10px;
    margin-left: 10px;
    padding: 10px;
}
#aiOverlay .widget-body .response .message-overflow .ai-response-spinner:not(:empty) {
    border: 1px solid #ddd;
    border: 1px solid #666;
    width: 50px;
}
#aiOverlay .widget-body .response .message-overflow .ai-response-spinner.default-spinner {
	align-items: center;
	display: flex;
	gap: 15px;
	justify-content: center;
	width: 90%;
}
#aiOverlay .widget-body .response .message-overflow .ai-response-spinner.default-spinner:not(:empty) {
	border: 0;
}
#aiOverlay .input-area .audio-recorder .spinner-container, #aiOverlay .input-area .azure-live-speech-to-text .spinner-container {
	margin-right: 10px;
}
#aiOverlay .loading-spinner {
	animation: spinner 1.5s linear infinite;
	border: 4px solid #f3f3f3;
	border-radius: 50%;
	border-top-color: #383636;
	height: 40px;
	width: 40px;
}
@keyframes spinner {
0% {
 transform: rotate(0deg);
}
to {
 transform: rotate(1turn);
}
}
#aiOverlay .spinner-overlay {
	align-items: center;
	background-color: #fdfcfc cc;
	display: flex;
	height: 100%;
	inset: 0;
	justify-content: center;
	position: fixed;
	width: 100%;
}
#aiOverlay .donut-spinner {
	animation: spin 0.7s linear infinite;
	border: 2px solid #fff;
	border-radius: 50%;
	border-top-color: grey;
	border: 2px solid #fff;
	border-top-color: #666;
	height: 20px;
	margin: 10px 0;
	width: 20px;
}
#aiOverlay .donut-spinner.multi {
	border-bottom-color: grey;
	border-bottom-color: #666;
}
#aiOverlay .analysis-wrapper .value-report-subheader .donut-spinner-container {
	align-items: center;
	display: flex;
	gap: 20px;
	height: 250px;
	justify-content: center;
}
#aiOverlay .analysis-wrapper .value-report-query-wrapper .no-data-message, #aiOverlay .analysis-wrapper .value-report-query-wrapper .spinner-container {
	align-items: center;
	display: flex;
	justify-content: center;
}
#aiOverlay .analysis-wrapper .value-report-query-container .spinner-container {
	inset: 0;
	position: absolute;
}

#aiOverlay {
    position: fixed;
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    top: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 0px;
    padding: 2rem;
    margin: 0rem;
}
body.logged-in #aiOverlay {
    top: 0;
}
.layer-content {
    display: none;
}
#aiOverlay a {
    text-decoration: underline;
    color: #005B90;
}
#aiOverlay #aiDialog #aiDialogTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0.5rem;
}
#aiOverlay #aiDialog #aiDialogTop #aiOverlayDisclaimer {
    text-decoration: underline;
    font-size: 13px;
    font-weight: bold;
    margin-right: 4rem;
    line-height:1.5;
}
#aiOverlay #aiDialog #aiDialogTop #aiOverlayClose {
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  border-radius: 0;
  position: absolute;
  top: 0;
  right: 25px;
  border: 0;
  font-size: 3rem;
}
#aiOverlay #aiDialog #aiDialogTop #aiOverlayClose:hover {
    color: #666;
}

#aiOverlay #aiDialog {
    padding: 0;
    flex: 1;
    margin-left:1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    position:relative;
}

img.chat-logo {
    border-radius: .5rem;
    max-height: 3rem;
    margin-top: 10px;
    margin-right: 10px;
}

.widget-body .response, .chat-widget .disclaimer-section {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow: auto;
    border: 1px solid #ddd;
	height: calc(100dvh - 18rem);
    max-height: calc(100dvh - 10rem);
}

.input-area {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 10px;
    width: 95%;
}
.input-area .customer-footer {
    text-align: center;
    margin-top: 0.5rem;
}

.request-sender textarea {
    border: solid 2px #00607d;
    box-shadow: none;
    border-radius: 0.75rem;
    padding: 0.5rem;
    flex: 1 auto;
    margin: 0 0.5rem 0 0;
    min-height: 60px;
    font-size: 1rem;
}

.request-sender button.send-icon {
    background: var(--ai-blue);
    color: #fff;
    cursor: pointer;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    transition: all, 0.25s;
    border: 0;
}
.request-sender button.send-icon:hover {
    color: #fff;
    background: var(--ai-blue-light);
}
.request-sender {
    display: flex;
}

#webchat .request-sender .button_ai-voice-search {
    background: #fff;
    color: #00607d;
    padding: 0;
    margin: 0 0.5rem 0 0;
    font-size: 2rem;
    cursor: pointer;
    transition: all, 0.25s;
    border: 0;
}
#webchat .request-sender .button_ai-voice-search:hover {
    color: #7F6406;
}
#webchat .request-sender .button_ai-voice-search i.listening {
    animation: pulse-icon-scale 1s infinite;
}
#webchat .request-sender .button_ai-voice-search i.listening:before {
    color: #ffb656;
    animation: pulse-icon 1s infinite;
}

.ai-request .userText {
    background: #00607d;
    display: inline-block;
    color: #fff;
    padding: 0.75rem 1rem 0.25rem;
    border-radius: 0.5rem;
}
.ai-request {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.ai-response-container, .layer-content-greeting-message-container {
    display: flex;
}
.ai-response h3 {
    font-size: 1.4rem;
}
.ai-response a {
    transition: all, 0.15s;
}

.ai-response, p.layer-content-greeting-message {
    display: flex;
    flex-direction: column;
    margin-left: 0.25rem;
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 70%;
    position: relative;
}
.response > div:not(.layer-content-greeting-message-container) .aiResponse {
    margin-bottom: 2rem;
}

.feedback-icons {
    order: 2;
    align-self: flex-end;
    max-width: 1rem;
    position: absolute;
    right: -1rem;
    bottom: 0.5rem;
}
span.thumbsup {
    bottom: 0.15rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    opacity: 0.45;
    padding: 0.5rem;
}
span.thumbsup:hover {
    opacity: 1;
}
span.thumbsdown {
    display: inline-block;
    top: 0.15rem;
    position: relative;
    cursor: pointer;
    opacity: 0.45;
    padding: 0.5rem;
}
span.thumbsdown:hover {
    opacity: 1;
}
span.thumbsup.clicked {
    color: green;
    opacity: 1;
}
span.thumbsdown.clicked {
    color: red;
    opacity: 1;
}

@media (max-width: 900px) {
    /*overlays*/
    body.logged-in #aiOverlay {
        top: 0;
    }
    #aiOverlay {
        top: 0;
        width: 100%;
        border-radius: 0px;
        padding: 1rem 0;
        margin: 0rem;
    }
    #aiOverlay #aiHistory {
        padding: 0 2rem;
        flex: 0 100%;
        display: none;
    }
    #aiOverlay #aiDialog {
        flex: 1 100%;
        margin: 1rem;
        width: 100%;
    }
    #aiOverlay #aiDialog #aiDialogTop {
    }
}

.xs-remove {
    display:initial;
}

@media (max-width: 568px) {
    .xs-remove {
        display:none;
    }
    .ai-response-container .chat-logo{
        max-height: 1.5rem;
    }
    .ai-response {
        margin-left:0.25rem;
    }
    .ai-response, p.layer-content-greeting-message {
        max-width:85%
    }
	.input-area {
		width:93%;
	}
}


@media screen and (orientation: landscape) and (max-height: 480px) {
    #aiOverlay #aiDialog #aiDialogTop h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
	#aiOverlay #aiHistory h2 {
		font-size:1rem;
	}
}