/* ============================================================
 * 테마 18 (운영) - 피그마 시안 기반 (mo / node 363:366 시안_7)
 * - invitation.css 뒤에 로드되어 테마18 관련 규칙을 오버라이드한다
 * - 테스트본(invitation_18_test.css) 수정 시 이 운영본에도 동일 반영할 것
 *
 * 디자인 토큰 (핑크 들판 수채화)
 *  배경      : #F2EAE4 (웜 아이보리)
 *  본문 잉크 : #404040
 *  영문 타이틀: #A6A186 (올리브 베이지)
 *  로즈 포인트: #D9ACA3 (헤어라인/방명록 이름/예식일 원)
 *  핑크 블록 : #F2CBC2 (RSVP 배경/계좌 토글 버튼)
 *  캘린더 주말: #BF4340
 *  폰트      : Eulyoo1945 (400/600)
 *  섹션 타이틀: 수채화 아이콘(PNG) + 영문 (GUESTBOOK 만 60px 라인 디바이더)
 * ============================================================ */

/* ============================================================
 * 테마 선택 목록 썸네일 (에디터 좌측 패널, #themeNameBox 스코프 밖)
 * - 테마18 커버 비율은 360:844 로 표준(360:786)보다 세로가 길다
 * - 썸네일 박스를 표준 비율로 고정하고 contain 축소 배치 → 좌우에
 *   배경색(#F2EAE4) 여백이 생겨 목록 높이가 정렬됨 (테마17과 동일 기법)
 * ============================================================ */
.theme-type[data-id="theme18"] .theme-img {
  aspect-ratio: 360 / 786;
  background: #f2eae4;
  overflow: hidden;
}
.theme-type[data-id="theme18"] .theme-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 모달은 JS가 body 로 appendTo 되어 #themeNameBox 밖에 위치
 * → body:has() 스코프에도 변수를 선언해야 모달 안 var() 가 동작한다. (테마16/17과 동일) */
#themeNameBox.theme18,
body:has(#themeNameBox.theme18) {
  --t18-bg: #f2eae4;
  --t18-ink: #404040;
  --t18-eng: #a6a186;       /* 영문 섹션 타이틀/카운트다운 메시지 (피그마 363:1050) */
  --t18-rose: #d9aca3;      /* 헤어라인/방명록 이름/예식일 원 (피그마 363:934) */
  --t18-pink: #f2cbc2;      /* RSVP 배경/계좌 토글 (피그마 363:925/417) */
  --t18-cal-red: #bf4340;   /* 캘린더 일/토 (피그마 363:938) */
}

/* ===== 기본: 웜 아이보리 배경 + #404040 잉크 ===== */
#themeNameBox.theme18 {
  background: var(--t18-bg);
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}

/* ============================================================
 * 커버 (★Main, node 363:1071 / 캔버스 360x844 기준)
 * - photo 미사용 테마(Status::photo=false): 사진 크로퍼 없이
 *   정적 일러스트 1장(풀블리드) + 동적 텍스트(이름/날짜/장소)로 구성
 * ============================================================ */
#themeNameBox.theme18 .theme-18-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(--t18-bg);
}
#themeNameBox.theme18 .theme-18-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(--t18-bg);
}

/* 풀블리드 일러스트 - 피그마 크롭 복원 + 원본 비율 유지 (2026-07-16)
 * - 시안 크롭: top -32.02% / height 126.33% (하늘 상단을 잘라 커플을 화면 중단으로 올림,
 *   하단 약 5.7% 는 이미지가 닿지 않아 배경색 #F2EAE4 노출 = 시안 동일)
 * - 폭은 원본 비율(941x1672)에 맞춰 계산: 126.33% x (844/360) x (941/1672) = 166.7%
 *   (기존 128.21% 는 비율이 깨져 세로로 늘어나 보이던 원인) / 수평 중앙: -(166.7-100)/2 */
#themeNameBox.theme18 .theme-18-wrap .theme-18-illust-main {
  position: absolute;
  left: -33.35%;
  top: -32.02%;
  width: 166.7%;
  height: 126.33%;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}

