/**
 * GNL Virtual Assistant styles
 */
.gnl-header {
    background: #243746;
}
/* Button */
#gnl-chatbot-button {
    position: fixed;
    bottom: 16px;
    right: 16px;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #243746;
}
#gnl-chatbot-button svg {
    width: 24px;
    height: 24px;
    fill: white;
}
@media (min-width: 480px) {
    #gnl-chatbot-button {
        width: 48px;
        height: 48px;
    }
}
#gnl-chatbot-button[aria-expanded="false"] svg {
    width: 18px;
}
@media (min-width: 480px) {
    #gnl-chatbot-button[aria-expanded="false"] svg {
        width: 24px;
    }
}
#gnl-chatbot-button[aria-expanded="true"] svg {
    width: 14px;
}
@media (min-width: 480px) {
    #gnl-chatbot-button[aria-expanded="true"] svg {
        width: 18px;
    }
}
/* Chatbot */
#gnl-chatbot {
    font-family: Lato,Helvetica Neue,Arial,sans-serif;
    font-size: 14px;	/* Updated Aug 15-2025 - ORG 14px*/
    line-height: 1.5;
    display: flex !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    position: fixed;
    width: 425px;
    max-height: calc(100vh - 96px); 
    height: 720px; 
    right: 16px;
    bottom: 80px;
    z-index: 1000;
    will-change: opacity, transform, visibility;
}
#gnl-chatbot.gnl-chatbot-maximized {
    width: 100vw;
    height: 100vh;
    max-height: none;
    right: 0;
    bottom: 0;
    border-radius: 0 !important;
}
#gnl-chatbot[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}
/* Header */
#gnl-chatbot .gnl-chatbot-header {
    display: flex;
    padding: 0 16px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
#gnl-chatbot .gnl-chatbot-header .gnl-brand {
    display: flex;
    flex: auto;
    align-items: center;
    gap: 0 16px;
}
/* @media (min-width: 840px) {
    #gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand {
        gap: 0 32px;
    }
} */
#gnl-chatbot.gnl-chatbot-minimized .gnl-chatbot-header .gnl-brand .gnl-logo-lg,
#gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand .gnl-logo-lg {
    display: none;
}
#gnl-chatbot.gnl-chatbot-minimized .gnl-chatbot-header .gnl-brand .gnl-logo-sm,
#gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand .gnl-logo-sm {
    display: block;
    margin: 16px 0 16px -2px;
}
@media (min-width: 840px) {
    #gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand .gnl-logo-lg {
        display: block;
        margin: 32px 0 20px;
    }
    #gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand .gnl-logo-sm {
        display: none;
    }
}
#gnl-chatbot .gnl-chatbot-header .gnl-brand .gnl-logo-lg img {
    margin: 0;
}
#gnl-chatbot .gnl-chatbot-header .gnl-brand .gnl-logo-sm img {
    width: 36px;
    height: 36px;
    background-color: #243746;
    border-radius: 50%;
    border: 2px solid #fff;
    margin: 0;
}
#gnl-chatbot .gnl-chatbot-header .gnl-brand #gnl-chatbot-title {
    font-size: 20px;
    margin: 0;
}
@media (min-width: 840px) {
    #gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header .gnl-brand #gnl-chatbot-title {
        margin-top: 4px;
    }
}
.gnl-chatbot-title-beta {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-left: 4px;
}
#gnl-chatbot-size-button,
#gnl-chatbot-close-button {
    width: 18px;
    height: 18px;
    line-height: 0;
    padding: 0;
    background: transparent;
    border: none;
}
#gnl-chatbot-close-button {
    margin-left: 16px;
}
#gnl-chatbot.gnl-chatbot-maximized #gnl-chatbot-size-button svg {
    transform: rotate(180deg);
}
#gnl-chatbot.gnl-chatbot-maximized .gnl-chatbot-header  {
    border-radius: 0 !important;
}
/* Body */
#gnl-chatbot #gnl-chatbot-body {
    height: 100%;
    overflow: hidden;
}
#gnl-chatbot [class*="webchat__basic-transcript"] {
    border: none !important;
    outline: none !important;
    /* TODO: Add better focus styles */
}
/* Avatar */
#gnl-chatbot .webchat__stacked-layout__avatar-gutter {
    justify-content: flex-start;
}
/* Typing indicator */
#gnl-chatbot .typing-indicator-wrapper {
    display: flex;
    gap: 16px;
}
#gnl-chatbot .typing-indicator-avatar {
    background-color: #243746;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
