/* ============================================================
 * 테마 16 (테스트) - 피그마 시안 기반 (mo / 커버 275:3147 ★Main, 본문 312:2578 전체 시안)
 * - invitation_test.css 뒤에 로드되어 테마16 관련 규칙을 오버라이드한다
 * - 운영 전환 시 이 파일을 invitation_16.css 로 복사하여 사용
 * - 커버 + 본문 전 섹션(초대글/혼주/캘린더/RSVP/갤러리/오시는길/계좌/방명록/모달 3종)을
 *   공용 마크업(.preview-*) 위에 CSS 로 재구성 (invitation_15_test.css 와 동일 구조)
 *
 * 디자인 토큰
 *  배경      : #FDF9EE (크림)
 *  본문/다크 : #3E3E3C
 *  포인트    : #9F9882 (토프/올리브그레이)
 *  레터링    : #424239 (Wedding day, mix-blend-mode: overlay)
 *  폰트      : Eulyoo1945 (400/600, invitation_test.css 에서 이미 로드됨) / Belgiano Serif(Wedding day 레터링 전용)
 * ============================================================ */

/* Wedding day 레터링 전용 (피그마: Belgiano Serif Regular 64px) */
@font-face {
  font-family: "Belgiano Serif";
  src: url("/assets/fonts/Belgiano/Belgiano Serif 2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 모달은 JS가 body 로 appendTo 하여 #themeNameBox 밖에 위치
 * → body:has() 스코프에도 변수를 선언해야 모달 안 var() 가 동작한다.
 * (테마15는 모달 규칙마다 fallback 값을 붙여 해결했던 문제) */
#themeNameBox.theme16,
body:has(#themeNameBox.theme16) {
  --t16-bg: #fdf9ee;
  --t16-ink: #3e3e3c;
  --t16-accent: #9f9882;
}

/* ===== 기본: 크림 배경 + 다크 텍스트 ===== */
#themeNameBox.theme16 {
  background: var(--t16-bg);
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}

/* ============================================================
 * 메인 커버
 * - wrap: 컨테이너 쿼리(cqw) 기준, 사진(360x505) + 하단 다크 정보박스
 * - 사진 비율은 고정(360/505), 정보박스는 내용에 따라 자연스러운 높이
 * ============================================================ */
#themeNameBox.theme16 .theme-16-wrap {
  display: flex;
  justify-content: center;
  container-type: inline-size;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--t16-ink);
}
#themeNameBox.theme16 .theme-16-wrap .theme-frame-cons-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 469.39px;      /* 테마13/14와 동일한 에디터 프리뷰 폭 */
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  background: var(--t16-ink);
}

/* ===== 상단 사진: 360:505 비율 고정, 흑백 모노톤 톤 ===== */
#themeNameBox.theme16 .theme-16-wrap .preview-theme-main {
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 360 / 505;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: var(--t16-bg);
}
#themeNameBox.theme16 .theme-16-wrap .preview-theme-main .cropper-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;      /* 전역 .preview-theme-main .cropper-preview{aspect-ratio:3/4} 해제 */
  border-radius: 0;
}
#themeNameBox.theme16 .theme-16-wrap .preview-theme-main .card-img-top {
  width: 100%;
  height: 100%;
  max-height: none;        /* 전역 max-height:580px 해제 */
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  /* 커버 사진은 원본 그대로 노출 (강제 흑백 필터 제거 — 사용자 선택 사진보정 필터는 별도 동작) */
}

/* "Wedding day" 레터링: Belgiano Serif 웹폰트 텍스트
 * 사진 하단부(다크 정보박스 바로 위)에 오버레이, mix-blend-mode:overlay 로 사진과 자연스럽게 합성
 * 피그마: font-size 64px / tracking -2.8065px → -0.044em(비율 유지, cqw 스케일에 비례) */
#themeNameBox.theme16 .theme-wedding-day-lettering {
  position: absolute;
  left: 50%;
  bottom: 7.1%;
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  max-width: 90%;
  color: #424239;
  font-family: "Belgiano Serif", "Eulyoo1945", serif;
  font-size: clamp(46px, 17.78cqw, 84px);   /* 64/360 */
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.044em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ============================================================
 * 하단 정보박스: #3E3E3C 다크 + 크림 텍스트
 * - 이름(3줄: 신랑 / & / 신부) → 날짜 → 예식장명 순
 * ============================================================ */
#themeNameBox.theme16 .theme-16-info {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 시안 실측: 이름↔날짜만 30px, 날짜↔예식장명은 붙어있는 한 그룹
   * (flex gap 은 모든 자식 사이에 적용돼 날짜↔예식장까지 벌어지므로 gap 대신 margin 사용) */
  gap: 0;
  padding: 13.89cqw 6.67cqw; /* 50/360, 24/360 */
  background: var(--t16-ink);
  box-sizing: border-box;
}

/* 이름 스택: 신랑명 / & / 신부명 (각 한 줄) */
#themeNameBox.theme16 .theme-16-info .theme-name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  color: #ffffff;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme16 .theme-16-info .theme-name-stack .p_name_1,
#themeNameBox.theme16 .theme-16-info .theme-name-stack .p_name_2 {
  display: block;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(18px, 6.67cqw, 26px);   /* 24/360 */
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
#themeNameBox.theme16 .theme-16-info .theme-name-stack .p_dot {
  display: block;
  margin: 0;
  width: auto;
  height: auto;
  background: none !important;   /* 전역 원형 dot 무력화 */
  border-radius: 0 !important;
  color: #ffffff;
  font-size: clamp(15px, 5.56cqw, 22px);   /* 20/360 */
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.35;
}

/* 날짜 / 예식장명 */
#themeNameBox.theme16 .theme-16-info .main-date-txt,
#themeNameBox.theme16 .theme-16-info .weddding-hall-name {
  margin: 0;
  width: 100%;
  color: #ffffff;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  text-align: center;
}
#themeNameBox.theme16 .theme-16-info .main-date-txt {
  margin-top: 8.33cqw;                      /* 30/360 - 이름 스택과의 간격(시안 실측) */
  font-size: clamp(14px, 5cqw, 19px);      /* 18/360 */
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
#themeNameBox.theme16 .theme-16-info .main-date-txt .weddding_date {
  margin-right: 0;
}
#themeNameBox.theme16 .theme-16-info .weddding-hall-name {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(12px, 3.89cqw, 15px);   /* 14/360 */
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.5;
}

