#chatbot-popup .chatbot-beta-banner {
    background: #f3f2f1;
    color: #0b0c0c;
    border-bottom: 1px solid #b1b4b6;
    padding: 8px 20px;
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 40px;
    box-sizing: border-box;
}

#chatbot-popup .chatbot-beta-banner__tag {
    display: inline-block;
    background: #1d70b8;
    color: #fff;
    font-weight: bold;
    font-size: 0.875em;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px 1px 8px;
    margin-right: 10px;
    border-radius: 2px;
    vertical-align: middle;
}
html.nyc-copilot-chat-scroll-lock,
body.nyc-copilot-chat-scroll-lock {
    overflow: hidden !important;
    height: 100% !important;
}
#chatbot-popup .webchat__send-box__text-box:has(.webchat__send-box-text-box__input:focus) {
    border: 2px solid var(--accent-color, #FFD200);
}
/* Copilot Resume Notice Styles */
#chatbot-popup .copilot-resume-notice {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #fffbe6;
    color: #856404;
    padding: 12px 36px 12px 16px;
    border-radius: 6px 6px 0 0;
    margin: 0 auto;
    font-size: 0.97em;
    border: 1px solid #ffeeba;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 95%;
    min-width: 220px;
    display: flex;
    align-items: center;
}
#chatbot-popup .copilot-resume-message {
    flex: 1;
}
#chatbot-popup .copilot-resume-close {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 0 0 12px;
    display: flex;
    align-items: center;
}
:root {
    --primary-color: #005489;
    --secondary-color: #0072CE;
    --accent-color: #FFD200;
    --background-color: #FFFFFF;
    --text-color: #222222;
    --button-color: #005489;
    --button-accent: #FFD200;
    --button-hover: #005FA3;
    --chat-width: 400px;
    --chat-height: 650px;
    --header-height: 56px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-family: Arial, Helvetica, sans-serif;
}

#chatbot-popup * {
    font-family: var(--font-family);
}

#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    max-height: 90vh;
    width: var(--chat-width);
    height: var(--chat-height);
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.15);
    overflow: hidden;
    opacity: 0;
    transform-origin: bottom right;
    transform: scale(0.95);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 9999;
}
#chatbot-popup.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    border: 1px black solid;
}
#chatbot-popup #chatbot-header {
    background: var(--primary-color);
    padding: 16px 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
#chatbot-popup .header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}
#chatbot-popup .header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
#chatbot-popup .icon-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#chatbot-popup .icon-button:hover {
    background: var(--button-hover);
    color: #FFD200;
}
#chatbot-popup .icon-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
#chatbot-popup #webchat {
    /* If .chatbot-beta-banner is present, double the header height */
    height: calc(100% - var(--header-height) - var(--beta-banner-height, 0px));
    background-color: #F5F7FA;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#chatbot-popup .chatbot-beta-banner {
    --beta-banner-height: 40px;
    height: var(--beta-banner-height);
    display: flex;
    align-items: center;
}

#chatbot-popup .chatbot-beta-banner:not(:empty) ~ #webchat {
    /* When the banner is present, set the CSS variable for height calculation */
    --beta-banner-height: 40px;
}

#chatbot-popup .webchat__send-box__button:hover{
    fill: none;
}
#chatbot-popup .webchat__send-box__button:focus{
    border: 2px solid var(--accent-color, #FFD200)
}

#chatbot-popup .webchat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 1;
}
#chatbot-popup #webchat > div {
    position: relative;
    z-index: 2;
}
#chatbot-popup #webchat .webchat__basic-transcript__content {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    font-size: 16px;
    color: var(--text-color);
}
#chatbot-popup #webchat .webchat__bubble__content {
    padding: 10px 16px !important;
}
#chatbot-popup #webchat .webchat__bubble {
    margin-top: 0px !important;
    margin: 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,51,102,0.08);
}
#chatbot-popup #webchat .webchat__basic-transcript__content ul,
#chatbot-popup #webchat .webchat__basic-transcript__content ol,
#chatbot-popup #webchat .webchat__bubble__content ul,
#chatbot-popup #webchat .webchat__bubble__content ol {
    padding-left: 24px !important;
    margin: 8px 0 !important;
    list-style-position: outside !important;
}
#chatbot-popup #webchat .webchat__basic-transcript__content li,
#chatbot-popup #webchat .webchat__bubble__content li {
    margin: 4px 0 !important;
    padding-left: 4px !important;
}

#chatbot-popup #webchat .webchat__send-box-text-box:focus{
    border: 2px black solid;
}
#chatbot-popup ~ #open-chat,
#open-chat {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--button-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
    transition: background var(--transition-speed) ease-in-out;
    z-index: 998;
}
#chatbot-popup ~ #open-chat.hidden,
#open-chat.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}
#chatbot-popup ~ #open-chat:hover,
#open-chat:hover {
    background: var(--button-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 51, 102, 0.15);
}
#chatbot-popup ~ #open-chat:focus,
#open-chat:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
#chatbot-popup ~ #open-chat svg,
#open-chat svg {
    width: 28px;
    height: 28px;
    color: #fff;
    transition: transform 0.2s ease;
}

#chatbot-popup .webchat__bubble__nub-pad{
    width: 0 !important;
}
@media (max-width: 768px) {
    #chatbot-popup .content-grid {
        grid-template-columns: 1fr;
    }
    #chatbot-popup .content-box.featured {
        grid-column: span 1;
    }
    #chatbot-popup .main-content {
        padding: 24px 16px;
    }
    #chatbot-popup .main-content h1 {
        font-size: 28px;
    }
    #chatbot-popup {
        width: 100%;
        height: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        z-index: 9999;
    }
}

#chatbot-popup .webchat__render-markdown__external-link-icon{
    display: inline;
}

#chatbot-popup .ac-adaptiveCard textarea{
    padding: 3px;
}