/* 관리자 팝업관리 내용에 쓰는 공통 스타일 (내용 칸에는 HTML만 넣고, 스타일은 여기에 추가) */
.spk {
  --sp-ink: #0c0c0c;
  --sp-sub: #6b7280;
  --sp-line: #e9e9e9;
  --sp-blue: #0f5eb3;
  --sp-blue-hl: #1a7fe0;
  --sp-blue-soft: #e8f0fa;
  --sp-en: 'Montserrat', sans-serif;

  padding: 16px 16px 18px; background: #fff;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--sp-ink); word-break: keep-all; text-align: left;
}
.spk *, .spk *:before, .spk *:after { box-sizing: border-box; }
.spk :where(p, div, a, li, span, b, em, small, label, form) {
  font-family: inherit; font-size: inherit; color: inherit; line-height: inherit;
}
.spk :where(h2, h3, p, ul, li, form) { margin: 0; padding: 0; }
.spk :where(ul) { list-style: none; }
.spk .sp-en { font-family: var(--sp-en); }

/* 상단 파란 카드 */
.spk .sp-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px 24px; color: #fff;
  background: linear-gradient(125deg, #1a6fd8 0%, #2f8fe0 45%, #8cc8f2 100%);
}
.spk .sp-card:before { content: ''; position: absolute; right: -60px; bottom: -90px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.spk .sp-card > * { position: relative; }
.spk .sp-brand { font-size: 17px; font-weight: 800; letter-spacing: .16em; color: #fff; }
.spk .sp-brand-sub { margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .8); }
.spk .sp-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12.5px; font-weight: 700; color: #d23c3c; }
.spk .sp-badge i { width: 7px; height: 7px; border-radius: 50%; background: #d23c3c; }
.spk .sp-title { margin-top: 12px; font-size: 27px; font-weight: 800; line-height: 1.3; letter-spacing: -.03em; color: #fff; }
.spk .sp-title span { background: linear-gradient(transparent 66%, rgba(12, 79, 151, .55) 66%); }
.spk .sp-card .sp-shield { position: absolute; right: 24px; bottom: 22px; }

/* 안내 */
.spk .sp-pill { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 0 8px; padding: 5px 12px; border-radius: 8px; background: var(--sp-blue-soft); font-size: 13px; font-weight: 700; color: var(--sp-blue); }
.spk .sp-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--sp-blue); }
.spk .sp-head { margin: 12px 8px 0; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--sp-ink); }
.spk .sp-desc { margin: 8px 8px 0; padding-bottom: 14px; border-bottom: 1px solid var(--sp-line); font-size: 14px; line-height: 1.3; color: var(--sp-sub); }

/* 카드 2개 — 링크(<a>)는 각 <li> 안에 넣음 */
.spk .sp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 8px 0; }
.spk .sp-cards li { display: flex; }
.spk .sp-cards a {
  display: block; width: 100%; padding: 14px 16px; border: 1px solid #dfe8f4; border-radius: 14px; background: #f7faff;
  color: inherit; text-decoration: none; transition: border-color .2s, background .2s, transform .2s;
}
.spk .sp-cards a:hover { border-color: var(--sp-blue); background: var(--sp-blue-soft); transform: translateY(-2px); }
.spk .sp-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 6px; background: var(--sp-blue); font-size: 12px; font-weight: 700; color: #fff; }
.spk .sp-cards b { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--sp-ink); }
.spk .sp-cards p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--sp-sub); }

.spk .sp-queue { display: flex; gap: 10px; margin: 10px 8px 0; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0dca8; }
.spk .sp-queue svg { flex: 0 0 20px; margin-top: 1px; }
.spk .sp-queue p { font-size: 13px; line-height: 1.6; color: #4a3b1c; }
.spk .sp-queue b { font-weight: 700; color: #2b220f; }

.spk .sp-btn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 8px 0; height: 54px; border-radius: 999px; background: var(--sp-ink); font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; transition: background .2s; }
.spk .sp-btn:hover { background: var(--sp-blue); }
.spk .sp-btn-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 14px; }
.spk .sp-note { margin-top: 8px; text-align: center; font-size: 12px; color: #8a919c; }
.spk .sp-more { margin-top: 6px; text-align: center; }
.spk .sp-more a { font-size: 13px; font-weight: 700; color: var(--sp-blue); text-decoration: underline; text-underline-offset: 3px; }

.spk a:focus-visible, .spk input:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 2px; }

@media screen and (max-width: 480px) {
  .spk .sp-card { padding: 20px 20px 22px; }
  .spk .sp-title { font-size: 23px; }
  .spk .sp-card .sp-shield { width: 58px; height: 67px; right: 18px; }
  .spk .sp-head { font-size: 18px; }
  .spk .sp-cards a { padding: 12px 12px; }
  .spk .sp-cards b { font-size: 15px; }
  .spk .sp-btn { height: 50px; font-size: 16px; }
}

/* 관리자 레이어 상자 테두리를 카드 모양에 맞춤 */
.wiz-popup-layer:has(.spk) { border: 0; border-radius: 20px; overflow: hidden; }
.wiz-popup-layer:has(.spk) .wiz-popup-content { cursor: default; }

/* 아이콘은 에디터가 <svg>를 지우므로 CSS 배경으로 넣음 */
.spk .sp-card:after { content: ''; position: absolute; right: 24px; bottom: 22px; width: 76px; height: 88px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 120'><path d='M52 6 94 22v32c0 28-18 48-42 60C28 102 10 82 10 54V22z' fill='none' stroke='%23fff' stroke-width='5' stroke-linejoin='round'/><path d='m34 58 13 13 24-26' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain; }
.spk .sp-queue:before { content: ''; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%23b7791f' stroke-width='2'/><path d='M12 7v5l3 2' fill='none' stroke='%23b7791f' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat center / contain; }
@media screen and (max-width: 480px) {
  .spk .sp-card:after { width: 58px; height: 67px; right: 18px; }
}
