/* ============================================================
 * 테마 20 (운영) - 피그마 시안 기반 (mo / node 363:1915 시안_9)
 * - invitation.css 뒤에 로드되어 테마20 관련 규칙을 오버라이드한다
 * - 테스트본(invitation_20_test.css) 수정 시 이 운영본에도 동일 반영할 것
 *
 * 디자인 토큰 (옐로 포인트 / 사진형)
 *  커버 배경 : #FFFFFF (화이트)
 *  본문 배경 : #FFF7E2 (옐로 크림)
 *  네이비 잉크: #21284E (타이틀/이름/예식일 원/교통 아이콘)
 *  옐로 포인트: #FFCF10 (커버 레터링/RSVP·계좌 버튼/장식)
 *  블루 헤어라인: #4F6AB3 (교통/계좌 행 구분선)
 *  RSVP 다크 : #2F2E31
 *  캘린더 주말: #BF4340
 *  폰트      : 본문 BookkMyungjo(자체 보유, 시안의 Noto Serif KR 대체)
 *              영문 레터링 raustila(자체 보유, 시안의 Get Show/Quentin 대체)
 * ============================================================ */

/* ============================================================
 * 테마 선택 목록 썸네일 (에디터 좌측 패널, #themeNameBox 스코프 밖)
 * - 테마20 커버 비율은 360:844 로 표준(360:786)보다 세로가 길다 (테마18/19와 동일 처리)
 * ============================================================ */
.theme-type[data-id="theme20"] .theme-img {
  aspect-ratio: 360 / 786;
  background: #ffffff;
  overflow: hidden;
}
.theme-type[data-id="theme20"] .theme-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 모달은 JS가 body 로 appendTo 되어 #themeNameBox 밖에 위치
 * → body:has() 스코프에도 변수를 선언해야 모달 안 var() 가 동작한다. (테마16~19와 동일) */
#themeNameBox.theme20,
body:has(#themeNameBox.theme20) {
  --t20-bg: #fff7e2;
  --t20-cover-bg: #ffffff;
  --t20-navy: #21284e;      /* 타이틀/이름/예식일 원 (피그마 363:1919) */
  --t20-yellow: #ffcf10;    /* 커버 레터링/버튼 (피그마 363:1918/2074) */
  --t20-yellow-light: #ffeca2; /* 참석의사 모달 2행 active/동행추가·삭제 (피그마 378-2940) */
  --t20-blue: #4f6ab3;      /* 교통/계좌 행 헤어라인 (피그마 363:2496) */
  --t20-dark: #2f2e31;      /* RSVP 배경 (피그마 363:2070) */
  --t20-ink: #111111;       /* 교통/방명록 본문 */
  --t20-cal-red: #bf4340;   /* 캘린더 일/토 */
}

/* ===== 기본: 옐로 크림 배경 + 네이비 잉크 ===== */
#themeNameBox.theme20 {
  background: var(--t20-bg);
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}

/* ============================================================
 * 커버 (node 363:1915 상단 / 캔버스 360x844 기준, 화이트 배경)
 * - photo 사용 테마(Status::photo=true): 메인 사진(332x415 라운드) 위에
 *   옐로 스크립트 레터링 오버레이 + 하단 이름/날짜 텍스트
 * ============================================================ */
#themeNameBox.theme20 .theme-20-wrap {
  display: flex;
  justify-content: center;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 360 / 844;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--t20-cover-bg);
}
#themeNameBox.theme20 .theme-20-wrap .theme-frame-cons-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 360 / 844;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  background: var(--t20-cover-bg);
}

/* 메인 사진: x14 y114 w332 h415, 라운드 없음 (피그마 363:1917) */
#themeNameBox.theme20 .theme-20-wrap .preview-img-wrap {
  position: absolute;
  left: 3.89%;
  top: 13.5%;
  width: 92.22%;
  aspect-ratio: 332 / 415;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}
#themeNameBox.theme20 .theme-20-wrap .preview-img-wrap .cropper-preview {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}
#themeNameBox.theme20 .theme-20-wrap .preview-img-wrap .cropper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0; /* 부트스트랩 .card-img-top 의 상단 라운드 제거 */
  display: block;
}

/* we're getting married 스크립트: 피그마 원본 SVG 레터링 (343x147, #FFCF10·-6도 기울기 포함)
 * - 폰트 대체(raustila) 대신 시안 그대로의 아웃라인 SVG 사용 (2026-07-16 교체)
 * - 사진 상단에 겹치는 오버레이 (레터링 y81~, 사진은 y114~) */
#themeNameBox.theme20 .theme-20-wrap .theme-20-lettering {
  position: absolute;
  left: 50%;
  top: 7.5%;
  transform: translateX(-50%);
  width: 95.28%; /* 343/360 */
  height: auto;
  max-width: none;
  margin: 0;
  pointer-events: none;
  z-index: 2;
}

/* 하단 이름/날짜/예식장 (피그마 363:1919 y544 / 363:1923 y669, 네이비) */
#themeNameBox.theme20 .theme-20-wrap .theme-20-info {
  position: absolute;
  left: 0;
  top: 64.4%;
  bottom: 3.5%;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 19px;
  z-index: 2;
}
#themeNameBox.theme20 .theme-name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  color: var(--t20-navy);
}
#themeNameBox.theme20 .theme-name-stack .p_name_1,
#themeNameBox.theme20 .theme-name-stack .p_name_2 {
  display: block;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: clamp(17px, 6.11cqw, 24px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.4;
}
#themeNameBox.theme20 .theme-name-stack .theme-name-join {
  display: block;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: clamp(14px, 5cqw, 20px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.4;
}
#themeNameBox.theme20 .theme-20-date-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#themeNameBox.theme20 .theme-20-wrap .main-date-txt {
  margin: 0;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: clamp(13px, 4.44cqw, 18px);
  font-weight: 700;
  letter-spacing: -1px;
}
#themeNameBox.theme20 .theme-20-wrap .main-date-txt .weddding_date {
  margin-right: 0;
}
#themeNameBox.theme20 .theme-20-wrap .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: clamp(11px, 3.61cqw, 14px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
 * 본문 공통 (시안_9 node 363:1915 기준)
 *   전 섹션 옐로 크림(#FFF7E2) 배경 + 네이비 타이틀/#111 본문
 *   섹션 타이틀 = 영문 스크립트(raustila 24px) + 한글(BookkMyungjo Bold 20px)
 *   RSVP 만 다크(#2F2E31) 풀블리드
 * ============================================================ */
#themeNameBox.theme20 .preview-wrap {
  background-color: var(--t20-bg) !important;
  background-image: none;
}

/* ===== 섹션 타이틀 공통: 영문 스크립트 + 한글 ===== */
#themeNameBox.theme20 .preview-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 0 25px;
  padding-bottom: 0 !important;
  text-align: center;
}
#themeNameBox.theme20 .preview-title::before {
  content: none;
  background-image: none;
}
/* 영문 스크립트 타이틀 (피그마 Get Show 24px → raustila 대체, 네이비) */
#themeNameBox.theme20 .preview-gallery-title::before,
#themeNameBox.theme20 .preview-weddinginfo-title::before,
#themeNameBox.theme20 .preview-bank-title::before,
#themeNameBox.theme20 .preview-guestbook-title::before,
#themeNameBox.theme20 .preview-invi-wrap::before {
  content: "";
  order: -1;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  height: auto;
  color: var(--t20-navy);
  font-family: "raustila", "Cafe24Dangdanghae", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: none;
}
/* Gallery/Location/Account/Guestbook 4종은 피그마 원본 SVG 레터링으로 교체 (raustila 텍스트 대체, 2026-07-16)
 * - invitation 만 SVG 미제공이라 아래 초대글 섹션에서 텍스트 유지
 * - margin 상하 8px: 기존 텍스트 라인박스(24px x lh1.5 = 36px) 수직 리듬 유지 */
