/* Sticky Feedback Form Styles */

.sticky-feedback-form {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 10000;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.sticky-feedback-form.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-container {
    position: relative;
}

.feedback-close-btn {
    position: absolute;
    right: 0;
    top: -10px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.feedback-close-btn:hover {
    color: #333;
}

.feedback-title {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.emoji-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.emoji-btn {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.emoji-btn:hover {
    transform: scale(1.1);
    border-color: #999;
}

.emoji-btn.selected {
    background: #f0f0f0;
    border-color: #333;
    transform: scale(1.15);
}

.comment-section {
    margin-bottom: 12px;
}

.feedback-textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.feedback-submit-btn {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-submit-btn:hover:not(:disabled) {
    background: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feedback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .sticky-feedback-form {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
    }
}

/* RTL Support */
html[dir="rtl"] .sticky-feedback-form {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .feedback-close-btn {
    right: auto;
    left: 0;
}

html[dir="rtl"] @media (max-width: 480px) {
    .sticky-feedback-form {
        right: auto;
        left: 20px;
    }
}