#gnl-chatbot .chat-nub {
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #f1f3f4; 
    border-left: 0;
    border-top: 0;
}
#gnl-chatbot .webchat__typingIndicator {
    position: relative;
    background-color: #f1f3f4; 
    border-radius: 6px;
    border-top-left-radius: 0;
    width: 72px;
    height: 40px;
}
#gnl-chatbot .webchat__typingIndicator {
    background-image: none !important;
}
#gnl-chatbot .webchat__typingIndicator + div {
    display: none;
}
#gnl-chatbot .webchat__typingIndicator::before,
#gnl-chatbot .webchat__typingIndicator::after,
#gnl-chatbot .webchat__typingIndicator::marker {
    content: '';
    position: absolute;
    top: 16px;
    background-color: #5f6368; 
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: typingIndicatorBlink 1.4s infinite ease-in-out;
}
#gnl-chatbot .webchat__typingIndicator::before {
    left: 16px;
    animation-delay: 0s;
}
#gnl-chatbot .webchat__typingIndicator::after {
    left: 32px;
    animation-delay: 0.2s;
}
#gnl-chatbot .webchat__typingIndicator .third-dot {
    position: absolute;
    top: 16px;
    left: 48px;
    background-color: #5f6368;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: typingIndicatorBlink 1.4s infinite ease-in-out;
    animation-delay: 0.4s;
}
@keyframes typingIndicatorBlink {
    0%, 80%, 100% {
        opacity: 0.2;
    }
    40% {
        opacity: 1;
    }
}
/* Text content */
#gnl-chatbot .webchat__bubble--from-user .webchat__text-content {
    padding-top: 7px;
    padding-bottom: 7px;
}
#gnl-chatbot .webchat__text-content ol,
#gnl-chatbot .webchat__text-content ul {
    padding-left: 32px;
    margin: 16px 0;
}
#gnl-chatbot .webchat__text-content ol ol,
#gnl-chatbot .webchat__text-content ol ul,
#gnl-chatbot .webchat__text-content ul ol,
#gnl-chatbot .webchat__text-content ul ul {
    margin: 16px 0;
}
/* Suggested actions */
#gnl-chatbot .webchat__suggested-actions__focus-indicator {
    display: none;
}
#gnl-chatbot .webchat__suggested-actions__stack {
    display: flex;
    flex-flow: column;
    align-items: self-end;
    overflow: visible;
    row-gap: 16px;
    padding: 0;
}
#gnl-chatbot .webchat__suggested-actions__item-box {
    padding: 0;
}
#gnl-chatbot .webchat__suggested-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px;
    position: relative;
}
#gnl-chatbot .webchat__suggested-action {
    color: #243746;
    padding: 6px 16px;
    border-top-right-radius: 0;
}
#gnl-chatbot .webchat__suggested-action:hover {
    color: #fff;
    background-color: #243746;
    border-color: #243746;
}
#gnl-chatbot .webchat__suggested-actions::after {
    content: "";
    display: inline-block;
    background: #fff url('https://assets.gov.nl.ca/images/user-avatar.svg') no-repeat center/cover;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
#gnl-chatbot .webchat__suggested-actions__button {
    position: relative;
    overflow: visible; 
}
#gnl-chatbot .webchat__suggested-actions__button::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #fff;
    z-index: 2;
}
#gnl-chatbot .webchat__suggested-actions__button:hover::after {
    border-left-color: #243746;
}
#gnl-chatbot .webchat__suggested-actions__button::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -10px;
    width: 0;
    height: 0;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #243746;
    z-index: 1;
}
#gnl-chatbot .webchat__suggested-actions__button:hover::before {
    border-left-color: #243746;
}
/* Send box */
#gnl-chatbot .webchat__send-box__main {
    padding: 16px;
}
#gnl-chatbot .webchat__upload-button {
    width: 32px;
    height: 32px;
}
#gnl-chatbot .webchat__icon-button {
    border-radius: 50%;
}
#gnl-chatbot .webchat__icon-button__shade {
    background-color: transparent;
    border-radius: 0;
    inset: 0;
}
#gnl-chatbot .webchat__attachment-icon svg {
    display: none !important;
}
#gnl-chatbot .webchat__attachment-icon {
    width: 22px;
    height: 24px;
    background-color: #606469;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21.18 24"><path fill="black" d="M17.34,3.58c-1.18-1.18-3.08-1.18-4.26,0L4.22,12.44c-2.03,2.03-2.03,5.31,0,7.34,2.03,2.03,5.31,2.03,7.34,0l7.32-7.32c.52-.52,1.38-.52,1.91,0s.52,1.38,0,1.91l-7.32,7.32c-3.08,3.08-8.07,3.08-11.15,0s-3.08-8.07,0-11.15L11.17,1.67c2.23-2.23,5.84-2.23,8.07,0,2.23,2.23,2.23,5.84,0,8.07l-8.48,8.48c-1.38,1.38-3.61,1.38-4.99,0s-1.38-3.61,0-4.99l6.94-6.94c.52-.52,1.38-.52,1.91,0s.52,1.38,0,1.91l-6.94,6.94c-.32.32-.32.85,0,1.18s.85.32,1.18,0l8.48-8.48c1.18-1.18,1.18-3.08,0-4.26h0Z"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21.18 24"><path fill="black" d="M17.34,3.58c-1.18-1.18-3.08-1.18-4.26,0L4.22,12.44c-2.03,2.03-2.03,5.31,0,7.34,2.03,2.03,5.31,2.03,7.34,0l7.32-7.32c.52-.52,1.38-.52,1.91,0s.52,1.38,0,1.91l-7.32,7.32c-3.08,3.08-8.07,3.08-11.15,0s-3.08-8.07,0-11.15L11.17,1.67c2.23-2.23,5.84-2.23,8.07,0,2.23,2.23,2.23,5.84,0,8.07l-8.48,8.48c-1.38,1.38-3.61,1.38-4.99,0s-1.38-3.61,0-4.99l6.94-6.94c.52-.52,1.38-.52,1.91,0s.52,1.38,0,1.91l-6.94,6.94c-.32.32-.32.85,0,1.18s.85.32,1.18,0l8.48-8.48c1.18-1.18,1.18-3.08,0-4.26h0Z"/></svg>') no-repeat center;
    mask-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#gnl-chatbot .webchat__attachment-icon:hover,