#themeNameBox.theme20 .preview-gallery-title::before,
#themeNameBox.theme20 .preview-weddinginfo-title::before,
#themeNameBox.theme20 .preview-bank-title::before,
#themeNameBox.theme20 .preview-guestbook-title::before {
  content: "";
  height: auto;
  margin: 8px auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
#themeNameBox.theme20 .preview-gallery-title::before {
  width: 47px;
  aspect-ratio: 47 / 22;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_gallery.svg");
}
#themeNameBox.theme20 .preview-weddinginfo-title::before {
  width: 55px;
  aspect-ratio: 55 / 19;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_location.svg");
}
#themeNameBox.theme20 .preview-bank-title::before {
  width: 54px;
  aspect-ratio: 54 / 19;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_account.svg");
}
#themeNameBox.theme20 .preview-guestbook-title::before {
  width: 68px;
  aspect-ratio: 68 / 20;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_guestbook.svg");
}
/* 한글 타이틀 공통 (BookkMyungjo Bold 20px 네이비) */
#themeNameBox.theme20 .preview-title .font-tit,
#themeNameBox.theme20 .preview-title h2 {
  margin: 0;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* ============================================================
 * 2-1. 초대글 (invite_title 363:1928)
 *  - 순서: [invitation 스크립트] → 헤드라인 → 인사 본문 → (사진) → 혼주 → 연락하기
 * ============================================================ */
#themeNameBox.theme20 .preview-invi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 32px;
}
#themeNameBox.theme20 .preview-invi-wrap::before {
  content: "invitation";
  order: -1;
  margin: 0 auto 5px;
}
#themeNameBox.theme20 .preview-invi-wrap > .preview-invitation-title { order: 1; }
#themeNameBox.theme20 .preview-invi-wrap > .preview-message-wrap { order: 2; margin-top: 24px; }
/* 헤드라인(초대합니다) 20px 700 네이비 (피그마 363:1931) */
#themeNameBox.theme20 .preview-invitation-title h2 {
  font-size: 20px;
  line-height: 1.5;
}
/* 인사 본문 14px 500 네이비 중앙 (피그마 363:1932) */
#themeNameBox.theme20 .preview-invi-wrap .preview-message-wrap,
#themeNameBox.theme20 .preview-invi-wrap .preview-message-wrap p {
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center !important;
}
#themeNameBox.theme20 .preview-invi-wrap .preview-message-wrap {
  background: transparent;
}
#themeNameBox.theme20 .preview-invitation-message {
  background-color: transparent;
  color: var(--t20-navy);
}
/* 초대글 사진(있을 경우): 본문 아래 풀폭 (피그마 con_photosection 360x214) */
#themeNameBox.theme20 .preview-invi-wrap > .preview-message-photo-wrap {
  order: 3;
  width: calc(100% + 64px);
  max-width: none;
  margin: 50px -32px 0;
}
#themeNameBox.theme20 .preview-message-photo {
  width: 100% !important;
  aspect-ratio: 360 / 214;
  height: auto !important;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f3ecd8;
}
#themeNameBox.theme20 .preview-message-photo .cropper-preview,
#themeNameBox.theme20 .preview-message-photo > img,
#themeNameBox.theme20 .preview-message-photo .card-img-top {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

/* ============================================================
 * 2-2. 혼주(가족) + 연락하기 버튼 (con_call 363:1936) - 네이비
 * ============================================================ */
#themeNameBox.theme20 .preview-invitation-cellphome {
  margin: 0;
  padding: 30px 16px 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#themeNameBox.theme20 .preview-invitation-cellphome,
#themeNameBox.theme20 .preview-invitation-cellphome p,
#themeNameBox.theme20 .preview-invitation-cellphome span {
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .preview-invitation-cellphome .groom,
#themeNameBox.theme20 .preview-invitation-cellphome .bride {
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 16px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding-bottom: 0;
}
#themeNameBox.theme20 .preview-invitation-cellphome .groom > p,
#themeNameBox.theme20 .preview-invitation-cellphome .bride > p {
  margin: 0;
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}
#themeNameBox.theme20 .preview-invitation-cellphome .groom > p:first-child,
#themeNameBox.theme20 .preview-invitation-cellphome .bride > p:first-child {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}
#themeNameBox.theme20 .preview-invitation-cellphome .groom > p:last-child,
#themeNameBox.theme20 .preview-invitation-cellphome .bride > p:last-child {
  flex: 0.8 1 0;
  min-width: 0;
  justify-content: flex-start;
}
/* 부모 이름 14px 400 / 관계 14px 400 / 신랑신부 이름 18px 700 (피그마 363:1937) */
#themeNameBox.theme20 .preview-invitation-cellphome [data-name$="phone_name"] {
  color: var(--t20-navy);
  font-size: 14px;
  font-weight: 400;
}
#themeNameBox.theme20 .preview-invitation-cellphome .rel_text {
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  color: var(--t20-navy) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-align: right;
}
#themeNameBox.theme20 .preview-invitation-cellphome .font-tit,
#themeNameBox.theme20 .preview-invitation-cellphome [data-name="groom_name"],
#themeNameBox.theme20 .preview-invitation-cellphome [data-name="bride_name"] {
  display: inline-block !important;
  margin: 0 !important;
  color: var(--t20-navy) !important;
  font-size: 18px !important;
  font-weight: 700;
  text-align: left;
}
#themeNameBox.theme20 .preview-invitation-cellphome .cellphone-dot {
  display: inline-block !important;
}
#themeNameBox.theme20 .preview-invitation-cellphome .cellphone-dot::before {
  content: "" !important;
  display: inline-block !important;
  width: 2px !important;
  height: 2px !important;
  margin: 0 6px !important;
  background-color: var(--t20-navy) !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}