/* 상단 이름 스택 (피그마 363:1073: y139, 24px 600 #404040) */
#themeNameBox.theme18 .theme-18-wrap .theme-18-text-top {
  position: absolute;
  left: 0;
  top: 16.5%;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  z-index: 2;
}
#themeNameBox.theme18 .theme-name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1%;
  width: 100%;
  color: var(--t18-ink);
}
#themeNameBox.theme18 .theme-name-stack .p_name_1,
#themeNameBox.theme18 .theme-name-stack .p_name_2 {
  display: block;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(18px, 6.67cqw, 26px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
#themeNameBox.theme18 .theme-name-stack .theme-name-join {
  display: block;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(15px, 5.56cqw, 22px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}

/* 하단 날짜/예식장 (피그마 363:1077: 날짜 y643 18px 600 / 장소 y679 14px 400 lh1.7) */
#themeNameBox.theme18 .theme-18-wrap .theme-18-text-bottom {
  position: absolute;
  left: 0;
  top: 74.5%;
  bottom: 3%;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  z-index: 2;
}
#themeNameBox.theme18 .theme-18-wrap .main-date-txt {
  margin: 0;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(14px, 5cqw, 19px);
  font-weight: 600;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .theme-18-wrap .main-date-txt .weddding_date {
  margin-right: 0;
}
#themeNameBox.theme18 .theme-18-wrap .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(12px, 3.89cqw, 15px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
 * 본문 공통 (시안_7 node 363:367 contain 기준)
 *   전 섹션 웜 아이보리(#F2EAE4) 배경 + #404040 본문
 *   섹션 타이틀 = 수채화 아이콘 + 영문(#A6A186 16px)
 *   RSVP 만 핑크(#F2CBC2) 풀블리드
 * ============================================================ */
#themeNameBox.theme18 .preview-wrap {
  background-color: var(--t18-bg) !important;
  background-image: none;
}

/* ===== 섹션 타이틀 공통 ===== */
#themeNameBox.theme18 .preview-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  padding-bottom: 0 !important;
  text-align: center;
}
#themeNameBox.theme18 .preview-title::before {
  content: none;
  background-image: none;
}
/* 영문 타이틀 (아이콘형 섹션: 라인 없이 텍스트만 / 피그마 363:1050) */
#themeNameBox.theme18 .preview-gallery-title::before,
#themeNameBox.theme18 .preview-weddinginfo-title::before,
#themeNameBox.theme18 .preview-bank-title::before,
#themeNameBox.theme18 .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(--t18-eng);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  white-space: nowrap;
  background: none;
}
#themeNameBox.theme18 .preview-gallery-title::before { content: "GALLERY"; }
#themeNameBox.theme18 .preview-weddinginfo-title::before { content: "LOCATION"; }
#themeNameBox.theme18 .preview-bank-title::before { content: "ACCOUNT"; }
/* GUESTBOOK 만 60px 라인 디바이더 (피그마 363:372, currentColor 라인 기법) */
#themeNameBox.theme18 .preview-guestbook-title::before {
  content: "GUESTBOOK";
  order: -1;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 74px;
  box-sizing: border-box;
  border-radius: 0;
  height: auto;
  color: var(--t18-eng);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  white-space: nowrap;
  background:
    linear-gradient(currentColor, currentColor) left center / 60px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 60px 1px no-repeat;
}
/* 수채화 섹션 아이콘: 영문 위에 배치 (::after 를 order 로 최상단 이동) */
#themeNameBox.theme18 .preview-gallery-title::after,
#themeNameBox.theme18 .preview-weddinginfo-title::after,
#themeNameBox.theme18 .preview-bank-title::after {
  content: "";
  order: -2;
  display: block;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 0;
  pointer-events: none;
}
/* 갤러리: 폴라로이드+카메라 (피그마 363:908, 56x45) */
#themeNameBox.theme18 .preview-gallery-title::after {
  width: 56px;
  aspect-ratio: 860 / 688;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme18_icon_gallery.png");
}
/* 오시는 길: 하트 맵핀 (피그마 363:489, 35x51) */
#themeNameBox.theme18 .preview-weddinginfo-title::after {
  width: 35px;
  aspect-ratio: 570 / 821;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme18_icon_location.png");
}
/* 마음 전하실 곳: 리본 봉투 (피그마 363:411, 49x49) */
#themeNameBox.theme18 .preview-bank-title::after {
  width: 49px;
  aspect-ratio: 762 / 768;
  background-image: url("/assets/tool/img/invitation/theme_2026/theme18_icon_account.png");
}
/* 한글 타이틀 공통 (20px 600 #404040) */
#themeNameBox.theme18 .preview-title .font-tit,
#themeNameBox.theme18 .preview-title h2 {
  margin: 0;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* ============================================================
 * 2-1. 초대글 (con_invite_call 363:1046)
 *  - 순서: [반지 아이콘] → [INVITATION] → 헤드라인 → 인사 본문 → (사진) → 혼주 → 연락하기
 * ============================================================ */
#themeNameBox.theme18 .preview-invi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 32px;
}
#themeNameBox.theme18 .preview-invi-wrap::before {
  content: "INVITATION";
  order: -1;
  margin: 0 auto 25px;
}
/* 반지+꽃 아이콘 (피그마 363:1049, 49x39) - 영문 위 */
#themeNameBox.theme18 .preview-invi-wrap::after {
  content: "";
  order: -2;
  display: block;
  width: 49px;
  aspect-ratio: 609 / 478;
  margin: 0 auto 5px;
  background: url("/assets/tool/img/invitation/theme_2026/theme18_icon_invitation.png") center / contain no-repeat;
  pointer-events: none;
}
#themeNameBox.theme18 .preview-invi-wrap > .preview-invitation-title { order: 1; }
#themeNameBox.theme18 .preview-invi-wrap > .preview-message-wrap { order: 2; margin-top: 0; }
/* 헤드라인(초대합니다) 20px 600 #404040 (피그마 363:1055) */
#themeNameBox.theme18 .preview-invitation-title h2 {
  font-size: 20px;
  line-height: 1.5;
}
/* 인사 본문 15px 400 #404040 중앙 (피그마 363:1056) */
#themeNameBox.theme18 .preview-invi-wrap .preview-message-wrap,
#themeNameBox.theme18 .preview-invi-wrap .preview-message-wrap p {
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center !important;
}
#themeNameBox.theme18 .preview-invi-wrap .preview-message-wrap {
  background: transparent;
}
#themeNameBox.theme18 .preview-invitation-message {
  background-color: transparent;
  color: var(--t18-ink);
}
/* 초대글 사진(있을 경우): 본문 아래 풀폭 */
#themeNameBox.theme18 .preview-invi-wrap > .preview-message-photo-wrap {
  order: 3;
  width: calc(100% + 64px);
  max-width: none;
  margin: 80px -32px 0;
}
#themeNameBox.theme18 .preview-message-photo {
  width: 100% !important;
  aspect-ratio: 360 / 214;
  height: auto !important;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e9ded5;
}
#themeNameBox.theme18 .preview-message-photo .cropper-preview,
#themeNameBox.theme18 .preview-message-photo > img,
#themeNameBox.theme18 .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:1057) - 전부 #404040
 * ============================================================ */
