/* ChatFlow Feedback Widget Styles */
.chatflow-feedback-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.chatflow-feedback-widget[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
}

.chatflow-feedback-widget[data-position="bottom-left"] {
    bottom: 20px;
    left: 20px;
}

.chatflow-feedback-widget[data-position="top-right"] {
    top: 20px;
    right: 20px;
}

.chatflow-feedback-widget[data-position="top-left"] {
    top: 20px;
    left: 20px;
}

.chatflow-feedback-bubble {
    display: flex;
    align-items: center;
    background-color: var(--widget-color);
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chatflow-feedback-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.chatflow-feedback-bubble svg {
    margin-right: 10px;
    fill: #fff;
    width: 20px;
    height: 20px;
}

.chatflow-feedback-form {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 320px;
}

.chatflow-feedback-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.chatflow-star-rating {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.chatflow-star {
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    display: inline-block;
    margin: 0 2px;
}

.chatflow-star:hover,
.chatflow-star.active {
    opacity: 1;
    transform: scale(1.1);
}

#chatflow-feedback-message {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#chatflow-feedback-message:focus {
    outline: none;
    border-color: var(--widget-color);
    box-shadow: 0 0 0 2px rgba(var(--widget-color-rgb), 0.1);
}

#chatflow-submit-feedback {
    background-color: var(--widget-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

#chatflow-submit-feedback:hover {
    background-color: color-mix(in srgb, var(--widget-color) 80%, black);
    transform: translateY(-2px);
}

#chatflow-submit-feedback:active {
    transform: translateY(0);
}

.chatflow-feedback-success {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chatflow-feedback-success p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatflow-feedback-form {
        max-width: 280px;
    }
    
    .chatflow-feedback-bubble {
        padding: 10px 15px;
    }
    
    .chatflow-feedback-bubble svg {
        width: 18px;
        height: 18px;
    }
}