/* ============================================================
 * 2. 본문(하단 섹션) - 피그마 시안5(★Main + con_*) 기반 전면 재퍼블리싱
 *    fileKey MOAgdu3H4rAIYq3tAw9MGS / root 312:2578 (360x6893)
 *    - 마크업은 전 테마 공유이므로 #themeNameBox.theme16 스코프 CSS만으로 재구성한다.
 *    - 셀렉터 구조/기법은 검증된 테마15(invitation_15_test.css)를 템플릿으로 삼고,
 *      색·폰트·장식·수치만 시안16 실측값으로 교체했다.
 *
 *    시안16 실측 토큰
 *     크림 배경  : #FDF9EE (--t16-bg)   - 초대글/캘린더/갤러리/오시는길/계좌/방명록
 *     다크(잉크) : #3E3E3C (--t16-ink)  - 본문/타이틀/보더/RSVP 배경/계좌 토글/영문 라인
 *     토프/포인트: #9F9882 (--t16-accent) - 하트 등 최소 포인트
 *     섹션 영문 타이틀 : Belgiano Serif 24px + 좌우 60px 라인(invite_title_01)
 *     한글 본문/타이틀 : Eulyoo1945 (400/600)
 *     캘린더 요일헤더 #111 / 당월 #4D4C4C / 일·토 #BF4340 / 타월 #B3B3B3 / 예식일 잉크원+흰글자
 * ============================================================ */

/* ===== 기본: 크림 배경 + 다크 텍스트, 기존 다크 규칙 무력화 ===== */
#themeNameBox.theme16 {
  background: var(--t16-bg);
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme16 .preview-wrap,
#themeNameBox.theme16 .preview-inner-wrap,
#themeNameBox.theme16 .preview-wrap .preview-inner-wrap {
  background-color: transparent !important;
  background-image: none;
}
/* base 섹션별 inner-wrap 좌우 패딩 편차를 0으로 통일 → 콘텐츠 인셋을 섹션 32px 로 일원화.
 * 풀블리드 요소(-32px)가 모든 섹션 카드 좌우 끝에 정확히 닿게 한다. */
#themeNameBox.theme16 .preview-inner-wrap {
  padding-left: 0;
  padding-right: 0;
}

/* ===== 크림 섹션 공통 상단 여백 ===== */
#themeNameBox.theme16 .preview-calendar-wrap,
#themeNameBox.theme16 .preview-gallery-wrap,
#themeNameBox.theme16 .preview-weddinginfo-wrap,
#themeNameBox.theme16 .preview-bank-wrap {
  min-height: 0;
  padding: 100px 32px 0;
  background-color: transparent;
  background-image: none;
  color: var(--t16-ink);
}
#themeNameBox.theme16 .preview-calendar-wrap {
  padding: 100px 32px;
  border-top: 1px solid rgba(62, 62, 60, 0.5);   /* con_calender 상단 0.5px 헤어라인 (Figma 312:3153) */
}
#themeNameBox.theme16 .preview-wrap.preview-invitation-wrap {
  padding: 0;
  background-color: transparent;
}

/* ===== 섹션 영문 타이틀 (invite_title_01: 60px 라인 + 영문 + 60px 라인) =====
 * 라인은 별도 SVG 없이 currentColor 60px 배경 그라데이션으로 그린다.
 * 베이스 잎사귀 아이콘은 끄고, 디바이더가 필요한 섹션만 아래에서 다시 켠다. */
#themeNameBox.theme16 .preview-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding-bottom: 0 !important;
  text-align: center;
}
#themeNameBox.theme16 .preview-title::before {
  content: none;
  background-image: none;
}
/* 테마16 전용: 주소 들여쓰기 제거 (스코프 없이 전역 적용되어 다른 테마의
 * .wedding-hallbox { padding-left:37px } 들여쓰기까지 없애던 문제 → theme16으로 한정) */
#themeNameBox.theme16 .wedding-hallbox{
    padding:0;
}
/* 영문 디바이더 (크림 섹션 공통 스타일) */
#themeNameBox.theme16 .preview-gallery-title::before,
#themeNameBox.theme16 .preview-weddinginfo-title::before,
#themeNameBox.theme16 .preview-bank-title::before,
#themeNameBox.theme16 .preview-guestbook-title::before,
#themeNameBox.theme16 .preview-attend-title::before {
  order: -1;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0 74px;             /* 60px 라인 + 14px 간격 (좌우) */
  box-sizing: border-box;
  color: var(--t16-ink);
  font-family: "Belgiano Serif", "Eulyoo1945", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
  background:
    linear-gradient(currentColor, currentColor) left center / 60px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 60px 1px no-repeat;
}
#themeNameBox.theme16 .preview-gallery-title::before { content: "GALLERY"; }
#themeNameBox.theme16 .preview-weddinginfo-title::before { content: "LOCATION"; }
#themeNameBox.theme16 .preview-bank-title::before { content: "ACCOUNT"; }
#themeNameBox.theme16 .preview-guestbook-title::before { content: "GUESTBOOK"; }
#themeNameBox.theme16 .preview-attend-title::before { content: "RSVP"; color: var(--t16-bg); }

/* 한글 서브 타이틀 (20px 600 잉크) */
#themeNameBox.theme16 .preview-title .font-tit.attend-body,
#themeNameBox.theme16 .preview-title h2 {
  margin: 0;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .preview-title h2 {
    font-size: 20px;
}
/* ============================================================
 * 2-1. 초대글 (con_invite_call 312:3265)
 *  - 순서: [INVITATION 디바이더] → 헤드라인 → 인사 본문 → (사진) → 혼주 → 연락하기
 *  - 공용 마크업은 preview-invi-wrap 안에 타이틀(헤드라인) + 메시지만 존재하므로,
 *    디바이더를 invi-wrap ::before 로 올리고 다른 테마와 동일하게 헤드라인을 본문 위에 둔다.
 * ============================================================ */
