.chatbot {
  position: fixed;
  z-index: 999;
  width: 480px;
  height: 1080px;
  max-height: 100vh;
  right: -480px;
  background-color: #FFF;
  transition: right 0.3s ease-in-out;
  border-top-left-radius: 22px;
}
.chatbot.open {
  right: 0;
  -webkit-box-shadow: 0 2px 44px 0 rgba(0,0,0,0.3);
  box-shadow: 0 2px 44px 0 rgba(0,0,0,0.3);
}
.chatbot .tab {
  cursor: pointer;
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  margin-left: -84px;
  height: 70px;
  bottom: 90px;
  border-radius: 22px 0 0 22px;
  background-color: #DBDFE1;
  -webkit-box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15);
  box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15);
}


.chatbot .tab .slide-right i {
    color: var(--darkblue)!important;
	transition: color 0.5s ease;

}


.chatbot .tab .slide-left i {
	color:var(--themeTan)!important;
	transition: color 0.5s ease;

}


.chatbot .tabicon {
  color: #075270;
  font-size: 45px;
  background-image: url(/themes/bootstrap-8.x-3.0-rc2/bootstrap/css/images/ai_shield_sparkles.png);
  background-size: 45px 45px;
  height: 45px;
  width: 45px;
}

.chatbot .tabicon i {
	font-weight: 900;
}

.chatbot .chatFrame {
  position: relative;
  z-index: 2;
  background-color: #FFF;
  display: flex;
  flex-direction: column;
  height: 100%;
  /*padding: 50px 30px 0 30px;*/
  padding: 0;
}

.chatbot .chatFrame > .title,
.chatbot .chatFrame > .subtitle {
  padding: 0 30px;
  margin-bottom: 10px;
}
.chatbot .chatFrame > .title {
  font-size: 23px;
  text-align: center;
}
.chatbot .chatFrame > .subtitle {
  display: flex;
  justify-content: center;
}
.chatbot .chatFrame > .subtitle a {
  color: #2D2D2D;
}
.chatbot .chatFrame > .subtitle ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
.chatbot .chatFrame > .subtitle ul > li {
  margin-left: 10px;
}

.chatbot .chatFrame > .toolbar {
  position: absolute;
  left: 25px;
  top: 10px;
}
.chatbot .chatFrame > .toolbar .leftbuttons {
  display: flex;
  flex-direction: column;
}
.chatbot .chatFrame > .toolbar .leftbuttons a {
  color: #BC314A;
  display: inline-block;
  margin-top: 10px;
  font-size: 20px;
  margin-left: -10px;
}

.chatbot #chat-text {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px 45px;
}
.chatbot #chat-text .bubble {
  position: relative;
  padding: 45px;
  background-color: #F1F5F8;
  border-radius: 7px;
  -webkit-box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15);
  box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15);
  margin-bottom: 20px;
}
.chatbot #chat-text .bubble a {
  color: #BC314A;
  text-decoration: underline;
}
.chatbot #chat-text .bubble input[type="button"] {
  font-size: 18px;
  font-weight: 700;
  color: #075270;
  border: none;
  background: none;
  border-top: solid 2px #9FACB6;
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
  padding: 0;
  margin-top: 5px;
}
.chatbot #chat-text .bubble span + input[type="button"] {
  margin-top: 20px;
}
.chatbot #chat-text .bubble.card1::before {
  content: url('https://chatbot-ffx.virginiainteractive.org/images/ffx_seal.png');
  position: absolute;
  top: -15px;
  left: -15px;
}

.chatbot #chat-message {
  padding: 50px;
  background-color: #F1F5F8;
  margin: 0 -30px;
}
.chatbot #chat-message .inputbox {
  border: none;
  border-radius: 7px;
  /* -webkit-box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15); */
  /* box-shadow: inset 2px 2px 7px 0 rgba(0,54,103,0.04), 2px 2px 7px 0 rgba(0,54,103,0.15); */
  width: 100%;
  padding: 15px;
  resize: none;
}
.chatbot #chat-message .inputbutton {
  border-color: #BC314A;
  background-color: #BC314A;
  color: #FFF;
  width: 100%;
  border-radius: 28px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  padding: .75rem;
  border-width: 2px;
  margin-top: 12px;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

#phplive_btn_1671029454 {
	display: none;
}


