.btn-switch.on > .switched-off,
.btn-switch.off > .switched-on {
  display: none;
}

#block-olivero-sub-theme-foichatbot{
  position: absolute;
}

#block-olivero-sub-theme-foichatbot .contextual{
  display: none;
}

.foi-chatbot-main{
  max-width: 400px;
  position: fixed;
  bottom: -530px;
  left: 20px;
  z-index: 5;
  -webkit-transition: all 0.5s linear 0s;
  transition: all 0.5s linear 0s;
}

.foi-chatbot-main.chat-open{
  bottom: 0 !important;
}

.foi-chatbot-main .chat-header-buttons,
.foi-chatbot-main.chat-open .chat-arrow-up{
  display: none;
}

.foi-chatbot-main.chat-open .chat-header-buttons{
  display: block;
}

.foi-chatbot-main .chat-arrow-up i{
  padding: .375rem .75rem;
  cursor: pointer;
}

.foi-chatbot-main.chat-open .chat-arrow-down{
  float: right;
  padding: .375rem .75rem;
  cursor: pointer;
}

:root {
    --app-color-primary: #4a675d;
    --app-color-primary-hover: #8c923c;
}

.site-footer{
  z-index: auto !important;
}

.foi-chatbot-main .logo {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: 100px;
    max-height: 100px;
}

.foi-chatbot-main #chat-container {
    width: 100%;
    height: 500px;
    border-radius: 10px 10px 0 0;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 8;
}

.foi-chatbot-modal #question-section {
    width: 500px;
    height: 600px;
    border: 1px solid #222;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    color: #fff;
    flex-direction: column;
    z-index: 1000;
}

.foi-chatbot-main .about-us,
.foi-chatbot-main .about-us-body{
    display: flex;
    height: auto;
    overflow: visible;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    width: auto;
    align-items: center;
}

.foi-chatbot-main .gallery{
    display: flex;
    flex-direction: column;
    width: auto;
    overflow: visible;
    height: auto;
}

.foi-chatbot-main p{
    margin: 0 auto 25px;
    max-width: 80%;
    font-size: 17px;
}

.foi-chatbot-main h1{
    margin: 25px 0;
    display: block;
    box-shadow: inset 0 -2px 0 0 #CE003D;
    padding-bottom: 10px;
    width: fit-content;
}

.foi-chatbot-main .about-us-body a{
    color: #ce003d !important;
    font-size: 20px;
    margin-bottom: 20px;
}

.foi-chatbot-main .about-us-body p,
.foi-chatbot-main .about-us-body h1,
.foi-chatbot-main .about-us-body img{
    margin: 20px 0;
}

