@layer properties {
    @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {

        *,
        :before,
        :after,
        ::backdrop {
            --tw-rotate-x: initial;
            --tw-rotate-y: initial;
            --tw-rotate-z: initial;
            --tw-skew-x: initial;
            --tw-skew-y: initial;
            --tw-border-style: solid;
            --tw-blur: initial;
            --tw-brightness: initial;
            --tw-contrast: initial;
            --tw-grayscale: initial;
            --tw-hue-rotate: initial;
            --tw-invert: initial;
            --tw-opacity: initial;
            --tw-saturate: initial;
            --tw-sepia: initial;
            --tw-drop-shadow: initial;
            --tw-drop-shadow-color: initial;
            --tw-drop-shadow-alpha: 100%;
            --tw-drop-shadow-size: initial;
            --tw-backdrop-blur: initial;
            --tw-backdrop-brightness: initial;
            --tw-backdrop-contrast: initial;
            --tw-backdrop-grayscale: initial;
            --tw-backdrop-hue-rotate: initial;
            --tw-backdrop-invert: initial;
            --tw-backdrop-opacity: initial;
            --tw-backdrop-saturate: initial;
            --tw-backdrop-sepia: initial;
            --tw-ease: initial
        }
    }
}

@layer theme {

    :root,
    :host {
        --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        --color-blue-500: oklch(62.3% .214 259.815);
        --color-white: #fff;
        --spacing: .25rem;
        --ease-out: cubic-bezier(0, 0, .2, 1);
        --default-transition-duration: .15s;
        --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        --default-font-family: var(--font-sans);
        --default-mono-font-family: var(--font-mono)
    }
}

@layer base {

    *,
    :after,
    :before,
    ::backdrop {
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
    }

    ::file-selector-button {
        box-sizing: border-box;
        border: 0 solid;
        margin: 0;
        padding: 0
    }

    html,
    :host {
        -webkit-text-size-adjust: 100%;
        tab-size: 4;
        line-height: 1.5;
        font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
        font-feature-settings: var(--default-font-feature-settings, normal);
        font-variation-settings: var(--default-font-variation-settings, normal);
        -webkit-tap-highlight-color: transparent
    }

    hr {
        height: 0;
        color: inherit;
        border-top-width: 1px
    }

    abbr:where([title]) {
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: inherit;
        font-weight: inherit
    }

    a {
        color: inherit;
        -webkit-text-decoration: inherit;
        text-decoration: inherit
    }

    b,
    strong {
        font-weight: bolder
    }

    code,
    kbd,
    samp,
    pre {
        font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
        font-feature-settings: var(--default-mono-font-feature-settings, normal);
        font-variation-settings: var(--default-mono-font-variation-settings, normal);
        font-size: 1em
    }

    small {
        font-size: 80%
    }

    sub,
    sup {
        vertical-align: baseline;
        font-size: 75%;
        line-height: 0;
        position: relative
    }

    sub {
        bottom: -.25em
    }

    sup {
        top: -.5em
    }

    table {
        text-indent: 0;
        border-color: inherit;
        border-collapse: collapse
    }

    :-moz-focusring {
        outline: auto
    }

    progress {
        vertical-align: baseline
    }

    summary {
        display: list-item
    }

    ol,
    ul,
    menu {
        list-style: none
    }

    img,
    svg,
    video,
    canvas,
    audio,
    iframe,
    embed,
    object {
        vertical-align: middle;
        display: block
    }

    img,
    video {
        max-width: 100%;
        height: auto
    }

    button,
    input,
    select,
    optgroup,
    textarea {
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        opacity: 1;
        background-color: #0000;
        border-radius: 0
    }

    ::file-selector-button {
        font: inherit;
        font-feature-settings: inherit;
        font-variation-settings: inherit;
        letter-spacing: inherit;
        color: inherit;
        opacity: 1;
        background-color: #0000;
        border-radius: 0
    }

    :where(select:is([multiple], [size])) optgroup {
        font-weight: bolder
    }

    :where(select:is([multiple], [size])) optgroup option {
        padding-inline-start: 20px
    }

    ::file-selector-button {
        margin-inline-end: 4px
    }

    ::placeholder {
        opacity: 1
    }

    @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
        ::placeholder {
            color: currentColor
        }

        @supports (color:color-mix(in lab, red, red)) {
            ::placeholder {
                color: color-mix(in oklab, currentcolor 50%, transparent)
            }
        }
    }

    textarea {
        resize: vertical
    }

    ::-webkit-search-decoration {
        -webkit-appearance: none
    }

    ::-webkit-date-and-time-value {
        min-height: 1lh;
        text-align: inherit
    }

    ::-webkit-datetime-edit {
        display: inline-flex
    }

    ::-webkit-datetime-edit-fields-wrapper {
        padding: 0
    }

    ::-webkit-datetime-edit {
        padding-block: 0
    }

    ::-webkit-datetime-edit-year-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-month-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-day-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-hour-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-minute-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-second-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-millisecond-field {
        padding-block: 0
    }

    ::-webkit-datetime-edit-meridiem-field {
        padding-block: 0
    }

    :-moz-ui-invalid {
        box-shadow: none
    }

    button,
    input:where([type=button], [type=reset], [type=submit]) {
        appearance: button
    }

    ::file-selector-button {
        appearance: button
    }

    ::-webkit-inner-spin-button {
        height: auto
    }

    ::-webkit-outer-spin-button {
        height: auto
    }

    [hidden]:where(:not([hidden=until-found])) {
        display: none !important
    }
}