@media (max-width: 767px) {
	

	
  .chatbot {
    max-width: calc(100vw);
  }
  .chatbot:not(.open) {
    /* right: calc(-100vw + 84px); */
  }
  .chatbot .chatFrame {
    /* padding: 30px 0px 0 0px; */
  }
  .chatbot .chatFrame > .toolbar {
    left: 0;
    bottom: 205px;
    top: 0;
  }
  .chatbot .chatFrame > .toolbar .leftbuttons {
	left: 12px;
  }
  .chatbot #chat-text {
    padding: 15px 20px 15px 45px;
  }
  .chatbot #chat-text .bubble {
    padding: 25px;
  }
  .chatbot #chat-text .bubble.card1 {
    padding-top: 45px;
  }
  .chatbot #chat-message {
    margin-left: -20px;
    margin-right: -10px;
    padding: 20px;
  }

  .chatbot .tab {
	  display: none;
  }
  
  #live_chat .toggleOverlayPosition {
	  display: none;
  }
  
  #live_chat #aiOverlayClose {
	  display: none;
  }
}


/* original */

.chatbot {
    border-left: 1px solid #A6ACB0;
    position: fixed;
	top: 84px;
    width: 33%;
    right: -33%;
    z-index: 10000;
    text-align: center;
    /* height: 100%; */
	height: calc(-102px + 100dvh);
    font-size: 18px;
    color: #000;
    background: rgba(255, 255, 255, .95);
    display: block;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
    cursor: pointer;
    bottom: 0px;
    box-shadow: -2px 4px 4px 1px #46464699;
    display: none;
}


.chatbot .toast {
	background-color: white;
    left: -390px;
    right: 0px;
    bottom: 25px;
    display: block;
    position: absolute;
    border-radius: 18px;
    font-size: .85rem;
    padding: 12px 40px;
    box-shadow: -2px 4px 4px 1px #46464699;
}

.chatbot .toast .button{
	zoom:85%;
}

.chatbot .toast::before {
	content: 'x';
    left: -6px;
    position: absolute;
    top: -5px;
    background: white;
    border-radius: 28px;
    width: 26px;
    height: 26px;
    border: 1px solid #033B52;
    line-height: 22px;
    color: #033B52;
    font-size: 1rem;
    font-weight: 700;
}

.chatbot .toast .title {
}

.chatbot .toast .title h3 {
    font-size: 1.2rem;
    line-height: 1.2rem;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}

.chatbot .toast div[class^="content"] {
    padding-bottom: 1rem;
}

.chatbot .toast .btn {
	
}

.chatbotRight {
    right: -33%;
}

.chatHeader {
    display: block;
    position: relative;
    clear: both;
    height: 0px;
}

.chatHeader img {
    width: 36px;
    padding: 4px;
}

.chatFrame {
    display: block;
    position: relative;
    clear: both;
    width: 100%;
    height: 100%;
}

.chatFrame .toolbar {
    width: auto;
    height: 4px;
    display: block;
    float: left;
    font-size: 15px;
    height: 50px;
}

.chatFrame .toolbar .leftbuttons {
    float: left;
    top: 0px;
    position: absolute;
    left: 8px;
}

.chatFrame .toolbar .title {
    top: 8px;
    left: 50px;
    position: absolute;
    font-size: 1.5rem;
    color: var(--themeBlueDk);
    width: auto;
    display: block;
    position: relative;
    float: left;
    white-space: nowrap;
    text-align: left;
}

.chatFrame .toolbar a {
    padding: 8px;
    cursor: pointer;
    float: left;
    color: #A6ACB0!important;
    font-size: 26px;
    padding-top: 6px;
    padding-right: -25px;
    margin-left: -2px;
}

.chatFrame .toolbar a:hover,
.chatFrame .toolbar a:focus {
    text-decoration: none;
    color: #A6ACB0!important;
}

.chatFrame .liveChatLink {
    text-decoration: underline;
    cursor: pointer;
    line-height: 0px!important;
}

.chatFrame .liveChatLink img {
    padding: 8px 0 0 0!important;
}

.chatFrame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin-top: -30px;
}

.chatFrame img {
    padding: 0px!important;
}

.chatbot.tabout-color .tabicon i {
    color: var(--themeTan)!important;
    transition: color .5s ease-in;
}

@media screen and (max-width: 1400px) {
	.chatFrame .toolbar .title {
		font-size:1.2rem;
	}

}

