#itc-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'Oxanium', system-ui, sans-serif;
}

#itc-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #142852;
    color: #4FC3F7;
    border: 2px solid rgba(255, 255, 255, 0.78);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(20, 40, 82, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.16);
    transition: background 0.2s, transform 0.15s;
    margin-left: auto;
}

#itc-toggle:hover {
    background: #0284C7;
    color: #fff;
    border-color: #4FC3F7;
    box-shadow: 0 10px 28px rgba(20, 40, 82, 0.42), 0 0 0 4px rgba(79, 195, 247, 0.2);
    transform: translateY(-2px);
}

#itc-box {
    display: none;
    flex-direction: column;
    width: 420px;
    height: 600px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(15, 30, 61, 0.2);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: width 0.25s ease, height 0.25s ease;
}

#itc-box.open { display: flex; }

#itc-box.expanded {
    width: 700px;
    height: 80vh;
}

#itc-header {
    background: #142852;
    color: #fff;
    padding: 0.85rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#itc-expand {
    background: transparent;
    border: none;
    color: #4FC3F7;
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

#itc-expand:hover { opacity: 1; color: #fff; }

#itc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #F8FAFC;
}

.itc-msg {
    max-width: 82%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.itc-user {
    background: #142852;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.itc-bot {
    background: #fff;
    color: #142852;
    align-self: flex-start;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #4FC3F7;
    border-bottom-left-radius: 2px;
}

.itc-typing {
    background: #fff;
    color: #94A3B8;
    align-self: flex-start;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #E2E8F0;
    font-style: italic;
}

#itc-input-area {
    display: flex;
    border-top: 1px solid #E2E8F0;
    background: #fff;
    flex-shrink: 0;
}

#itc-input {
    flex: 1;
    border: none;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: #142852;
}

#itc-input::placeholder { color: #94A3B8; }

#itc-send {
    background: #142852;
    color: #4FC3F7;
    border: none;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#itc-send:hover { background: #0284C7; color: #fff; }

@media (max-width: 600px) {
    /* On mobile the widget does not open inline — toggle opens a new tab with fullpage chat */
    #itc-box { display: none !important; }
    #itc-chat { right: 1rem; bottom: 1rem; }
}