@layer components;

@layer utilities {
    .relative {
        position: relative
    }

    .container {
        width: 100%
    }

    @media (min-width:40rem) {
        .container {
            max-width: 40rem
        }
    }

    @media (min-width:48rem) {
        .container {
            max-width: 48rem
        }
    }

    @media (min-width:64rem) {
        .container {
            max-width: 64rem
        }
    }

    @media (min-width:80rem) {
        .container {
            max-width: 80rem
        }
    }

    @media (min-width:96rem) {
        .container {
            max-width: 96rem
        }
    }

    .flex {
        display: flex
    }

    .inline {
        display: inline
    }

    .transform {
        transform: var(--tw-rotate-x, )var(--tw-rotate-y, )var(--tw-rotate-z, )var(--tw-skew-x, )var(--tw-skew-y, )
    }

    .border {
        border-style: var(--tw-border-style);
        border-width: 1px
    }

    .bg-blue-500 {
        background-color: var(--color-blue-500)
    }

    .p-4 {
        padding: calc(var(--spacing)*4)
    }

    .text-white {
        color: var(--color-white)
    }

    .filter {
        filter: var(--tw-blur, )var(--tw-brightness, )var(--tw-contrast, )var(--tw-grayscale, )var(--tw-hue-rotate, )var(--tw-invert, )var(--tw-saturate, )var(--tw-sepia, )var(--tw-drop-shadow, )
    }

    .backdrop-filter {
        -webkit-backdrop-filter: var(--tw-backdrop-blur, )var(--tw-backdrop-brightness, )var(--tw-backdrop-contrast, )var(--tw-backdrop-grayscale, )var(--tw-backdrop-hue-rotate, )var(--tw-backdrop-invert, )var(--tw-backdrop-opacity, )var(--tw-backdrop-saturate, )var(--tw-backdrop-sepia, );
        backdrop-filter: var(--tw-backdrop-blur, )var(--tw-backdrop-brightness, )var(--tw-backdrop-contrast, )var(--tw-backdrop-grayscale, )var(--tw-backdrop-hue-rotate, )var(--tw-backdrop-invert, )var(--tw-backdrop-opacity, )var(--tw-backdrop-saturate, )var(--tw-backdrop-sepia, )
    }

    .transition {
        transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
        transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
        transition-duration: var(--tw-duration, var(--default-transition-duration))
    }

    .ease-out {
        --tw-ease: var(--ease-out);
        transition-timing-function: var(--ease-out)
    }
}