#themeNameBox.theme16 .preview-invi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 50px 32px 0; /* 커버 정보박스 아래 → INVITATION 간격 50px (시안 실측) */
}
#themeNameBox.theme16 .preview-invi-wrap::before {
  content: "INVITATION";
  order: -1;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 25px;
  padding: 0 74px;
  box-sizing: border-box;
  color: var(--t16-ink);
  font-family: "Belgiano Serif", "Eulyoo1945", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
  background:
    linear-gradient(currentColor, currentColor) left center / 60px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 60px 1px no-repeat;
}
#themeNameBox.theme16 .preview-invi-wrap > .preview-invitation-title { order: 1; }
#themeNameBox.theme16 .preview-invi-wrap > .preview-message-wrap { order: 2; margin-top: 0; }
/* 헤드라인(초대합니다) 20px 600 */
#themeNameBox.theme16 .preview-invitation-title h2 {
  font-size: 20px;
  line-height: 1.5;
}
/* 인사 본문 15px 600 중앙 */
#themeNameBox.theme16 .preview-invi-wrap .preview-message-wrap,
#themeNameBox.theme16 .preview-invi-wrap .preview-message-wrap p {
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center !important;
}
#themeNameBox.theme16 .preview-invi-wrap .preview-message-wrap {
  background: transparent;
}
#themeNameBox.theme16 .preview-invitation-message {
  background-color: transparent;
  color: var(--t16-ink);
}
/* 초대글 사진(있을 경우): 본문 아래 풀폭 가로 박스 (360x214) */
#themeNameBox.theme16 .preview-invi-wrap > .preview-message-photo-wrap {
  order: 3;
  width: calc(100% + 64px);
  max-width: none;
  margin: 70px -32px 0;
}
#themeNameBox.theme16 .preview-message-photo {
  width: 100% !important;
  aspect-ratio: 360 / 214;
  height: auto !important;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e7e1d4;
}
#themeNameBox.theme16 .preview-message-photo .cropper-preview,
#themeNameBox.theme16 .preview-message-photo > img,
#themeNameBox.theme16 .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 312:3278)
 *  - .groom/.bride = [부모 묶음 p][관계+이름 p] 2컬럼, 중앙 경계 정렬
 * ============================================================ */
#themeNameBox.theme16 .preview-invitation-cellphome {
  margin: 0;
  padding: 30px 16px 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#themeNameBox.theme16 .preview-invitation-cellphome,
#themeNameBox.theme16 .preview-invitation-cellphome p,
#themeNameBox.theme16 .preview-invitation-cellphome span {
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .preview-invitation-cellphome .groom,
#themeNameBox.theme16 .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.theme16 .preview-invitation-cellphome .groom > p,
#themeNameBox.theme16 .preview-invitation-cellphome .bride > p {
  margin: 0;
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}
/* 부모 묶음(첫 p): 좌측 절반에서 우측 정렬(중앙 경계에 붙음) */
#themeNameBox.theme16 .preview-invitation-cellphome .groom > p:first-child,
#themeNameBox.theme16 .preview-invitation-cellphome .bride > p:first-child {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}
/* 관계+이름 묶음(둘째 p): 우측 절반에서 좌측 정렬 */
#themeNameBox.theme16 .preview-invitation-cellphome .groom > p:last-child,
#themeNameBox.theme16 .preview-invitation-cellphome .bride > p:last-child {
  flex: 0.8 1 0;
  min-width: 0;
  justify-content: flex-start;
}
/* 부모 이름: 잉크 14px 400 */
#themeNameBox.theme16 .preview-invitation-cellphome [data-name$="phone_name"] {
  color: var(--t16-ink);
  font-size: 14px;
  font-weight: 400;
}
/* 관계(아들/딸): 잉크 14px 400 */
#themeNameBox.theme16 .preview-invitation-cellphome .rel_text {
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  color: var(--t16-ink) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-align: right;
}
/* 신랑/신부 이름: 잉크 18px 600 */
#themeNameBox.theme16 .preview-invitation-cellphome .font-tit,
#themeNameBox.theme16 .preview-invitation-cellphome [data-name="groom_name"],
#themeNameBox.theme16 .preview-invitation-cellphome [data-name="bride_name"] {
  display: inline-block !important;
  margin: 0 !important;
  color: var(--t16-ink) !important;
  font-size: 18px !important;
  font-weight: 600;
  text-align: left;
}
/* 부모 사이 점(·): 잉크 도트 */
#themeNameBox.theme16 .preview-invitation-cellphome .cellphone-dot {
  display: inline-block !important;
}
#themeNameBox.theme16 .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(--t16-ink) !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}
/* 모(母) 이름이 비면 점 숨김 */
#themeNameBox.theme16 .preview-invitation-cellphome .cellphone-dot:has(+ [data-name="goin_type_mom"] + [data-name*="mom_phone_name"]:empty) {
  display: none !important;
}
/* 故(고인) 마커: 검정 원본 img 숨기고 go.svg 를 mask 로 잉크 틴트 */
#themeNameBox.theme16 .preview-invitation-cellphome [data-name*="goin_type"] {
  position: relative;
  display: inline-block !important;
  width: 20px;
  height: 1em;
  vertical-align: middle;
}
#themeNameBox.theme16 .preview-invitation-cellphome [data-name*="goin_type"]:empty {
  display: none !important;
}
#themeNameBox.theme16 .preview-invitation-cellphome [data-name*="goin_type"] img {
  display: none !important;
}
#themeNameBox.theme16 .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(--t16-ink);
  -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;
}
/* 연락하기 버튼: 흰 배경 + 잉크 아웃라인 + 잉크 텍스트 (Figma 312:3290, 180x45 radius4) */
#themeNameBox.theme16 .preview-invitation-link {
  margin: 30px 0 100px;
  text-align: center;
}
#themeNameBox.theme16 .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(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
#themeNameBox.theme16 .btn-contactme span {
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
}
#themeNameBox.theme16 .btn-contactme .call-icon {
  display: none;
}

/* ============================================================
 * 2-3. 캘린더 (공용 변형에 따라 존재할 수 있음 - 방어적 스타일)
 *  - 시안16: 날짜 2줄 → 평면 캘린더 → 카운트다운 4박스 → 메시지
 * ============================================================ */
