/* ══════════════════════════════════════
   OgreLogic AI Chat Widget — Universal Stylesheet
   All colours are CSS variables injected at
   runtime by ogrelogic-chat.js via window.OLChatConfig.
   Do NOT hard-code brand values here.
══════════════════════════════════════ */

/* DEFAULT FALLBACK TOKENS
   (overridden by JS when OLChatConfig is set) */
/* :root {
    --ol-primary: #8dc63f;
    --ol-primary-dk: #7ab32e;
    --ol-primary-glow: rgba(141, 198, 63, .20);
    --ol-primary-light: rgba(141, 198, 63, .10);
    --ol-primary-bd: rgba(141, 198, 63, .30);
    --ol-accent: #f5c300;
    --ol-navy: #151c2b;
    --ol-navy-mid: #1e2a40;
    --ol-white: #ffffff;
    --ol-off-white: #f4f7f6;
    --ol-border: #e4e9f0;
    --ol-text: #2d3748;
    --ol-text-sub: #64748b;
    --ol-bubble-bot-bg: #fff6e2;
    --ol-user-grad-a: #3acaff;
    --ol-user-grad-b: #1e2a40;
    --ol-shadow: 0 20px 60px rgba(21, 28, 43, .18), 0 4px 16px rgba(21, 28, 43, .08);
    --ol-radius: 18px;
    --ol-bottom: 28px;
    --ol-right: 28px;
    --ol-left: auto;
} */

:root {
    --ol-primary: #57b5fd;
    --ol-primary-dk: #1d67a4;
    --ol-primary-glow: rgba(141, 198, 63, .20);
    --ol-primary-light: #85a9de40;
    --ol-primary-bd: rgba(141, 198, 63, .30);
    --ol-accent: #f5c300;
    --ol-navy: #151c2b;
    --ol-navy-mid: #1e2a40;
    --ol-white: #ffffff;
    --ol-off-white: #f4f7f6;
    --ol-border: #e4e9f0;
    --ol-text: #2d3748;
    --ol-text-sub: #64748b;
    --ol-bubble-bot-bg: #fff6e2;
    --ol-user-grad-a: #3acaff;
    --ol-user-grad-b: #1e2a40;
    --ol-shadow: 0 20px 60px rgba(21, 28, 43, .18), 0 4px 16px rgba(21, 28, 43, .08);
    --ol-radius: 18px;
    --ol-bottom: 28px;
    --ol-right: 28px;
    --ol-left: auto;
}


/* ══════════════════════════════════════
   TRIGGER BUBBLE
══════════════════════════════════════ */
#ol-toggle {
    position: fixed;
    bottom: var(--ol-bottom);
    right: var(--ol-right);
    left: var(--ol-left);
    width: 90px;
    height: 90px;
    /* background: var(--ol-white); */
    border-radius: 50%;
    border: 3px solid var(--ol-white);
    cursor: pointer;
    outline: none;
    z-index: 2147483646;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
    padding:12px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.imagechat
 {
    max-width: 74px;
    width: 100%;
    position: absolute;
    top: -31%;
    left: -49%;
    transform: rotate(-14deg);
}
/* #ol-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
} */

#ol-toggle:hover {
    transform: scale(1.10) translateY(-4px);
    box-shadow: 0 12px 32px #6694d66b, 0 3px 10px rgba(21, 28, 43, .18);
}
#ol-toggle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #6694d6;
    animation: ol-pulse 2.8s ease-in-out infinite;
}
@keyframes ol-pulse {

    0%,
    100% {
        transform: scale(.90);
        opacity: .8;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

#ol-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 19px;
    height: 19px;
    background: #e53e3e;
    border: 2.5px solid white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════
   CHAT WINDOW
══════════════════════════════════════ */
#ol-window {
    position: fixed;
    bottom: calc(var(--ol-bottom) + 84px);
    right: var(--ol-right);
    left: var(--ol-left);
    width: 380px;
    height: 590px;
    display: flex;
    flex-direction: column;
    border-radius: var(--ol-radius);
    overflow: hidden;
    box-shadow: var(--ol-shadow);
    z-index: 2147483645;
    border: 1px solid var(--ol-border);
    opacity: 0;
    transform: translateY(24px) scale(.97);
    pointer-events: none;
    transition: opacity .28s ease, transform .3s cubic-bezier(.34, 1.3, .64, 1);
    font-family: 'Inter', system-ui, sans-serif;
}

#ol-window.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.ol-header {
    background: var(--ol-white);
    flex-shrink: 0;
    position: relative;
}