:root,
.chatbot-widget {
    --chatbot-primary: #3b82f6;
    --chatbot-secondary: #6b7280;
    --chatbot-accent: #10b981;
    --chatbot-neutral: #f3f4f6;
    --chatbot-primary-hover: #2563eb;
    --chatbot-primary-light: #93c5fd;
    --chatbot-secondary-light: #9ca3af;
    --chatbot-primary-rgb: 59, 130, 246;
    --chatbot-secondary-rgb: 107, 114, 128
}

.chatbot-widget {
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5
}

.chat-bubble {
    background: var(--chatbot-primary, #ffffff);
    color: #fff;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    font-size: 24px;
    transition: all .3s;
    animation: .3s ease-out bubbleAppear;
    display: flex;
    position: fixed;
    box-shadow: 0 4px 12px #00000026
}

.chat-bubble:hover {
    background: var(--chatbot-primary-hover, #ffffff);
    transform: scale(1.05);
    box-shadow: 0 6px 20px #0003
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: scale(.8)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.chat-window {
    width: 400px;
    height: 80%;
    animation: .3s ease-out windowSlideIn;
    border: none !important
}

@keyframes windowSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px)scale(.95)
    }

    to {
        opacity: 1;
        transform: translateY(0)scale(1)
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--chatbot-primary)0%, var(--chatbot-primary-hover)100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    padding: 12px 16px
}

.chat-header-content {
    justify-content: space-between;
    align-items: center;
    display: flex
}

.chat-title {
    align-items: center;
    gap: 8px;
    font-weight: 600;
    display: flex
}

.chat-icon {
    font-size: 18px
}

.chat-name {
    font-size: 16px
}

.chat-actions {
    gap: 8px;
    display: flex
}

.chat-action-btn {
    color: #fff;
    cursor: pointer;
    background: #fff3;
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    transition: all .2s;
    display: flex
}

.chat-action-btn:hover {
    background: #ffffff4d;
    transform: scale(1.1)
}

.chat-messages {
    background: #f8fafc;
    flex: 1;
    padding: 16px;
    overflow-y: auto
}

.chat-input-container {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    padding: 12px 16px
}

.chat-footer {
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    padding: 8px 16px
}

.chat-branding {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500
}

.message-list {
    flex-direction: column;
    gap: 8px;
    display: flex
}

.welcome-message {
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #00293f;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 24px 16px
}

.welcome-icon {
    text-align: center;
    margin-bottom: 12px;
    font-size: 48px;
    display: block
}

.welcome-icon img {
    object-fit: contain;
    border: 3px solid var(--chatbot-primary);
    background: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    padding: 4px;
    display: block;
    box-shadow: 0 2px 8px #0000001a
}

.welcome-icon img[src*=".svg"] {
    object-fit: contain;
    background: 0 0;
    border: none;
    padding: 0
}

.welcome-text h3 {
    color: #0369a1;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600
}

.welcome-text p {
    color: #0c4a6e;
    margin: 0;
    font-size: 14px
}

.typing-indicator {
    background: #f3f4f6;
    border-radius: 12px 12px 12px 4px;
    align-items: center;
    gap: 8px;
    max-width: 120px;
    margin-right: auto;
    padding: 8px 12px;
    display: flex
}

.typing-dots {
    gap: 4px;
    display: flex
}

.typing-dots span {
    background: #9ca3af;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    animation: 1.4s ease-in-out infinite typingBounce
}

.typing-dots span:first-child {
    animation-delay: -.32s
}

.typing-dots span:nth-child(2) {
    animation-delay: -.16s
}