#themeNameBox.theme16 .calendar-subtitle {
  display: none;
}
#themeNameBox.theme16 .preview-calendar-title::before {
  content: none;
  background: none;      /* 캘린더는 영문 디바이더 없음 */
}
#themeNameBox.theme16 .preview-calendar-title h2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#themeNameBox.theme16 .preview-calendar-title .cal-date,
#themeNameBox.theme16 .preview-calendar-title .cal-daytime {
  display: block;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .calendar-box {
  margin: 20px auto 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#themeNameBox.theme16 .calendar-month {
  display: none;
}
#themeNameBox.theme16 .calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#themeNameBox.theme16 .calendar-table th,
#themeNameBox.theme16 .calendar-table td {
  height: 40px;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  text-align: center;
}
/* 요일 헤더: 기본 #111 / 일·토 #BF4340 (Figma 312:3156) */
#themeNameBox.theme16 .calendar-table th {
  font-size: 14px;
  color: #111111;
  border-bottom: 0;
}
#themeNameBox.theme16 .calendar-table th.sun,
#themeNameBox.theme16 .calendar-table th.sat {
  color: #bf4340;
}
/* 날짜: 당월 #4D4C4C / 일·토 #BF4340 / 타월 #B3B3B3 (Figma 312:3164) */
#themeNameBox.theme16 .calendar-table td {
  font-size: 12px;
  color: #4d4c4c;
}
#themeNameBox.theme16 .calendar-table td.sun,
#themeNameBox.theme16 .calendar-table td.sat {
  color: #bf4340;
}
#themeNameBox.theme16 .calendar-table td.other-month {
  color: #b3b3b3;
}
/* 예식일: 잉크 원 + 흰 글자 */
#themeNameBox.theme16 .wedding-day-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t16-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
/* D-day 카운트다운 4박스 */
#themeNameBox.theme16 .countdown-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 0.2fr);
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
#themeNameBox.theme16 .countdown-item {
  padding: 10px 4px 12px;
  border: 1px solid #e5ddcb;
  border-radius: 4px;
  background: transparent;
  text-align: center;
}
#themeNameBox.theme16 .countdown-label,
#themeNameBox.theme16 .countdown-value,
#themeNameBox.theme16 .countdown-message {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme16 .countdown-label {
  display: block;
  color: #b3b3b3;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
}
#themeNameBox.theme16 .countdown-value {
  display: block;
  margin-top: 7px;
  color: var(--t16-ink);
  font-size: 20px;
  line-height: 1;
}
#themeNameBox.theme16 .countdown-message {
  position: relative;
  margin: 40px 0 0;
  color: var(--t16-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.5px;
  text-align: center;
}
#themeNameBox.theme16 .countdown-message .countdown-heart {
  color: var(--t16-ink);   /* Figma 312:3259 실측: D-day 문구 하트는 본문과 동일 잉크색 */
  font-weight: 600;
}
#themeNameBox.theme16 .countdown-message .countdown-dday {
  color: var(--t16-ink);
  font-weight: 600;
}

/* ============================================================
 * 2-4. RSVP (con_rsvp 312:3141) - 다크 잉크 배경 + 크림 텍스트
 * ============================================================ */
#themeNameBox.theme16 .preview-attend-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--t16-ink) !important;
  background-image: none;
  padding: 50px 32px;
  min-height: 0;
}
#themeNameBox.theme16 .preview-attend-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 0 !important;
  text-align: center;
}
#themeNameBox.theme16 .preview-attend-title::before {
  order: -2; /* RSVP 디바이더 항상 맨 위 */
  margin-bottom: 6px;
}
/* 시안 순서: RSVP 디바이더 → "참석 의사 전달"(kicker) → 안내 3줄(본문)
 * 공유 마크업은 h2(본문) → p(kicker) 순이라 order 로 kicker 를 본문 위로 올린다. */
#themeNameBox.theme16 .preview-attend-title .attend-kicker,
#themeNameBox.theme16 .preview-attend-title .bg-gray {
  order: -1;
}
/* 안내 문구 3줄 (h2.attend-body) - 크림 16px 600, span 을 줄 단위로 쌓는다 */
#themeNameBox.theme16 .preview-attend-title h2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--t16-bg) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .preview-attend-title .attend-body span {
  color: var(--t16-bg);
}
/* 안내 문구 (bg-gray) - base 회색 pill 무력화, 크림 14px 400 */
#themeNameBox.theme16 .preview-attend-title .bg-gray,
#themeNameBox.theme16 .preview-attend-title p {
  margin: 0 !important;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: rgba(253, 249, 238, 0.85) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .preview-attend-content {
  color: var(--t16-bg);
}
#themeNameBox.theme16 .preview-attend-link {
  margin-top: 0;
  text-align: center;
}
/* 전달하기 버튼: 크림 배경 + 잉크 텍스트 (Figma 312:3151, 180x45 radius4) */
#themeNameBox.theme16 .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(--t16-bg) !important;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}
#themeNameBox.theme16 .preview-attend-wrap .btn-attend > span:not(.check-icon) {
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme16 .preview-attend-wrap .btn-attend .check-icon {
  display: none;
}

/* ============================================================
 * 2-5. 갤러리 (con_gallery 312:3121)
 *  - 공용 h2 텍스트("갤러리")는 숨기고, 시안대로 부제만 노출한다.
 *    (영문 GALLERY 는 ::before 디바이더가 담당)
 * ============================================================ */
#themeNameBox.theme16 .preview-gallery-title {
  gap: 20px;
}
#themeNameBox.theme16 .preview-gallery-title h2,
#themeNameBox.theme16 .preview-gallery-title h2.font-tit,
#themeNameBox.theme16 .preview-gallery-title .font-tit {
  font-size: 0 !important;
  line-height: 0 !important;
}
#themeNameBox.theme16 .preview-gallery-title h2::after {
  content: "우리의 가장 빛나는 순간들을 담았어요.";
  display: block;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme16 .preview-gallery-wrap {
  padding-left: 5px;
  padding-right: 5px;
}
#themeNameBox.theme16 .preview-gallery-img {
  margin-top: 24px;
}
#themeNameBox.theme16 .preview-gallery-ul {
  gap: 10px;
}
#themeNameBox.theme16 .preview-gallery-li,
#themeNameBox.theme16 .preview-gallery-item {
  border-radius: 6px;
  overflow: hidden;
}