#themeNameBox.theme18 .preview-invitation-cellphome {
  margin: 0;
  padding: 30px 16px 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#themeNameBox.theme18 .preview-invitation-cellphome,
#themeNameBox.theme18 .preview-invitation-cellphome p,
#themeNameBox.theme18 .preview-invitation-cellphome span {
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .preview-invitation-cellphome .groom,
#themeNameBox.theme18 .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.theme18 .preview-invitation-cellphome .groom > p,
#themeNameBox.theme18 .preview-invitation-cellphome .bride > p {
  margin: 0;
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}
#themeNameBox.theme18 .preview-invitation-cellphome .groom > p:first-child,
#themeNameBox.theme18 .preview-invitation-cellphome .bride > p:first-child {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}
#themeNameBox.theme18 .preview-invitation-cellphome .groom > p:last-child,
#themeNameBox.theme18 .preview-invitation-cellphome .bride > p:last-child {
  flex: 0.8 1 0;
  min-width: 0;
  justify-content: flex-start;
}
/* 부모 이름 14px 400 / 관계 14px 400 / 신랑신부 이름 18px 600 (피그마 363:1058) */
#themeNameBox.theme18 .preview-invitation-cellphome [data-name$="phone_name"] {
  color: var(--t18-ink);
  font-size: 14px;
  font-weight: 400;
}
#themeNameBox.theme18 .preview-invitation-cellphome .rel_text {
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  color: var(--t18-ink) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-align: right;
}
#themeNameBox.theme18 .preview-invitation-cellphome .font-tit,
#themeNameBox.theme18 .preview-invitation-cellphome [data-name="groom_name"],
#themeNameBox.theme18 .preview-invitation-cellphome [data-name="bride_name"] {
  display: inline-block !important;
  margin: 0 !important;
  color: var(--t18-ink) !important;
  font-size: 18px !important;
  font-weight: 600;
  text-align: left;
}
#themeNameBox.theme18 .preview-invitation-cellphome .cellphone-dot {
  display: inline-block !important;
}
#themeNameBox.theme18 .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(--t18-ink) !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}
#themeNameBox.theme18 .preview-invitation-cellphome .cellphone-dot:has(+ [data-name="goin_type_mom"] + [data-name*="mom_phone_name"]:empty) {
  display: none !important;
}
/* 故(고인) 마커: go.svg 를 mask 로 잉크 틴트 */
#themeNameBox.theme18 .preview-invitation-cellphome [data-name*="goin_type"] {
  position: relative;
  display: inline-block !important;
  width: 20px;
  height: 1em;
  vertical-align: middle;
}
#themeNameBox.theme18 .preview-invitation-cellphome [data-name*="goin_type"]:empty {
  display: none !important;
}
#themeNameBox.theme18 .preview-invitation-cellphome [data-name*="goin_type"] img {
  display: none !important;
}
#themeNameBox.theme18 .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(--t18-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;
}
/* 연락하기 버튼: 흰 배경 + 0.5px 잉크 보더 + 15px 600 (피그마 363:1069) */
#themeNameBox.theme18 .preview-invitation-link {
  margin: 30px 0 0;
  text-align: center;
}
#themeNameBox.theme18 .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(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
#themeNameBox.theme18 .btn-contactme span {
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
}
#themeNameBox.theme18 .btn-contactme .call-icon {
  display: none;
}

/* ============================================================
 * 2-3. 캘린더 (con_calender 363:934)
 *  - 섹션 상단 0.5px 로즈 구분선 / 날짜 2줄 → 캘린더 → 카운트다운 → 올리브 메시지
 * ============================================================ */
