@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
 :root{
     
    /* Header / Buttons / Send Chat Bubble / Suggested Questions */
    --chatbot-color-primary: #3783b6;
    /* Button Hover / Response Chat Color / AI Icon */
     --chatbot-color-primary-dark: #22455e;
    /* Suggested text slightly darker for better contrast */
     --chatbot-color-text-suggested: #2F77A7;
    /* Scroll bar hover */
     --chatbot-scrollbar-hover: #8dadc2;
    
    /* Sheriff's Office Colors --chatbot-color-primary: #23603f;
     --chatbot-color-primary-dark: #143623;
     --chatbot-color-text-suggested: #1D5739;
     --chatbot-scrollbar-hover: #7FA695;
     */
}
 html, body {
     width: 100%;
     height: 100%;
     margin: 0;
     padding: 0;
     overflow: hidden;
     box-sizing: border-box;
}
 *, *::before, *::after {
     box-sizing: border-box;
}
 .chatbot .visually-hidden{
     display: none;
}
 .chatbot .chatbox {
     border-top: 1px solid #d9d9d9;
     position: absolute;
     top: 0;
     right: 0;
     bottom: 120px;
     left: 0;
     display: flex;
     flex-direction: column;
     overflow-y: auto;
     overflow-x: hidden;
     padding: 10px 10px 10px;
     margin:0;
     font-family: "Poppins", sans-serif;
     caret-color: transparent;
     justify-content: start;
}
 .chatbot .chatbox .appended-suggestions-group {
     flex: 0 0 auto;
     margin-top: auto;
     padding: 0;
     list-style: none;
}
 .chatbot .chatbox .wait{
     padding: 10px 0px 0px 0px;
     caret-color: transparent;
     display: flex;
}
 .chatbot ::-webkit-scrollbar {
     width: 8px;
}
/* Track */
 ::-webkit-scrollbar-track {
     background: #e2e2e2;
}
/* Handle */
 ::-webkit-scrollbar-thumb {
     background: #c2cbd1;
}
/* Handle on hover */
 ::-webkit-scrollbar-thumb:hover {
     background: var(--chatbot-scrollbar-hover);
}
 .chatbot .chat {
     display: flex;
}
 .chatbot .chat p {
     color: #ffffff;
     background: var(--chatbot-color-primary);
     max-width: 80%;
     width: fit-content;
     display: inline-block;
     font-size: 0.9rem;
     padding: 10px 12px;
     border-radius: 5px 5px 0 5px;
}
 .chatbot .incoming p {
     color: #000;
     background: #ececec;
     border-radius: 5px 5px 5px 0;
     caret-color: transparent;
     padding: 10px 12px;
     border-bottom : 4px solid var(--chatbot-color-primary-dark);
}
 .chatbot .feedback span {
     font-size: 0.8rem;
     color: #414141;
     background: #fff;
     border-radius: 5px 5px 5px 5px;
     caret-color: transparent;
     margin: 0px 0px 35px 40px;
     border : 1px solid var(--chatbot-color-primary-dark);
     padding: 3px 5px 3px 10px;
     transition: all 0.2s ease;
}
 .chatbot .feedback .feedback-thanks {
     font-size: 0.8rem;
     color: #414141;
     background: #fff;
     border-radius: 5px 5px 5px 5px;
     caret-color: transparent;
     margin: 0px 0px 35px 40px;
     border : 1px solid var(--chatbot-color-primary-dark);
     padding: 6px 10px 6px 10px;
     transition: all 1s ease;
}
 .chatbot .feedback textarea {
     width: 70vw;
     height: 60px;
     font-size: 16px;
     resize: none;
     padding: 2px 2px 2px 5px;
     margin-right: 5px;
     margin-top: -15px;
     caret-color: auto;
     font-family: "Poppins", sans-serif;
}
 .chatbot .feedback .feedback-thumbs-up{
     font-size: 1rem;
     color: #707070;
     background: #fff;
     border-radius: 3px 3px 3px 3px;
     caret-color: transparent;
     border : 1px solid #fff;
     padding: 5px 7px 5px 7px;
     transition: all 0.5s ease;
}
 .chatbot .feedback .feedback-thumbs-down{
     font-size: 1rem;
     color: #707070;
     background: #fff;
     border-radius: 3px 3px 3px 3px;
     caret-color: transparent;
     border : 1px solid #fff;
     padding: 5px 7px 5px 7px;
     transition: all 0.5s ease;
}
 button.feedback-selected {
     transform: scale(1.2);
}
 .chatbot .feedback .feedback-submit{
     font-size: 0.8rem;
     color: #414141;
     background: #fff;
     border-radius: 3px 3px 3px 3px;
     caret-color: transparent;
     border : 1px solid #707070;
     padding: 5px 7px 5px 7px;
     justify-content:right;
     margin: 5px 0 5px 0;
     transition: all 0.2s ease;
}
 .chatbot .feedback .feedback-submit:hover {
     background: #414141;
     color: #fff;
     cursor: pointer;
}
 .chatbot .incoming span {
     font-size: 3rem;
     color: #000;
     background: #ececec;
     border-radius: 5px 5px 5px 0;
     caret-color: transparent;
     padding: 5px 12px;
     border-bottom : 4px solid var(--chatbot-color-primary-dark);
     width: 75px;
     height: 40px;
     line-height: 15px;
     padding: 0 20px 0 20px;
     justify-content: center;
     flex-direction: column;
}
 .chatbot .incoming button {
     cursor: pointer;
     background: #f5f5f5;
     color: var(--chatbot-color-primary);
     border: 1px solid var(--chatbot-color-primary);
     font-size: 0.8rem;
     padding: 5px 20px;
     margin: 5px 0 0 0;
     border-radius: 10px;
     caret-color: transparent;
     transition: all 0.2s ease;
     justify-content: flex-end;
     caret-color: transparent;
     transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
 .chatbot .incoming button:hover {
     background-color: var(--chatbot-color-primary);
     color: #ececec;
}
 .chatbot .incoming button:focus {
     background-color: var(--chatbot-color-primary);
     color: #ececec;
     outline: #000 solid 2px;
}
 .chatbot .incoming a {
     color: #676767;
     text-decoration: none;
}
 .chatbot .wait p {
     color: #000;
     background: #ececec;
     border-radius: 5px 5px 5px 0;
     caret-color: transparent;
     padding: 10px 12px;
     border-bottom : 4px solid var(--chatbot-color-primary-dark);
}
 .chatbot .wait span {
     font-size: 3rem;
     color: #000;
     background: #ececec;
     border-radius: 5px 5px 5px 0;
     caret-color: transparent;
     padding: 5px 12px;
     border-bottom : 4px solid var(--chatbot-color-primary-dark);
     width: 75px;
     height: 40px;
     line-height: 15px;
     padding: 0 20px 0 20px;
     justify-content: center;
}
 .chatbot .wait a {
     color: #676767;
     text-decoration: none;
}
 .chatbox .wait i{
     height: 32px;
     width: 32px;
     align-self: flex-end;
     background: var(--chatbot-color-primary-dark);
     color: #fff;
     text-align: center;
     line-height: 32px;
     border-radius: 4px;
     margin: 0 10px 7px 0;
     caret-color: transparent;
}
 .chatbox .incoming i{
     height: 32px;
     width: 32px;
     align-self: flex-end;
     background: var(--chatbot-color-primary-dark);
     color: #fff;
     text-align: center;
     line-height: 32px;
     border-radius: 4px;
     margin: 0 10px 7px 0;
     caret-color: transparent;
}
/* Chatbot error message styling */
.chatbox .incoming p.chat-error {
    color: #b00020;
}
 .chatbox .outgoing {
     display: flex;
     justify-content: flex-end;
     margin: 10px 0;
     caret-color: transparent;
}
 .chatbox .suggested-1, .chatbox .suggested-2 {
     justify-content: flex-end;
     caret-color: transparent;
}
 .chatbot .suggestedChat {
     align-self: flex-end;
     padding: 10px 10px 10px 10px;
     margin: 5px 5px 5px 5px;
     border-radius: 4px;
     background-color: white;
     color: var(--chatbot-color-text-suggested);
     border: 2px solid var(--chatbot-color-primary);
     visibility: visible;
     font-size: 14px;
     max-width: 70vw;
     overflow: hidden;
}
 .chatbot .suggestedChat:hover {
     background-color: var(--chatbot-color-primary);
     color: white;
     transition: all 0.1s ease;
     cursor: pointer;
}
 .chatbot .suggestedChat:focus {
     background-color: var(--chatbot-color-primary);
     color: white;
     transition: all 0.1s ease;
     outline: #000 solid 3px;
}
 .chatbot .suggestion-hidden {
     display: none !important;
}
 .chatbot .suggestions-toggle-row {
     display: flex;
     justify-content: flex-end;
     margin: 2px 6px 4px 0;
     list-style: none;
}
 .chatbot .suggestions-toggle {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 28px;
     height: 28px;
     padding: 0;
     color: var(--chatbot-color-primary);
     background: #fff;
     border: 2px solid var(--chatbot-color-primary);
     border-radius: 50px;
     cursor: pointer;
     transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
 .chatbot .suggestions-toggle:hover {
     color: #fff;
     background: var(--chatbot-color-primary);
}
 .chatbot .suggestions-toggle:focus-visible {
     color: #fff;
     background: var(--chatbot-color-primary);
     outline: 3px solid #000;
     outline-offset: 2px;
}
 .chatbot .suggestions-toggle i {
     width: auto;
     height: auto;
     margin: 0;
     padding: 0;
     color: inherit;
     background: none;
     border-radius: 0;
     line-height: normal;
     font-size: 15px;
     line-height: 1;
}
 .chatbot .chat-input {
     position: absolute;
     right: 0;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 120px;
     display: flex;
     gap: 5px;
     background: #fff;
     padding: 5px 20px;
     margin: 0;
     border-top : 1px solid #ccc;
     box-sizing: border-box;
     font-family: "Poppins", sans-serif;
}
 .chatbot .chat-suggested-questions {
     bottom: 130px;
     right: 10px;
     position: absolute;
     display: flex;
     flex-direction: column;
     align-items: flex-end;
     max-width: 400px;
}
 .chatbot .chat-suggested-questions .question-prompt-1, .chatbot .chat-suggested-questions .question-prompt-2 {
     align-self: flex-end;
     padding: 10px 10px 10px 10px;
     margin: 5px 5px 5px 5px;
     border-radius: 4px;
     background-color: white;
     color: var(--chatbot-color-text-suggested);
     border: 2px solid var(--chatbot-color-primary);
     visibility: visible;
     font-size: 14px;
     display: none;
}
 .chatbot .chat-suggested-questions .question-prompt-1:hover, .chatbot .chat-suggested-questions .question-prompt-2:hover {
     background-color: var(--chatbot-color-primary);
     color: white;
     transition: all 0.1s ease;
}
 .chatbot .chat-suggested-questions .question-prompt-1:focus, .chatbot .chat-suggested-questions .question-prompt-2:focus {
     background-color: var(--chatbot-color-primary);
     color: white;
     transition: all 0.1s ease;
     outline: #000 solid 3px;
}
 .chat-input {
     caret-color: transparent;
}
 .chat-input textarea{
     width: 100vw;
     height: 90px;
     border: none;
     outline: none;
     font-size: 16px;
     resize: none;
     padding: 15px 15px 16px 0;
     caret-color: auto;
     font-family: "Poppins", sans-serif;
     overflow: hidden;
}
 .chat-input .chat-icons{
     display: flex;
     align-self: flex-start;
     padding: 10px 20px;
}
 .chat-input button {
     background: var(--chatbot-color-primary);
     color: #fff;
     height: 36px;
     width: 36px;
     line-height: 36px;
     margin: 0 5px 0;
     border-radius: 4px;
     cursor: pointer;
     caret-color: transparent;
     visibility: hidden;
     text-align: center;
     border: none;
}
 .chat-input button:hover {
     background: var(--chatbot-color-primary-dark);
     transform: scale(1.05);
}
 .chat-input button:focus {
     background: var(--chatbot-color-primary-dark);
     transform: scale(1.05);
     outline: #000 solid 3px;
}
 .chat-input textarea:valid ~ .chat-icons #chatbot-send{
     visibility: visible;
}
 .chat-input textarea:invalid ~ .chat-icons #chatbot-send{
     visibility: hidden;
}
 .show-chatbot .show-exit {
     position:absolute;
     background:#ffffff;
     left:0;
     right:0;
     top:0;
     bottom:0;
     z-index:2;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     display: none;
     font-family: "Poppins", sans-serif;
}
 .show-chatbot .show-exit p {
     text-align: center;
     caret-color: transparent;
     font-size: 1.2em;
}
 .show-chatbot .show-exit button {
     cursor: pointer;
     background: var(--chatbot-color-primary);
     color: #fff;
     font-size: 1rem;
     border: none;
     outline: none;
     padding: 10px 40px;
     margin: 20px 10px 0 0;
     border-radius: 5px;
     caret-color: transparent;
     transition: all 0.2s ease;
     justify-content: flex-end;
     caret-color: transparent;
     font-family: "Poppins", sans-serif;
}
 .show-chatbot .show-exit button:hover {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
}
 .show-chatbot .show-exit button:focus {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
     outline: #000 solid 3px;
}
 .show-chatbot .show-cleanup {
     position: fixed;
     overflow: visible;
     right: 25px;
     left: auto;
     transform: none;
     bottom: 125px;
     z-index: 4;
     transform-origin: bottom right;
     opacity: 0;
     transform: scale(.92) translateY(8px);
     transition: transform 180ms cubic-bezier(.18,.89,.32,1.28), opacity 180ms ease;
     pointer-events: none;
     visibility: hidden;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     width: calc(100% - 40px);
     max-width: 320px;
     padding: 18px 20px;
     background: #ffffff;
     border: 1px solid #c8c8c8;
     border-radius: 12px;
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
     font-family: "Poppins", sans-serif;
}
 .show-cleanup.cleanup-visible {
     opacity: 1;
     transform: translateY(0) scale(1);
     pointer-events: auto;
     visibility: visible;
}
 body::before {
     content: "";
     position: fixed;
     inset: 0;
     background: rgba(40, 40, 40, 0.22);
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
     transition: opacity 180ms ease, visibility 0s linear 180ms;
     z-index: 3;
}
 body.cleanup-open::before {
     opacity: 1;
     visibility: visible;
     pointer-events: auto;
     transition: opacity 250ms ease, visibility 0s;
}
 .show-chatbot .show-cleanup::after {
     content: "";
     position: absolute;
     right: 25px;
     bottom: -12px;
     width: 25px;
     height: 25px;
     background: #fff;
     border-right: 1px solid #c8c8c8;
     border-bottom: 1px solid #c8c8c8;
     border-radius: 4px;
     box-shadow: 4px 4px 12px rgba(0,0,0,.08);
     transform: rotate(45deg);
}
 .show-cleanup:focus {
     outline: none;
}
 .show-chatbot .show-cleanup p {
     text-align: center;
     caret-color: transparent;
     font-size: 1.0rem;
}
 .show-chatbot .show-cleanup button {
     cursor: pointer;
     background: var(--chatbot-color-primary);
     color: #fff;
     border: none;
     outline: none;
     padding: 5px 20px;
     font-size: 1.0rem;
     border-radius: 5px;
     caret-color: transparent;
     transition: all 0.2s ease;
     justify-content: flex-end;
     caret-color: transparent;
     margin: 5px;
}
 .show-chatbot #chatbot-cleanup.cleanup-active, .show-chatbot .show-cleanup button:hover {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
}
 .show-chatbot .show-cleanup button:focus {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
     outline: #000 solid 3px;
}
 .show-chatbot .show-disclaimer {
     position: fixed;
     inset: 0;
     z-index: 2;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     width: 100%;
     height: 100%;
     min-height: 0;
     padding: 20px 20px 10px;
     overflow-y: auto;
     overflow-x: hidden;
     background: #ffffff;
     font-family: "Poppins", sans-serif;
}
 .show-chatbot .show-warning {
     flex-shrink: 0;
     width: 100%;
     margin-top: 10px;
     text-align: center;
     caret-color: transparent;
     background-color: #c43815;
}
 .show-chatbot .show-warning.active{
     display: block;
}
 .show-chatbot .show-warning.inactive{
     display: none;
}
 .show-chatbot .show-warning p {
     text-align: center;
     caret-color: transparent;
     color: #eeeeee;
}
 .show-chatbot .show-disclaimer p {
     width: 100%;
     max-width: 650px;
     padding: 0 35px;
     box-sizing: border-box;
     text-align: center;
     font-size: 0.85em;
     line-height: 1.6;
     caret-color: transparent;
}
 .show-chatbot .show-disclaimer .chatbot-button-container {
     margin-top: 20px;
     margin-bottom: 10px;
     flex-shrink: 0;
     text-align: center;
}
 .show-chatbot .show-disclaimer button {
     cursor: pointer;
     background: var(--chatbot-color-primary);
     color: #fff;
     font-size: 1rem;
     border: none;
     outline: none;
     padding: 10px 60px;
     margin: 5px 10px;
     border-radius: 5px;
     flex-shrink: 0;
}
 .show-chatbot .show-disclaimer button:hover {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
}
 .show-chatbot .show-disclaimer button:focus {
     transform: scale(1.05);
     transition: all 0.1s ease;
     background: var(--chatbot-color-primary-dark);
     outline: #000 solid 3px;
}
 .show-chatbot .show-disclaimer h2 {
     margin: 0 0 20px;
     text-align: center;
     font-size: 1.6rem;
}
 .show-chatbot .show-disclaimer p {
     width: 100%;
     max-width: 700px;
     margin: 10px 0;
     padding: 0;
     text-align: center;
     font-size: 0.85rem;
     line-height: 1.65;
     caret-color: transparent;
}
 .show-chatbot .show-disclaimer i {
     height: 40px;
     width: 40px;
     background: var(--chatbot-color-primary-dark);
     color: #fff;
     text-align: center;
     line-height: 40px;
     border-radius: 4px;
     margin: 0 10px 7px 0;
     caret-color: transparent;
}
 .show-chatbot .show-disclaimer a {
     color: #676767;
     caret-color: transparent;
}
 .ref-btn {
     min-width: 30px;
     box-sizing: border-box;
     text-align: center;
     display: inline-block;
     font-size: 0.75em;
     line-height: 1.4;
     padding: 4px 10px;
     margin-left: 2px; 
     margin-right: 2px;
     border-radius: 999px;
     text-decoration: none;
     background-color: #f5f5f5;
     margin-bottom: 0px;
     color: #000 !important;
     border: 1px solid #6a6a6a;
     white-space: nowrap;
     vertical-align: baseline;
     transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.chatbox .incoming .ref-group {
    all: revert;
    display: inline;
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
    margin-left: 4px; 
    margin-right: 4px
}
 .ref-btn:link, .ref-btn:visited {
     color: #000 !important;
}
 .ref-btn:hover {
     background-color: var(--chatbot-color-primary);
     color: #ffffff !important;
     transform: scale(1.05);
}
 button.ref-btn-dropdown.ref-open {
     background-color: var(--chatbot-color-primary);
     color: #fff;
}
 .ref-btn:focus-visible {
     background-color: var(--chatbot-color-primary);
     color: #ffffff !important;
     outline: 2px solid #000;
     transform: scale(1.05);
}
 .ref-btn-sq {
     display: inline-flex;
     align-items: center;
     font-size: 0.75em;
     line-height: 1.4;
     padding: 6px 12px;
     border-radius: 999px;
     text-decoration: none;
     background-color: #f5f5f5;
     color: #000 !important;
     border: 1px solid #6a6a6a;
     white-space: normal;
     overflow-wrap: anywhere;
     width: auto;
     max-width: 100%;
     box-sizing: border-box;
     transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
/* Hover ONLY (no black outline) */
 .ref-btn-sq:hover {
     background-color: var(--chatbot-color-primary);
     color: #ffffff !important;
     transform: scale(1.05);
}
/* Focus ONLY (keyboard users) */
 .ref-btn-sq:focus-visible {
     background-color: var(--chatbot-color-primary);
     color: #ffffff !important;
     transform: scale(1.05);
     box-shadow: 0 0 0 3px #000;
    /* black ring only on focus */
}
 .ref-btn-sq:focus {
     outline: none;
}
 .ref-block {
     margin-top: 8px;
}
 .ref-list {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     gap: 6px;
     margin-left: 15px;
}
 .iframe-entry-sentinel {
     position: fixed;
     width: 1px;
     height: 1px;
     overflow: hidden;
     clip-path: inset(50%);
     white-space: nowrap;
}
.ai-disclaimer {
    display: block;
    clear: both;
    margin-top: 12px;
    margin-bottom: 12px;
}
 @media (max-height: 750px) {
     .show-chatbot .show-disclaimer {
         padding: 10px 18px 20px;
    }
     .show-chatbot .show-disclaimer h2 {
         padding: 5px;
         font-size: 1.2rem;
    }
     .show-chatbot .show-disclaimer i {
         width: 32px;
         height: 32px;
         line-height: 32px;
    }
     .show-chatbot .show-disclaimer p {
         margin: 10px 0;
         font-size: 0.8rem;
         line-height: 1.55;
    }
     .show-chatbot .show-disclaimer button {
         padding: 8px 45px;
         margin: 4px 10px;
    }
}