/* ============================================================
 * 2-6. 오시는 길 (con_location 312:2699)
 * ============================================================ */
#themeNameBox.theme16 .preview-weddinginfo-title h2 {
  font-size: 20px;
}
#themeNameBox.theme16 .weddinginfo-content {
  margin-top: 10px;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
/* 주소 블록: 박스 없이 평문 중앙 */
#themeNameBox.theme16 .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.theme16 .weddinginfo-icon-box {
  display: block !important;
  gap: 0 !important;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}
#themeNameBox.theme16 .weddinginfo-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
#themeNameBox.theme16 .weddinginfo-icon {
  display: none;
}
/* 예식장명 20px 600 / 주소 15px 600 / 전화 16px 600 - 모두 잉크 */
#themeNameBox.theme16 .weddinginfo-namebox .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-align: center;
}
#themeNameBox.theme16 .weddinginfo-namebox .weddding-hall {
  margin: 0;
  width: 100%;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
#themeNameBox.theme16 .weddinginfo-tellbox {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
#themeNameBox.theme16 .weddinginfo-tellbox .weddding-tell {
  margin: 0;
  width: 100%;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-align: center;
}
/* 내비 버튼: 흰 배경 + 잉크 아웃라인 + 어두운 라벨 (브랜드 아이콘 ::before 유지) */
#themeNameBox.theme16 .weddinginfo-navi {
  display: flex !important;
  gap: 8px;
  justify-content: center;
  padding: 0 !important;
  margin: 20px -22px 0;
  width: calc(100% + 44px);
}
#themeNameBox.theme16 .weddinginfo-navi button {
  flex: 1;
  height: 40px;
  min-height: 40px;
  max-width: 120px;
  padding: 0 8px;
  border: 0.5px solid var(--t16-ink);
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
#themeNameBox.theme16 .weddinginfo-navi button::before {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
#themeNameBox.theme16 .weddinginfo-navi button span {
  display: inline-block;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* "네이버내비" → "네이버지도" (Figma) */
#themeNameBox.theme16 .weddinginfo-navi button.navernavi span {
  font-size: 0 !important;
  line-height: 0;
}
#themeNameBox.theme16 .weddinginfo-navi button.navernavi span::after {
  content: "네이버지도";
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t16-ink);
  white-space: nowrap;
}
/* 지도/약도: 좌우 여백 없이 풀폭 (-32px) */
#themeNameBox.theme16 .weddinghall-map-wrap {
  margin-top: 20px;
  margin-left: -32px;
  margin-right: -32px;
  width: calc(100% + 64px);
}
#themeNameBox.theme16 .map-wrap,
#themeNameBox.theme16 .preview-map-img,
#themeNameBox.theme16 .preview-map-img .cropper-preview {
  width: 100% !important;
  max-width: 100%;
  border-radius: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
}
#themeNameBox.theme16 .map-wrap .map,
#themeNameBox.theme16 #kakao_map {
  width: 100% !important;
  min-height: 200px;
}
#themeNameBox.theme16 .preview-map-img .cropper-preview img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}
/* 교통 안내: 행 디자인 (하단 잉크 헤어라인) */
#themeNameBox.theme16 .way-guide-box {
  margin-top: 30px;
  padding: 0;
  background: transparent;
}
#themeNameBox.theme16 .way-guide {
  position: relative;
  padding: 20px 30px;
  border-top: 0;
  border-bottom: 0;
  gap: 0;
}
#themeNameBox.theme16 .way-guide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t16-ink);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
#themeNameBox.theme16 .way-guide .way-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}
#themeNameBox.theme16 .way-guide .way-title p {
  margin: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px !important;
  font-weight: 600;
}
#themeNameBox.theme16 .way-guide .way-content p {
  margin: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 18px;
  white-space: pre-line;
}
/* 교통수단 아이콘: 기존 svg 를 mask 로 잉크 틴트 */
#themeNameBox.theme16 .way-guide .way-title .weddinginfo-icon {
  display: inline-block !important;
  width: 23px;
  height: 23px;
  margin: 0;
  padding: 0;
  background-color: var(--t16-ink);
  background-image: none;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  flex-shrink: 0;
}
#themeNameBox.theme16 .way-guide.subway .way-title .weddinginfo-icon {
  -webkit-mask-image: url("/assets/tool/img/invitation/theme_2026/subway_12_icon.svg");
          mask-image: url("/assets/tool/img/invitation/theme_2026/subway_12_icon.svg");
}
#themeNameBox.theme16 .way-guide.bus .way-title .weddinginfo-icon {
  -webkit-mask-image: url("/assets/tool/img/invitation/theme_2026/bus_12_icon.svg");
          mask-image: url("/assets/tool/img/invitation/theme_2026/bus_12_icon.svg");
}
#themeNameBox.theme16 .way-guide.etc .way-title .weddinginfo-icon {
  -webkit-mask-image: url("/assets/tool/img/invitation/theme_2026/info_12_icon.svg");
          mask-image: url("/assets/tool/img/invitation/theme_2026/info_12_icon.svg");
}

/* ============================================================
 * 2-7. 마음 전하실 곳 (con_account 312:2621)
 * ============================================================ */
#themeNameBox.theme16 .preview-bank-wrap {
  padding-left: 0;
  padding-right: 0;
}
#themeNameBox.theme16 .preview-bank-title {
  padding-left: 32px;
  padding-right: 32px;
}
#themeNameBox.theme16 .preview-bank-title h2 {
  font-size: 20px;
}
/* 안내 문구 (15px 600 잉크) */
#themeNameBox.theme16 .preview-bank-title h2::after {
  content: "신랑\00026신부에게 축복의 의미로\A축의금을 전달해보세요.";
  white-space: pre-line;
  display: block;
  margin-top: 10px;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