#themeNameBox.theme18 .preview-calendar-wrap {
  position: relative;
  border-top: 0;
  padding: 72px 0
}
#themeNameBox.theme18 .preview-calendar-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--t18-rose);
  transform: scaleY(0.5);
  transform-origin: top;
  pointer-events: none;
}
#themeNameBox.theme18 .calendar-subtitle {
  display: none;
}
#themeNameBox.theme18 .preview-calendar-title::before {
  content: none;
  background: none;
}
#themeNameBox.theme18 .preview-calendar-title h2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* 날짜/시간 2줄: 18px 600 #404040 (피그마 363:1043) */
#themeNameBox.theme18 .preview-calendar-title .cal-date,
#themeNameBox.theme18 .preview-calendar-title .cal-daytime {
  display: block;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .calendar-box {
  margin: 20px auto 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#themeNameBox.theme18 .calendar-month {
  display: none;
}
#themeNameBox.theme18 .calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#themeNameBox.theme18 .calendar-table th,
#themeNameBox.theme18 .calendar-table td {
  height: 40px;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  text-align: center;
}
/* 요일 헤더: 기본 #111 / 일·토 #BF4340 (피그마 363:937) */
#themeNameBox.theme18 .calendar-table th {
  font-size: 14px;
  color: #111111;
  border-bottom: 0;
}
#themeNameBox.theme18 .calendar-table th.sun,
#themeNameBox.theme18 .calendar-table th.sat {
  color: var(--t18-cal-red);
}
/* 날짜: 당월 #4D4C4C / 일·토 #BF4340 / 타월 #B3B3B3 */
#themeNameBox.theme18 .calendar-table td {
  font-size: 12px;
  color: #4d4c4c;
}
#themeNameBox.theme18 .calendar-table td.sun,
#themeNameBox.theme18 .calendar-table td.sat {
  color: var(--t18-cal-red);
}
#themeNameBox.theme18 .calendar-table td.other-month {
  color: #b3b3b3;
}
/* 예식일: 로즈 원 + 흰 글자 (피그마 Ellipse57 #D9ACA3) */
#themeNameBox.theme18 .wedding-day-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t18-rose);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
/* D-day 카운트다운 4박스 (피그마 image103 참조: 보더 #DEDEDE / 라벨 #B3B3B3 / 값 #4D4C4C) */
#themeNameBox.theme18 .countdown-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 0.2fr);
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
#themeNameBox.theme18 .countdown-item {
  padding: 10px 4px 12px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: transparent; /* 흰 배경 제거 - 섹션 배경(#F2EAE4) 그대로 노출 (2026-07-16 요청) */
  text-align: center;
}
#themeNameBox.theme18 .countdown-label,
#themeNameBox.theme18 .countdown-value,
#themeNameBox.theme18 .countdown-message {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme18 .countdown-label {
  display: block;
  color: #b3b3b3;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
}
#themeNameBox.theme18 .countdown-value {
  display: block;
  margin-top: 7px;
  color: #4d4c4c;
  font-size: 20px;
  line-height: 1;
}
/* D-day 메시지: 올리브 베이지 14px 600 (피그마 363:1040) */
#themeNameBox.theme18 .countdown-message {
  position: relative;
  margin: 40px 0 0;
  color: var(--t18-eng);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.5px;
  text-align: center;
}
#themeNameBox.theme18 .countdown-message .countdown-heart,
#themeNameBox.theme18 .countdown-message .countdown-dday {
  color: var(--t18-eng);
  font-weight: 600;
}

/* ============================================================
 * 2-4. RSVP (con_rsvp 363:925) - 핑크(#F2CBC2) 배경 + #404040 텍스트
 *  - [달력 아이콘] → 참석 의사 전달 → 안내 3줄 → 흰 버튼
 * ============================================================ */
#themeNameBox.theme18 .preview-attend-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--t18-pink) !important;
  background-image: none;
  padding: 50px 32px;
  min-height: 0;
}
#themeNameBox.theme18 .preview-attend-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 15px;
  padding-bottom: 0 !important;
  text-align: center;
}
/* 상단 달력 하트 아이콘 (피그마 363:926, 50x39) */
#themeNameBox.theme18 .preview-attend-title::before {
  content: "";
  order: -2;
  display: block;
  width: 50px;
  aspect-ratio: 873 / 686;
  margin: 0 auto;
  background: url("/assets/tool/img/invitation/theme_2026/theme18_icon_rsvp.png") center / contain no-repeat;
  border-radius: 0;
}
/* "참석 의사 전달" kicker: 14px 400 #404040, 본문 위 (테마15/16/17과 동일 order 기법) */
#themeNameBox.theme18 .preview-attend-title .attend-kicker,
#themeNameBox.theme18 .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: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
/* 안내 문구 3줄 (h2.attend-body): 14px 600 #404040, span 줄 단위
 * h2 가 .font-tit 라 공통 타이틀 규칙(특이도 높음)이 20px 를 되살림 → !important 로 고정 */
#themeNameBox.theme18 .preview-attend-title h2,
#themeNameBox.theme18 .preview-attend-title h2.font-tit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .preview-attend-title .attend-body span {
  color: var(--t18-ink);
}
#themeNameBox.theme18 .preview-attend-content {
  color: var(--t18-ink);
}
#themeNameBox.theme18 .preview-attend-link {
  margin-top: 0;
  text-align: center;
}
/* 전달하기 버튼: 흰 배경(보더 없음) + #404040 14px (피그마 363:932, 180x45) */
#themeNameBox.theme18 .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: #ffffff !important;
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}
#themeNameBox.theme18 .preview-attend-wrap .btn-attend > span:not(.check-icon) {
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme18 .preview-attend-wrap .btn-attend .check-icon {
  display: none;
}

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

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

/* ============================================================
 * 2-7. 마음 전하실 곳 (con_account 363:407) - 핑크 토글 + 잉크 텍스트
 * ============================================================ */
