/* WooCommerce Product Q&A - Frontend Styles */

.wcpqa-container {
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wcpqa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.wcpqa-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.wcpqa-ask-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wcpqa-ask-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wcpqa-ask-button.active {
    opacity: 0.8;
}

/* Form Styles */
.wcpqa-form-wrapper {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.wcpqa-form-heading {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.wcpqa-form-group {
    margin-bottom: 20px;
}

.wcpqa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.wcpqa-form-group .required {
    color: #dc3545;
}

.wcpqa-form-group input[type="text"],
.wcpqa-form-group input[type="email"],
.wcpqa-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.wcpqa-form-group input:focus,
.wcpqa-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wcpqa-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.wcpqa-form-actions {
    margin-top: 20px;
}

.wcpqa-submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpqa-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wcpqa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Styles */
.wcpqa-message {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.wcpqa-message.wcpqa-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcpqa-message.wcpqa-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Questions List */
.wcpqa-questions-list {
    margin-top: 30px;
}

.wcpqa-no-questions {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
}

.wcpqa-question-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.wcpqa-question-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wcpqa-question-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.wcpqa-user-avatar {
    margin-right: 12px;
    flex-shrink: 0;
}

.wcpqa-question-meta,
.wcpqa-reply-meta {
    flex: 1;
}

.wcpqa-user-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wcpqa-question-date,
.wcpqa-reply-date {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

.wcpqa-question-content {
    margin: 15px 0;
    line-height: 1.6;
    font-size: 15px;
}

.wcpqa-question-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wcpqa-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcpqa-reply-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

.wcpqa-reply-btn svg {
    width: 16px;
    height: 16px;
}

/* Reply Form */
.wcpqa-reply-form-wrapper {
    margin-top: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.wcpqa-reply-form .wcpqa-form-group {
    margin-bottom: 15px;
}

.wcpqa-reply-form input,
.wcpqa-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.wcpqa-submit-reply-btn,
.wcpqa-cancel-reply-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.wcpqa-submit-reply-btn {
    background: #28a745;
    color: #ffffff;
}

.wcpqa-submit-reply-btn:hover {
    background: #218838;
}

.wcpqa-cancel-reply-btn {
    background: #6c757d;
    color: #ffffff;
}

.wcpqa-cancel-reply-btn:hover {
    background: #5a6268;
}

.wcpqa-reply-message {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

/* Replies */
.wcpqa-replies {
    margin-top: 20px;
    padding-left: 50px;
}

.wcpqa-reply-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
}

.wcpqa-reply-item.wcpqa-admin-reply {
    border-left-color: #28a745;
}

.wcpqa-reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.wcpqa-reply-item .wcpqa-user-avatar {
    margin-right: 10px;
}

.wcpqa-admin-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 8px;
    background: #28a745;
    color: #ffffff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wcpqa-reply-content {
    line-height: 1.6;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .wcpqa-container {
        padding: 20px;
    }
    
    .wcpqa-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wcpqa-ask-button {
        width: 100%;
    }
    
    .wcpqa-replies {
        padding-left: 20px;
    }
    
    .wcpqa-form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .wcpqa-submit-btn,
    .wcpqa-submit-reply-btn,
    .wcpqa-cancel-reply-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wcpqa-title {
        font-size: 20px;
    }
    
    .wcpqa-question-item,
    .wcpqa-reply-item {
        padding: 15px;
    }
    
    .wcpqa-user-avatar svg {
        width: 32px;
        height: 32px;
    }
}