/* 계좌 영역: 박스 제거 풀폭, 좌우 30px */
#themeNameBox.theme16 .preview-bank-wrap .accordion-box {
  margin: 24px 30px 0;
  border: 0;
  background: transparent;
}
#themeNameBox.theme16 .preview-bank-wrap .accordion-inner {
  overflow: visible;
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 신랑측/신부측 토글: 풀폭 45px 솔리드 잉크 + 흰 16px 600 */
#themeNameBox.theme16 .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(--t16-ink) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .btn-toggle span {
  color: #ffffff !important;
}
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .btn-toggle .bank-icon {
  display: none;
}
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .btn-toggle::after {
  content: none;
}
/* 계좌 행: 투명 + 하단 0.5px 잉크 헤어라인 */
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .bank {
  margin-bottom: 0;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#themeNameBox.theme16 .preview-bank-wrap .bank-info,
#themeNameBox.theme16 .preview-bank-wrap .bank-btn-box {
  padding: 0;
}
#themeNameBox.theme16 .preview-bank-wrap .bank-info p {
  margin: 0;
  line-height: 1.6;
}
#themeNameBox.theme16 .preview-bank-wrap .bank-info p:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
#themeNameBox.theme16 .preview-bank-wrap .bank-info .name {
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme16 .preview-bank-wrap .bank-info .name::before {
  font-weight: 400;
  font-size: 12px;
  margin-right: 5px;
  color: var(--t16-ink);
}
/* 이름 앞 관계 표기 (00=본인/01=부/02=모) */
#themeNameBox.theme16 .bank_groom00 .bank-info .name::before { content: "신랑"; }
#themeNameBox.theme16 .bank_bride00 .bank-info .name::before { content: "신부"; }
#themeNameBox.theme16 .bank_groom01 .bank-info .name::before,
#themeNameBox.theme16 .bank_bride01 .bank-info .name::before { content: "부"; }
#themeNameBox.theme16 .bank_groom02 .bank-info .name::before,
#themeNameBox.theme16 .bank_bride02 .bank-info .name::before { content: "모"; }
#themeNameBox.theme16 .preview-bank-wrap .bank-info .bank_type,
#themeNameBox.theme16 .preview-bank-wrap .bank-info .bank_no {
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
/* 버튼 행: 가로 한 줄 */
#themeNameBox.theme16 .preview-bank-wrap .bank-btn-box {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 15px;
}
/* 계좌복사: 흰 배경 + 잉크 아웃라인 + 잉크 12px 600 (카카오페이는 브랜드 컬러 유지) */
#themeNameBox.theme16 .preview-bank-wrap .copy-bank {
  flex: 1;
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  background: #ffffff !important;
  border: 0.5px solid var(--t16-ink) !important;
  border-radius: 5px !important;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
#themeNameBox.theme16 .preview-bank-wrap .kakaopay {
  flex: 1;
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
#themeNameBox.theme16 .preview-bank-wrap .kakaopay span {
  white-space: nowrap;
}
/* 계좌복사 아이콘: svg mask 로 잉크 틴트 */
#themeNameBox.theme16 .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(--t16-ink);
  -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 312:2580) - 크림 배경 + 잉크 텍스트
 * ============================================================ */
/* 방명록 미사용 시 하단 고정 여백. 하객뷰=미렌더(:not(:has)), 편집기=display:none(:has([style*=none])).
 * 방명록 사용 시엔 방명록 섹션이 바닥 여백을 담당하므로 추가 안 함 */
#themeNameBox.theme16 .preview-etc-wrap:not(:has(.preview-guestbook-wrap)),
#themeNameBox.theme16 .preview-etc-wrap:has(.preview-guestbook-wrap[style*="display: none"]),
#themeNameBox.theme16 .preview-etc-wrap:has(.preview-guestbook-wrap[style*="display:none"]) {
  padding-bottom: 100px;
}

#themeNameBox.theme16 .preview-guestbook-wrap {
  position: relative;
  overflow: hidden;
  padding: 100px 32px 40px;
  background-color: transparent;
  background-image: none;
}
/* base 아치형 inner-wrap 제거 (초록 보더 + 300px 라운드, 테마15와 동일 처리) */
#themeNameBox.theme16 .preview-guestbook-wrap .preview-inner-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
#themeNameBox.theme16 .preview-guestbook-title {
  margin: 0 0 15px;
}
#themeNameBox.theme16 .preview-guestbook-title h2,
#themeNameBox.theme16 .preview-guestbook-title .font-tit {
  color: var(--t16-ink);
  font-size: 20px;
}
#themeNameBox.theme16 .preview-guestbook-wrap .guestbook-subtitle {
  text-align: center;
  margin: 15px 0 20px;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
#themeNameBox.theme16 .guestbook-no-data {
  padding: 42px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
/* 방명록 항목: 평면 + 하단 잉크 헤어라인, 이름/날짜 상단 → 본문 하단 */
#themeNameBox.theme16 .guestbook-list {
  margin-bottom: 0;
  padding: 0;
}
#themeNameBox.theme16 .guestbook-list-txt {
  display: flex;
  flex-direction: column;
  margin-left: -32px;
  margin-right: -32px;
  padding: 30px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 수정/삭제 아이콘 (우상단) */
#themeNameBox.theme16 .guest-btn-box {
  order: -2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
#themeNameBox.theme16 .guest-btn-box .btn,
#themeNameBox.theme16 .guest-btn-box .btn-edit,
#themeNameBox.theme16 .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.theme16 .guest-btn-box .btn-edit {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_edit.svg");
}
#themeNameBox.theme16 .guest-btn-box .btn-delete {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_delete.svg");
}
/* 이름(잉크 16px) + 날짜(회색 14px) 한 줄 */
#themeNameBox.theme16 .guest-name-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  order: -1;
  margin: 0 0 10px;
}
#themeNameBox.theme16 .guest-name-date p {
  margin: 0;
}
/* 피그마 시안: 이름도 날짜와 같은 회색 (본문만 잉크색) */
#themeNameBox.theme16 .guest-name-date .name {
  color: #9b968c !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 400;
}
#themeNameBox.theme16 .guest-name-date .date {
  color: #9b968c !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
}
/* 본문 (잉크 15px / lh 24px) */
#themeNameBox.theme16 .guest-contents .content {
  margin: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}
/* 전체보기/작성하기 버튼: 흰 배경 + 잉크 아웃라인 */
#themeNameBox.theme16 .book_btn,
#themeNameBox.theme16 .book_btn2 {
  margin: 20px 0 0;
  text-align: center;
}
#themeNameBox.theme16 .book_btn2 a,
#themeNameBox.theme16 .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(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
 * 0.5px 보더 → 물리 헤어라인 (테마15와 동일 기법)
 *  - 아웃라인 버튼: 200% 가상요소 + scale(0.5)
 *  - 계좌/방명록 행: 1px 가상요소 + scaleY(0.5)
 * ============================================================ */
