.faqs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.faq-item {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary, #1f2937);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(31, 41, 55, 0.04);
}

.faq-question-text {
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #64748b;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.is-open {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 20px 16px 20px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 15px;
}

.faq-answer-content a {
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 114, 128, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-answer-content a:hover {
    color: #4b5563;
    border-bottom-color: rgba(75, 85, 99, 0.4);
}

.faqs-empty {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 24px;
    font-style: italic;
}

.faqs-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Main FAQ item container */
.faqs-manage-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.faqs-manage-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faqs-manage-item.dragging {
    opacity: 0.5;
}

.faqs-manage-item.drag-over {
    border-color: #4f46e5;
    background: #eef2ff;
}

/* Drag handle (far left) */
.faqs-manage-item__drag-handle {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.125rem;
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.faqs-manage-item:hover .faqs-manage-item__drag-handle {
    opacity: 1;
}

.faqs-manage-item__drag-handle:active {
    cursor: grabbing;
}

.faqs-manage-item__drag-handle span {
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    user-select: none;
}

/* Body container (question and answer) */
.faqs-manage-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Question (bold, editable) */
.faqs-manage-item__question {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;
    padding: 2px 4px;
    margin: 0;
    border-radius: 4px;
    outline: none;
    cursor: text;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.faqs-manage-item__question:hover {
    background-color: #f9fafb;
}

.faqs-manage-item__question:focus {
    background-color: #ffffff;
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

/* Answer (lighter, editable, indented) */
.faqs-manage-item__answer {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    padding: 2px 4px 2px 0.5rem;
    margin: 0;
    border-radius: 4px;
    outline: none;
    cursor: text;
    min-height: 1.5em;
    transition: background-color 0.2s ease, outline 0.2s ease;
}

.faqs-manage-item__answer:hover {
    background-color: #f9fafb;
}

.faqs-manage-item__answer:focus {
    background-color: #ffffff;
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.faqs-manage-item__answer:empty::before {
    content: 'Answer...';
    color: #9ca3af;
    font-style: italic;
}

/* Delete button (far right) */
.faqs-manage-item__delete {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
    margin-top: 0.125rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faqs-manage-item__delete:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.faqs-manage-item__delete:active {
    transform: scale(0.95);
}

.faqs-manage-item__delete i,
.faqs-manage-item__delete svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    stroke-width: 2;
    color: inherit;
}

.faqs-manage-empty {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    padding: 16px;
    font-style: italic;
}

/* Add button styling - works for buttons inside page-editor-field or anywhere */
.page-editor-field button.page-editor-add-button,
button.page-editor-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.page-editor-field button.page-editor-add-button:hover,
button.page-editor-add-button:hover {
    background: #f8fafc;
    border-color: #4f46e5;
    color: #4f46e5;
}

.page-editor-field button.page-editor-add-button:active,
button.page-editor-add-button:active {
    transform: translateY(1px);
}

.page-editor-field button.page-editor-add-button i,
.page-editor-field button.page-editor-add-button svg,
button.page-editor-add-button i,
button.page-editor-add-button svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    stroke-width: 2;
}
