@charset "utf-8";

.snip-item img,
.snip-item .snip-preview {
    display: none !important;
}

/* blockquote 기본 리셋 */
blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* 에디터에서 contenteditable 안정화 */
blockquote[contenteditable="true"] {
    outline: none;
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 엔터 입력 시 줄바꿈 안정화 */
blockquote br {
    line-height: inherit;
}

/* 스니펫 시작***************************************************/

.price-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #eff5ff;
    border-radius: 16px;
}

.price-left .price-avg {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.price-left .price-avg strong {
    color: #3581ff;
    font-weight: 700;
}

.price-left .price-range {
    font-size: 16px;
    color: #555;
}

.price-right .price-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}


.sn-h2-num {
    display: block;
}

.sn-h2-num .num {
    display: inline-block;
    margin-right: 4px;
    background: #0075d9;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-3px);
}

.sn-h2-num .title {
    display: inline;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal;
    /* 줄바꿈 허용 */
}

.sn-h2-text .title {
    display: inline;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal;
}

.sn-h4-num {
    display: block;
}

.sn-h4-num .num {
    display: inline-block;
    margin-right: 4px;
    background: #0075d9;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(-3px);
}

.sn-h4-num .title {
    display: inline;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal;
    /* 줄바꿈 허용 */
}


/* ============================
   DOT 스니펫 스타일 (.sn-dot)
============================ */
.sn-dot {
    margin: 30px 0;
    padding: 40px;
    border-radius: 20px;
    background: #F2F4F6;
}

.sn-dot .dot-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.sn-dot .dot-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sn-dot .dot-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.sn-dot .dot-list li:before {
    content: "•";
    font-size: 20px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 2px;
    color: #555;
}

/* 에디터에서 contenteditable 미세 조정 */
.sn-dot [contenteditable="true"]:focus {
    outline: none;
}

/* ============================
   DOT2 스니펫 스타일 (.sn-dot)
============================ */
/* dot2 전체 박스 */
.sn-dot2 {
    background: #F2F4F6;
    padding: 40px;
    border-radius: 20px;
}

/* 타이틀 */
.sn-dot2 .dot2-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* 리스트 */
.sn-dot2 .dot2-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* 한 항목 */
.sn-dot2 .dot2-item {}

/* 🔥 타이틀 + 불릿 여기서 inline-flex 적용 */
.sn-dot2 .item-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 18px;
    font-weight: 700;
}

/* 🔥 불릿은 타이틀 앞에 붙는다 */
.sn-dot2 .item-title::before {
    content: "•";
    font-size: 15px;
    line-height: 1;
    color: #555;
}