/* A. 아웃라인 버튼 (4면 보더) */
#themeNameBox.theme16 .btn-contactme,
#themeNameBox.theme16 .book_btn2 a,
#themeNameBox.theme16 .book_btn_top a,
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn,
body:has(#themeNameBox.theme16) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme16) #attendModalContent .btn-add-companion {
  position: relative;
}
#themeNameBox.theme16 .btn-contactme::after,
#themeNameBox.theme16 .book_btn2 a::after,
#themeNameBox.theme16 .book_btn_top a::after,
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn::after,
body:has(#themeNameBox.theme16) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme16) #attendModalContent .btn-add-companion::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  box-sizing: border-box;
  border: 1px solid var(--t16-ink);
  border-radius: 8px;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}
/* B. 계좌/방명록 하단 헤어라인 */
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .bank,
#themeNameBox.theme16 .guestbook-list-txt,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:last-child {
  position: relative;
  border-bottom: 0;
}
#themeNameBox.theme16 .preview-bank-wrap .accordion-box .bank::after,
#themeNameBox.theme16 .guestbook-list-txt::after,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t16-ink);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem::after {
  background: rgba(17, 17, 17, 0.3);
}

/* ============================================================
 * 모달 공통 (테마16) - JS가 body 로 appendTo → body:has() 스코프
 * ============================================================ */