@media screen and (max-width: 1300px) {
	
	.chatFrame iframe {
		margin-top: -25px;
		padding-bottom: 0;
		margin-bottom: 0;
	}
    /* .chatbot {
		width: 33%;
		top: 0;
		height: 100%;
        right: -33%;
        
    } */
	
/*     .chatbot {
		width: 55%;
		top: 0;
		height: 100%;
        right: -55%;
       
    }
	 */
	 
  .chatbot {
      width: 55%;
      top: 84px;
      height: calc(100dvh-102px);
      right: 0; /* Keep it at 0 */
      transform: translateX(100%); /* Move it off-screen */
      transition: transform 0.3s ease; /* Optional: smooth animation */
  }

  .chatbot.open {
      transform: translateX(0); /* Slide it in */
  }

}
@media screen and (max-width: 992px) {
	.chatFrame iframe {
		margin-top: -25px;
		padding-bottom: 0;
		margin-bottom: 0;
	}
    .chatbot {
		width: 90%;
		top: 84px;
		height: calc(-84px + 100dvh);
        right: -90%;
        /* display: none; */
    }
	#phplive_iframe_chat_embed_wrapper {
	/* 	width: 90%!important;
		top: 0!important;
		height: 100%!important;
        right: -90%!important; */
	}
	
	.chatbot .tab { 
		bottom: 20px!important;
	}
	
	/*.chatbot.open .tab { 
		bottom: 20px!important;
		border-radius: 57px;
		width: 70px;
		margin-left: -34px;
		z-index: 10;
	}*/
	
  

}

@media screen and (max-width: 767px) {
	.chatFrame iframe {
		margin-top: -25px;
		padding-bottom: 0;
		margin-bottom: 0;
	}
    .chatbot {
		width: 90%;
		top: 84px;
		height: calc(-84px + 100dvh);
        right: -90%;
        /* display: none; */
    }
	#phplive_iframe_chat_embed_wrapper {
	/* 	width: 90%!important;
		top: 0!important;
		height: 100%!important;
        right: -90%!important; */
	}
	
	.chatbot .tab { 
		bottom: 20px!important;
	}
	
	/*.chatbot.open .tab { 
		bottom: 20px!important;
		border-radius: 57px;
		width: 70px;
		margin-left: -34px;
		z-index: 10;
	}*/


}

@media (max-height: 768px) {
	
  #live_chat #webchat #webchatFrame {
	  max-height: 90%!important;
  }	
}

@media (max-height: 556px) {
	
  #live_chat #webchat #webchatFrame {
	  max-height: 80%!important;
  }	
}

@media (max-width: 512px) {
    .chatFrame .toolbar .title {
        overflow: hidden;
        height: 28px;
        text-align: left;
        width: auto;
        display: block;
        position: relative;
        float: left;
        white-space: nowrap;
        font-size: 1em;
        line-height: 1.7em;
		left: 48px;
        top: 11px;
    }
    .chatFrame .toolbar .leftbuttons {
        left: 0px;
    }
	
	.chatbot {
		width: 100%;
	}
	
	.input-area .customer-footer {
		margin-bottom: 1rem;
	}
	
	#aiOverlay #aiDialog #aiLinks {
		left: 1rem;
		right: 0;
	}
	
	#live_chat .widget-body .response {
		max-height: calc(100vh - 24rem);
	}
}


@media (max-width: 340px) {
    .chatFrame .toolbar .title {
        font-size: .9em;
        line-height: 2em;
    }
}