#themeNameBox.theme18 .preview-bank-wrap {
  padding-left: 0;
  padding-right: 0;
}
/* 좌우 여백은 base inner-wrap(padding 0 30px)에서만 준다 → 이중 패딩 방지 (테마17과 동일) */
#themeNameBox.theme18 .preview-bank-title {
  padding-left: 0;
  padding-right: 0;
}
#themeNameBox.theme18 .preview-bank-title h2 {
  font-size: 20px;
}
/* 안내 문구 15px 600 (피그마 363:415) */
#themeNameBox.theme18 .preview-bank-title h2::after {
  content: "신랑\00026신부에게 축복의 의미로\A축의금을 전달해보세요.";
  white-space: pre-line;
  display: block;
  margin-top: 10px;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-box {
  margin: 24px 0 0;
  border: 0;
  background: transparent;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-inner {
  overflow: visible;
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 신랑측/신부측 토글: 풀폭 45px 핑크(#F2CBC2) + 잉크 16px (피그마 363:417) */
#themeNameBox.theme18 .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(--t18-pink) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .btn-toggle span {
  color: var(--t18-ink) !important;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .btn-toggle .bank-icon {
  display: none;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .btn-toggle::after {
  content: none;
}
/* 계좌 행: 투명 + 하단 0.5px 잉크 헤어라인 (피그마 363:419) */
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .bank {
  margin-bottom: 0;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#themeNameBox.theme18 .preview-bank-wrap .bank-info,
#themeNameBox.theme18 .preview-bank-wrap .bank-btn-box {
  padding: 0;
}
#themeNameBox.theme18 .preview-bank-wrap .bank-info p {
  margin: 0;
  line-height: 1.6;
}
#themeNameBox.theme18 .preview-bank-wrap .bank-info p:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 이름 14px 600 / 관계 12px 400 - 잉크 (피그마 363:423) */
#themeNameBox.theme18 .preview-bank-wrap .bank-info .name {
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme18 .preview-bank-wrap .bank-info .name::before {
  font-weight: 400;
  font-size: 12px;
  margin-right: 5px;
  color: var(--t18-ink);
}
#themeNameBox.theme18 .bank_groom00 .bank-info .name::before { content: "신랑"; }
#themeNameBox.theme18 .bank_bride00 .bank-info .name::before { content: "신부"; }
#themeNameBox.theme18 .bank_groom01 .bank-info .name::before,
#themeNameBox.theme18 .bank_bride01 .bank-info .name::before { content: "부"; }
#themeNameBox.theme18 .bank_groom02 .bank-info .name::before,
#themeNameBox.theme18 .bank_bride02 .bank-info .name::before { content: "모"; }
#themeNameBox.theme18 .preview-bank-wrap .bank-info .bank_type,
#themeNameBox.theme18 .preview-bank-wrap .bank-info .bank_no {
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme18 .preview-bank-wrap .bank-btn-box {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 15px;
}
/* 계좌복사/카카오페이: 흰 배경 + 0.5px 잉크 아웃라인 + 잉크 12px (피그마 363:427/435) */
#themeNameBox.theme18 .preview-bank-wrap .copy-bank,
#themeNameBox.theme18 .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(--t18-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.theme18 .preview-bank-wrap .kakaopay span {
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* 계좌복사 아이콘: svg mask 로 잉크 틴트 */
#themeNameBox.theme18 .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(--t18-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. 방명록 (con_방명록 363:396/368) - 로즈 이름 + 로즈 헤어라인
 * ============================================================ */
/* 갤러리 미사용 시 오시는 길 상단 여백 보전 (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.theme18 .preview-etc-wrap:not(:has(.preview-gallery-wrap)) .preview-weddinginfo-wrap,
#themeNameBox.theme18 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display: none"]) .preview-weddinginfo-wrap,
#themeNameBox.theme18 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display:none"]) .preview-weddinginfo-wrap {
  padding-top: 100px;
}

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

#themeNameBox.theme18 .preview-guestbook-wrap {
  position: relative;
  overflow: hidden;
  padding: 100px 32px 40px;
  background-color: var(--t18-bg) !important;
  background-image: none;
}
/* base 아치형 inner-wrap 제거 (테마15/16/17과 동일 처리) */
#themeNameBox.theme18 .preview-guestbook-wrap .preview-inner-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
#themeNameBox.theme18 .preview-guestbook-title {
  margin: 0 0 15px;
}
#themeNameBox.theme18 .preview-guestbook-title h2,
#themeNameBox.theme18 .preview-guestbook-title .font-tit {
  color: var(--t18-ink);
  font-size: 20px;
}
/* 부제 (피그마 363:404) */
#themeNameBox.theme18 .preview-guestbook-wrap .guestbook-subtitle {
  text-align: center;
  margin: 15px 0 20px;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
#themeNameBox.theme18 .guestbook-no-data {
  padding: 42px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
/* 방명록 항목 (피그마 363:378): 평면 + 하단 로즈 헤어라인 */
#themeNameBox.theme18 .guestbook-list {
  margin-bottom: 0;
  padding: 0;
}
#themeNameBox.theme18 .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.theme18 .guest-btn-box {
  order: -2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