.foi-chatbot-main .walk-overlay {
    height: 650px;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foi-chatbot-main .jlr{
    font-size: 0;
}

.foi-chatbot-main .jlr .jlr_item{
    font-size: 1rem;
    display: inline-block;
    box-sizing: border-box;
    padding: 5px;
}

.foi-chatbot-main .jlr img.jlr_img{
    height: 200px;
    opacity: 0;
}

.foi-chatbot-main .jlr img.jlr_loaded {
    -webkit-transition: opacity 1s ease-in;
    -moz-transition: opacity 1s ease-in;
    -o-transition: opacity 1s ease-in;
    -ms-transition: opacity 1s ease-in;
    transition: opacity 1s ease-in;
    opacity: 1;
}

.foi-chatbot-main .gallery-container{
    width: 1500px;
    max-width: 100%;
}

.foi-chatbot-main .video{
    position: relative;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.foi-chatbot-main .video video{
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

.foi-chatbot-main .about-us-header{
    text-align: center;
    color: #ce003d;
    font-size: 3rem;
    font-weight: 600;
}

.foi-chatbot-main .navbar{
    width: 100%;
    align-self: flex-end;
    text-align: left;
}

.foi-chatbot-main .navbar-collapse{
    justify-content: flex-end;
}

.foi-chatbot-main .navbar a{
    color: #fff !important;
    padding: 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.foi-chatbot-main .navbar a:hover{
    text-decoration: none;
}

.foi-chatbot-main .bg-foi-50{
    background-color: var(--app-color-primary);
}

.foi-chatbot-main .navbar .nav-item{
    font-weight: 400;
}

.foi-chatbot-main .navbar-nav{
    padding-left: 30px !important;
}

.foi-chatbot-main .navbar .active{
    font-weight: 600 !important;
}

.foi-chatbot-main .navbar-light .navbar-toggler {
    border-color: rgb(255 255 255 / 62%) !important;
}

.foi-chatbot-main .foi50-logo{
    width: 500px;
    max-width: 90%;
}

.foi-chatbot-main .foi-ai{
    position: relative;
    flex-direction: column;
}

.foi-chatbot-main .foi-ai .navbar{
    position: absolute;
    top: 0;
    padding: 8px 16px;
    z-index: 9;
}

.foi-chatbot-main .navbar-buttons-mobile{
    display: none;
    position: absolute;
    right: 5rem;
    top: 14px;
}

.foi-chatbot-main .navbar-brand-mobile{
    display: none !important;
}

.foi-chatbot-modal .modal-header {
    background: var(--app-color-primary) !important;
    border-bottom: 0 !important;
}

.foi-chatbot-modal .modal-content{
    opacity: 1 !important;
}

.foi-chatbot-modal .question-div-modal{
    padding: 0 !important;
}

.foi-chatbot-main .btn.focus,
.foi-chatbot-main .btn:focus {
    box-shadow: none !important;
}

.foi-chatbot-main .footer{
    background: var(--app-color-primary);
    color: #fff;
    padding: 7px;
    width: 100%;
    text-align: center;
    border-radius: 0 0 10px 10px;
    height: 77px;
    display: flex;
    align-items: center;
}

.foi-chatbot-main .footer p{
    margin: 0;
    max-width: 100%;
    font-size: 15px;
}

.foi-chatbot-main .foi-logo-img{
    width: 3.2rem;
}

.foi-chatbot-main .navbar-brand-large{
    display: flex;
    align-items: center;
}

.foi-chatbot-main .navbar-brand-mobile{
    display: flex;
    align-items: center;
}

.foi-chatbot-main .navbar-brand-mobile img,
.foi-chatbot-main .navbar-brand-large img{
    margin-right: 5px;
}

.foi-chatbot-main .navbar-toggler{
    border: none;
}

.foi-chatbot-main .wrapper{
    height: 100vh;
    display: flex;
    width: 100vw;
    justify-content: center;
    align-items: center;
}

.foi-chatbot-main #chat-header {
    color: #fff;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
}

.foi-chatbot-main #chat-header button,
.foi-chatbot-main .navbar-buttons-mobile button{
    border: none;
    background: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.foi-chatbot-main #chat-window {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 10px 10px;
    background: #3c3a3a;
    word-break: break-word;
}

.foi-chatbot-main #chat-window .message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.foi-chatbot-main #chat-window .message.user {
    flex-direction: row-reverse;
    text-align: right;
}

.foi-chatbot-main #chat-window .message.bot {
    text-align: left;
}

.foi-chatbot-main #chat-window .message .icon {
    margin: 0 10px;
    font-size: 20px;
}

.foi-chatbot-main #chat-window .message .text {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    background-color: #f1f1f1;
    font-size: 14px;
    line-height: 1.5;
}

.foi-chatbot-main .bot-message{
    background:none!important;
    color: #FFF!important;
}

.foi-chatbot-main .user-message{
    background:none!important;
    color: #FFF!important;
}


.foi-chatbot-main #chat-window .message.user .text {
    background-color: #007bff;
    color: #fff;
}

.foi-chatbot-main .bg-primary {
    background: var(--app-color-primary) !important;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foi-chatbot-main .text-primary {
    color: var(--app-color-primary) !important;
}

.foi-chatbot-main .robot-icon {
    color: #fff!important;
}

.foi-chatbot-main #chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #555;
    background: #3c3a3a;
}

.foi-chatbot-main #chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.foi-chatbot-main #chat-input button {
    margin-left: 5px;
    border: none;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.foi-chatbot-main #chat-input button i {
    font-size: 16px;
}

.foi-chatbot-main #video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.foi-chatbot-modal .example-questions {
    margin: 15px;
    text-align: left;
}

.foi-chatbot-modal .example-question {
    padding: 10px;
}

.foi-chatbot-modal .example-question-float {
    padding: 10px;
    text-align: center;
}

.foi-chatbot-main a,
.foi-chatbot-modal a{
    text-decoration: none;
    color: #f8b323 !important;
}

.foi-chatbot-main a:hover,
.foi-chatbot-modal a:hover{
    text-decoration: none;
    color: #f8b323;
}

.foi-chatbot-main .dropdown-menu a{
    text-decoration: none;
    color: #000!important;
}

.foi-chatbot-main .dropdown-item,
.foi-chatbot-modal .dropdown-item{
    white-space: pre-wrap;
    justify-content: center;
}

.foi-chatbot-main .dropdown-menu {
    width: 250px !important;
}