#gnl-chatbot .webchat__attachment-icon:focus {
    background-color: #212326;
}
#gnl-chatbot .webchat__icon-button__keyboard-focus-indicator {
    inset: 0;
}
#gnl-chatbot .webchat__send-box-text-box {
    font-family: Lato, sans-serif;
    padding: 0;
    margin: 0 16px;
}
#gnl-chatbot .webchat__send-box-text-box__input {
    text-align: right;
    border-color: transparent;
    box-shadow: none;  
    padding-bottom: 2px;
}
#gnl-chatbot .webchat__send-icon {
    display: none !important;
}
#gnl-chatbot .webchat__send-button {
    width: 32px;
    height: 32px;
    background-color: #606469;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="black" d="M16,0C7.17,0,0,7.17,0,16s7.17,16,16,16,16-7.17,16-16S24.83,0,16,0ZM23.41,8.61l-2.17,14.09c-.05.33-.25.62-.54.78-.29.16-.64.18-.95.05l-4.05-1.68-2.32,2.51c-.3.33-.78.44-1.19.27-.42-.16-.69-.57-.69-1.01v-2.83c0-.14.05-.26.14-.37l5.68-6.19c.2-.21.19-.54-.01-.74-.2-.2-.53-.22-.74-.02l-6.89,6.12-2.99-1.5c-.36-.18-.59-.54-.6-.94-.01-.4.2-.77.55-.97l15.17-8.67c.36-.21.81-.19,1.15.05.34.24.52.65.46,1.06Z"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="black" d="M16,0C7.17,0,0,7.17,0,16s7.17,16,16,16,16-7.17,16-16S24.83,0,16,0ZM23.41,8.61l-2.17,14.09c-.05.33-.25.62-.54.78-.29.16-.64.18-.95.05l-4.05-1.68-2.32,2.51c-.3.33-.78.44-1.19.27-.42-.16-.69-.57-.69-1.01v-2.83c0-.14.05-.26.14-.37l5.68-6.19c.2-.21.19-.54-.01-.74-.2-.2-.53-.22-.74-.02l-6.89,6.12-2.99-1.5c-.36-.18-.59-.54-.6-.94-.01-.4.2-.77.55-.97l15.17-8.67c.36-.21.81-.19,1.15.05.34.24.52.65.46,1.06Z"/></svg>') no-repeat center;
    mask-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
}
#gnl-chatbot .webchat__send-button:hover,
#gnl-chatbot .webchat__send-button:focus {
    background-color: #212326;
}
/* Definitions */
#gnl-chatbot .webchat__link-definitions__list-item-box,
#gnl-chatbot .webchat__link-definitions__badge {
    background-color: transparent;
    border: none;
    padding: 0;
}
#gnl-chatbot .webchat__link-definitions__list-item-body {
    padding: 0;
}
#gnl-chatbot .webchat__link-definitions__badge {
    margin: 0;
}
/* Hide elements */
#gnl-chatbot a:not([class^='a2a']):not(.button):not([href$='.pdf'])[target='_blank']::after {
    display: none !important;
}
#gnl-chatbot .webchat__basic-transcript .webchat__basic-transcript__filler {
    display: none;
}

/* #gnl-chatbot.gnl-chatbot-open {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition-delay: 0s !important;
} */


/* Chatbot speech balloon */

.gnl-chatbot-launcher-container {
    display: flex;
    align-items: flex-start;
}