body:has(#themeNameBox.theme16) #contactModalContent .modal-dialog,
body:has(#themeNameBox.theme16) #attendModalContent .modal-dialog,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-dialog,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-dialog,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-dialog,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-dialog {
  width: calc(100% - 48px);
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-content,
body:has(#themeNameBox.theme16) #attendModalContent .modal-content,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-content,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-content,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-content,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-content {
  overflow: hidden;
  border: 0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: var(--t16-ink) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-header,
body:has(#themeNameBox.theme16) #attendModalContent .modal-header,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-header,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-header,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-header,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-header {
  position: relative;
  align-items: center;
  min-height: 46px;
  padding: 16px 44px 12px 20px;
  border-bottom: 1px solid #eadfce;
  background: #ffffff;
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-title,
body:has(#themeNameBox.theme16) #attendModalContent .modal-title,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-title,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-title,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-title {
  width: 100%;
  margin: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-align: left;
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-header .close,
body:has(#themeNameBox.theme16) #attendModalContent .modal-header .close,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-header .close,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-header .close,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-header .close,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-header .close {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  padding: 0;
  color: var(--t16-ink);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  opacity: 1;
  transform: translateY(-50%);
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-body,
body:has(#themeNameBox.theme16) #attendModalContent .modal-body,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-body,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-body,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body {
  padding: 18px 20px 20px;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme16) #guestPasswordModal .modal-body input.form-control,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-body input.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t16-accent);
  border-radius: 4px;
  background: #ffffff;
  color: var(--t16-ink);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme16) .modal-body .btn-dark,
body:has(#themeNameBox.theme16) .modal-body .btn.btn-primary {
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t16-accent) !important; /* 피그마 모달 버튼 공통: 토프 */
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-weight: 600;
  box-shadow: none !important;
}

/* ---- 모달 1. 연락하기 (#contactModalContent) ---- */
body:has(#themeNameBox.theme16) #contactModalContent .modal-header {
  padding: 16px 44px 12px;
  justify-content: center;
  border-bottom: 0;
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-title {
  text-align: center;
  color: #111111 !important; /* 피그마: 연락하기 #111 */
  font-size: 18px;
  font-weight: 600;
}
body:has(#themeNameBox.theme16) #contactModalContent .modal-body {
  padding: 0 0 40px !important;
}
body:has(#themeNameBox.theme16) #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.theme16) #contactModalContent .contactItem > div {
  min-height: 0;
  line-height: 1.5;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom),
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride) {
  grid-template-areas:
    "header header header"
    "tit    name   icon";
  padding: 0 25px 10px 30px;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride) {
  margin-top: 30px;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom)::before,
body:has(#themeNameBox.theme16) #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: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  color: #111111; /* 피그마: 신랑측/신부측 #111 */
  letter-spacing: -0.5px;
  text-align: left;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom)::before { content: "신랑측"; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride)::before { content: "신부측"; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom) .call_tit,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride) .call_tit { grid-area: tit; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom) .call_name,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride) .call_name { grid-area: name; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.groom) .call_icon,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem:has(.call_tit.bride) .call_icon { grid-area: icon; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_tit,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_name {
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #111111 !important; /* 피그마: 호칭/이름 #111 */
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
  word-break: keep-all;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_tit { font-weight: 400; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_name { font-weight: 600; }
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_name span {
  display: inline-block;
  white-space: nowrap;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_tit .xeicon {
  display: none;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem.groom-dad-info .call_tit,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem.groom-mom-info .call_tit,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem.bride-dad-info .call_tit,
body:has(#themeNameBox.theme16) #contactModalContent .contactItem.bride-mom-info .call_tit {
  font-size: 0;
  line-height: 0;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem.groom-dad-info .call_tit::before,
body:has(#themeNameBox.theme16) #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.theme16) #contactModalContent .contactItem.groom-mom-info .call_tit::before,
body:has(#themeNameBox.theme16) #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.theme16) #contactModalContent .contactItem .call_icon {
  width: auto;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: end;
}
body:has(#themeNameBox.theme16) #contactModalContent .contactItem .call_icon > a {
  margin: 0;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 50%;
  background-color: var(--t16-accent) !important;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  text-decoration: none;
  font-size: 0 !important;
  line-height: 0;
}
body:has(#themeNameBox.theme16) #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.theme16) #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.theme16) #contactModalContent .contactItem .call_icon > a .xeicon {
  display: none !important;
}

/* ---- 모달 2. 참석 여부 (#attendModalContent) ---- */
body:has(#themeNameBox.theme16) #attendModalContent .modal-header {
  padding: 32px 30px 14px !important;
  text-align: center;
  display: block !important;
  position: relative;
  border-bottom: 0;
}
body:has(#themeNameBox.theme16) #attendModalContent .modal-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
body:has(#themeNameBox.theme16) #attendModalContent .modal-title::after {
  content: "원활한 예식 진행을 위해 참석 정보를\A미리 알려주시면 감사하겠습니다";
  display: block;
  margin-top: 12px;
  white-space: pre-line;
  color: rgba(17, 17, 17, 0.5); /* 피그마 312:3310 */
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
body:has(#themeNameBox.theme16) #attendModalContent .modal-header .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  transform: none;
}
body:has(#themeNameBox.theme16) #attendModalContent .modal-body {
  padding: 12px 0 30px !important;
  background: #ffffff;
}
body:has(#themeNameBox.theme16) #attendModalContent .preview-attend-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme16) #attendModalContent .col-form-label {
  display: none !important;
}
body:has(#themeNameBox.theme16) #attendModalContent .form-group.row {
  display: block;
  margin: 0;
  padding: 10px 13px;
}
body:has(#themeNameBox.theme16) #attendModalContent .form-group.row > .col-sm-9,
body:has(#themeNameBox.theme16) #attendModalContent .form-group.row > .col-12 {
  flex: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle {
  display: flex !important;
  gap: 8px;
  width: 100% !important;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme16) #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; /* 테마15와 동일: 실보더 + 헤어라인 병행 */
  border-radius: 4px !important;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
/* 토글 헤어라인 보더: 테마15와 동일 rgba(17,17,17,.5) */
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn::after {
  border-color: rgba(17, 17, 17, 0.5);
}
/* 신랑측/참석가능(각 행 첫 번째) active - 토프 (피그마 312:3320) */
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn.active {
  background: var(--t16-accent) !important;
  color: #ffffff !important;
  border-color: var(--t16-accent) !important;
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn.active::after {
  border-color: var(--t16-accent);
}
/* 신부측/참석불가(각 행 두 번째) active - 올리브 #5E563D (피그마 312:3317) */
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn:last-child.active {
  background: #5e563d !important;
  color: #ffffff !important;
  border-color: #5e563d !important;
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn:last-child.active::after {
  border-color: #5e563d;
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-group-toggle > label.btn input[type="radio"] {
  display: none;
}
body:has(#themeNameBox.theme16) #attendModalContent .form-group:nth-of-type(3) {
  padding: 30px 0 0;
}
body:has(#themeNameBox.theme16) #attendModalContent .form-group:nth-of-type(3) > .col-sm-9::before,
body:has(#themeNameBox.theme16) #attendModalContent .form-group:nth-of-type(3) > .col-12::before {
  content: "성함";
  display: block;
  padding: 0 13px 10px;
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}
body:has(#themeNameBox.theme16) #attendModalContent .form-group:nth-of-type(3) .input-group,
body:has(#themeNameBox.theme16) #attendModalContent .input-group.split {
  display: flex !important;
  gap: 8px;
  padding: 0 13px;
  margin: 0;
  flex-wrap: nowrap;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme16) #attendModalContent .input-group.split {
  margin-bottom: 10px !important;
}
body:has(#themeNameBox.theme16) #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; /* 피그마 312:3328 */
  border-radius: 4px !important;
  color: var(--t16-ink);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
  font-weight: 400;
}
body:has(#themeNameBox.theme16) #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.theme16) #attendModalContent .input-group-append {
  margin: 0;
  flex: 0 0 137px;
}
body:has(#themeNameBox.theme16) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme16) #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(--t16-accent) !important; /* 피그마: 동행추가/삭제 토프 */
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600 !important;
  box-shadow: none;
  white-space: nowrap;
}
body:has(#themeNameBox.theme16) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme16) #attendModalContent .btn-add-companion::after {
  border-color: rgba(17, 17, 17, 0.5);
}
body:has(#themeNameBox.theme16) #attendModalContent .input-group-append .btn i.xeicon {
  display: none;
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-add-companion::before {
  content: "+";
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-del-companion::before {
  content: "-";
}
body:has(#themeNameBox.theme16) #attendModalContent .btn-dark.btn-block {
  margin: 20px 13px 0;
  width: calc(100% - 26px);
  height: 45px;
  background: var(--t16-accent) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 모달 3. 방명록 작성/수정/전체보기 ---- */
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-title,
body:has(#themeNameBox.theme16) #guestbookModalContent .modal-title {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body {
  padding: 25px 30px 30px;
}
body:has(#themeNameBox.theme16) #gueseditModalContent.guestbook-write-modal .form-group,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .form-group {
  margin-bottom: 25px;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body label,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body label {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: var(--t16-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t16-accent); /* 피그마 312:3449: 토프 보더 */
  border-radius: 4px;
  background: #ffffff;
  color: var(--t16-ink);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 80px;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body textarea.form-control::placeholder,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme16) #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;
}
body:has(#themeNameBox.theme16) #gueseditModalContent .modal-body .btn-dark.btn-block,
body:has(#themeNameBox.theme16) #guestUpdateModalContent .modal-body .btn-dark.btn-block {
  min-height: 45px;
  height: 45px;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t16-accent) !important; /* 피그마 312:3459: 등록하기 토프 */
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
 * (예식종료) 감사글 / 인사글 - 테마16
 *  초대글과 형제 블록이므로 동일 팔레트/서체로 맞춘다.
 * ============================================================ */
#themeNameBox.theme16 .preview-testimonial-wrap {
  padding: 100px 32px 30px;
}
#themeNameBox.theme16 .preview-testimonial-wrap .preview-message-wrap.preview-testimonial-message,
#themeNameBox.theme16 .preview-testimonial-wrap .preview-testimonial-message p,
#themeNameBox.theme16 .preview-insa-wrap .preview-message-wrap.preview-insa-message,
#themeNameBox.theme16 .preview-insa-wrap .preview-message-wrap.preview-insa-message p {
  color: var(--t16-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  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.theme16 .preview-invitation-cellphome .parent-wrapper,
#themeNameBox.theme16 .preview-invitation-cellphome .groom > p:not(.rel_box) > span:not(.cellphone-dot),
#themeNameBox.theme16 .preview-invitation-cellphome .bride > p:not(.rel_box) > span:not(.cellphone-dot) {
  display: block !important;
  white-space: nowrap;
}