/* AI CHATBOT STYLES */
  /* Header Search Wrapper */
  #header-search.ai-chatbot-container.header-search-wrapper {
    margin-top: 6rem;
    border-radius: 12px;
    background: rgba(7, 82, 112, 90%);
  }

  /* AI Input Container */
  #header-search.ai-chatbot-container .ai-input-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
  }

    #header-search .ai-input-row, #header-search.ai-chatbot-container .ai-input-row {
    align-items: center;
    justify-content: flex-end;
    display: flex;
    flex-wrap: wrap;
  }

  /* Input Icon Wrappers */
  #header-search.ai-chatbot-container .input-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 48px;
    width: 47px;
    border-radius: 24px;
  }
  
  #header-search:not(.ai-chatbot-container) .input-icon-wrapper {
	  display: flex;
	  align-items: center;
	  height: 47px;
  }
  
  #header-search:not(.ai-chatbot-container) .input-icon-wrapper.input-icon-left {
	  padding-right: 1rem;
  }

  #header-search.ai-chatbot-container .input-icon-left {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }

  #header-search.ai-chatbot-container .input-icon-right {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
  }

  /* Input Icon Buttons */
  .icon-col {
	  display: flex;
	  align-items: center;
	  padding-left: 0;
  }
  
  #header-search .input-icon-button, #header-search.ai-chatbot-container .input-icon-button {
    height: 34px;
    min-width: 34px;
    background-image: url(/themes/bootstrap-8.x-3.0-rc2/bootstrap/css/images/ai_shield_sparkles.png);
    background-size: cover;
    position: relative;
	border-radius: 0;
	background-color: transparent;

  }
  
  #header-search.ai-chatbot-container:not(.interior-page) .input-icon-button {
	  margin-left: 14px;
  }

  #header-search.ai-chatbot-container .input-submit-button, #header-search #homeAiInputSubmit {
    height: 34px;
    min-width: 34px;
    background: var(--themeRed);
  }

  /* AI Text Input */
  #header-search .ai-text-input-container {
	  display: flex;
  }
  
  #header-search.ai-chatbot-container:not(.interior-page) .ai-text-input {
    min-width: 792px;
    min-height: 48px;
    border: 0;
	outline: 0;
	padding-left: 8px;
  }
  
   #header-search:not(#header-search.ai-chatbot-container) .ai-text-input {
	width: 100%;
	/*max-width: 88%;*/
    min-height: 47px;
    border: 0;
	outline: 0;
  }
  
  @media (max-width: 991px) {
	#header-search.ai-chatbot-container .ai-text-input {
	  min-width: 600px !important;
      max-width: 600px;
      min-height: 48px;
      border: 0;
	}
  
    #header-search .ai-input-row, #header-search.ai-chatbot-container .ai-input-row {
      flex-wrap: nowrap;
    }
  
    #header-search.ai-chatbot-container .chatbar-item {
	  max-width: 696px;
	  width: 100%;
	  margin-bottom: 12px;
	  display: none;
    }	
  
    #header-search.ai-chatbot-container form {
	  max-width: 720px;
    }
 
    .row.chatbar-row .col {
	  display: flex;
      justify-content: center;
    }
	
    .ai-chat-search-container .ai-chat-search-col.empty {
	  display: none;
    }
	
	.ra-chatbot-container .ai-text-input-container {
		padding: 0;
	}
	
	.ra-chatbot-container {
		padding: 0.5rem !important;
	}
  }

  /* Voice Search Buttons */
  #header-search .button_ai-voice-search {
    min-height: 48px;
    border: none;
	background-color: #fff;
	/*float: right;*/
  }
  
    #header-search .interior-page .button_ai-voice-search {
    min-height: 47px;
  }

  /* AI Toggle */
  #header-search #aiToggle, #header-search.ai-chatbot-container #aiToggle {
    display: none;
  }

  /* Chatbar Row */
  #header-search.ai-chatbot-container .chatbar-row {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding-bottom: 1rem;
  }

  #header-search.ai-chatbot-container .chatbar-row .col {
    text-align: center;
  }

  /* Search Icon SVG */
  #header-search.ai-chatbot-container .search-icon-svg {
    width: 20px;
  }

  /* Google Custom Search Styles */
  #header-search.ai-chatbot-container .gsc-input-table {
    width: 100%;
    padding: 0;
  }
  
  #header-search.ai-chatbot-container form {
	border: 1px solid #fff;
    border-radius: 24px;
    padding: 0 0.5rem;
  }

  #header-search.ai-chatbot-container .gsc-input-field {
    width: 100%;
    padding: 0;
    border: none;
    margin: 0;
    height: auto;
    background: none;
    outline: none;
  }

  #header-search.ai-chatbot-container .clear-search-hidden {
    display: none;
  }

  #header-search.ai-chatbot-container .chatbar-item {
    color: #fff;
    background: var(--themeBlueDk);
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: normal;
	border: none;
  }

  #header-search.ai-chatbot-container table.gsc-search-box td {
    padding: 0;
  }

  #header-search.ai-chatbot-container form input::placeholder {
    color: #fff;
    opacity: 1; /* Fixes lower opacity in Firefox */
  }
  
  #header-search:not(.ai-chatbot-container) #ai-chat-searchbar input::placeholder {
    color: var(--darkblue);
    opacity: 1; /* Fixes lower opacity in Firefox */
  }

  /* TESTING NEW AI-CHAT HEADER ON FRONT PAGE SEARCH STYLES */
  #header-search .gsib_a, #header-search.ai-chatbot-container .gsib_a {
    background-image: none;
	
  }
  
  #header-search .gsib_a input::placeholder {
	  color: #fff;
  }
  
  #header-search .gsib_a input, #header-search.ai-chatbot-container .gsib_a input {
	color: #fff;
    text-wrap-mode: nowrap;
    height: 36px;
  }

