.tcb-widget {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
}

.tcb-widget.tcb-pos-bottom-right {
    right: 24px;
}

.tcb-widget.tcb-pos-bottom-left {
    left: 24px;
}

.tcb-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #104271;
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease;
}

.tcb-launcher:hover {
    transform: scale(1.05);
}

.tcb-launcher svg {
    width: 26px;
    height: 26px;
}

.tcb-launcher .tcb-icon-close {
    display: none;
}

.tcb-widget.tcb-open .tcb-launcher .tcb-icon-chat {
    display: none;
}

.tcb-widget.tcb-open .tcb-launcher .tcb-icon-close {
    display: block;
}

.tcb-panel {
    position: absolute;
    bottom: 76px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 75vh;
    height: 566px;
    background: transparent;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
}

.tcb-pos-bottom-right .tcb-panel {
    right: 0;
}

.tcb-pos-bottom-left .tcb-panel {
    left: 0;
    transform-origin: bottom left;
}

.tcb-header {
    background: #104271;
    color: #fff;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.tcb-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.tcb-header-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tcb-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.tcb-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: .85;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease, background .15s ease;
}

.tcb-icon-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .12);
}

.tcb-back-btn {
    font-size: 26px;
}

.tcb-screen {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    background: #F7F8F7;
}

.tcb-screen-heading {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #2b2f2d;
}

.tcb-row-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid #e7e9e7;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    transition: box-shadow .12s ease, border-color .12s ease;
}

.tcb-row:hover {
    border-color: #50A5DE;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.tcb-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tcb-row-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.tcb-row-label {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--tcb-primary, #0B5C4A);
    line-height: 1.3;
}

.tcb-row-chevron {
    color: var(--tcb-primary, #0B5C4A);
    font-size: 20px;
    flex-shrink: 0;
}

.tcb-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcb-form input,
.tcb-form textarea {
    border: 1px solid #d7dad7;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13.5px;
    font-family: inherit;
}

.tcb-form textarea {
    resize: vertical;
    min-height: 56px;
}

.tcb-form-submit {
    background: var(--tcb-primary, #0B5C4A);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    cursor: pointer;
}

.tcb-form-submit:disabled {
    opacity: .6;
    cursor: default;
}

.tcb-form-err {
    color: #b3261e;
    font-size: 12.5px;
}

.tcb-end-message {
    background: #fff;
    border: 1px solid #e7e9e7;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.tcb-emoji-bounce {
    display: inline-block;
}

.tcb-restart-link {
    background: transparent;
    border: none;
    color: #50A5DE;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 480px) {
    .tcb-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 120px);
    }
}

.tcb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 160px;
}

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

.tcb-typing-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background:  #50A5DE;
    opacity: .35;
    animation: tcb-typing-bounce 1s infinite ease-in-out;
}

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

.tcb-typing-dots span:nth-child(3) {
    animation-delay: .3s;
}

.tcb-launcher:hover { transform: scale(1.05); }

@keyframes tcb-typing-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .35;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}