@keyframes typingBounce {

    0%,
    80%,
    to {
        opacity: .5;
        transform: scale(.8)
    }

    40% {
        opacity: 1;
        transform: scale(1)
    }
}

.typing-text {
    color: #6b7280;
    font-size: 12px;
    font-style: italic
}

.loading-indicator {
    background: #f3f4f6;
    border-radius: 12px 12px 12px 4px;
    align-items: center;
    gap: 8px;
    max-width: 140px;
    margin-right: auto;
    padding: 8px 12px;
    display: flex
}

.loading-spinner {
    border: 2px solid #e5e7eb;
    border-top-color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: 1s linear infinite spin
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loading-indicator span {
    color: #6b7280;
    font-size: 12px
}

.message {
    margin-bottom: 12px;
    animation: .3s ease-out messageSlideIn
}

.message-container {
    align-items: flex-start;
    max-width: 100%;
    display: flex
}

.message-content {
    flex: 1;
    min-width: 0
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.message-text {
    margin-bottom: 4px;
    line-height: 1.4
}

.message-content.error {
    align-items: center;
    gap: 6px;
    display: flex
}

.error-icon {
    font-size: 14px
}

.message-text p {
    margin: 0 0 8px;
    line-height: 1.5
}

.message-link {
    color: var(--chatbot-primary);
    word-break: break-all;
    text-decoration: underline;
    transition: color .2s
}

.message-link:hover {
    color: var(--chatbot-primary-hover);
    text-decoration: underline
}

.message-text strong {
    font-weight: 600
}

.message-text em {
    font-style: italic
}

.message-text del {
    opacity: .7;
    text-decoration: line-through
}

.inline-code {
    color: #374151;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: Monaco, Menlo, Ubuntu Mono, monospace;
    font-size: .9em
}

.code-block {
    color: #f9fafb;
    background: #1f2937;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px;
    font-family: Monaco, Menlo, Ubuntu Mono, monospace;
    font-size: .9em;
    line-height: 1.4;
    overflow-x: auto
}

.code-block code {
    color: inherit;
    background: 0 0;
    padding: 0
}

.message-list {
    margin: 12px 0;
    padding-left: 20px;
    list-style: none
}

.message-list li {
    margin: 6px 0;
    padding-left: 20px;
    line-height: 1.5;
    position: relative
}

.message-list li:before {
    content: "•";
    color: var(--chatbot-secondary);
    font-size: 1.2em;
    font-weight: 700;
    position: absolute;
    left: 0
}

.message-list ol {
    padding-left: 20px;
    list-style: decimal
}

.message-list ol li {
    padding-left: 0
}

.message-list ol li:before {
    display: none
}

.message-heading {
    margin: 12px 0 8px;
    font-weight: 600;
    line-height: 1.3
}

.message-heading:first-child {
    margin-top: 0
}

.message-text h1.message-heading {
    color: #1f2937;
    font-size: 1.4em
}

.message-text h2.message-heading {
    color: #374151;
    font-size: 1.2em
}

.message-text h3.message-heading {
    color: #4b5563;
    font-size: 1.1em
}

.message-quote {
    border-left: 4px solid var(--chatbot-primary);
    color: var(--chatbot-secondary);
    background: var(--chatbot-neutral);
    border-radius: 0 8px 8px 0;
    margin: 8px 0;
    padding: 8px 12px;
    font-style: italic
}

.bubble-icon img,
.chat-icon img {
    object-fit: cover;
    border-radius: 50%
}

.bubble-icon img[src*=".svg"],
.chat-icon img[src*=".svg"] {
    object-fit: contain;
    background: 0 0;
    border: none
}

.welcome-avatar img {
    object-fit: cover;
    border: 3px solid var(--chatbot-primary);
    border-radius: 50%
}

.message-user .message-text {
    background-color: var(--chatbot-primary) !important;
    color: #fff !important
}

.message-user .message-link {
    color: #fff;
    text-decoration: underline
}

.message-user .message-link:hover {
    color: #e0e7ff
}

.message-user .inline-code {
    color: #fff;
    background: #fff3
}

.message-user .code-block {
    color: #fff;
    background: #0000004d
}

.message-user .message-quote {
    color: #e0e7ff;
    background: #ffffff1a;
    border-left-color: #fff
}

.message-text br {
    content: "";
    margin: 4px 0;
    display: block
}

.message-text p {
    margin: 8px 0
}

.message-text p:first-child {
    margin-top: 0
}

.message-text p:last-child {
    margin-bottom: 0
}

.message-text p+.message-list,
.message-text .message-list+p {
    margin-top: 12px
}

.message-timestamp {
    opacity: .7;
    margin-top: 2px;
    font-size: 10px
}

.message-status {
    opacity: .7;
    font-size: 10px;
    position: absolute;
    bottom: 2px;
    right: 8px
}

.message-input-container {
    position: relative
}

.input-wrapper {
    background: #fff;
    border-radius: 20px;
    align-items: flex-end;
    gap: 8px;
    padding: 8px;
    display: flex;
    box-shadow: 0 2px 8px #0000001a
}

.message-input {
    resize: none;
    background: 0 0;
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4
}

.message-input::placeholder {
    color: #9ca3af
}

.message-input:disabled {
    opacity: .6;
    cursor: not-allowed
}

.input-actions {
    align-items: center;
    gap: 4px;
    display: flex
}

.action-btn {
    cursor: pointer;
    color: #6b7280;
    background: 0 0;
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    transition: all .2s;
    display: flex
}

.action-btn:hover {
    color: #374151;
    background: #f3f4f6
}

.action-btn.recording {
    color: #fff;
    background: #ef4444;
    animation: 1.5s infinite pulse
}

@keyframes pulse {
    50% {
        opacity: .5
    }
}

.send-btn {
    background: var(--chatbot-neutral);
    cursor: pointer;
    width: 32px;
    height: 32px;
    color: var(--chatbot-secondary);
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    transition: all .2s;
    display: flex
}

.send-btn.active {
    background: var(--chatbot-primary);
    color: #fff;
    transform: scale(1.05)
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1)
}

.send-btn:disabled {
    cursor: not-allowed;
    opacity: .6
}

.send-spinner {
    border: 2px solid #ffffff4d;
    border-top-color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: 1s linear infinite spin
}

.recording-indicator {
    color: #fff;
    background: #ef4444;
    border-radius: 12px;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12px;
    animation: .3s ease-out slideDown;
    display: flex;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%)
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translate(-50%)translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translate(-50%)translateY(0)
    }
}