/* Make the speech balloon float above the button at bottom right of the viewport */
#gnl-chatbot-speech-balloon {
    position: fixed;
    right: 80px; 
    bottom: 16px; 
    background: #F1F3F4;
    color: #5F6368;
    border-radius: 4px;
    padding: 8px 16px;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
    font-size: 0.8rem;
    z-index: 1001;
    white-space: normal;
    cursor: pointer;
    width: 220px;
    min-width: 0;            
    max-width: 90vw;         /* Responsive on small screens */
    display: inline-block;
    transition: opacity 0.2s;
    word-break: break-word;  /* Break long words if needed */
}

/* Pointed edge (tail) at lower right, pointing to the button */
#gnl-chatbot-speech-balloon::after {
    content: "";
    position: absolute;
    right: -12px;
    bottom: 0px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 0px solid transparent;
    border-left: 16px solid #F1F3F4;
}

/* Welcome message */
.gnl-chatbot-intro-message {
	display: flex;
	flex-flow: row;
    /* gap: 16px; */
}

.intro-bot-img {
	border-radius: 50%;
    border: 1px solid #243746;
    background: #243746;
    width: 32px;
    height: 32px;
    margin: 16px 16px;
}

.intro-user-img {
	border-radius: 50%;
    background: #FFFFFF;
    width: 32px;
    height: 32px;
}

.agree-button {
    text-align:right;
    display: flex;
    justify-content: flex-end;
    position: relative;
    gap: 16px;
    padding: 16px;
}

/* #gnl-chatbot-agree {
    margin-top: 0em;
    margin-bottom: 2em;
    background: #FFFFFF;
    padding: 4px 8px;
    border-radius: 6px;
    width: 120px;
    height: 40px;
    color: #243746;
    border: 1px solid #243746;
    border-top-right-radius: 0;
    position: relative;
} */

#gnl-chatbot-agree {
    color: #243746;
    padding: 8px 16px 9px;
    border: 1px solid #243746;
    cursor: pointer;
    border-radius: 6px;
    border-top-right-radius: 0;
    background: #FFFFFF;
}

#gnl-chatbot-agree:hover {
    color: #fff;
    background-color: #243746;
    border-color: #243746;
}

#gnl-chatbot-agree::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 56px;
    width: 0;
    height: 0;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #243746;
    z-index: 1;
}

#gnl-chatbot-agree::after {
    content: '';
    position: absolute;
    top: 17px;
    right: 58px;
    width: 0;
    height: 0;
    border-bottom: 9px solid transparent;
    border-left: 9px solid #fff;
    z-index: 2;
}

#gnl-chatbot-agree:hover::after {
    /* display: none; */
    border-left: 9px solid #243746;
}

/* #gnl-chatbot-agree::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 48px;
    width: 0;
    height: 0;
    border-bottom: 16px solid #fff;
    border-left: 16px solid transparent;
    z-index: 2;
} */

/* #gnl-chatbot-agree::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 16,0 0,16" fill="white" stroke="%23243746" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="16" stroke="white" stroke-width="1.2"/></svg>') no-repeat center/contain;
    position: absolute;
    top: -1px;
    right: -20px;
} */

/* #gnl-chatbot-agree::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 16,0 0,16" fill="white" stroke="%23243746" stroke-width="1.5"/><line x1="0" y1="0" x2="0" y2="16" stroke="white" stroke-width="2"/></svg>') no-repeat center/contain;
    position: absolute;
    top: -1px;
    right: -12px;
}

#gnl-chatbot-agree:hover::after {
    background: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 16,0 0,16" fill="%23243746" stroke="%23243746" stroke-width="1"/><line x1="0" y1="0" x2="0" y2="16" stroke="%23243746" stroke-width="1"/></svg>') no-repeat center/contain;
} */

.gnl-chatbot-welcome-message {
    padding: 16px;
    margin: 16px 1em 2em 1em;
    text-align: left;
    background: #f1f3f4;
    border: 1px solid #f1f3f4;
    color: #5f6368;
    border-radius: 6px;
    width: fit-content;
    border-top-left-radius: 0px;
}

.gnl-chatbot-welcome-message::before {
	content: "";
    position: relative;
    right: 28px;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 16px solid #f1f3f4;
    border-left: 16px solid transparent;
}





@media (max-width: 479px) {
    .gnl-chatbot-minimized {
        left: 16px;
        bottom: 60px !important;
        width: auto !important;
    }
    
    .gnl-chatbot-maximized {
        width: 100vw;
        left: 0;
    }
    
    #gnl-chatbot-speech-balloon {
        font-size: 0.6rem;
        right: 64px;
    }
}



.webchat__render-markdown__external-link-icon {
    display: none;
}

/* @media (min-width: 479) {
    .gnl-chatbot-intro-message {
        display: flex;
    }
} */
