.hebe-ai-widget {
    --ai-red: #e32027;
    --ai-dark: #111214;
    --ai-gold: #d7b46a;
    --ai-cream: #f7f3e8;
    --ai-grey: #707277;
    font-family: "DM Sans", Arial, sans-serif;
}

/* HEBE AI launcher colour override */
.hebe-ai-launcher {
    background: linear-gradient(135deg, #073b3a 0%, #0b6963 100%) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow:
        0 9px 0 #052826,
        0 20px 45px rgba(7, 59, 58, 0.32) !important;
}

.hebe-ai-launcher-icon,
.hebe-ai-launcher-mark {
    background: linear-gradient(145deg, #18a89c, #075650) !important;
    box-shadow: 0 7px 18px rgba(7, 86, 80, 0.35) !important;
}

.hebe-ai-launcher:hover {
    background: linear-gradient(135deg, #0b6963, #084b47) !important;
}

.hebe-ai-launcher-copy small {
    color: #aee8df !important;
}

.hebe-ai-live-dot {
    background: #d9bc72 !important;
    box-shadow: 0 0 0 4px rgba(217, 188, 114, 0.18) !important;
}

.hebe-ai-panel {
    position: fixed;
    right: 24px;
    bottom: 104px;
    z-index: 1101;
    display: grid;
    width: min(430px, calc(100vw - 32px));
    max-height: min(720px, calc(100svh - 130px));
    grid-template-rows: auto auto minmax(190px, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(20,20,20,.12);
    border-radius: 28px;
    background: #f6f6f4;
    box-shadow: 0 35px 100px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.97);
    transform-origin: right bottom;
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.hebe-ai-panel[hidden] {
    display: none;
}

.hebe-ai-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hebe-ai-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 10%, rgba(227,32,39,.35), transparent 32%),
        linear-gradient(135deg, #090a0b, #1b1c1f);
}

.hebe-ai-head::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--ai-gold), transparent);
    opacity: .6;
}

.hebe-ai-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hebe-ai-avatar {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(215,180,106,.55);
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #e32027, #9e0005);
    box-shadow: 0 10px 25px rgba(227,32,39,.24);
}

.hebe-ai-avatar span {
    font: 800 20px/1 Georgia, serif;
}

.hebe-ai-avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 11px;
    height: 11px;
    border: 3px solid #161719;
    border-radius: 50%;
    background: #54d984;
}

.hebe-ai-brand-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hebe-ai-brand-line strong {
    color: #fff;
    font-size: 15px;
}

.hebe-ai-brand-line span {
    padding: 3px 7px;
    border: 1px solid rgba(215,180,106,.5);
    border-radius: 999px;
    color: #efd594;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.hebe-ai-brand small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: rgba(255,255,255,.58) !important;
    font-size: 10px;
}

.hebe-ai-brand small i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #54d984;
}

.hebe-ai-close {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hebe-ai-close:hover {
    background: var(--ai-red);
    transform: rotate(90deg);
}

.hebe-ai-close span {
    position: absolute;
    top: 18px;
    left: 11px;
    width: 15px;
    height: 1.5px;
    background: #fff;
}

.hebe-ai-close span:first-child {
    transform: rotate(45deg);
}

.hebe-ai-close span:last-child {
    transform: rotate(-45deg);
}

.hebe-ai-intro {
    padding: 18px 20px 15px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(227,32,39,.92), rgba(153,0,5,.96)),
        #e32027;
}

.hebe-ai-intro > span {
    color: rgba(255,255,255,.72);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .2em;
}

.hebe-ai-intro h3 {
    margin: 7px 0 5px;
    color: #fff;
    font: 700 23px/1.15 Georgia, serif;
}

.hebe-ai-intro p {
    max-width: 360px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    line-height: 1.5;
}

.hebe-ai-messages {
    overflow-y: auto;
    padding: 19px;
    background:
        linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
        radial-gradient(circle at 10% 10%, #eddcb8, transparent 30%);
    scrollbar-color: #c4c4c4 transparent;
    scrollbar-width: thin;
}

.hebe-ai-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 12px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 5px 17px 17px 17px;
    color: #292a2d;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    font-size: 13px;
    line-height: 1.58;
}

.hebe-ai-message.is-user {
    margin-left: auto;
    border: 0;
    border-radius: 17px 5px 17px 17px;
    color: #fff;
    background: linear-gradient(135deg, #202124, #090a0b);
}

.hebe-ai-message strong {
    color: #111;
    font-weight: 800;
}

.hebe-ai-message a {
    color: #b60006;
    font-weight: 800;
}

.hebe-ai-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.hebe-ai-quick button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 10px;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 13px;
    color: #27282b;
    background: rgba(255,255,255,.9);
    box-shadow: 0 5px 16px rgba(0,0,0,.04);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.hebe-ai-quick button:hover {
    border-color: var(--ai-red);
    color: #b60006;
    transform: translateY(-2px);
}

.hebe-ai-quick button span {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--ai-red);
    font-size: 8px;
}

.hebe-ai-number {
    display: inline-grid;
    width: 21px;
    height: 21px;
    margin-top: 6px;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--ai-red);
    font-size: 9px;
    font-weight: 800;
}

.hebe-ai-design-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 2px;
    padding: 7px 11px;
    border: 1px solid rgba(227,32,39,.24);
    border-radius: 999px;
    color: #b60006 !important;
    background: #fff;
    text-decoration: none !important;
}

.hebe-ai-design-link:hover {
    color: #fff !important;
    background: var(--ai-red);
}