#themeNameBox.theme20 .preview-invitation-cellphome .cellphone-dot:has(+ [data-name="goin_type_mom"] + [data-name*="mom_phone_name"]:empty) {
  display: none !important;
}
/* 故(고인) 마커: go.svg 를 mask 로 네이비 틴트 */
#themeNameBox.theme20 .preview-invitation-cellphome [data-name*="goin_type"] {
  position: relative;
  display: inline-block !important;
  width: 20px;
  height: 1em;
  vertical-align: middle;
}
#themeNameBox.theme20 .preview-invitation-cellphome [data-name*="goin_type"]:empty {
  display: none !important;
}
#themeNameBox.theme20 .preview-invitation-cellphome [data-name*="goin_type"] img {
  display: none !important;
}
#themeNameBox.theme20 .preview-invitation-cellphome [data-name*="goin_type"]:has(img)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: var(--t20-navy);
  -webkit-mask: url("/assets/tool/img/invitation/common/go.svg") no-repeat center / contain;
          mask: url("/assets/tool/img/invitation/common/go.svg") no-repeat center / contain;
}
/* 연락하기 버튼: 흰 배경 + 0.5px 네이비 보더 + 네이비 15px (피그마 363:1948) */
#themeNameBox.theme20 .preview-invitation-link {
  margin: 30px 0 0;
  text-align: center;
}
#themeNameBox.theme20 .btn-contactme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px !important;
  min-height: 45px !important;
  padding: 0 24px;
  border: 0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
#themeNameBox.theme20 .btn-contactme span {
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
}
#themeNameBox.theme20 .btn-contactme .call-icon {
  display: none;
}

/* ============================================================
 * 2-3. 캘린더 (con_calender 363:1950)
 *  - 상단 비둘기 리본 장식 → 날짜 2줄 → 캘린더 → 카운트다운 → 네이비 메시지
 * ============================================================ */
#themeNameBox.theme20 .preview-calendar-wrap {
  position: relative;
  border-top: 0;
  padding: 72px 0
}
/* 상단 비둘기 리본 장식 (피그마 363:2058, 159x44 - 헤어라인 대신 장식) */
#themeNameBox.theme20 .preview-calendar-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 159px;
  max-width: 60%;
  aspect-ratio: 159 / 44;
  height: auto;
  background: url("/assets/tool/img/invitation/theme_2026/theme20_ornament_date.svg") center / contain no-repeat; /* PNG→SVG 교체 (2026-07-16) */
  pointer-events: none;
}
#themeNameBox.theme20 .calendar-subtitle {
  display: none;
}
#themeNameBox.theme20 .preview-calendar-title::before {
  content: none;
  background: none;
}
#themeNameBox.theme20 .preview-calendar-title h2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* 날짜/시간 2줄: 18px 700 네이비 (피그마 363:2068) */
#themeNameBox.theme20 .preview-calendar-title .cal-date,
#themeNameBox.theme20 .preview-calendar-title .cal-daytime {
  display: block;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .calendar-box {
  margin: 20px auto 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#themeNameBox.theme20 .calendar-month {
  display: none;
}
#themeNameBox.theme20 .calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#themeNameBox.theme20 .calendar-table th,
#themeNameBox.theme20 .calendar-table td {
  height: 40px;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1px;
  text-align: center;
}
/* 요일 헤더: 기본 #111 / 일·토 #BF4340 (피그마 363:1953) */
#themeNameBox.theme20 .calendar-table th {
  font-size: 14px;
  color: #111111;
  border-bottom: 0;
}
#themeNameBox.theme20 .calendar-table th.sun,
#themeNameBox.theme20 .calendar-table th.sat {
  color: var(--t20-cal-red);
}
/* 날짜: 당월 #4D4C4C / 일·토 #BF4340 / 타월 #B3B3B3 */
#themeNameBox.theme20 .calendar-table td {
  font-size: 12px;
  color: #4d4c4c;
}
#themeNameBox.theme20 .calendar-table td.sun,
#themeNameBox.theme20 .calendar-table td.sat {
  color: var(--t20-cal-red);
}
#themeNameBox.theme20 .calendar-table td.other-month {
  color: #b3b3b3;
}
/* 예식일: 네이비 원 + 흰 글자 (피그마 Ellipse57 #21284E) */
#themeNameBox.theme20 .wedding-day-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t20-navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
/* D-day 카운트다운 4박스 (피그마 image103 참조: 보더 #DEDEDE / 라벨 #B3B3B3 / 값 #4D4C4C) */
#themeNameBox.theme20 .countdown-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 0.2fr);
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
#themeNameBox.theme20 .countdown-item {
  padding: 10px 4px 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: transparent; /* 흰 배경 제거 - 섹션 배경(#FFF7E2) 그대로 노출 (테마18과 동일, 2026-07-16 요청) */
  text-align: center;
}
#themeNameBox.theme20 .countdown-label,
#themeNameBox.theme20 .countdown-value,
#themeNameBox.theme20 .countdown-message {
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}
#themeNameBox.theme20 .countdown-label {
  display: block;
  color: #b3b3b3;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
}
#themeNameBox.theme20 .countdown-value {
  display: block;
  margin-top: 7px;
  color: #4d4c4c;
  font-size: 20px;
  line-height: 1;
}
/* D-day 메시지: 네이비 14px 700 (피그마 363:2056) */
#themeNameBox.theme20 .countdown-message {
  position: relative;
  margin: 40px 0 0;
  color: var(--t20-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.5px;
  text-align: center;
}
#themeNameBox.theme20 .countdown-message .countdown-heart,
#themeNameBox.theme20 .countdown-message .countdown-dday {
  color: var(--t20-navy);
  font-weight: 700;
}

/* ============================================================
 * 2-4. RSVP (con_rsvp 363:2070) - 다크(#2F2E31) 배경 + 흰 텍스트 + 옐로 버튼
 * ============================================================ */
#themeNameBox.theme20 .preview-attend-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--t20-dark) !important;
  /* 반지 사진 배경 + 다크 오버레이(72%)로 흐릿하게 (피그마 378-2175, 2026-07-16 에셋 반영)
   * 원본 theme20_rsvp_background.png(1.4MB)는 보관용, 로딩용은 JPG(116KB) 사용 */
  background-image:
    linear-gradient(rgba(47, 46, 49, 0.72), rgba(47, 46, 49, 0.72)),
    url("/assets/tool/img/invitation/theme_2026/theme20_rsvp_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 32px;
  min-height: 0;
}
#themeNameBox.theme20 .preview-attend-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  padding-bottom: 0 !important;
  text-align: center;
}
/* "참석 의사 전달" kicker: 흰 14px 400, 본문 위 (피그마 363:2072) */
#themeNameBox.theme20 .preview-attend-title .attend-kicker,
#themeNameBox.theme20 .preview-attend-title .bg-gray {
  order: -1;
  margin: 0 !important;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #ffffff !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.5px;
}
/* 안내 문구 3줄 (h2.attend-body): 흰 15px 700
 * h2 가 .font-tit 라 공통 타이틀 규칙(특이도 높음)이 20px 를 되살림 → !important 로 고정 */
