/* Chat Widget Styles */
.royal-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

.royal-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.royal-chat-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.royal-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

.royal-chat-window.open {
    display: flex;
}

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

.royal-chat-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

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

.royal-chat-header-status {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.royal-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ecc71;
    display: inline-block;
}

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

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

.royal-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.royal-chat-messages-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

.royal-chat-input-area {
    border-top: 1px solid #e9ecef;
    padding: 16px;
    background: white;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.royal-chat-input-wrapper {
    flex: 1;
    position: relative;
}

.royal-chat-input {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    min-height: 44px;
    max-height: 120px;
    box-sizing: border-box;
}

.royal-chat-input:focus {
    border-color: #2c3e50;
}

.royal-chat-input::placeholder {
    color: #adb5bd;
}

.royal-chat-send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2c3e50;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.royal-chat-send-button:hover:not(:disabled) {
    background: #34495e;
    transform: scale(1.05);
}

.royal-chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.royal-chat-send-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.royal-chat-info-form {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.royal-chat-info-form.hidden {
    display: none;
}

.royal-chat-info-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.royal-chat-info-form input:focus {
    outline: none;
    border-color: #2c3e50;
}

.royal-chat-info-form button {
    width: 100%;
    padding: 10px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.royal-chat-info-form button:hover {
    background: #34495e;
}

/* Responsive */
@media (max-width: 480px) {
    .royal-chat-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: calc(100vh - 100px);
    }
    
    .royal-chat-button {
        right: 10px;
        bottom: 10px;
    }
}