.hebe-ai-form {
    padding: 14px 15px 12px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.hebe-ai-input-shell {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 9px;
    padding: 5px;
    border: 1px solid #d8d8d6;
    border-radius: 17px;
    background: #f8f8f6;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hebe-ai-input-shell:focus-within {
    border-color: var(--ai-red);
    box-shadow: 0 0 0 4px rgba(227,32,39,.08);
}

.hebe-ai-form input {
    min-width: 0;
    height: 45px;
    padding: 0 11px;
    border: 0;
    outline: 0;
    color: #202124;
    background: transparent;
    font-size: 13px !important;
}

.hebe-ai-form button[type="submit"] {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #f3343b, #b80006);
    box-shadow: 0 7px 18px rgba(227,32,39,.25);
    cursor: pointer;
}

.hebe-ai-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: .55;
}

.hebe-ai-form button svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hebe-ai-note {
    display: block;
    margin: 8px 4px 0;
    color: #777;
    font-size: 8.5px;
    line-height: 1.45;
    text-align: center;
}

.hebe-ai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 60px;
}

.hebe-ai-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ai-red);
    animation: hebeAiTyping .9s ease-in-out infinite;
}

.hebe-ai-typing i:nth-child(2) {
    animation-delay: .14s;
}

.hebe-ai-typing i:nth-child(3) {
    animation-delay: .28s;
}

@keyframes hebeAiTyping {
    0%, 100% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media (max-width: 575.98px) {
    .hebe-ai-launcher {
        right: 13px;
        bottom: 13px;
        min-height: 58px;
        padding-right: 14px;
    }

    .hebe-ai-launcher-icon {
        width: 42px;
        height: 42px;
    }

    .hebe-ai-panel {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
        max-height: calc(100svh - 94px);
        border-radius: 22px;
    }

    .hebe-ai-intro {
        padding: 15px 17px 13px;
    }

    .hebe-ai-intro h3 {
        font-size: 20px;
    }

    .hebe-ai-messages {
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .hebe-ai-launcher-copy {
        display: none;
    }

    .hebe-ai-quick {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hebe-ai-panel,
    .hebe-ai-launcher,
    .hebe-ai-close,
    .hebe-ai-typing i {
        animation: none;
        transition: none;
    }
}

/* Force AI launcher into fixed floating position */
.hebe-ai-widget {
    position: static !important;
}

.hebe-ai-launcher {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;

    display: flex !important;
    width: auto !important;
    min-width: 190px !important;
    max-width: 230px !important;
    min-height: 62px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 11px !important;

    padding: 8px 18px 8px 9px !important;
    overflow: visible !important;
    border-radius: 999px !important;

    background: linear-gradient(
        135deg,
        #073b3a 0%,
        #0b6963 100%
    ) !important;
}

.hebe-ai-launcher-icon,
.hebe-ai-launcher-mark {
    display: grid !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    place-items: center !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.hebe-ai-launcher-icon svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.hebe-ai-launcher-copy {
    display: grid !important;
    width: auto !important;
}

.hebe-ai-panel {
    position: fixed !important;
    right: 22px !important;
    bottom: 98px !important;
    left: auto !important;
    z-index: 100000 !important;
}

@media (max-width: 575.98px) {
    .hebe-ai-launcher {
        right: 12px !important;
        bottom: 12px !important;
        min-width: 176px !important;
    }

    .hebe-ai-panel {
        right: 10px !important;
        bottom: 82px !important;
        width: calc(100vw - 20px) !important;
    }
}
/* HEBE AI panel teal theme */
.hebe-ai-widget {
    --ai-red: #0b6963 !important;
    --ai-dark-teal: #073b3a;
    --ai-light-teal: #18a89c;
    --ai-gold: #d9bc72;
}

.hebe-ai-head {
    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(24, 168, 156, 0.28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #071d1c 0%,
            #073b3a 100%
        ) !important;
}

.hebe-ai-avatar {
    border-color: rgba(217, 188, 114, 0.7) !important;
    background: linear-gradient(
        145deg,
        #18a89c,
        #075650
    ) !important;
    box-shadow: 0 10px 25px rgba(7, 86, 80, 0.3) !important;
}

.hebe-ai-intro {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #0b6963 0%,
        #073b3a 100%
    ) !important;
}

.hebe-ai-intro h3 {
    color: #ffffff !important;
}

.hebe-ai-intro p,
.hebe-ai-intro > span {
    color: rgba(255, 255, 255, 0.78) !important;
}

.hebe-ai-quick button span,
.hebe-ai-number {
    background: linear-gradient(
        145deg,
        #18a89c,
        #075650
    ) !important;
}

.hebe-ai-quick button:hover {
    color: #075650 !important;
    border-color: #0b6963 !important;
}

.hebe-ai-input-shell:focus-within {
    border-color: #0b6963 !important;
    box-shadow: 0 0 0 4px rgba(11, 105, 99, 0.12) !important;
}

.hebe-ai-form button[type="submit"] {
    background: linear-gradient(
        145deg,
        #18a89c,
        #075650
    ) !important;
    box-shadow: 0 7px 18px rgba(7, 86, 80, 0.3) !important;
}

.hebe-ai-message.is-user {
    background: linear-gradient(
        135deg,
        #0b6963,
        #073b3a
    ) !important;
}

.hebe-ai-message a,
.hebe-ai-design-link {
    color: #075650 !important;
}

.hebe-ai-design-link {
    border-color: rgba(11, 105, 99, 0.3) !important;
}

.hebe-ai-design-link:hover {
    color: #ffffff !important;
    background: #0b6963 !important;
}

.hebe-ai-typing i {
    background: #0b6963 !important;
}

.hebe-ai-close:hover {
    background: #0b6963 !important;
}