#themeNameBox.theme20 .preview-attend-title h2,
#themeNameBox.theme20 .preview-attend-title h2.font-tit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #ffffff !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .preview-attend-title .attend-body span {
  color: #ffffff;
}
#themeNameBox.theme20 .preview-attend-content {
  color: #ffffff;
}
#themeNameBox.theme20 .preview-attend-link {
  margin-top: 0;
  text-align: center;
}
/* 전달하기 버튼: 옐로 배경 + 네이비 14px (피그마 363:2074, 180x45 #FFCF10) */
#themeNameBox.theme20 .preview-attend-wrap .btn-attend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 180px;
  height: 45px;
  padding: 9px 0;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t20-yellow) !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}
#themeNameBox.theme20 .preview-attend-wrap .btn-attend > span:not(.check-icon) {
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 700;
}
#themeNameBox.theme20 .preview-attend-wrap .btn-attend .check-icon {
  display: none;
}

/* ============================================================
 * 2-5. 갤러리 (con_gallery 363:2076)
 *  - 공용 h2 텍스트는 숨기고 부제만 노출 (Gallery 스크립트는 ::before)
 * ============================================================ */
#themeNameBox.theme20 .preview-gallery-title {
  gap: 5px;
}
#themeNameBox.theme20 .preview-gallery-title h2,
#themeNameBox.theme20 .preview-gallery-title h2.font-tit,
#themeNameBox.theme20 .preview-gallery-title .font-tit {
  font-size: 0 !important;
  line-height: 0 !important;
}
#themeNameBox.theme20 .preview-gallery-title h2::after {
  content: "우리의 가장 빛나는 순간들을 담았어요.";
  display: block;
  margin-top: 5px;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .preview-gallery-wrap {
  padding-left: 5px;
  padding-right: 5px;
}
#themeNameBox.theme20 .preview-gallery-img {
  margin-top: 24px;
}
#themeNameBox.theme20 .preview-gallery-ul {
  gap: 10px;
}
/* 갤러리 사진: 라운드 4px (피그마 363:2081) */
#themeNameBox.theme20 .preview-gallery-li,
#themeNameBox.theme20 .preview-gallery-item {
  border-radius: 4px;
  overflow: hidden;
}

/* ============================================================
 * 2-6. 오시는 길 (con_location 363:2093) - 네이비 텍스트 + 블루 헤어라인
 * ============================================================ */
#themeNameBox.theme20 .preview-weddinginfo-title h2 {
  font-size: 20px;
}
#themeNameBox.theme20 .weddinginfo-content {
  margin-top: 10px;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}
#themeNameBox.theme20 .weddinginfo-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  padding: 0 !important;
  margin: 0;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center;
}
#themeNameBox.theme20 .weddinginfo-icon-box {
  display: block !important;
  gap: 0 !important;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}
#themeNameBox.theme20 .weddinginfo-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
#themeNameBox.theme20 .weddinginfo-icon {
  display: none;
}
/* 예식장명 20px / 주소 15px / 전화 16px - 전부 네이비 700 (피그마 363:2098) */
#themeNameBox.theme20 .weddinginfo-namebox .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-align: center;
}
#themeNameBox.theme20 .weddinginfo-namebox .weddding-hall {
  margin: 0;
  width: 100%;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
#themeNameBox.theme20 .weddinginfo-tellbox {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
#themeNameBox.theme20 .weddinginfo-tellbox .weddding-tell {
  margin: 0;
  width: 100%;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-align: center;
}
/* 내비 버튼: 흰 배경 + 0.5px 네이비 아웃라인 + 네이비 12px (피그마 363:2105) */
#themeNameBox.theme20 .weddinginfo-navi {
  display: flex !important;
  gap: 8px;
  justify-content: center;
  padding: 0 !important;
  margin: 20px -22px 0;
  width: calc(100% + 44px);
}
#themeNameBox.theme20 .weddinginfo-navi button {
  flex: 1;
  height: 40px;
  min-height: 40px;
  max-width: 115px;
  padding: 0 8px;
  border: 0.5px solid var(--t20-navy);
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
#themeNameBox.theme20 .weddinginfo-navi button::before {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
#themeNameBox.theme20 .weddinginfo-navi button span {
  display: inline-block;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
/* "네이버내비" → "네이버지도" */
#themeNameBox.theme20 .weddinginfo-navi button.navernavi span {
  font-size: 0 !important;
  line-height: 0;
}
#themeNameBox.theme20 .weddinginfo-navi button.navernavi span::after {
  content: "네이버지도";
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--t20-navy);
  white-space: nowrap;
}
/* 지도/약도 풀블리드: 이 섹션 inner-wrap 좌우 패딩(20px) 상쇄 (테마17~19와 동일 기법) */
#themeNameBox.theme20 .weddinghall-map-wrap {
  margin-top: 20px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
#themeNameBox.theme20 .map-wrap,
#themeNameBox.theme20 .preview-map-img,
#themeNameBox.theme20 .preview-map-img .cropper-preview {
  width: 100% !important;
  max-width: 100%;
  border-radius: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
}
#themeNameBox.theme20 .map-wrap .map,
#themeNameBox.theme20 #kakao_map {
  width: 100% !important;
  min-height: 200px;
}
#themeNameBox.theme20 .preview-map-img .cropper-preview img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}
/* 교통 안내: 행 디자인 (하단 0.5px 블루 헤어라인 + 네이비 아이콘, 피그마 363:2495) */
#themeNameBox.theme20 .way-guide-box {
  margin-top: 30px;
  padding: 0;
  background: transparent;
}
#themeNameBox.theme20 .way-guide {
  position: relative;
  padding: 20px 30px;
  border-top: 0;
  border-bottom: 0;
  gap: 0;
}
#themeNameBox.theme20 .way-guide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t20-blue);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
#themeNameBox.theme20 .way-guide .way-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}
#themeNameBox.theme20 .way-guide .way-title p {
  margin: 0;
  color: var(--t20-ink) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px !important;
  font-weight: 700;
}
#themeNameBox.theme20 .way-guide .way-content p {
  margin: 0;
  color: var(--t20-ink) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 18px;
  white-space: pre-line;
}
/* 교통 아이콘: 테마20 전용 svg (피그마 export, #21284E 네이비) */
#themeNameBox.theme20 .way-guide .way-title .weddinginfo-icon {
  display: inline-block !important;
  width: 23px;
  height: 23px;
  margin: 0;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask: none;
          mask: none;
  flex-shrink: 0;
}
#themeNameBox.theme20 .way-guide.subway .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_icon_subway.svg");
}
#themeNameBox.theme20 .way-guide.bus .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_icon_bus.svg");
}
#themeNameBox.theme20 .way-guide.etc .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme20_icon_info.svg");
}

