/* 전체 FAQ 영역 */
.lodi-faq-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

/* 질문·답변 카드 */
.lodi-faq-card {
    position: relative;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* 마우스 오버 */
.lodi-faq-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    border-left-color: #1d4ed8;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

/* 질문 */
.lodi-faq-card .lodi-faq-question {
    position: relative;
    margin: 0 0 12px;
    padding-left: 34px;
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
    background: none;
    border: 0;
    box-shadow: none;
    text-shadow: none;
}

/* 질문 앞 Q 아이콘 */
.lodi-faq-card .lodi-faq-question::before {
    content: "Q";
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* 답변 */
.lodi-faq-card .lodi-faq-answer {
    position: relative;
    margin: 0;
    padding-left: 34px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
}

/* 답변 앞 A 아이콘 */
.lodi-faq-card .lodi-faq-answer::before {
    content: "A";
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* 모바일 */
@media (max-width: 768px) {
    .lodi-faq-wrap {
        gap: 12px;
        margin: 24px 0;
    }

    .lodi-faq-card {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .lodi-faq-card .lodi-faq-question {
        padding-left: 31px;
        font-size: 17px;
    }

    .lodi-faq-card .lodi-faq-answer {
        padding-left: 31px;
        font-size: 15px;
        line-height: 1.75;
    }

    .lodi-faq-card .lodi-faq-question::before,
    .lodi-faq-card .lodi-faq-answer::before {
        width: 23px;
        height: 23px;
        font-size: 12px;
    }
}



/* ==========================================================
   로디헬퍼 핵심요약
========================================================== */

.lodi-summary-box {
    position: relative;
    margin: 30px 0;
    padding: 24px 26px;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.lodi-summary-title {
    position: relative;
    margin: 0 0 16px;
    padding-left: 31px;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.lodi-summary-title::before {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.lodi-summary-list {
    margin: 0 !important;
    padding: 0 0 0 22px !important;
}

.lodi-summary-list li {
    margin: 0 0 10px !important;
    padding-left: 3px;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.lodi-summary-list li:last-child {
    margin-bottom: 0 !important;
}

.lodi-summary-list li::marker {
    color: #2563eb;
}

@media (max-width: 768px) {
    .lodi-summary-box {
        margin: 24px 0;
        padding: 19px 17px;
        border-radius: 10px;
    }

    .lodi-summary-title {
        margin-bottom: 13px;
        font-size: 18px;
    }

    .lodi-summary-list li {
        margin-bottom: 8px !important;
        font-size: 15px;
        line-height: 1.7;
    }
}


/* ==========================================================
   로디헬퍼 AI 표
========================================================== */

.lodi-table-wrap {
    margin: 30px 0;
}

.lodi-table-title {
    margin-bottom: 12px;
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.lodi-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.lodi-ai-table {
    width: 100%;
    min-width: 600px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    border-spacing: 0;
}

.lodi-ai-table th,
.lodi-ai-table td {
    padding: 14px 16px;
    border: 0 !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    text-align: left;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.65;
}

.lodi-ai-table th:last-child,
.lodi-ai-table td:last-child {
    border-right: 0 !important;
}

.lodi-ai-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.lodi-ai-table thead th {
    background: #f1f5f9;
    color: #111827;
    font-weight: 700;
}

.lodi-ai-table tbody td {
    color: #374151;
    background: #ffffff;
}

.lodi-ai-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .lodi-table-wrap {
        margin: 24px 0;
    }

    .lodi-table-title {
        font-size: 18px;
    }

    .lodi-ai-table {
        min-width: 540px;
    }

    .lodi-ai-table th,
    .lodi-ai-table td {
        padding: 11px 12px;
        font-size: 14px;
        line-height: 1.6;
    }
}



/* ==========================================================
   로디헬퍼 CTA 버튼
========================================================== */

.wp-block-buttons.lodi-cta-wrap {
    margin: 30px 0;
}

.lodi-cta-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 54px;
    padding: 14px 30px;

    background: #2563eb;
    color: #ffffff !important;

    border: 0;
    border-radius: 10px;

    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lodi-cta-button .wp-block-button__link:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.32);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .lodi-cta-button {
        width: 100%;
    }

    .lodi-cta-button .wp-block-button__link {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 13px 18px;
        font-size: 16px;
    }
}




/* CTA 버튼 생성 영역 */
.lodi-button-generator {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #dcdcde;
}

/* 제목 */
.lodi-button-generator-title {
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

/* 각 입력 필드 간격 */
.lodi-button-field {
    margin-bottom: 18px;
}

/* 워드프레스 기본 TextControl 하단 여백 제거 */
.lodi-button-field .components-base-control {
    margin-bottom: 0;
}

.lodi-button-field .components-base-control__field {
    margin-bottom: 0;
}

/* 라벨과 입력창 사이 간격 */
.lodi-button-field .components-input-control__label,
.lodi-button-field .components-base-control__label {
    display: block;
    margin-bottom: 7px;
    font-weight: 500;
}

/* 입력창 */
.lodi-button-field input {
    min-height: 40px;
}

/* 생성 버튼 */
.lodi-create-button {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    min-height: 42px;
    margin-top: 4px;

    background: #2563eb !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 5px;
    font-weight: 600;
}

.lodi-create-button:hover:not(:disabled) {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.lodi-create-button:disabled {
    opacity: 0.55;
}






/* 편집기 전용 CTA 중앙정렬 */
.block-editor-block-list__layout .wp-block-buttons.lodi-cta-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 30px auto !important;
}

.block-editor-block-list__layout .lodi-cta-button {
    margin-left: auto !important;
    margin-right: auto !important;
}