#themeNameBox.theme18 .guest-btn-box .btn,
#themeNameBox.theme18 .guest-btn-box .btn-edit,
#themeNameBox.theme18 .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.theme18 .guest-btn-box .btn-edit {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_edit.svg");
}
#themeNameBox.theme18 .guest-btn-box .btn-delete {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme12_btn_delete.svg");
}
/* 이름(로즈 16px 400) + 날짜(회색 14px) 한 줄 (피그마 363:383/384) */
#themeNameBox.theme18 .guest-name-date {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  order: -1;
  margin: 0 0 10px;
}
#themeNameBox.theme18 .guest-name-date p {
  margin: 0;
}
#themeNameBox.theme18 .guest-name-date .name {
  color: var(--t18-rose) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
#themeNameBox.theme18 .guest-name-date .date {
  color: #999999 !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
/* 본문 #404040 16px 400 (피그마 363:385) */
#themeNameBox.theme18 .guest-contents .content {
  margin: 0;
  color: var(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
/* 작성하기/전체보기 버튼: 흰 배경 + 0.5px 잉크 아웃라인 + 잉크 15px (피그마 363:405) */
#themeNameBox.theme18 .book_btn,
#themeNameBox.theme18 .book_btn2 {
  margin: 20px 0 0;
  text-align: center;
}
#themeNameBox.theme18 .book_btn2 a,
#themeNameBox.theme18 .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(--t18-ink) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
 * 0.5px 보더 → 물리 헤어라인 (테마15/16/17과 동일 기법)
 * ============================================================ */