/* ============================================================
 * 2-7. 마음 전하실 곳 (con_account 363:2511) - 옐로 토글 + 네이비 텍스트
 * ============================================================ */
#themeNameBox.theme20 .preview-bank-wrap {
  padding-left: 0;
  padding-right: 0;
}
/* 좌우 여백은 base inner-wrap(padding 0 30px)에서만 준다 → 이중 패딩 방지 (테마17~19와 동일) */
#themeNameBox.theme20 .preview-bank-title {
  padding-left: 0;
  padding-right: 0;
}
#themeNameBox.theme20 .preview-bank-title h2 {
  font-size: 20px;
}
/* 안내 문구 15px 700 (피그마 363:2519) */
#themeNameBox.theme20 .preview-bank-title h2::after {
  content: "신랑\00026신부에게 축복의 의미로\A축의금을 전달해보세요.";
  white-space: pre-line;
  display: block;
  margin-top: 10px;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-box {
  margin: 24px 0 0;
  border: 0;
  background: transparent;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-inner {
  overflow: visible;
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 신랑측/신부측 토글: 풀폭 45px 옐로(#FFCF10) + 네이비 16px (피그마 363:2521) */
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 45px;
  min-height: 45px;
  margin: 0 auto;
  padding: 0;
  background: var(--t20-yellow) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .btn-toggle span {
  color: var(--t20-navy) !important;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .btn-toggle .bank-icon {
  display: none;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .btn-toggle::after {
  content: none;
}
/* 계좌 행: 투명 + 하단 0.5px 블루 헤어라인 */
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .bank {
  margin-bottom: 0;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#themeNameBox.theme20 .preview-bank-wrap .bank-info,
#themeNameBox.theme20 .preview-bank-wrap .bank-btn-box {
  padding: 0;
}
#themeNameBox.theme20 .preview-bank-wrap .bank-info p {
  margin: 0;
  line-height: 1.6;
}
#themeNameBox.theme20 .preview-bank-wrap .bank-info p:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 이름 14px 700 / 관계 12px 400 - 네이비 (피그마 363:2527) */
#themeNameBox.theme20 .preview-bank-wrap .bank-info .name {
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 700;
}
#themeNameBox.theme20 .preview-bank-wrap .bank-info .name::before {
  font-weight: 400;
  font-size: 12px;
  margin-right: 5px;
  color: var(--t20-navy);
}
#themeNameBox.theme20 .bank_groom00 .bank-info .name::before { content: "신랑"; }
#themeNameBox.theme20 .bank_bride00 .bank-info .name::before { content: "신부"; }
#themeNameBox.theme20 .bank_groom01 .bank-info .name::before,
#themeNameBox.theme20 .bank_bride01 .bank-info .name::before { content: "부"; }
#themeNameBox.theme20 .bank_groom02 .bank-info .name::before,
#themeNameBox.theme20 .bank_bride02 .bank-info .name::before { content: "모"; }
#themeNameBox.theme20 .preview-bank-wrap .bank-info .bank_type,
#themeNameBox.theme20 .preview-bank-wrap .bank-info .bank_no {
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 700;
}
#themeNameBox.theme20 .preview-bank-wrap .bank-btn-box {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 15px;
}
/* 계좌복사/카카오페이: 흰 배경 + 0.5px 네이비 아웃라인 + 네이비 12px (피그마 363:2531) */
#themeNameBox.theme20 .preview-bank-wrap .copy-bank,
#themeNameBox.theme20 .preview-bank-wrap .kakaopay {
  flex: 1;
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 5px !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
#themeNameBox.theme20 .preview-bank-wrap .kakaopay span {
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
/* 계좌복사 아이콘: svg mask 로 네이비 틴트 */
#themeNameBox.theme20 .preview-bank-wrap .copy-bank::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 23px;
  margin-right: 2px;
  flex-shrink: 0;
  background-image: none;
  background-color: var(--t20-navy);
  -webkit-mask: url("/assets/tool/img/theme_new/theme_icon_copy.svg") center / 23px no-repeat;
          mask: url("/assets/tool/img/theme_new/theme_icon_copy.svg") center / 23px no-repeat;
}

/* ============================================================
 * 2-8. 방명록 (guestbook 363:2588/2598) - 화이트 카드형 + JUST MARRIED 자동차
 * ============================================================ */
/* 갤러리 미사용 시 오시는 길 상단 여백 보전 (2026-08-21)
 *  - 참석의사 전달(RSVP) ~ 오시는 길 사이 100px 간격은 갤러리 섹션이 담당한다
 *    (base invitation.css/_test.css 의 `.preview-wrap.preview-gallery-wrap { padding: 100px 0 }`).
 *  - 갤러리를 끄면 그 여백이 사라져 RSVP 블록과 오시는 길이 그대로 붙는다.
 *  - 하객뷰는 @if 로 섹션 자체가 미렌더(:not(:has)), 편집기는 JS 가 display:none 처리하므로 둘 다 대응. */
#themeNameBox.theme20 .preview-etc-wrap:not(:has(.preview-gallery-wrap)) .preview-weddinginfo-wrap,
#themeNameBox.theme20 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display: none"]) .preview-weddinginfo-wrap,
#themeNameBox.theme20 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display:none"]) .preview-weddinginfo-wrap {
  padding-top: 100px;
}

/* 방명록 미사용 시 하단 고정 여백. 하객뷰=미렌더(:not(:has)), 편집기=display:none(:has([style*=none])).
 * 방명록 사용 시엔 방명록 섹션(하단 자동차 장식 포함)이 바닥 여백을 담당하므로 추가 안 함 */
#themeNameBox.theme20 .preview-etc-wrap:not(:has(.preview-guestbook-wrap)),
#themeNameBox.theme20 .preview-etc-wrap:has(.preview-guestbook-wrap[style*="display: none"]),
#themeNameBox.theme20 .preview-etc-wrap:has(.preview-guestbook-wrap[style*="display:none"]) {
  padding-bottom: 100px;
}

