/* WooCommerce Product Questions Styles */
.wc-product-questions-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    border: 1px solid #e1e1e1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.wc-product-questions-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.wc-product-questions-section .section-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

#wc-product-question-form .form-group {
    margin-bottom: 20px;
}

#wc-product-question-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

#wc-product-question-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
    resize: vertical;
}

#wc-product-question-form textarea:focus {
    border-color: var(--primary, #0e509e);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 80, 158, 0.1);
}

#wc-product-question-form .form-submit {
    display: flex;
    align-items: center;
}

#wc-product-question-form button {
    padding: 12px 25px;
    background-color: var(--primary, #0e509e);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#wc-product-question-form button:hover {
    background-color: var(--primary-dark, #0a3d7a);
}

#wc-product-question-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#question-form-message {
    margin-top: 15px;
    font-weight: 500;
    font-size: 14px;
}

#question-form-message.success {
    color: #27ae60;
    padding: 10px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 4px;
}

#question-form-message.error {
    color: #e74c3c;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary, #0e509e);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Question History Styles */
.wc-questions-history {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.wc-questions-history .history-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid var(--primary, #0e509e);
    display: inline-block;
    padding-bottom: 5px;
}

.questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.question-content {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.answer-content {
    color: #555;
    background: #f0f7ff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-left: 20px;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.answer-content:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #f0f7ff;
}

.q-label, .a-label {
    display: inline-block;
    min-width: 25px;
    font-weight: 700;
    margin-right: 5px;
}

.q-label {
    color: var(--primary, #0e509e);
}

.a-label {
    color: #27ae60;
}

.login-prompt {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed #ccc;
}