/* 설명 */
.sn-dot2 .item-desc {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 에디터용 */
.sn-dot2 [contenteditable="true"]:focus {
    outline: none;
}

.sn-dot4 {
    margin: 30px 0;
}

.sn-dot4 .dot4-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sn-dot4 .dot4-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.sn-dot4 .dot4-list li:before {
    content: "•";
    font-size: 20px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 2px;
    color: #555;
}

/* contenteditable 포커스 */
.sn-dot4 [contenteditable="true"]:focus {
    outline: none;
}


/* ============================
   TIP 스니펫 스타일 (.sn-tip)
============================ */
.sn-tip {
    position: relative;
    background: #F2F4F6;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
}

/* 아이콘 + 텍스트 정렬 */
.sn-tip .tip-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 아이콘 영역 */
.sn-tip .tip-icon {
    font-size: 20px;
    line-height: 1;
    user-select: none;
    min-width: 24px;
    padding-top: 3px;
}

/* 텍스트 영역 */
.sn-tip .tip-text {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* 스니펫 제어 버튼 숨김 처리용 (너 이미 쓰고 있는 구조 유지) */
.sn-tip .sn-control {
    position: absolute;
    top: 8px;
    right: 8px;
}

.sn-tip .sn-control button {
    background: #eee;
    border: 1px solid #ccc;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}


/* ============================
   DOT 스니펫 스타일 (.sn-dot3)
============================ */
.sn-dot3 {
    margin: 30px 0;
    border-radius: 20px;
}

.sn-dot3 .dot3-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.sn-dot3 .dot3-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sn-dot3 .dot3-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.sn-dot3 .dot3-list li:before {
    content: "•";
    font-size: 20px;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 2px;
    color: #555;
}

/* 에디터에서 contenteditable 미세 조정 */
.sn-dot3 [contenteditable="true"]:focus {
    outline: none;
}

/* ============================
   cta (.sn-cta)
============================ */
.sn-cta {
    padding: 60px 40px;
    background: #f7f9fb;
    border-radius: 20px;
    text-align: center;
}

.sn-cta .cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}

.sn-cta .cta-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 18px 60px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 600;
}

.sn-cta .cta-button:hover {
    opacity: 0.9;
}

.sn-cta [contenteditable="true"]:focus {
    outline: none;
}




/* =========================================================
   📌 INFO TABLE 스니펫 스타일 (.sn-info-table)
   - 2컬럼 표 형태 스니펫
   - 좌측: 항목명 / 우측: 설명
========================================================= */

.sn-info-table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.sn-info-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sn-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.sn-info-table tr:last-child {
    border-bottom: none;
}

.sn-info-table td {
    padding: 14px 18px;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.sn-info-table td.left {
    width: 180px;
    font-weight: 600;
    color: #111827;
    background: #dde2e8;
    border-right: 1px solid #f0f0f0;
}

.sn-info-table td.right {
    background: #f8fafd;
}

.sn-info-table tr td:last-child {
    border-right: none;
}

.sn-info-table tr:first-child td:first-child {
    border-top-left-radius: 10px;
}

.sn-info-table tr:first-child td:last-child {
    border-top-right-radius: 10px;
}

.sn-info-table tr:last-of-type td:last-child {
    border-bottom-right-radius: 10px !important;
}

/* =========================================================
   📌 QUOTE 스니펫 스타일 (.sn-quote)
   - 왼쪽 세로 라인 + 적당한 패딩
========================================================= */

.sn-quote {
    border-left: 2px solid #1f2937;
    /* 진한 네이비/그레이 느낌 */
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.7;
    color: #1f2937;
    background: #fff;
    margin: 10px 0;
}




.sn-quote:focus {
    outline: none;
}

/* 스니펫 종료***************************************************/
/* 템플릿 블록 시작***************************************************/


.sn-template {
    position: relative;
    padding: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
    -webkit-user-select: none;
    user-select: none;
}

/* 우측 상단 컨트롤 */
.sn-template .sn-control {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    pointer-events: none;
    transition: 0.15s;
}

.sn-template:hover .sn-control {
    opacity: 1;
    pointer-events: auto;
}

.sn-template .sn-delete {
    padding: 6px 10px;
    font-size: 13px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    cursor: pointer;
}

/* 입력창 */
.sn-template .tmpl-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sn-template input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.sn-template .tmpl-apply {
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* 프리뷰 */
.sn-template .tmpl-thumb-wrap {
    overflow: hidden;
    height: 270px;
}

.sn-template .tmpl-preview {
    display: flex;
    gap: 40px;
}

.sn-template .tmpl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    display: inline-block;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 부드러운 트랜지션 추가 */
}

.sn-template .tmpl-card:hover {
    transform: translateY(-5px);
    /* 위로 살짝 띄우는 효과 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 그림자 추가 */
}


.sn-template .tmpl-card img {
    width: 100%;
    border-radius: 10px;
}

.sn-template .tmpl-title {
    font-size: 15px;
    margin-top: 10px;
    font-weight: 600;
}



/* 템플릿 블록 종료***************************************************/



/* 컨트롤 영역: 우측 상단 */
.block .sn-control {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: 0.15s ease;
}

/* 블록 호버 시 표시 */
.block:hover .sn-control {
    opacity: 1;
    pointer-events: auto;
}

/* 버튼 스타일 */
.sn-control button {
    padding: 4px 8px;
    font-size: 12px;
    background: #fafafa;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    cursor: pointer;
    color: #444;
    transition: 0.15s ease;
    white-space: nowrap;
}

/* 호버 효과 */
.sn-control button:hover {
    background: #f0f0f0;
    border-color: #c5c5c5;
}

/* 삭제만 약간 경고톤 */
.sn-control .sn-delete {
    color: #c92a2a;
    border-color: #e4b4b4;
}

.sn-control .sn-delete:hover {
    background: #ffe3e3;
    border-color: #ffa8a8;
}

.sn-image .img-wrap img {
    width: 100%;
}

.block [contenteditable="true"] {
    pointer-events: auto;
}
.sn-h2-text .title,
.sn-h2-num .num,
.sn-h2-num .title,
.sn-h4-num .num,
.sn-h4-num .title,
.sn-dot .dot-title,
.sn-dot2 .dot2-title,
.sn-dot3 .dot3-title {
    outline: none;
    cursor: text;
}



@media (max-width:768px) {
    .sn-h2-text .title {
        font-size: 24px;
    }

    .sn-dot .dot-title {
        font-size: 18px;
    }

    .sn-template .tmpl-preview {
        flex-direction: column;
    }

    .sn-dot2 .item-title {
        font-size: 17px;
    }
    
    .sn-cta {
        padding: 50px 40px;
    }
    
    .sn-cta .cta-title {
        font-size: 18px;
    }
    
    .sn-cta .cta-button {
        font-size: 14px;
    }

    .sn-dot2,
    .sn-template,
    .sn-dot {
        padding: 24px;
    }
}
