.cb-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cb-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0066FF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-button:hover {
    transform: scale(1.1);
}

.cb-button i {
    color: white;
    font-size: 24px;
}

.cb-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cb-header {
    background: linear-gradient(135deg, #0066FF 0%, #0145aa 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cb-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
}

.cb-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.cb-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cb-avatar i {
    color: #0066FF;
    font-size: 20px;
}

.cb-widget .cb-title {
    display: flex;
    flex-direction: column;
}

.cb-widget .cb-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.cb-widget .cb-subtitle {
    font-size: 12px;
    opacity: 0.9;
    color: white;
}

.cb-widget .cb-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    padding: 0;
    margin: 0;
    line-height: 1;
    position: relative;
    box-sizing: border-box;
}

.cb-widget .cb-close::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    line-height: 1;
}

.cb-widget .cb-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cb-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 85%;
}

.cb-message-wrapper.bot {
    align-self: flex-start;
}

.cb-message-wrapper.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.cb-message-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-bot-icon {
    background-color: #0066FF;
    color: white;
}

.cb-user-icon {
    background-color: #e9ecef;
    color: #495057;
}

.cb-message {
    padding: 10px 15px;
    border-radius: 15px;
    margin: 0;
    animation: cb-fadeIn 0.3s ease;
    line-height: 1.4;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.cb-message-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.cb-message-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover;
    animation: cb-fadeIn 0.3s ease;
}

.cb-message-image:hover {
    transform: scale(1.02);
}

.cb-message-text {
    width: 100%;
}

.cb-bot-message {
    background-color: #f0f2f5;
    border-bottom-left-radius: 5px;
}

.cb-user-message {
    background-color: #0066FF;
    color: white;
    border-bottom-right-radius: 5px;
}

.cb-typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 15px;
    background-color: #f0f2f5;
    border-radius: 15px;
    align-self: flex-start;
    margin: 5px 0;
    position: relative;
}

.cb-typing-dot {
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
    animation: cb-typingAnimation 1s infinite ease-in-out;
}

.cb-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.cb-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.cb-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    animation: cb-slideUp 0.3s ease;
    justify-content: flex-start;
}

.cb-widget .cb-option-button {
    background-color: white;
    border: 1px solid #0066FF;
    color: #0066FF;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
    max-width: fit-content;
    margin: 0;
    line-height: 1.4;
    font-weight: normal;
    text-decoration: none;
    display: inline-block;
}

.cb-widget .cb-option-button:hover {
    background-color: #0066FF;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Slider Styles */
.cb-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    user-select: none;
}

.cb-slider-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 15px;
    will-change: transform;
}

.cb-slider-item {
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.cb-slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cb-slider-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cb-slider-item:hover .cb-slider-image {
    transform: scale(1.05);
}

.cb-slider-content {
    padding: 12px;
    background: white;
}

.cb-slider-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.cb-slider-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.cb-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.cb-slider-nav:hover {
    background: #0066FF;
    transform: translateY(-50%) scale(1.1);
}

.cb-slider-nav:hover i {
    color: white;
}

.cb-slider-prev {
    left: 5px;
}

.cb-slider-next {
    right: 5px;
}

.cb-slider-nav i {
    color: #0066FF;
    font-size: 14px;
    transition: color 0.3s ease;
}

@keyframes cb-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cb-typingAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes cb-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
.cb-messages::-webkit-scrollbar {
    width: 6px;
}

.cb-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cb-messages::-webkit-scrollbar-thumb {
    background: #0066FF;
    border-radius: 3px;
}

.cb-messages::-webkit-scrollbar-thumb:hover {
    background: #e69500;
} 