#themeNameBox.theme20 .preview-guestbook-wrap {
  position: relative;
  overflow: hidden;
  padding: 100px 15px 185px; /* 좌우 15px: 카드 폭 330 (피그마 378-2175) / 하단: JUST MARRIED 자동차 장식 공간 (피그마 363:2622) */
  background-color: var(--t20-bg) !important;
  background-image: none;
}
/* JUST MARRIED 자동차 일러스트 (피그마 363:2622, 134x136 하단 중앙, PNG→SVG 교체 2026-07-16) */
#themeNameBox.theme20 .preview-guestbook-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 134px;
  aspect-ratio: 134 / 136;
  height: auto;
  background: url("/assets/tool/img/invitation/theme_2026/theme20_footer_illust.svg") center / contain no-repeat;
  pointer-events: none;
}
/* base 아치형 inner-wrap 제거 (테마15~19와 동일 처리) */
#themeNameBox.theme20 .preview-guestbook-wrap .preview-inner-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
#themeNameBox.theme20 .preview-guestbook-title {
  margin: 0 0 15px;
}
#themeNameBox.theme20 .preview-guestbook-title h2,
#themeNameBox.theme20 .preview-guestbook-title .font-tit {
  color: var(--t20-navy);
  font-size: 20px;
}
/* 부제 (피그마 363:2595) */
#themeNameBox.theme20 .preview-guestbook-wrap .guestbook-subtitle {
  text-align: center;
  margin: 15px 0 20px;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
#themeNameBox.theme20 .guestbook-no-data {
  padding: 42px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}
/* 방명록 항목 (피그마 363:2604): 화이트 카드 + 라운드 4 + 소프트 섀도
 * - 마크업: .preview-guestbook-lists > .guestbook-list(항목별 래퍼) > .guestbook-list-txt(카드)
 *   → 카드 간 20px 간격은 항목 래퍼가 아니라 실제 형제 컨테이너(.preview-guestbook-lists)에
 *     줘야 적용됨. 기존엔 래퍼에 gap 을 줘서 카드들이 붙어 한 덩어리로 보였음 (2026-07-16 수정) */
#themeNameBox.theme20 .preview-guestbook-lists {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* 작성하기 버튼(상단 노출 시)과 카드 목록 사이 여백 — 버튼 래퍼(.book_btn)는 하단 마진이 0이라
 * 흰 카드가 바로 붙어 보였음 (2026-07-16 요청) */
#themeNameBox.theme20 .preview-guestbook-lists-wrap {
  margin-top: 30px;
}
#themeNameBox.theme20 .guestbook-list {
  margin-bottom: 0;
  padding: 0;
}
#themeNameBox.theme20 .guestbook-list-txt {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 2px 2px 5px 0 rgba(221, 211, 190, 0.3);
}
#themeNameBox.theme20 .guest-btn-box {
  order: -2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
#themeNameBox.theme20 .guest-btn-box .btn,
#themeNameBox.theme20 .guest-btn-box .btn-edit,
#themeNameBox.theme20 .guest-btn-box .btn-delete {
  width: 25px;
  height: 24px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0;
  border-radius: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
}
#themeNameBox.theme20 .guest-btn-box .btn-edit {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_edit.svg");
}
#themeNameBox.theme20 .guest-btn-box .btn-delete {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_delete.svg");
}
/* 이름(네이비 16px 700) + 날짜(회색 14px) 한 줄 (피그마 363:2609/2610) */
#themeNameBox.theme20 .guest-name-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  order: -1;
  margin: 0 0 10px;
}
#themeNameBox.theme20 .guest-name-date p {
  margin: 0;
}
#themeNameBox.theme20 .guest-name-date .name {
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
#themeNameBox.theme20 .guest-name-date .date {
  color: #999999 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
/* 본문 #111 15px 400 (피그마 363:2611) */
#themeNameBox.theme20 .guest-contents .content {
  margin: 0;
  color: var(--t20-ink) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
/* 작성하기/전체보기 버튼: 흰 배경 + 0.5px 네이비 아웃라인 + 네이비 15px (피그마 363:2596) */
#themeNameBox.theme20 .book_btn,
#themeNameBox.theme20 .book_btn2 {
  margin: 20px 0 0;
  text-align: center;
}
#themeNameBox.theme20 .book_btn2 a,
#themeNameBox.theme20 .book_btn_top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 45px !important;
  padding: 0 24px;
  border: 0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
 * 0.5px 보더 → 물리 헤어라인 (테마15~19와 동일 기법)
 * ============================================================ */
/* A. 아웃라인 버튼 (4면 보더) - 네이비 계열 */
#themeNameBox.theme20 .btn-contactme,
#themeNameBox.theme20 .book_btn2 a,
#themeNameBox.theme20 .book_btn_top a,
#themeNameBox.theme20 .preview-bank-wrap .copy-bank,
#themeNameBox.theme20 .preview-bank-wrap .kakaopay,
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle > label.btn,
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme20) #attendModalContent .btn-add-companion {
  position: relative;
}
#themeNameBox.theme20 .btn-contactme::after,
#themeNameBox.theme20 .book_btn2 a::after,
#themeNameBox.theme20 .book_btn_top a::after,
#themeNameBox.theme20 .preview-bank-wrap .copy-bank::after,
#themeNameBox.theme20 .preview-bank-wrap .kakaopay::after,
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle > label.btn::after,
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme20) #attendModalContent .btn-add-companion::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  box-sizing: border-box;
  border: 1px solid var(--t20-navy);
  border-radius: 8px;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}
/* 계좌복사/카카오페이: 시각 radius 5 */
#themeNameBox.theme20 .preview-bank-wrap .copy-bank::after,
#themeNameBox.theme20 .preview-bank-wrap .kakaopay::after {
  border-radius: 10px;
}
/* 계좌복사 ::before 는 아이콘이므로 ::after 만 보더로 사용 (충돌 없음) */
/* 모달 토글/동행 버튼 보더: rgba(17,17,17,.5) */
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle > label.btn::after,
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme20) #attendModalContent .btn-add-companion::after {
  border-color: rgba(17, 17, 17, 0.5);
}
/* B. 하단 보더 행 - 블루 헤어라인 (교통/계좌) */
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .bank,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:last-child {
  position: relative;
  border-bottom: 0;
}
#themeNameBox.theme20 .preview-bank-wrap .accordion-box .bank::after,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t20-blue);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
/* 연락하기 모달 행: rgba(17,17,17,.3) */
body:has(#themeNameBox.theme20) #contactModalContent .contactItem::after {
  background: rgba(17, 17, 17, 0.3);
}

/* ============================================================
 * 모달 공통 (테마20) - JS가 body 로 appendTo → body:has() 스코프
 *   (구조는 테마15~19 검증본, 색상은 네이비/옐로 팔레트)
 * ============================================================ */