.ol-header::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--ol-primary) 0%, var(--ol-primary-dk) 60%, var(--ol-accent) 100%);
}

.ol-header-inner {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px 12px;
    border-bottom: 1.5px solid var(--ol-border);
}

.ol-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.ol-avatar-img {
    width: 52px;
    height: 52px;
    background: var(--ol-white);
    border-radius: 50%;
    border: 3px solid var(--ol-white);
    object-fit: contain;
    display: block;
    padding: 4px;
}

.ol-avatar-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    background: var(--ol-primary);
    border-radius: 50%;
    border: 2.5px solid var(--ol-white);
    animation: ol-blink 2.4s ease-in-out infinite;
}

@keyframes ol-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.ol-header-text {
    flex: 1;
    min-width: 0;
}

.ol-header-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ol-navy);
    letter-spacing: .1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ol-header-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--ol-text-sub);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ol-header-sub-dot {
    width: 6px;
    height: 6px;
    background: var(--ol-primary);
    border-radius: 50%;
    flex-shrink: 0;
    animation: ol-blink 2.4s ease-in-out infinite;
}

.ol-status {
    background: var(--ol-primary-light);
    border: 1.5px solid var(--ol-primary-bd);
    color: var(--ol-primary-dk);
    font-size: 9.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ol-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ol-off-white);
    border: 1.5px solid var(--ol-border);
    color: var(--ol-text-sub);
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.ol-close:hover {
    background: var(--ol-primary);
    border-color: var(--ol-primary);
    color: var(--ol-white);
    transform: rotate(90deg);
}

.ol-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: var(--ol-primary-light);
    border-bottom: 1.5px solid var(--ol-primary-bd);
}

.ol-subbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ol-primary-dk);
    letter-spacing: .2px;
}

.ol-subbar-dot {
    width: 6px;
    height: 6px;
    background: var(--ol-primary);
    border-radius: 50%;
    animation: ol-blink 2.4s ease-in-out infinite;
}

.ol-subbar-right {
    font-size: 10px;
    font-weight: 700;
    color: var(--ol-primary-dk);
    letter-spacing: .3px;
}

/* ══════════════════════════════════════
   MESSAGES
══════════════════════════════════════ */
#ol-messages {
    flex: 1;
    padding: 18px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--ol-off-white);
    scroll-behavior: smooth;
}

#ol-messages::-webkit-scrollbar {
    width: 3px;
}

#ol-messages::-webkit-scrollbar-thumb {
    background: var(--ol-primary);
    border-radius: 4px;
}

.ol-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: ol-in .22s ease forwards;
}

@keyframes ol-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.ol-row.bot {
    align-items: flex-start;
}

.ol-row.user {
    align-items: flex-end;
}

.ol-bot-inner {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ol-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--ol-primary-bd);
    background: var(--ol-white);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ol-msg-avatar img {
    width: 100%;
    /* height: 80%; */
    object-fit: contain;
}

.ol-bubble-bot {
    max-width: 79%;
    background: var(--ol-bubble-bot-bg);
    color: var(--ol-text);
    font-size: 13.5px;
    line-height: 1.6;
    padding: 11px 14px;
    border-radius: 4px 16px 16px 16px;
    border: 1px solid var(--ol-border);
    border-left: 3px solid var(--ol-primary);
    box-shadow: 0 2px 10px rgba(21, 28, 43, .06);
    word-break: break-word;
}

.ol-bubble-bot strong {
    color: var(--ol-navy);
    font-weight: 700;
}

.ol-bubble-bot ul {
    padding-left: 18px;
    margin: 6px 0;
}

.ol-bubble-bot li {
    margin-bottom: 4px;
}

.ol-bubble-bot code {
    background: var(--ol-primary-light);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
}

.ol-bubble-bot a {
    color: var(--ol-primary-dk);
    text-decoration: underline;
}

