/* 랜딩페이지 이벤트설정 탭 (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 { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.lpev-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lpev-section-head h4 { margin: 0; font-size: 14px; font-weight: 700; color: #111827; }
.lpev-section-head p { margin: 4px 0 0; font-size: 11px; color: #6b7280; line-height: 1.5; }

.lpev-body { margin-top: 14px; }
.lpev-label { font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }

.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; }