#header-search .gsib_a input {
	 color: var(--themeBlueDk);
}
  
  #header-search.ai-chatbot-container td.gsib_b {
	vertical-align: middle !important;
	height: 36px;
	width: 36px;
  }
  
  #header-search.ai-chatbot-container div.gsst_b {
	height: 36px;
  }
  
  #header-search .gsc-clear-button {
	display: none;
  }

  #header-search #homeAiInputSubmit:not(#header-search.ai-chatbot-container #homeAiInputSubmit) {
	  /*display: none;*/
  }
  
  #header-search #homeAiInputSubmit {
	  border: none;
	  border-radius: 24px;
  }
  
  #header-search.ai-chatbot-container .search-submit {
	  border: none;
	  border-radius: 24px;
  }
  
  
  #header-search.ai-chatbot-container .site-search-submit {
    background: transparent;
    border: none;
    color: #fff;
    height: 36px;
    width: 36px;
  }
  
  #ai-chat-searchbar {
	background: var(--ltGray);
    padding: 0 0.5rem;
    width: 50%;
  }
  
  #header-search .online-chat {
	background: var(--themeGreen);
    color: #fff;
    width: 50%;
    display: inline-block;
    padding: 0 0.5rem;
    font-size: 1rem;
    align-content: center;
    text-align: center;
	border: none;
  }

  #header-search .online-chat.chat-not-available {
    background-color: #397188!important;
  }
  
  .ai-chat-search-container {
    max-width: 100% !important;
    margin: 0;
    padding: 0;	  
  }
  
  .ai-chat-search-container .ai-chat-search-col {
	  padding: 0;
	  height: 47px;
  }
  
  .search-chat-container {
	  display: flex;
  }
  

#live_chat {
	display: block;
	position: absolute;
	width: 100%;
    height: 100%;
}

@media (max-width: 1400px) {
  #header-search.ai-chatbot-container.header-search-wrapper {
	border-radius: 0;
	margin-top: 76px;
  }
}

@media (max-width: 1001px) {
  #header-search.ai-chatbot-container .ai-text-input {
    min-width: 700px;
    min-height: 48px;
    border: 0;
  }
}

@media (max-width: 801px) {
  #header-search.ai-chatbot-container .ai-text-input {
	min-width: 500px !important;
    max-width: 500px;
	width: 100%;
    min-height: 48px;
    border: 0;
  }	
  
 #header-search.ai-chatbot-container form {
	 max-width: 620px;
 }
}

@media (max-width: 640px) {
  #header-search.ai-chatbot-container .ai-text-input {
	min-width: 400px !important;
    max-width: 400px;
	width: 100%;
    min-height: 48px;
    border: 0;
  }	
  
 #header-search.ai-chatbot-container form {
	 max-width: 520px;
	 min-width: 520px;
 }

@media (max-width: 575px) {
	.ai-chat-search-col .container {
		padding: 0;
	}
	.ai-chat-search-col .row {
		flex-wrap: nowrap;
		flex-direction: row;
	}
	
#header-search:not(#header-search.ai-chatbot-container) .ai-text-input {
    width: 100%;
    max-width: 75%;
}
	
	.icon-col {
		max-width: 48px;
		padding: 0;
	}
}

@media (max-width: 540px) {
	#header-search.ai-chatbot-container .ai-input-container  {
		flex-direction: column;
	}
  #header-search.ai-chatbot-container .ai-text-input {
	min-width: unset !important;
    max-width: unset;
	width: 75%;
    min-height: 48px;
    border: 0;
  }	
  
 #header-search.ai-chatbot-container form {
	 max-width: unset;
	 min-width: unset;
 }
 
 #header-search.ai-chatbot-container .chatbar-row .question-btn {
	 display: none;
 }
}

@media (max-width: 420px) {
	#header-search:not(#header-search.ai-chatbot-container) .ai-text-input {
		width: 100%;
		max-width: 72%;
	}	
}

#phplive_iframe_chat_embed_wrapper {
	inset: 30px 0px 0px 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0px !important;
    overflow: unset;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute !important;
    z-index: 2147483640 !important;
    opacity: 1;
    height: 100% !important;
    box-shadow: none !important;
}

#phplive_iframe_chat_embed_wrapper #embed_win_minimize {
	display: none;
}

span#phplive_btn_1779217493 {
	display: none;
}

span#phplive_btn_1671029454 {
	display: none;
}