.recording-dot {
    background: #fff;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: 1s infinite blink
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    to {
        opacity: .3
    }
}

.chat-messages::-webkit-scrollbar {
    width: 6px
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8
}

@media (max-width:768px) {
    .chat-bubble {
       
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important
    }

    .chat-window {
        width: calc(100vw - 40px) !important;
        max-width: none !important;
        height: calc(100vh - 120px) !important;
        max-height: none !important;
        position: fixed !important;
        inset: 20px !important
    }

    .input-wrapper {
        padding: 6px
    }

    .action-btn,
    .send-btn {
        width: 36px;
        height: 36px;
        font-size: 18px
    }

    .message-input {
        font-size: 16px
    }
}

.quick-replies {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 0;
    display: flex
}

.quick-reply-btn {
    background: var(--chatbot-neutral);
    border: 1px solid var(--chatbot-secondary-light);
    color: var(--chatbot-secondary);
    cursor: pointer;
    border-radius: 20px;
    max-width: none;
    padding: 8px 12px;
    font-size: 13px;
    transition: all .2s;
    overflow: hidden
}

.quick-reply-btn:hover {
    background: var(--chatbot-primary);
    border-color: var(--chatbot-primary);
    color: #fff;
    transform: translateY(-1px)
}

.quick-reply-btn:active {
    transform: translateY(0)
}