body:has(#themeNameBox.theme20) #contactModalContent .modal-dialog,
body:has(#themeNameBox.theme20) #attendModalContent .modal-dialog,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-dialog,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-dialog,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-dialog,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-dialog {
  width: calc(100% - 48px);
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-content,
body:has(#themeNameBox.theme20) #attendModalContent .modal-content,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-content,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-content,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-content,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-content {
  overflow: hidden;
  border: 0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-header,
body:has(#themeNameBox.theme20) #attendModalContent .modal-header,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-header,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-header,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-header,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-header {
  position: relative;
  align-items: center;
  min-height: 46px;
  padding: 16px 44px 12px 20px;
  border-bottom: 1px solid #efe6cf;
  background: #ffffff;
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-title,
body:has(#themeNameBox.theme20) #attendModalContent .modal-title,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-title,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-title,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-title {
  width: 100%;
  margin: 0;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-align: left;
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-header .close,
body:has(#themeNameBox.theme20) #attendModalContent .modal-header .close,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-header .close,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-header .close,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-header .close,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-header .close {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  padding: 0;
  color: #111111;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
  transform: translateY(-50%);
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-body,
body:has(#themeNameBox.theme20) #attendModalContent .modal-body,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-body,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-body,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body {
  padding: 18px 20px 20px;
  color: #111111;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme20) #guestPasswordModal .modal-body input.form-control,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-body input.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t20-navy); /* 피그마 880-2704: 네이비 보더 */
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme20) .modal-body .btn-dark,
body:has(#themeNameBox.theme20) .modal-body .btn.btn-primary {
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t20-navy) !important; /* 피그마 880-2704: 네이비 + 흰 글자 (참석 모달 전달 버튼은 개별 규칙으로 옐로 유지) */
  color: #ffffff !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-weight: 700;
  box-shadow: none !important;
}

/* ---- 모달 1. 연락하기 (#contactModalContent) ---- */
body:has(#themeNameBox.theme20) #contactModalContent .modal-header {
  padding: 16px 44px 12px;
  justify-content: center;
  border-bottom: 0;
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-title {
  text-align: center;
  color: #111111 !important;
  font-size: 18px;
  font-weight: 700;
}
body:has(#themeNameBox.theme20) #contactModalContent .modal-body {
  padding: 0 0 40px !important;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  justify-content: stretch;
  align-items: center;
  column-gap: 20px;
  width: 100%;
  margin: 0;
  padding: 10px 25px 10px 30px;
  box-sizing: border-box;
  background: transparent;
  min-height: 0;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem > div {
  min-height: 0;
  line-height: 1.5;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom),
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride) {
  grid-template-areas:
    "header header header"
    "tit    name   icon";
  padding: 0 25px 10px 30px;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride) {
  margin-top: 30px;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom)::before,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride)::before {
  grid-area: header;
  display: block;
  min-height: 76px;
  margin: 0 -25px 10px -30px;
  padding: 29px 30px;
  box-sizing: border-box;
  border-bottom: 0;
  background-image: linear-gradient(rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0.3));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 0.5px;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.5px;
  text-align: left;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom)::before { content: "신랑측"; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride)::before { content: "신부측"; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom) .call_tit,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride) .call_tit { grid-area: tit; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom) .call_name,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride) .call_name { grid-area: name; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.groom) .call_icon,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem:has(.call_tit.bride) .call_icon { grid-area: icon; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_tit,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_name {
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  word-break: keep-all;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_tit { font-weight: 400; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_name { font-weight: 700; }
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_name span {
  display: inline-block;
  white-space: nowrap;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_tit .xeicon {
  display: none;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.groom-dad-info .call_tit,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.groom-mom-info .call_tit,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.bride-dad-info .call_tit,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.bride-mom-info .call_tit {
  font-size: 0;
  line-height: 0;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.groom-dad-info .call_tit::before,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.bride-dad-info .call_tit::before {
  content: "아버지";
  font-size: 16px;
  font-weight: 400;
  color: #111111;
  line-height: 1.5;
  display: inline-block;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.groom-mom-info .call_tit::before,
body:has(#themeNameBox.theme20) #contactModalContent .contactItem.bride-mom-info .call_tit::before {
  content: "어머니";
  font-size: 16px;
  font-weight: 400;
  color: #111111;
  line-height: 1.5;
  display: inline-block;
}
/* 통화/메시지 아이콘 - 네이비 원형 28px + 흰 svg */
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_icon {
  width: auto;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: end;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_icon > a {
  margin: 0;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 50%;
  background-color: var(--t20-navy) !important;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  text-decoration: none;
  font-size: 0 !important;
  line-height: 0;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_icon > a.mobile {
  background-image: url('/assets/tool/img/invitation/theme_2026/theme12_icon_call.svg') !important;
  background-size: 14px 14px;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_icon > a.sms {
  background-image: url('/assets/tool/img/invitation/theme_2026/theme12_icon_message.svg') !important;
  background-size: 17px 12px;
}
body:has(#themeNameBox.theme20) #contactModalContent .contactItem .call_icon > a .xeicon {
  display: none !important;
}

/* ---- 모달 2. 참석 의사 전달 (#attendModalContent) ---- */
body:has(#themeNameBox.theme20) #attendModalContent .modal-header {
  padding: 32px 30px 14px !important;
  text-align: center;
  display: block !important;
  position: relative;
  border-bottom: 0;
}
body:has(#themeNameBox.theme20) #attendModalContent .modal-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
body:has(#themeNameBox.theme20) #attendModalContent .modal-title::after {
  content: "원활한 예식 진행을 위해 참석 정보를\A미리 알려주시면 감사하겠습니다";
  display: block;
  margin-top: 12px;
  white-space: pre-line;
  color: rgba(17, 17, 17, 0.5);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
body:has(#themeNameBox.theme20) #attendModalContent .modal-header .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  transform: none;
}
body:has(#themeNameBox.theme20) #attendModalContent .modal-body {
  padding: 12px 0 30px !important;
  background: #ffffff;
}
body:has(#themeNameBox.theme20) #attendModalContent .preview-attend-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #111111;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme20) #attendModalContent .col-form-label {
  display: none !important;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group.row {
  display: block;
  margin: 0;
  padding: 10px 13px;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group.row > .col-sm-9,
body:has(#themeNameBox.theme20) #attendModalContent .form-group.row > .col-12 {
  flex: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle {
  display: flex !important;
  gap: 8px;
  width: 100% !important;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle > label.btn {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 45px;
  padding: 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border: 0.5px solid rgba(17, 17, 17, 0.5) !important;
  border-radius: 4px !important;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
/* 토글 active 색상은 "행 기준" (피그마 378-2940 재대조로 확정)
 *  1행(신랑측/신부측 선택) active = 옐로 #FFCF10 + #111 텍스트
 *  2행(참석 가능/불가)     active = 연옐로 #FFECA2 + #111 텍스트
 *  - 기존 위치 기준(첫번째=옐로/마지막=네이비) 매핑은 시안 예시 상태(신부측+참석가능 선택)와
 *    불일치하여 행 기준으로 교체 (성함 라벨에 쓰는 .form-group:nth-of-type(3) 과 동일 기법) */
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(1) .btn-group-toggle > label.btn.active {
  background: var(--t20-yellow) !important;
  color: #111111 !important;
  border-color: var(--t20-yellow) !important;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(1) .btn-group-toggle > label.btn.active::after {
  border-color: var(--t20-yellow);
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(2) .btn-group-toggle > label.btn.active {
  background: var(--t20-yellow-light) !important;
  color: #111111 !important;
  border-color: var(--t20-yellow-light) !important;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(2) .btn-group-toggle > label.btn.active::after {
  border-color: var(--t20-yellow-light);
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-group-toggle > label.btn input[type="radio"] {
  display: none;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) {
  padding: 30px 0 0;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) > .col-sm-9::before,
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) > .col-12::before {
  content: "성함";
  display: block;
  padding: 0 13px 10px;
  color: #111111;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) .input-group,
body:has(#themeNameBox.theme20) #attendModalContent .input-group.split {
  display: flex !important;
  gap: 8px;
  padding: 0 13px;
  margin: 0;
  flex-wrap: nowrap;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme20) #attendModalContent .input-group.split {
  margin-bottom: 10px !important;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) .input-group input.form-control {
  flex: 1 1 189px;
  width: auto !important;
  max-width: 189px;
  min-width: 0;
  height: 45px;
  padding: 10px;
  background: #ffffff;
  border: 0.5px solid #30312e;
  border-radius: 4px !important;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 400;
}
body:has(#themeNameBox.theme20) #attendModalContent .form-group:nth-of-type(3) .input-group input.form-control::placeholder {
  color: rgba(17, 17, 17, 0.3);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 10px;
  font-weight: 400;
}
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append {
  margin: 0;
  flex: 0 0 137px;
}
/* 동행추가/삭제: 연옐로 #FFECA2 + #111 13px (피그마 378-2940, 기존 네이비에서 시안색으로 교체) */
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme20) #attendModalContent .btn-add-companion {
  width: 137px;
  min-height: 45px;
  height: 45px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--t20-yellow-light) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700 !important;
  box-shadow: none;
  white-space: nowrap;
}
body:has(#themeNameBox.theme20) #attendModalContent .input-group-append .btn i.xeicon {
  display: none;
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-add-companion::before {
  content: "+";
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-del-companion::before {
  content: "-";
}
body:has(#themeNameBox.theme20) #attendModalContent .btn-dark.btn-block {
  margin: 20px 13px 0;
  width: calc(100% - 26px);
  height: 45px;
  background: var(--t20-yellow) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: var(--t20-navy) !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700;
}

/* ---- 모달 3. 방명록 작성/수정/전체보기 ---- */
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-title,
body:has(#themeNameBox.theme20) #guestbookModalContent .modal-title {
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 700;
}
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body {
  padding: 25px 30px 30px;
}
body:has(#themeNameBox.theme20) #gueseditModalContent.guestbook-write-modal .form-group,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .form-group {
  margin-bottom: 25px;
}
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body label,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body label {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: #111111 !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
/* 입력창: 네이비 보더 (피그마 880-2704) */
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t20-navy); /* 피그마 880-2704: 네이비 보더 */
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 80px;
}
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body textarea.form-control::placeholder,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body textarea.form-control::placeholder {
  color: rgba(17, 17, 17, 0.3);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 10px;
  font-weight: 400;
}
/* 등록하기: 솔리드 네이비 #21284E + 흰 글자 (피그마 880-2704) */
body:has(#themeNameBox.theme20) #gueseditModalContent .modal-body .btn-dark.btn-block,
body:has(#themeNameBox.theme20) #guestUpdateModalContent .modal-body .btn-dark.btn-block {
  min-height: 45px;
  height: 45px;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t20-navy) !important;
  color: #ffffff !important;
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
 * (예식종료) 감사글 / 인사글 - 테마20 (초대글과 동일 팔레트)
 * ============================================================ */
#themeNameBox.theme20 .preview-testimonial-wrap {
  padding: 100px 32px 30px;
}
#themeNameBox.theme20 .preview-testimonial-wrap .preview-message-wrap.preview-testimonial-message,
#themeNameBox.theme20 .preview-testimonial-wrap .preview-testimonial-message p,
#themeNameBox.theme20 .preview-insa-wrap .preview-message-wrap.preview-insa-message,
#themeNameBox.theme20 .preview-insa-wrap .preview-message-wrap.preview-insa-message p {
  color: var(--t20-navy);
  font-family: "BookkMyungjo", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center;
}

/* ============================================================
 * 故/국화 마커가 붙은 혼주 이름이 위로 떠 보이는 문제 수정
 * (2026-07-16, 가든로맨스12/천생연분15 와 동일 방식으로 통일)
 * - base 규칙(.preview-invitation-cellphome > div > p > span {display:flex})으로
 *   부모 래퍼가 flex 컨테이너가 되면, 텍스트가 없는 goin_type 마커 박스가 첫 아이템이라
 *   래퍼의 baseline이 마커 박스 "하단"으로 합성됨 → 바깥 p(align-items:baseline) 기준으로
 *   마커 붙은 이름 전체가 약 2~3px 위로 올라가 보임.
 * - 래퍼를 block(내부 인라인 흐름)으로 되돌리면 이름 텍스트의 baseline이 래퍼 baseline이 되어
 *   마커 유무와 무관하게 정렬이 일치 (테마15 기존 규칙과 동일, 브라우저 재현 diff 2.75px→0 검증)
 * ============================================================ */
#themeNameBox.theme20 .preview-invitation-cellphome .parent-wrapper,
#themeNameBox.theme20 .preview-invitation-cellphome .groom > p:not(.rel_box) > span:not(.cellphone-dot),
#themeNameBox.theme20 .preview-invitation-cellphome .bride > p:not(.rel_box) > span:not(.cellphone-dot) {
  display: block !important;
  white-space: nowrap;
}

/* 제네릭 `.theme-wrap .p_name_1/.p_name_2`(max-width:40%, inline-block) 해제 (2026-08-21)
 *  - 40% 는 구테마(1~11)의 "신랑 · 신부" 가로 1줄 배치용 안전장치이고,
 *    `.theme-wrap` 은 전 테마 공통 컨테이너(#themeContainer)라 세로 스택 테마에도 그대로 걸린다.
 *  - 세로 스택에서는 가로 제약이 불필요하며, 긴 이름이 40% 지점에서 불필요하게 줄바꿈된다.
 *  - 테마13/16 에 이미 적용돼 있던 해제 규칙과 동일. */
#themeNameBox.theme20 .theme-name-stack .p_name_1,
#themeNameBox.theme20 .theme-name-stack .p_name_2 {
  max-width: 100%;
}
