/* Component: Product Questions (Trendyol Style) */

.wes-product-questions-wrapper {
    background: transparent;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-top: 30px;
}

.wes-pq-header-top {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wes-pq-actions-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.wes-pq-search-box {
    flex-grow: 1;
    position: relative;
}

.wes-pq-search-box input {
    width: 100%;
    padding: 12px 15px 12px 50px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wes-pq-search-box input:focus {
    border-color: #f27a1a;
    /* Trendyol Orange-ish or brand color */
    outline: none;
}

.wes-pq-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.wes-btn-ask {
    background-color: #2e8b57;
    /* Sea Green */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.wes-btn-ask:hover {
    background-color: #257a4a;
    color: #fff;
}

/* Question List */
.wes-pq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wes-pq-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #fff !important;
    padding-bottom: 25px;
    border-bottom: 1px solid #e6e6e6;
}

.wes-pq-item:last-child {
    border-bottom: none;
}

/* Question Part */
.wes-pq-question-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wes-icon-q,
.wes-icon-a {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid;
}

.wes-icon-q {
    color: #2e8b57;
    border-color: #2e8b57;
}

.wes-pq-q-content {
    flex-grow: 1;
}

.wes-pq-q-text {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.wes-pq-meta {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Answer Part */
.wes-pq-answer-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
    /* Aligned with question or slightly indented? Image shows vertical line? */
    position: relative;
    margin-top: 5px;
}

.wes-pq-vertical-line {
    position: absolute;
    left: 12px;
    /* Center of the icon above (24px/2) */
    top: -15px;
    bottom: 0;
    width: 1px;
    background: #e6e6e6;
    display: none;
    /* Image 2 doesn't clearly show a connected line, but image 1 style has indentation */
}

.wes-icon-a {
    color: #2e8b57;
    border-color: #2e8b57;
}

.wes-pq-a-content {
    flex-grow: 1;
}

.wes-pq-a-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}

.wes-pq-shop-name {
    color: #2e8b57;
    font-weight: 600;
}

.wes-pq-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2e8b57;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* Buttons Area */
.wes-pq-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 45px;
    /* Offset to align with text */
    margin-top: 10px;
}

.wes-btn-reply {
    background: #fff;
    border: 1px solid #d2d2d2;
    color: #333;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wes-btn-reply:hover {
    border-color: #999;
}

.wes-pq-likes {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.wes-like-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.wes-like-item:hover {
    color: #2e8b57;
}

.wes-pq-empty {
    text-align: center;
    padding: 40px;
    background: transparent;
    border-radius: 8px;
    color: #666;
}


/* ============================================
   REPLY FORM - Modern Editor Style
   ============================================ */
.wes-pq-reply-form {
    margin-top: 15px;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 20px;
}

.wes-pq-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wes-pq-reply-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.wes-pq-reply-hint {
    font-size: 12px;
    color: #6b7280;
}

.wes-pq-reply-editor {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wes-pq-reply-editor:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wes-pq-reply-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.wes-toolbar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.wes-toolbar-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.wes-toolbar-btn:active {
    background: #d1d5db;
}

.wes-toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    margin: 0 8px;
}

.wes-pq-reply-textarea {
    width: 100% !important;
    min-height: 120px !important;
    padding: 16px !important;
    border: none !important;
    outline: none !important;
    resize: vertical;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.wes-pq-reply-textarea::placeholder {
    color: #9ca3af;
}

.wes-pq-reply-footer {
    margin-top: 15px;
}

.wes-pq-reply-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.wes-pq-reply-submit:hover {
    background: #2563eb !important;
}

.wes-pq-reply-submit:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Toggle Reply Button */
.wes-toggle-reply {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.wes-toggle-reply:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
}
