/* 랜딩페이지 이벤트설정 탭 (2026-07-22) — 이탈 방지 팝업 설정 + 미리보기 (.lpev-*) */

.lpev-info { margin-bottom: 14px; padding: 10px 12px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 11px; color: #1e40af; line-height: 1.5; }

/* (.lpev-section/-head·.lpev-label 은 2026-08-22 A-4 개편으로 제거 — 아래 .lpev-master/.lpev-sec 가 대체) */

.lpev-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.lpev-variants button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.lpev-variants button span { font-size: 20px; }
.lpev-variants button b { font-size: 12px; color: #111827; }
.lpev-variants button small { font-size: 10px; color: #9ca3af; }
.lpev-variants button.on { border-color: #3e6187; background: #eff6ff; box-shadow: 0 0 0 1px #3e6187; }

.lpev-fields { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; }
.lpev-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpev-row > label { font-size: 12px; color: #374151; flex-shrink: 0; }
.lpev-row > label small { color: #9ca3af; font-size: 10px; }
.lpev-row input[type="text"], .lpev-row select { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; background: #fff; flex: 1; min-width: 120px; }
/* 이모지 픽커 */
.lpev-emoji-wrap { position: relative; flex: 0 0 auto; }
.lpev-emoji-btn { width: 44px; height: 34px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.lpev-emoji-btn:hover { background: #f3f4f6; }
.lpev-emoji-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; padding: 8px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.lpev-emoji-menu button { width: 36px; height: 34px; border: none; border-radius: 7px; background: none; font-size: 18px; cursor: pointer; line-height: 1; }
.lpev-emoji-menu button:hover { background: #f3f4f6; }
.lpev-row textarea { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; resize: vertical; box-sizing: border-box; background: #fff; }
.lpev-row select { flex: 0 0 auto; min-width: 80px; }
.lpev-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; cursor: pointer; }
.lpev-check input { accent-color: #2563eb; margin: 0; }
.lpev-note { font-size: 11px; color: #9ca3af; line-height: 1.5; }

.lpev-test-btn { padding: 5px 10px; border: 1px solid #d1d5db; border-radius: 7px; background: #fff; font-size: 11px; color: #374151; cursor: pointer; font-weight: 500; }
.lpev-test-btn:hover { background: #f3f4f6; }
.lpev-test-btn:disabled { opacity: .45; cursor: not-allowed; }

/* 미리보기 — 팝업 축소 재현 */
.lpev-preview { background: #e5e7eb; border-radius: 12px; padding: 22px 14px; display: flex; justify-content: center; }
.lpev-pv-pop { position: relative; width: min(100%, 320px); background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); padding: 26px 20px 18px; text-align: center; }
.lpev-pv-close { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .06); color: #6b7280; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lpev-pv-emoji { font-size: 36px; line-height: 1; display: inline-block; }
.lpev-pv-title { font-size: 16px; font-weight: 800; color: #111827; margin-top: 10px; line-height: 1.4; letter-spacing: -0.02em; }
.lpev-pv-desc { font-size: 12px; color: #6b7280; margin-top: 7px; line-height: 1.6; }
.lpev-pv-timer { display: inline-flex; margin-top: 9px; padding: 6px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; font-size: 12px; color: #dc2626; font-weight: 700; }
.lpev-pv-benefits { margin: 11px 0 0; text-align: left; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; list-style: none; }
.lpev-pv-benefits li { font-size: 12px; color: #374151; padding: 3px 0; }
.lpev-pv-benefits li::before { content: "🎁 "; }
.lpev-pv-form { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lpev-pv-form input[type="text"] { width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 12px; box-sizing: border-box; background: #fff; }
.lpev-pv-form label { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6b7280; }
.lpev-pv-rv { margin-top: 11px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 11px; text-align: left; }
.lpev-pv-rv .st { font-size: 11px; color: #f59e0b; letter-spacing: 1.5px; }
.lpev-pv-rv .tx { font-size: 11px; color: #374151; margin-top: 2px; line-height: 1.5; }
.lpev-pv-rv .nm { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.lpev-pv-social { margin-top: 9px; font-size: 11px; color: #6b7280; }
.lpev-pv-social b { color: #111827; }
.lpev-pv-cta { display: block; width: 100%; margin-top: 13px; padding: 11px; border: none; border-radius: 11px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 700; }
.lpev-pv-later { margin-top: 7px; font-size: 11px; color: #9ca3af; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 감사인사(완료 팝업) 설정 미리보기 — 실제 .lp-success-* 축소 재현 (2026-07-25) ===== */
.lpth-pv-pop { width: min(100%, 320px); background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); padding: 28px 22px 20px; text-align: center; }
.lpth-pv-icon { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15, 23, 42, .18); }
.lpth-pv-icon svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lpth-pv-icon-emoji { font-size: 28px; line-height: 1; }
.lpth-pv-title { font-size: 17px; font-weight: 700; color: #0f172a; letter-spacing: -0.3px; margin-bottom: 8px; }
.lpth-pv-msg { font-size: 13px; color: #475569; line-height: 1.55; margin-bottom: 4px; }
.lpth-pv-sub { font-size: 11.5px; color: #94a3b8; line-height: 1.5; }
.lpth-pv-close { margin-top: 14px; padding: 9px 22px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; font-size: 12.5px; font-weight: 600; color: #475569; }
.lpth-pv-redirect { margin-top: 12px; padding: 6px 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 10.5px; color: #92400e; word-break: break-all; }

/* ============================================================
   이탈방지·감사인사 모달 A-4 골격 (2026-08-22 개편)
   마스터 카드 + 설정(좌)|미리보기(우 sticky) 2컬럼 — 컨테이너 쿼리 ≤760px 1컬럼
   ============================================================ */
.lpev-in-modal { container-type: inline-size; padding: 16px 18px 18px; background: #f6f9fc; }
.lpev-in-modal .lpev-body { margin-top: 0; }

.lpev-master { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fbfdfe; border: 1px solid #e4edf5; border-radius: 9px; margin-bottom: 10px; }
.lpev-master h4 { margin: 0 0 3px; font-size: 12.5px; font-weight: 700; color: #1e293b; }
.lpev-master p { margin: 0; font-size: 10.5px; color: #94a3b8; line-height: 1.5; }

.lpev-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lpev-colL { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lpev-pvcol { position: sticky; top: 0; min-width: 0; }
@container (max-width: 760px) {
  .lpev-cols { grid-template-columns: minmax(0, 1fr); }
  .lpev-pvcol { position: static; }
}

.lpev-sec { background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; overflow: hidden; }
.lpev-sec-title { font-size: 12px; font-weight: 700; color: #3e6187; margin: 0; padding: 8px 14px; background: #f3f7fb; border-bottom: 1px solid #e4edf5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpev-sec-meta { font-size: 10.5px; font-weight: 400; color: #94a3b8; }
.lpev-sec-bd { padding: 12px 14px; }
/* 카드 안 이중 테두리 제거 + 유형 그리드 2×2 고정 */
.lpev-sec-bd .lpev-fields { border: 0; padding: 0; }
.lpev-sec-bd .lpev-variants { margin-bottom: 0; grid-template-columns: 1fr 1fr; }
/* 미리보기 — 페이지 위에 뜬 팝업임을 보여주는 빗금 배경 */
.lpev-sec-bd .lpev-preview { background: repeating-linear-gradient(45deg, #f8fafc 0 12px, #f1f5f9 12px 24px); border: 1px dashed #dbe6f0; border-radius: 10px; }

/* ===== 랜딩페이지 복사 모달 (.lpdup) — 2스텝 (2026-07-25) ===== */
/* 모달 본문 여백은 여기서 준다(패널 인라인 style 대신) */
.lpdup { padding: 18px 20px 20px; }
.lpdup .ord-stepper { margin-bottom: 16px; }
.lpdup-row { margin-bottom: 14px; }
.lpdup-row > label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.lpdup-row .req { color: #ef4444; }
.lpdup-row select, .lpdup-row input[type="text"] { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; box-sizing: border-box; }
.lpdup-row select:focus, .lpdup-row input[type="text"]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.lpdup-note { margin: 5px 0 0; font-size: 11px; color: #9ca3af; line-height: 1.55; }
.lpdup-warn { padding: 10px 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: 11px; color: #92400e; line-height: 1.6; }
.lpdup-warn strong { color: #78350f; }
.lpdup-warn ul { margin: 5px 0 6px; padding-left: 16px; }
.lpdup-warn li { margin: 2px 0; }

/* 복사 항목 = 스위치 행 (좌: 설명 / 우: .ord-switch) */
.lpdup-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; margin-bottom: 7px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.lpdup-item:hover { background: #f0f6ff; border-color: #bfdbfe; }
.lpdup-item-main { min-width: 0; }
.lpdup-item b { display: block; font-size: 12.5px; color: #0f172a; font-weight: 600; }
.lpdup-item small { display: block; margin-top: 2px; font-size: 11px; color: #6b7280; line-height: 1.5; }
.lpdup-item .lpdup-hint { color: #b45309; margin-top: 4px; }
.lpdup-summary { margin-top: 12px; padding: 8px 10px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 11.5px; color: #1e40af; line-height: 1.5; }

/* ===== 페이지 동작 설정 모달 (.lpix) — 우클릭 방지 · 클릭 시 폼 이동 (2026-07-25 · 2026-08-22 A-4 밴드 카드) ===== */
.lpix { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: #f6f9fc; }
.lpix-section { padding: 0; background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; overflow: hidden; }
.lpix-sec-title { font-size: 12px; font-weight: 700; color: #3e6187; margin: 0; padding: 8px 14px; background: #f3f7fb; border-bottom: 1px solid #e4edf5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpix-sec-meta { font-size: 10.5px; font-weight: 400; color: #94a3b8; }
.lpix-bd { padding: 12px 14px; }
.lpix-note { margin: 10px 0 0; font-size: 11px; color: #94a3b8; line-height: 1.6; }
.lpix-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 12px; background: #fbfdfe; border: 1px solid #eef4f9; border-radius: 9px; }
.lpix-row:first-child { margin-top: 0; }
.lpix-row:hover { border-color: #c4d3e2; }
.lpix-row-main { min-width: 0; }
.lpix-row b { display: block; font-size: 12.5px; color: #0f172a; font-weight: 600; }
.lpix-row small { display: block; margin-top: 2px; font-size: 11px; color: #6b7280; }

/* 제외 영역 칩 (페이지 동작 설정) */
.lpix-sub { margin: 14px 0 6px; font-size: 12px; font-weight: 700; color: #475569; }
.lpix-sub small { font-weight: 400; color: #94a3b8; }
.lpix-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lpix-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; font-size: 12px; color: #374151; cursor: pointer; }
.lpix-chip:hover { border-color: #3e6187; background: #f8fbfd; }
.lpix-chip input { accent-color: #3e6187; margin: 0; cursor: pointer; }
.lpix-chip:has(input:checked) { background: #eef4f9; border-color: #3e6187; color: #3e6187; font-weight: 600; }
.lpix-chip em { font-style: normal; font-size: 10px; color: #94a3b8; }
.lpix-chip:has(input:checked) em { color: #b45309; }