.clickable-message {
    cursor: pointer;
    background: rgba(var(--chatbot-primary-rgb), .1);
    border: 1px solid rgba(var(--chatbot-primary-rgb), .2);
    border-radius: 8px;
    padding: 4px 8px;
    transition: all .2s;
    display: inline-block
}

.clickable-message:hover {
    background: rgba(var(--chatbot-primary-rgb), .2);
    border-color: rgba(var(--chatbot-primary-rgb), .4);
    transform: translateY(-1px)
}

.clickable-message:active {
    transform: translateY(0)
}

.quick-reply-message {
    border-left: 3px solid #3b82f6;
    padding-left: 8px
}

.queue-indicator {
    background: #f3f4f6;
    border-radius: 12px 12px 12px 4px;
    align-items: center;
    gap: 8px;
    max-width: 180px;
    margin: 8px auto 8px 0;
    padding: 8px 12px;
    animation: .3s ease-out messageSlideIn;
    display: flex
}

.progressive-state-indicator {
    border: 1px solid rgba(var(--chatbot-primary-rgb), .2);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px 12px 12px 4px;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    margin: 8px auto 8px 0;
    padding: 10px 14px;
    animation: .3s ease-out messageSlideIn;
    display: flex;
    box-shadow: 0 2px 8px #0000000d
}

.progressive-state-indicator .state-icon {
    font-size: 16px;
    animation: 2s ease-in-out infinite iconPulse
}

.progressive-state-indicator .state-text {
    color: #0c4a6e;
    font-size: 13px;
    font-style: italic;
    font-weight: 500
}

.progressive-state-indicator .state-dots {
    gap: 3px;
    display: flex
}

.progressive-state-indicator .state-dots span {
    background: var(--chatbot-primary);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    animation: 1.4s ease-in-out infinite stateBounce
}

.progressive-state-indicator .state-dots span:first-child {
    animation-delay: -.32s
}

.progressive-state-indicator .state-dots span:nth-child(2) {
    animation-delay: -.16s
}

@keyframes iconPulse {

    0%,
    to {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .8;
        transform: scale(1.1)
    }
}

@keyframes stateBounce {

    0%,
    80%,
    to {
        opacity: .5;
        transform: scale(.8)
    }

    40% {
        opacity: 1;
        transform: scale(1.2)
    }
}

.queue-dots {
    gap: 3px;
    display: flex
}

.queue-dots span {
    background: var(--chatbot-accent);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    animation: 1.4s ease-in-out infinite queueBounce
}

.queue-dots span:first-child {
    animation-delay: -.32s
}

.queue-dots span:nth-child(2) {
    animation-delay: -.16s
}

.queue-text {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
    font-weight: 500
}

@keyframes queueBounce {

    0%,
    80%,
    to {
        opacity: .5;
        transform: scale(.8)
    }

    40% {
        opacity: 1;
        transform: scale(1.2)
    }
}

@media (max-width:768px) {
    .quick-replies {
        gap: 6px
    }

    .quick-reply-btn {
        max-width: 150px;
        padding: 6px 10px;
        font-size: 12px
    }

    .clickable-message {
        padding: 3px 6px;
        font-size: 13px
    }

    .queue-indicator {
        max-width: 150px;
        padding: 6px 10px
    }

    .queue-text {
        font-size: 11px
    }

    .progressive-state-indicator {
        max-width: 220px;
        padding: 8px 12px
    }

    .progressive-state-indicator .state-text {
        font-size: 12px
    }

    .progressive-state-indicator .state-icon {
        font-size: 14px
    }
}

.disclaimer-container {
    z-index: 10001;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    border-radius: 6px;
    align-items: center;
    max-width: calc(100% - 20px);
    margin: 8px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.2;
    animation: .3s ease-out disclaimerFadeIn;
    display: flex;
    position: fixed;
    box-shadow: 0 1px 4px #00000026
}

