#chatWidget {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: #424242;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    background: #c70000;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.chat-toggle i {
    font-size: 28px;
    color: white;
}


.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
}

.chat-header {
    background: #424242;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header i {
    margin-right: 8px;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.1);
}

.chat-body {
    padding: 15px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-avatar i {
    font-size: 20px;
    color: #6c757d;
}

.message-content {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.message-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-options {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    position: relative;
}

.chat-option:hover {
    border-color: #c1c1c1;
    background: #f1f1f1;
    transform: translateX(4px);
}

.chat-option i {
    font-size: 18px;
    color: #424242;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.chat-option span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.chat-footer {
    background: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.chat-footer small {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        bottom: 70px;
    }
    
    .chat-toggle {
        width: 55px;
        height: 55px;
    }
    
    .chat-toggle i {
        font-size: 24px;
    }
}

.chat-menu,
.chat-submenu {
    width: 100%;
}

.chat-submenu form {
    margin: 15px 0;
}






.chat-btn {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-btn-primary {
    background: #424242;
    color: white !important;
    text-decoration: none;
}

.chat-btn-primary:hover {
    background: #c70000;
    color: white !important;
    text-decoration: none;
}

.chat-btn-back {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6c757d;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-btn-back:hover {
    border-color: #c1c1c1;
    color: #424242;
    background: #f1f1f1;
}

















.chat-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.chat-info-header {
    background: #424242;
    color: white;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.chat-info-header i {
    margin-right: 6px;
}

.chat-info-content {
    padding: 10px 12px;
}

.chat-info-section {
    margin-bottom: 10px;
}

.chat-info-section:last-child {
    margin-bottom: 0;
}

.chat-info-section strong {
    display: block;
    color: #495057;
    font-size: 12px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.chat-info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.chat-info-label {
    color: #6c757d;
    font-weight: 500;
}

.chat-info-value {
    color: #28a745;
    font-weight: 600;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-window.show {
    animation: slideIn 0.3s ease;
}

/* ... mobile ... */

@media (max-width: 768px) {
    #chatWidget {
        right: 10px;
        bottom: 10px;
        /*width: calc(100vw - 20px) !important;*/
        max-width: 100%;
    }
    
    #chatHeader {
        padding: 10px;
    }
    
    #chatMessages {
        height: 300px;
        max-height: 50vh;
    }
    
    #messageInput {
        font-size: 16px; /* iOS zoom önleme */
        min-height: 44px; /* iOS dokunma alanı */
    }
    
    #sendButton {
        min-width: 44px;
        min-height: 44px;
    }
}