.foi-chatbot-main .floating-div {
    position: absolute;
    width: 300px;
    height: 150px;
    background: linear-gradient(45deg, var(--app-color-primary), var(--app-color-primary-hover)); /* Gradient with shades of blue */
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    animation: float 80s linear infinite;
    box-sizing: border-box; /* Prevent size miscalculations */
    opacity: 0.9;
}

.foi-chatbot-main .send-btn {
    background-color: var(--app-color-primary)!important;
}

.foi-chatbot-main .hidden {
    display: none !important;
}

.foi-chatbot-main .fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.foi-chatbot-main .btn-primary-main {
    background: linear-gradient(45deg, var(--app-color-primary), var(--app-color-primary-hover));
    background: var(--app-color-primary);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foi-chatbot-main .btn-primary-main {
    background: linear-gradient(45deg, var(--app-color-primary), var(--app-color-primary-hover));
}

.foi-chatbot-main .btn-primary:hover {
    background: #015d71 !important;
    transform: scale(1.0); /* Slightly enlarge */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow */
}

/* Optional: Focus effect */
.foi-chatbot-main .btn-primary:focus {
    background: var(--app-color-primary)!important;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 106, 141, 0.8); /* Glow effect */
}

.foi-chatbot-main .send-btn{
    border: 0;
}

.foi-chatbot-main .btn-success {
    background-color: #f8b323!important;
}

.foi-chatbot-main .btn-danger{
    background-color: #00a4a7!important;
}

/* Customizing the scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 12px; /* Set the width of the scrollbar */
}

::-webkit-scrollbar-track {
    background-color: #e3f1f4; /* Light background color for the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to ensure visibility */
}

::-webkit-scrollbar-thumb {
    background-color: var(--app-color-primary); /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 2px solid #e3f1f4; /* Add a border to make the thumb stand out */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #005366; /* Darker shade for hover effect */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Make the scrollbar thinner */
    scrollbar-color: var(--app-color-primary) #e3f1f4; /* Thumb color and track color */
}

/* Make the modal background black with white text */
.foi-chatbot-modal .modal-content {
    background-color: black;
    color: white;
    /*opacity: 0.8 !important;*/
}

.foi-chatbot-modal .question-div {
    background: #000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    justify-content: center;
    align-items: start;
    border-radius: 8px;
    opacity: 1;
    margin-bottom: 10px;
    padding: 10px;
}

.foi-chatbot-modal .question-div a {
    color: white!important;
    text-decoration: none; /* Optional: Remove underline for a cleaner look */
}

.foi-chatbot-modal .question-div a:hover {
    text-decoration: none; /* Optional: Add underline on hover */
    background: var(--app-color-primary);
}

.foi-chatbot-modal .chat-bubble {
    padding:16px 28px;
    -webkit-border-radius: 10px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 10px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 10px;
    border-bottom-left-radius: 2px;
    display:inline-block;
}

.foi-chatbot-main .typing {
    align-items: center;
    display: flex;
    height: 10px;
}

.foi-chatbot-main .typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
}

.foi-chatbot-main .typing .dot:nth-child(1) {
    animation-delay: 200ms;
}

.foi-chatbot-main .typing .dot:nth-child(2) {
    animation-delay: 300ms;
}

.foi-chatbot-main .typing .dot:nth-child(3) {
    animation-delay: 400ms;
}

.foi-chatbot-main .typing .dot:last-child {
    margin-right: 0;
}

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color:#FFF;
    }
    28% {
        transform: translateY(-7px);
        background-color:#EEE;
    }
    44% {
        transform: translateY(0px);
        background-color: #DDD;
    }
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(calc(50vw - 300px), calc(50vh - 50px));
  }
  50% {
    transform: translate(calc(-50vw + 300px), calc(50vh - 50px));
  }
  75% {
    transform: translate(calc(50vw - 300px), calc(-50vh + 50px));
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 991px) {
  .foi-chatbot-main .navbar-brand-large{
    display: none !important;
  }

  .foi-chatbot-main .navbar-brand-mobile{
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .foi-chatbot-main .logo {
    display: none;
  }

  .foi-chatbot-modal #question-section {
    width: 100%;
    height: 100%;
    padding-top: 3rem;
    z-index: 8;
  }
}

@media (max-width:600px){
  .foi-chatbot-main .about-us-header{
    font-size: 2.2rem;
  }
}

@media all and (max-width: 500px){
  .foi-chatbot-main{
    max-width: 300px;
    bottom: -530px;
  }
}