.disclaimer-subtle {
    color: #475569;
    background: #f8fafcfa;
    border: 1px solid #cbd5e199
}

.disclaimer-warning {
    color: #92400e;
    background: #fef3c7fa;
    border: 1px solid #fbbf24cc;
    box-shadow: 0 2px 6px #fbbf2433
}

.disclaimer-info {
    color: #1e40af;
    background: #eff6fffa;
    border: 1px solid #3b82f699
}

.disclaimer-content {
    flex: 1;
    align-items: center;
    gap: 4px;
    min-width: 0;
    display: flex
}

.disclaimer-icon {
    flex-shrink: 0;
    font-size: 12px
}

.disclaimer-text {
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 500;
    overflow: hidden
}

.disclaimer-link {
    color: var(--chatbot-primary);
    flex-shrink: 0;
    margin-left: 3px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: underline;
    transition: color .2s
}

.disclaimer-link:hover {
    color: var(--chatbot-primary-hover)
}

.disclaimer-dismiss {
    color: #6b7280;
    cursor: pointer;
    background: 0 0;
    border: none;
    border-radius: 50%;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
    display: flex
}

.disclaimer-dismiss:hover {
    color: #374151;
    background: #0000001a
}

.disclaimer-container.disclaimer-inline {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    max-width: 85%;
    margin: 8px auto 8px 0;
    position: relative
}

@keyframes disclaimerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes disclaimerFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    to {
        opacity: 0;
        transform: translateY(-10px)
    }
}

@media (max-width:768px) {
    .disclaimer-container {
        max-width: calc(100% - 16px);
        margin: 4px;
        padding: 4px 8px;
        font-size: 10px
    }

    .disclaimer-icon {
        font-size: 11px
    }

    .disclaimer-dismiss {
        width: 14px;
        height: 14px;
        margin-left: 4px;
        font-size: 12px
    }

    .disclaimer-content {
        gap: 3px
    }

    .disclaimer-link {
        font-size: 9px
    }
}

@property --tw-rotate-x {
    syntax: "*";
    inherits: false
}

@property --tw-rotate-y {
    syntax: "*";
    inherits: false
}

@property --tw-rotate-z {
    syntax: "*";
    inherits: false
}

@property --tw-skew-x {
    syntax: "*";
    inherits: false
}

@property --tw-skew-y {
    syntax: "*";
    inherits: false
}

@property --tw-border-style {
    syntax: "*";
    inherits: false;
    initial-value: solid
}

@property --tw-blur {
    syntax: "*";
    inherits: false
}

@property --tw-brightness {
    syntax: "*";
    inherits: false
}

@property --tw-contrast {
    syntax: "*";
    inherits: false
}

@property --tw-grayscale {
    syntax: "*";
    inherits: false
}

@property --tw-hue-rotate {
    syntax: "*";
    inherits: false
}

@property --tw-invert {
    syntax: "*";
    inherits: false
}

@property --tw-opacity {
    syntax: "*";
    inherits: false
}

@property --tw-saturate {
    syntax: "*";
    inherits: false
}

@property --tw-sepia {
    syntax: "*";
    inherits: false
}

@property --tw-drop-shadow {
    syntax: "*";
    inherits: false
}

@property --tw-drop-shadow-color {
    syntax: "*";
    inherits: false
}

@property --tw-drop-shadow-alpha {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 100%
}

@property --tw-drop-shadow-size {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-blur {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-brightness {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-contrast {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-grayscale {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-hue-rotate {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-invert {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-opacity {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-saturate {
    syntax: "*";
    inherits: false
}

@property --tw-backdrop-sepia {
    syntax: "*";
    inherits: false
}

@property --tw-ease {
    syntax: "*";
    inherits: false
}