/* A. 아웃라인 버튼 (4면 보더) - 전부 잉크(#404040) 계열 */
#themeNameBox.theme18 .btn-contactme,
#themeNameBox.theme18 .book_btn2 a,
#themeNameBox.theme18 .book_btn_top a,
#themeNameBox.theme18 .preview-bank-wrap .copy-bank,
#themeNameBox.theme18 .preview-bank-wrap .kakaopay,
body:has(#themeNameBox.theme18) #attendModalContent .btn-group-toggle > label.btn,
body:has(#themeNameBox.theme18) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme18) #attendModalContent .btn-add-companion {
  position: relative;
}
#themeNameBox.theme18 .btn-contactme::after,
#themeNameBox.theme18 .book_btn2 a::after,
#themeNameBox.theme18 .book_btn_top a::after,
#themeNameBox.theme18 .preview-bank-wrap .copy-bank::after,
#themeNameBox.theme18 .preview-bank-wrap .kakaopay::after,
body:has(#themeNameBox.theme18) #attendModalContent .btn-group-toggle > label.btn::after,
body:has(#themeNameBox.theme18) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme18) #attendModalContent .btn-add-companion::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  box-sizing: border-box;
  border: 1px solid var(--t18-ink);
  border-radius: 8px;
  transform: scale(0.5);
  transform-origin: 0 0;
  pointer-events: none;
}
/* 계좌복사/카카오페이: 시각 radius 5 */
#themeNameBox.theme18 .preview-bank-wrap .copy-bank::after,
#themeNameBox.theme18 .preview-bank-wrap .kakaopay::after {
  border-radius: 10px;
}
/* 계좌복사 ::before 는 아이콘이므로 ::after 만 보더로 사용 (충돌 없음) */
/* 모달 토글/동행 버튼 보더: rgba(17,17,17,.5) */
body:has(#themeNameBox.theme18) #attendModalContent .btn-group-toggle > label.btn::after,
body:has(#themeNameBox.theme18) #attendModalContent .input-group-append .btn::after,
body:has(#themeNameBox.theme18) #attendModalContent .btn-add-companion::after {
  border-color: rgba(17, 17, 17, 0.5);
}
/* B. 하단 보더 행 */
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .bank,
#themeNameBox.theme18 .guestbook-list-txt,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:last-child {
  position: relative;
  border-bottom: 0;
}
#themeNameBox.theme18 .preview-bank-wrap .accordion-box .bank::after,
#themeNameBox.theme18 .guestbook-list-txt::after,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t18-ink);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
/* 방명록 행: 로즈 (피그마 #D9ACA3) */
#themeNameBox.theme18 .guestbook-list-txt::after {
  background: var(--t18-rose);
}
/* 연락하기 모달 행: rgba(17,17,17,.3) */
body:has(#themeNameBox.theme18) #contactModalContent .contactItem::after {
  background: rgba(17, 17, 17, 0.3);
}

/* ============================================================
 * 모달 공통 (테마18) - JS가 body 로 appendTo → body:has() 스코프
 *   (구조는 테마15/16/17 검증본, 색상은 핑크/로즈 팔레트)
 * ============================================================ */
body:has(#themeNameBox.theme18) #contactModalContent .modal-dialog,
body:has(#themeNameBox.theme18) #attendModalContent .modal-dialog,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-dialog,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-dialog,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-dialog,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-dialog {
  width: calc(100% - 48px);
  max-width: 340px;
  margin-right: auto;
  margin-left: auto;
}
body:has(#themeNameBox.theme18) #contactModalContent .modal-content,
body:has(#themeNameBox.theme18) #attendModalContent .modal-content,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-content,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-content,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-content,
body:has(#themeNameBox.theme18) #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.theme18) #contactModalContent .modal-header,
body:has(#themeNameBox.theme18) #attendModalContent .modal-header,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-header,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-header,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-header,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-header {
  position: relative;
  align-items: center;
  min-height: 46px;
  padding: 16px 44px 12px 20px;
  border-bottom: 1px solid #ead9d3;
  background: #ffffff;
}
body:has(#themeNameBox.theme18) #contactModalContent .modal-title,
body:has(#themeNameBox.theme18) #attendModalContent .modal-title,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-title,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-title,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-title {
  width: 100%;
  margin: 0;
  color: #111111 !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.theme18) #contactModalContent .modal-header .close,
body:has(#themeNameBox.theme18) #attendModalContent .modal-header .close,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-header .close,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-header .close,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-header .close,
body:has(#themeNameBox.theme18) #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.theme18) #contactModalContent .modal-body,
body:has(#themeNameBox.theme18) #attendModalContent .modal-body,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-body,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-body,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body {
  padding: 18px 20px 20px;
  color: #111111;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme18) #guestPasswordModal .modal-body input.form-control,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-body input.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t18-pink); /* 피그마 880-2662: 핑크 보더 */
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme18) .modal-body .btn-dark,
body:has(#themeNameBox.theme18) .modal-body .btn.btn-primary {
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t18-pink) !important; /* 피그마 880-2662: 핑크 + #111 (참석 모달 전달 버튼은 개별 규칙으로 로즈 유지) */
  color: #111111 !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-weight: 600;
  box-shadow: none !important;
}

/* ---- 모달 1. 연락하기 (#contactModalContent) ---- */
body:has(#themeNameBox.theme18) #contactModalContent .modal-header {
  padding: 16px 44px 12px;
  justify-content: center;
  border-bottom: 0;
}
body:has(#themeNameBox.theme18) #contactModalContent .modal-title {
  text-align: center;
  color: #111111 !important;
  font-size: 18px;
  font-weight: 600;
}
body:has(#themeNameBox.theme18) #contactModalContent .modal-body {
  padding: 0 0 40px !important;
}
body:has(#themeNameBox.theme18) #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.theme18) #contactModalContent .contactItem > div {
  min-height: 0;
  line-height: 1.5;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom),
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride) {
  grid-template-areas:
    "header header header"
    "tit    name   icon";
  padding: 0 25px 10px 30px;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride) {
  margin-top: 30px;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom)::before,
body:has(#themeNameBox.theme18) #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;
  letter-spacing: -0.5px;
  text-align: left;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom)::before { content: "신랑측"; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride)::before { content: "신부측"; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom) .call_tit,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride) .call_tit { grid-area: tit; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom) .call_name,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride) .call_name { grid-area: name; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.groom) .call_icon,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem:has(.call_tit.bride) .call_icon { grid-area: icon; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_tit,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_name {
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #111111 !important;
  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.theme18) #contactModalContent .contactItem .call_tit { font-weight: 400; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_name { font-weight: 600; }
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_name span {
  display: inline-block;
  white-space: nowrap;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_tit .xeicon {
  display: none;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem.groom-dad-info .call_tit,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem.groom-mom-info .call_tit,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem.bride-dad-info .call_tit,
body:has(#themeNameBox.theme18) #contactModalContent .contactItem.bride-mom-info .call_tit {
  font-size: 0;
  line-height: 0;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem.groom-dad-info .call_tit::before,
body:has(#themeNameBox.theme18) #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.theme18) #contactModalContent .contactItem.groom-mom-info .call_tit::before,
body:has(#themeNameBox.theme18) #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.theme18) #contactModalContent .contactItem .call_icon {
  width: auto;
  padding: 0;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: end;
}
body:has(#themeNameBox.theme18) #contactModalContent .contactItem .call_icon > a {
  margin: 0;
  width: 28px;
  height: 28px;
  border: 0 !important;
  border-radius: 50%;
  background-color: var(--t18-rose) !important;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  text-decoration: none;
  font-size: 0 !important;
  line-height: 0;
}
body:has(#themeNameBox.theme18) #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.theme18) #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.theme18) #contactModalContent .contactItem .call_icon > a .xeicon {
  display: none !important;
}

/* ---- 모달 2. 참석 의사 전달 (#attendModalContent) ---- */
body:has(#themeNameBox.theme18) #attendModalContent .modal-header {
  padding: 32px 30px 14px !important;
  text-align: center;
  display: block !important;
  position: relative;
  border-bottom: 0;
}
body:has(#themeNameBox.theme18) #attendModalContent .modal-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: #111111 !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.theme18) #attendModalContent .modal-title::after {
  content: "원활한 예식 진행을 위해 참석 정보를\A미리 알려주시면 감사하겠습니다";
  display: block;
  margin-top: 12px;
  white-space: pre-line;
  color: rgba(17, 17, 17, 0.5);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
body:has(#themeNameBox.theme18) #attendModalContent .modal-header .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  transform: none;
}
body:has(#themeNameBox.theme18) #attendModalContent .modal-body {
  padding: 12px 0 30px !important;
  background: #ffffff;
}
body:has(#themeNameBox.theme18) #attendModalContent .preview-attend-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #111111;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme18) #attendModalContent .col-form-label {
  display: none !important;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group.row {
  display: block;
  margin: 0;
  padding: 10px 13px;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group.row > .col-sm-9,
body:has(#themeNameBox.theme18) #attendModalContent .form-group.row > .col-12 {
  flex: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
}
body:has(#themeNameBox.theme18) #attendModalContent .btn-group-toggle {
  display: flex !important;
  gap: 8px;
  width: 100% !important;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme18) #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: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
/* 토글 active 색상은 "행 기준" (피그마 378-1322 재대조로 확정)
 *  1행(신랑측/신부측 선택) active = 연핑크 #F2CBC2 + #111 텍스트
 *  2행(참석 가능/불가)     active = 로즈 #D9ACA3 + #111 텍스트
 *  - 기존 위치 기준(첫번째=핑크/마지막=로즈) 매핑은 시안 예시 상태(신부측+참석가능 선택)와
 *    반대로 렌더되어 행 기준으로 교체 (성함 라벨에 쓰는 .form-group:nth-of-type(3) 과 동일 기법) */
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(1) .btn-group-toggle > label.btn.active {
  background: var(--t18-pink) !important;
  color: #111111 !important;
  border-color: var(--t18-pink) !important;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(1) .btn-group-toggle > label.btn.active::after {
  border-color: var(--t18-pink);
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(2) .btn-group-toggle > label.btn.active {
  background: var(--t18-rose) !important;
  color: #111111 !important;
  border-color: var(--t18-rose) !important;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(2) .btn-group-toggle > label.btn.active::after {
  border-color: var(--t18-rose);
}
body:has(#themeNameBox.theme18) #attendModalContent .btn-group-toggle > label.btn input[type="radio"] {
  display: none;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(3) {
  padding: 30px 0 0;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(3) > .col-sm-9::before,
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(3) > .col-12::before {
  content: "성함";
  display: block;
  padding: 0 13px 10px;
  color: #111111;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}
body:has(#themeNameBox.theme18) #attendModalContent .form-group:nth-of-type(3) .input-group,
body:has(#themeNameBox.theme18) #attendModalContent .input-group.split {
  display: flex !important;
  gap: 8px;
  padding: 0 13px;
  margin: 0;
  flex-wrap: nowrap;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme18) #attendModalContent .input-group.split {
  margin-bottom: 10px !important;
}
body:has(#themeNameBox.theme18) #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.theme18) #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.theme18) #attendModalContent .input-group-append {
  margin: 0;
  flex: 0 0 137px;
}
/* 동행추가/삭제: 로즈 #D9ACA3 + 흰 13px */
body:has(#themeNameBox.theme18) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme18) #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(--t18-rose) !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.theme18) #attendModalContent .input-group-append .btn i.xeicon {
  display: none;
}
body:has(#themeNameBox.theme18) #attendModalContent .btn-add-companion::before {
  content: "+";
}
body:has(#themeNameBox.theme18) #attendModalContent .btn-del-companion::before {
  content: "-";
}
body:has(#themeNameBox.theme18) #attendModalContent .btn-dark.btn-block {
  margin: 20px 13px 0;
  width: calc(100% - 26px);
  height: 45px;
  background: var(--t18-rose) !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.theme18) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-title,
body:has(#themeNameBox.theme18) #guestbookModalContent .modal-title {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
}
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body {
  padding: 25px 30px 30px;
}
body:has(#themeNameBox.theme18) #gueseditModalContent.guestbook-write-modal .form-group,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .form-group {
  margin-bottom: 25px;
}
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body label,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body label {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: #111111 !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
/* 입력창: 핑크 보더 (피그마 880-2662) */
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t18-pink); /* 피그마 880-2662: 핑크 보더 */
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 80px;
}
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body textarea.form-control::placeholder,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme18) #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;
}
/* 등록하기: 솔리드 핑크 #F2CBC2 + #111 (피그마 880-2662) */
body:has(#themeNameBox.theme18) #gueseditModalContent .modal-body .btn-dark.btn-block,
body:has(#themeNameBox.theme18) #guestUpdateModalContent .modal-body .btn-dark.btn-block {
  min-height: 45px;
  height: 45px;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t18-pink) !important;
  color: #111111 !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
 * (예식종료) 감사글 / 인사글 - 테마18 (초대글과 동일 팔레트)
 * ============================================================ */
#themeNameBox.theme18 .preview-testimonial-wrap {
  padding: 100px 32px 30px;
}
#themeNameBox.theme18 .preview-testimonial-wrap .preview-message-wrap.preview-testimonial-message,
#themeNameBox.theme18 .preview-testimonial-wrap .preview-testimonial-message p,
#themeNameBox.theme18 .preview-insa-wrap .preview-message-wrap.preview-insa-message,
#themeNameBox.theme18 .preview-insa-wrap .preview-message-wrap.preview-insa-message p {
  color: var(--t18-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  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.theme18 .preview-invitation-cellphome .parent-wrapper,
#themeNameBox.theme18 .preview-invitation-cellphome .groom > p:not(.rel_box) > span:not(.cellphone-dot),
#themeNameBox.theme18 .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.theme18 .theme-name-stack .p_name_1,
#themeNameBox.theme18 .theme-name-stack .p_name_2 {
  max-width: 100%;
}