.ol-bubble-user {
    max-width: 79%;
    background: linear-gradient(135deg, var(--ol-user-grad-a) 0%, var(--ol-user-grad-b) 100%);
    color: var(--ol-white);
    font-size: 13.5px;
    line-height: 1.6;
    padding: 11px 14px;
    border-radius: 16px 4px 16px 16px;
    box-shadow: 0 2px 10px rgba(21, 28, 43, .20);
    word-break: break-word;
}

.ol-time {
    font-size: 10px;
    color: var(--ol-text-sub);
    padding: 0 4px;
}

/* ══════════════════════════════════════
   TYPING
══════════════════════════════════════ */
.ol-typing-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ol-typing-bubble {
    background: var(--ol-white);
    border: 1px solid var(--ol-border);
    border-left: 3px solid var(--ol-primary);
    border-radius: 4px 16px 16px 16px;
    padding: 13px 16px;
    display: flex;
    gap: 5px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(21, 28, 43, .06);
}

.ol-typing-bubble span {
    width: 7px;
    height: 7px;
    background: var(--ol-primary);
    border-radius: 50%;
    animation: ol-bounce 1.3s infinite ease-in-out both;
}

.ol-typing-bubble span:nth-child(1) {
    animation-delay: -.32s;
}

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

@keyframes ol-bounce {

    0%,
    80%,
    100% {
        transform: scale(.55);
        opacity: .4;
    }

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

/* ══════════════════════════════════════
   CHIPS
══════════════════════════════════════ */
.ol-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
    margin-left: 40px;
}

.ol-chip {
    background: var(--ol-white);
    border: 1.5px solid var(--ol-primary-bd);
    color: var(--ol-primary-dk);
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background .17s, color .17s, border-color .17s, transform .13s;
    white-space: nowrap;
}

.ol-chip:hover {
    background: var(--ol-primary);
    color: var(--ol-white);
    border-color: var(--ol-primary);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════
   DATE DIVIDER
══════════════════════════════════════ */
.ol-date-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    color: var(--ol-text-sub);
    font-weight: 500;
    letter-spacing: .3px;
    margin: 2px 0;
}

.ol-date-divider::before,
.ol-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ol-border);
}

/* ══════════════════════════════════════
   FOOTER / INPUT
══════════════════════════════════════ */
.ol-footer {
    background: var(--ol-white);
    border-top: 1.5px solid var(--ol-border);
    padding: 12px 14px;
    flex-shrink: 0;
}

#ol-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ol-off-white);
    border: 1.5px solid var(--ol-border);
    border-radius: 28px;
    padding: 4px 4px 4px 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

#ol-form:focus-within {
    border-color: var(--ol-primary);
    background: var(--ol-white);
    box-shadow: 0 0 0 3px rgb(0 76 186 / 13%);
}

#ol-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: var(--ol-text);
    padding: 9px 0;
    line-height: 1.4;
}

#ol-input::placeholder {
    color: var(--ol-text-sub);
}

#ol-send {
    width: 40px;
    height: 40px;
    background: var(--ol-primary);
    color: var(--ol-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--ol-primary-glow);
    transition: background .2s, transform .15s, box-shadow .2s;
}

#ol-send:hover {
    background: var(--ol-primary-dk);
    transform: scale(1.08);
    box-shadow: 0 4px 16px var(--ol-primary-glow);
}

#ol-send svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ol-brand {
    text-align: center;
    font-size: 10px;
    color: var(--ol-text-sub);
    margin-top: 8px;
    letter-spacing: .2px;
}

.ol-brand a {
    color: var(--ol-primary-dk);
    font-weight: 600;
    text-decoration: none;
}

.ol-brand a:hover {
    text-decoration: underline;
}

/* MY CSS  */

.circle-text {
    position: absolute;
    inset: 0;
    animation: rotate 10s linear infinite;
    padding: 2px;
}

.circle-text svg {
    width: 100%;
    height: 100%;
}
.circle-text text {
    fill: #000;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* rotating animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* MY CSS  */
@media(max-width:1199px){
    #ol-toggle {
    width: 50px;
    height: 50px;
}
img.my-image {
    max-width: 45px;
}
}