/* ============================================================
 * 테마 17 (테스트) - 피그마 시안 기반 (mo / node 275:4233 ★Main)
 * - invitation_test.css 뒤에 로드되어 테마17 관련 규칙을 오버라이드한다
 * - 운영 전환 시 이 파일을 invitation_17.css 로 복사하여 사용
 *
 * 디자인 토큰 (그린/보태니컬)
 *  배경      : #F8F0DA (크림)
 *  메인그린  : #3E8440
 *  연그린    : #98C346
 *  코랄포인트: #FE9484 (소량 포인트로만 사용)
 *  브라운(커버 텍스트): #A77864
 *  본문 잉크 : #3A3A3A
 *  폰트      : Eulyoo1945 (400/600)
 * ============================================================ */

/* ============================================================
 * 테마 선택 목록 썸네일 (에디터 좌측 패널, #themeNameBox 스코프 밖)
 * - 세이지로맨스(테마17) 커버 비율은 360:702(0.513)로 다른 테마 썸네일
 *   비율(360:786, 0.458)보다 세로가 짧아 목록에서 낮게 보임
 * - 썸네일 박스만 표준 비율(360:786)로 맞추고 object-fit:contain으로
 *   커버를 축소 배치 → 위아래에 크림(#F8F0DA) 여백이 생겨 높이 정렬됨
 * - 마크업: invitation_mobile_in_test.blade.php 1040~1043행
 *   .theme-type[data-id="theme17"] > .theme-img > img.list-thumbnail
 * ============================================================ */
.theme-type[data-id="theme17"] .theme-img {
  aspect-ratio: 360 / 786;
  background: #f8f0da;
  overflow: hidden;
}
.theme-type[data-id="theme17"] .theme-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 모달은 JS가 body 로 appendTo 되어 #themeNameBox 밖에 위치
 * → body:has() 스코프에도 변수를 선언해야 모달 안 var() 가 동작한다. (테마16과 동일) */
#themeNameBox.theme17,
body:has(#themeNameBox.theme17) {
  --t17-bg: #f8f0da;
  --t17-green: #3e8440;
  --t17-green-light: #98c346;
  --t17-coral: #fe9484;
  --t17-brown: #a77864;
  --t17-ink: #3a3a3a;
  --t17-script: #58c95e;      /* RSVP 스크립트 연그린 (피그마 348:1088) */
  --t17-green-deep: #1a4541;  /* 방명록 행 헤어라인 (피그마 348:534) */
}

/* ===== 기본: 크림 배경 + 그린 계열 잉크 ===== */
#themeNameBox.theme17 {
  background: var(--t17-bg);
  color: var(--t17-ink);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}

/* ============================================================
 * 커버 (★Main, node 275:4233 / 캔버스 360x702 기준)
 * - photo 미사용 테마(Status::photo=false): 사진 크로퍼 없이
 *   정적 일러스트 3장(배경+플러리시+레터링) + 동적 텍스트로 구성
 * ============================================================ */
#themeNameBox.theme17 .theme-17-wrap {
  display: flex;
  justify-content: center;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 360 / 702;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--t17-bg);
}
#themeNameBox.theme17 .theme-17-wrap .theme-frame-cons-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 360 / 702;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  background: var(--t17-bg);
}

/* Save the Date 레터링 (피그마: x96 y79 w180 h46 / 코랄 스크립트체, 정적 이미지) */
#themeNameBox.theme17 .theme-17-wrap .theme-17-savethedate {
  position: absolute;
  left: 26.667%;
  top: 17.25%; /* 커버 내용 전체 하향: 상단 여백 확보 */
  width: 50%;
  height: auto;
  aspect-ratio: 180 / 46;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

/* 보태니컬 배경 + 신랑신부 라인아트 (피그마: x24.98 y143 w307.71 h300.79 / SVG viewBox 334x301) */
#themeNameBox.theme17 .theme-17-wrap .theme-17-illust-main {
  position: absolute;
  left: 6.939%;
  top: 26.37%; /* 하향 */
  width: 85.475%;
  height: auto;
  aspect-ratio: 334 / 301;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* 좌측 잎사귀 플러리시 (피그마 Vector node 275:4848, 18.18deg 회전 배치)
 * - SVG export는 회전 전 원본 도형(63x29)만 담고 있어 PNG(회전 반영된
 *   189x86 렌더)와 달리 CSS transform으로 직접 회전을 재현한다.
 * - left/top: 회전된 최종 바운딩박스(피그마 inset 38.75%/79.31%/53.77%/2.78%,
 *   x21.54 y272 w64.48 h52.53)의 중심점에 원본(63x29) 박스를 중앙 배치 후 회전 */
#themeNameBox.theme17 .theme-17-wrap .theme-17-flourish {
  position: absolute;
  left: 6.189%;
  top: 46.42%; /* 하향 */
  width: 17.5%;
  height: auto;
  aspect-ratio: 63 / 29;
  transform: rotate(18.18deg);
  transform-origin: center;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* 상단 리본 벡터 (피그마 bg_frame_1 348:1856: x5 y0 w349.5 h100.32, 연그린 #BAD880)
 * 마크업 수정 없이 cons-box ::before 로 배치 */
#themeNameBox.theme17 .theme-17-wrap .theme-frame-cons-box::before {
  content: "";
  position: absolute;
  left: 1.389%;
  top: 6%; /* 상단 여백 확보(하향) */
  width: 97.083%;
  height: auto;
  aspect-ratio: 350 / 101;
  background: url("/assets/tool/img/invitation/theme_2026/theme17_bg_frame_1.svg") center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* 자동차 바퀴 아래 바닥 벡터 (피그마 Group 104 348:1244: y413, 그린 #98C346)
 * - 자동차 일러스트(theme-17-illust-main)와 '동일한 박스'(너비 기준 aspect-ratio)에 얹는다.
 *   → 커버 컨테이너가 360:702가 아니어도(에디터/게스트 프리뷰는 세로 압축됨) 바퀴 접지선을 항상 추종.
 *   (이전엔 top:58.83% 높이-% 라서 압축 시 선만 위로 떠 자동차 중앙에 파묻혔음)
 * - 선 위치: 일러스트 박스(피그마 y143~443.79) 안에서 y413 = 89.76% 지점
 * - top 은 일러스트(theme-17-illust-main)와 동일하게 하향 유지 */
#themeNameBox.theme17 .theme-17-wrap .theme-frame-cons-box::after {
  content: "";
  position: absolute;
  left: 6.939%;
  top: 26.37%;
  width: 85.475%;
  aspect-ratio: 334 / 301;
  background: url("/assets/tool/img/invitation/theme_2026/theme17_way_vactor.svg") center 89.76% / 100% auto no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* 이름/날짜/예식장 텍스트 (피그마 Container: y457 h245, 브라운 #A77864)
 * 자동차 아래부터 커버 바닥까지 영역을 잡고 내용을 균등 분배 → 하단 빈 여백 제거 + 자동차와 간격 축소 */
#themeNameBox.theme17 .theme-17-wrap .theme-17-text-wrap {
  position: absolute;
  left: 0;
  top: 62%;
  bottom: 0.5%;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  z-index: 2;
}
#themeNameBox.theme17 .theme-name-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  color: var(--t17-brown);
}
#themeNameBox.theme17 .theme-name-stack .p_name_1,
#themeNameBox.theme17 .theme-name-stack .p_name_2 {
  display: block;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(18px, 6.67cqw, 26px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
#themeNameBox.theme17 .theme-name-stack .theme-name-join {
  display: block;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(15px, 5.56cqw, 22px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
}
#themeNameBox.theme17 .theme-17-date-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.1%;
  width: 100%;
}
#themeNameBox.theme17 .theme-17-wrap .main-date-txt {
  margin: 0;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(14px, 5cqw, 19px);
  font-weight: 600;
}
#themeNameBox.theme17 .theme-17-wrap .main-date-txt .weddding_date {
  margin-right: 0;
}
#themeNameBox.theme17 .theme-17-wrap .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: clamp(12px, 3.89cqw, 15px);
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ============================================================
 * RSVP 스크립트 서체 (피그마 348:1088 "R.S.V.P" Italianno 60px)
 * ============================================================ */
@font-face {
  font-family: "Italianno";
  src: url("/assets/fonts/Italianno/Italianno-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
 * 본문 공통 (시안6 node 348:522 기준 재퍼블리싱)
 *   전 섹션 크림(#F8F0DA) 배경 + 브라운(#A77864) 본문
 *   영문 디바이더 = 살몬(#FE9484) 60px 라인 + Eulyoo 16px
 *   RSVP 만 그린(#3E8440) 풀블리드
 * ============================================================ */
#themeNameBox.theme17 .preview-wrap {
  background-color: var(--t17-bg) !important;
  background-image: none;
}

/* ===== 섹션 타이틀 공통: 살몬 60px 라인 + 영문 (피그마 invite_title_01) ===== */
#themeNameBox.theme17 .preview-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  padding-bottom: 0 !important;
  text-align: center;
}
#themeNameBox.theme17 .preview-title::before {
  content: none;
  background-image: none;
}
/* 영문 디바이더 (테마16과 동일 기법: currentColor 60px 라인 배경) */
#themeNameBox.theme17 .preview-gallery-title::before,
#themeNameBox.theme17 .preview-weddinginfo-title::before,
#themeNameBox.theme17 .preview-bank-title::before,
#themeNameBox.theme17 .preview-guestbook-title::before,
#themeNameBox.theme17 .preview-invi-wrap::before {
  content: "";
  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(--t17-coral);
  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;
}
#themeNameBox.theme17 .preview-gallery-title::before { content: "GALLERY"; }
#themeNameBox.theme17 .preview-weddinginfo-title::before { content: "LOCATION"; }
#themeNameBox.theme17 .preview-bank-title::before { content: "ACCOUNT"; }
#themeNameBox.theme17 .preview-guestbook-title::before { content: "GUESTBOOK"; }
/* 한글 타이틀 공통 (20px 600 브라운) */
#themeNameBox.theme17 .preview-title .font-tit,
#themeNameBox.theme17 .preview-title h2 {
  margin: 0;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* ============================================================
 * 2-1. 초대글 (con_invite_call 348:1207)
 *  - 순서: [INVITATION 디바이더] → 헤드라인 → 인사 본문 → (사진) → 혼주 → 연락하기
 * ============================================================ */
#themeNameBox.theme17 .preview-invi-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 32px;
}
#themeNameBox.theme17 .preview-invi-wrap::before {
  content: "INVITATION";
  margin: 0 auto 25px;
}
#themeNameBox.theme17 .preview-invi-wrap > .preview-invitation-title { order: 1; }
#themeNameBox.theme17 .preview-invi-wrap > .preview-message-wrap { order: 2; margin-top: 0; }
/* 헤드라인(초대합니다) 20px 600 브라운 */
#themeNameBox.theme17 .preview-invitation-title h2 {
  font-size: 20px;
  line-height: 1.5;
}
/* 인사 본문 15px 400 브라운 중앙 (피그마 348:1218) */
#themeNameBox.theme17 .preview-invi-wrap .preview-message-wrap,
#themeNameBox.theme17 .preview-invi-wrap .preview-message-wrap p {
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center !important;
}
#themeNameBox.theme17 .preview-invi-wrap .preview-message-wrap {
  background: transparent;
}
#themeNameBox.theme17 .preview-invitation-message {
  background-color: transparent;
  color: var(--t17-brown);
}
/* 초대글 사진(있을 경우): 본문 아래 풀폭 */
#themeNameBox.theme17 .preview-invi-wrap > .preview-message-photo-wrap {
  order: 3;
  width: calc(100% + 64px);
  max-width: none;
  margin: 80px -32px 0;
}
#themeNameBox.theme17 .preview-message-photo {
  width: 100% !important;
  aspect-ratio: 360 / 214;
  height: auto !important;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ece2c8;
}
#themeNameBox.theme17 .preview-message-photo .cropper-preview,
#themeNameBox.theme17 .preview-message-photo > img,
#themeNameBox.theme17 .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 348:1219) - 전부 브라운
 * ============================================================ */
#themeNameBox.theme17 .preview-invitation-cellphome {
  margin: 0;
  padding: 30px 16px 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#themeNameBox.theme17 .preview-invitation-cellphome,
#themeNameBox.theme17 .preview-invitation-cellphome p,
#themeNameBox.theme17 .preview-invitation-cellphome span {
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  letter-spacing: -0.5px;
}
#themeNameBox.theme17 .preview-invitation-cellphome .groom,
#themeNameBox.theme17 .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.theme17 .preview-invitation-cellphome .groom > p,
#themeNameBox.theme17 .preview-invitation-cellphome .bride > p {
  margin: 0;
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}
#themeNameBox.theme17 .preview-invitation-cellphome .groom > p:first-child,
#themeNameBox.theme17 .preview-invitation-cellphome .bride > p:first-child {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}
#themeNameBox.theme17 .preview-invitation-cellphome .groom > p:last-child,
#themeNameBox.theme17 .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 (피그마 348:1220) */
#themeNameBox.theme17 .preview-invitation-cellphome [data-name$="phone_name"] {
  color: var(--t17-brown);
  font-size: 14px;
  font-weight: 400;
}
#themeNameBox.theme17 .preview-invitation-cellphome .rel_text {
  display: inline-block !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  color: var(--t17-brown) !important;
  font-size: 14px !important;
  font-weight: 400;
  text-align: right;
}
#themeNameBox.theme17 .preview-invitation-cellphome .font-tit,
#themeNameBox.theme17 .preview-invitation-cellphome [data-name="groom_name"],
#themeNameBox.theme17 .preview-invitation-cellphome [data-name="bride_name"] {
  display: inline-block !important;
  margin: 0 !important;
  color: var(--t17-brown) !important;
  font-size: 18px !important;
  font-weight: 600;
  text-align: left;
}
#themeNameBox.theme17 .preview-invitation-cellphome .cellphone-dot {
  display: inline-block !important;
}
#themeNameBox.theme17 .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(--t17-brown) !important;
  border-radius: 50% !important;
  vertical-align: middle !important;
}
#themeNameBox.theme17 .preview-invitation-cellphome .cellphone-dot:has(+ [data-name="goin_type_mom"] + [data-name*="mom_phone_name"]:empty) {
  display: none !important;
}
/* 故(고인) 마커: go.svg 를 mask 로 브라운 틴트 */
#themeNameBox.theme17 .preview-invitation-cellphome [data-name*="goin_type"] {
  position: relative;
  display: inline-block !important;
  width: 20px;
  height: 1em;
  vertical-align: middle;
}
#themeNameBox.theme17 .preview-invitation-cellphome [data-name*="goin_type"]:empty {
  display: none !important;
}
#themeNameBox.theme17 .preview-invitation-cellphome [data-name*="goin_type"] img {
  display: none !important;
}
#themeNameBox.theme17 .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(--t17-brown);
  -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 (피그마 348:1231) */
#themeNameBox.theme17 .preview-invitation-link {
  margin: 30px 0 0;
  text-align: center;
}
#themeNameBox.theme17 .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(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1;
  text-decoration: none;
}
#themeNameBox.theme17 .btn-contactme span {
  color: var(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
}
#themeNameBox.theme17 .btn-contactme .call-icon {
  display: none;
}

/* ============================================================
 * 2-3. 캘린더 (con_calender 348:1095)
 *  - 섹션 상단 0.5px 브라운 구분선 / 날짜 2줄 브라운 → 캘린더 → 카운트다운 → 코랄 메시지
 * ============================================================ */
#themeNameBox.theme17 .preview-calendar-wrap {
  position: relative;
  border-top: 0;
  padding: 72px 0
}
#themeNameBox.theme17 .preview-calendar-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--t17-brown);
  transform: scaleY(0.5);
  transform-origin: top;
  pointer-events: none;
}
#themeNameBox.theme17 .calendar-subtitle {
  display: none;
}
#themeNameBox.theme17 .preview-calendar-title::before {
  content: none;
  background: none;
}
#themeNameBox.theme17 .preview-calendar-title h2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* 날짜/시간 2줄: 18px 600 브라운 (피그마 348:1204) */
#themeNameBox.theme17 .preview-calendar-title .cal-date,
#themeNameBox.theme17 .preview-calendar-title .cal-daytime {
  display: block;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme17 .calendar-box {
  margin: 20px auto 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#themeNameBox.theme17 .calendar-month {
  display: none;
}
#themeNameBox.theme17 .calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#themeNameBox.theme17 .calendar-table th,
#themeNameBox.theme17 .calendar-table td {
  height: 40px;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -1px;
  text-align: center;
}
/* 요일 헤더: 기본 #111 / 일·토 #BF4340 (피그마 348:1098) */
#themeNameBox.theme17 .calendar-table th {
  font-size: 14px;
  color: #111111;
  border-bottom: 0;
}
#themeNameBox.theme17 .calendar-table th.sun,
#themeNameBox.theme17 .calendar-table th.sat {
  color: #bf4340;
}
/* 날짜: 당월 #4D4C4C / 일·토 #BF4340 / 타월 #B3B3B3 */
#themeNameBox.theme17 .calendar-table td {
  font-size: 12px;
  color: #4d4c4c;
}
#themeNameBox.theme17 .calendar-table td.sun,
#themeNameBox.theme17 .calendar-table td.sat {
  color: #bf4340;
}
#themeNameBox.theme17 .calendar-table td.other-month {
  color: #b3b3b3;
}
/* 예식일: 코랄 원 + 흰 글자 (피그마 Ellipse57 #FE9484) */
#themeNameBox.theme17 .wedding-day-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--t17-coral);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
/* D-day 카운트다운 4박스 */
#themeNameBox.theme17 .countdown-box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 0.2fr);
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
}
#themeNameBox.theme17 .countdown-item {
  padding: 10px 4px 12px;
  border: 1px solid #e5d8bd;
  border-radius: 4px;
  background: transparent;
  text-align: center;
}
#themeNameBox.theme17 .countdown-label,
#themeNameBox.theme17 .countdown-value,
#themeNameBox.theme17 .countdown-message {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme17 .countdown-label {
  display: block;
  color: #b3b3b3;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1;
}
#themeNameBox.theme17 .countdown-value {
  display: block;
  margin-top: 7px;
  color: #4d4c4c;
  font-size: 20px;
  line-height: 1;
}
/* D-day 메시지: 코랄 14px 600 (피그마 348:1201) */
#themeNameBox.theme17 .countdown-message {
  position: relative;
  margin: 40px 0 0;
  color: var(--t17-coral);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.5px;
  text-align: center;
}
#themeNameBox.theme17 .countdown-message .countdown-heart,
#themeNameBox.theme17 .countdown-message .countdown-dday {
  color: var(--t17-coral);
  font-weight: 600;
}

/* ============================================================
 * 2-4. RSVP (con_rsvp 348:1083) - 그린 배경 + 크림 텍스트
 *  - [플러리시 벡터] → R.S.V.P(Italianno 연그린) → 참석 의사 전달 → 안내 3줄 → 버튼
 * ============================================================ */
#themeNameBox.theme17 .preview-attend-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--t17-green) !important;
  background-image: none;
  padding: 50px 32px;
  min-height: 0;
}
#themeNameBox.theme17 .preview-attend-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 15px;
  padding-bottom: 0 !important;
  text-align: center;
}
/* 상단 플러리시 장식 (피그마 348:1085, 210x15) */
#themeNameBox.theme17 .preview-attend-title::before {
  content: "";
  order: -3;
  display: block;
  width: 210px;
  max-width: 80%;
  aspect-ratio: 210 / 15;
  margin: 0 auto 10px;
  background: url("/assets/tool/img/invitation/theme_2026/theme17_rsvp_flourish.svg") center / contain no-repeat;
  border-radius: 0;
}
/* R.S.V.P 스크립트 (Italianno 60px 연그린, 피그마 348:1088) */
#themeNameBox.theme17 .preview-attend-title::after {
  content: "R.S.V.P";
  order: -2;
  display: block;
  color: var(--t17-script);
  font-family: "Italianno", cursive;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
}
/* "참석 의사 전달" kicker: 크림 14px 400, 본문 위 (테마15/16과 동일 order 기법) */
#themeNameBox.theme17 .preview-attend-title .attend-kicker,
#themeNameBox.theme17 .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(--t17-bg) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
/* 안내 문구 3줄 (h2.attend-body): 크림 15px 600, span 줄 단위
 * h2 가 .font-tit 라 공통 타이틀 규칙(특이도 높음)이 20px 를 되살림 → !important 로 고정 */
#themeNameBox.theme17 .preview-attend-title h2,
#themeNameBox.theme17 .preview-attend-title h2.font-tit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--t17-bg) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  letter-spacing: -0.5px;
}
#themeNameBox.theme17 .preview-attend-title .attend-body span {
  color: var(--t17-bg);
}
#themeNameBox.theme17 .preview-attend-content {
  color: var(--t17-bg);
}
#themeNameBox.theme17 .preview-attend-link {
  margin-top: 0;
  text-align: center;
}
/* 전달하기 버튼: 라이트 배경 + 그린 텍스트 (피그마 348:1093, 180x45 #EEE8EA/#3B843F) */
#themeNameBox.theme17 .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: #eee8ea !important;
  color: #3b843f !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}
#themeNameBox.theme17 .preview-attend-wrap .btn-attend > span:not(.check-icon) {
  color: #3b843f;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme17 .preview-attend-wrap .btn-attend .check-icon {
  display: none;
}

/* ============================================================
 * 2-5. 갤러리 (con_gallery 348:1063)
 *  - 공용 h2 텍스트는 숨기고 부제만 노출 (GALLERY 는 ::before 디바이더)
 * ============================================================ */
#themeNameBox.theme17 .preview-gallery-title {
  gap: 20px;
}
#themeNameBox.theme17 .preview-gallery-title h2,
#themeNameBox.theme17 .preview-gallery-title h2.font-tit,
#themeNameBox.theme17 .preview-gallery-title .font-tit {
  font-size: 0 !important;
  line-height: 0 !important;
}
#themeNameBox.theme17 .preview-gallery-title h2::after {
  content: "우리의 가장 빛나는 순간들을 담았어요.";
  display: block;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme17 .preview-gallery-wrap {
  padding-left: 5px;
  padding-right: 5px;
}
#themeNameBox.theme17 .preview-gallery-img {
  margin-top: 24px;
}
#themeNameBox.theme17 .preview-gallery-ul {
  gap: 10px;
}
#themeNameBox.theme17 .preview-gallery-li,
#themeNameBox.theme17 .preview-gallery-item {
  border-radius: 0;
  overflow: hidden;
}

/* ============================================================
 * 2-6. 오시는 길 (con_location 348:641) - 브라운 텍스트 + 그린 버튼/아이콘
 * ============================================================ */
#themeNameBox.theme17 .preview-weddinginfo-title h2 {
  font-size: 20px;
}
#themeNameBox.theme17 .weddinginfo-content {
  margin-top: 10px;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
#themeNameBox.theme17 .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.theme17 .weddinginfo-icon-box {
  display: block !important;
  gap: 0 !important;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}
#themeNameBox.theme17 .weddinginfo-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
#themeNameBox.theme17 .weddinginfo-icon {
  display: none;
}
/* 예식장명 20px / 주소 15px / 전화 16px - 전부 브라운 600 (피그마 348:650) */
#themeNameBox.theme17 .weddinginfo-namebox .weddding-hall-name {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  width: 100%;
  color: var(--t17-brown) !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.theme17 .weddinginfo-namebox .weddding-hall {
  margin: 0;
  width: 100%;
  color: var(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
#themeNameBox.theme17 .weddinginfo-tellbox {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
#themeNameBox.theme17 .weddinginfo-tellbox .weddding-tell {
  margin: 0;
  width: 100%;
  color: var(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-align: center;
}
/* 내비 버튼: 흰 배경 + 그린 아웃라인 + 그린 12px (피그마 348:656) */
#themeNameBox.theme17 .weddinginfo-navi {
  display: flex !important;
  gap: 8px;
  justify-content: center;
  padding: 0 !important;
  margin: 20px -22px 0;
  width: calc(100% + 44px);
}
#themeNameBox.theme17 .weddinginfo-navi button {
  flex: 1;
  height: 40px;
  min-height: 40px;
  max-width: 115px;
  padding: 0 8px;
  border: 0.5px solid var(--t17-green);
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}
#themeNameBox.theme17 .weddinginfo-navi button::before {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}
#themeNameBox.theme17 .weddinginfo-navi button span {
  display: inline-block;
  color: var(--t17-green);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* "네이버내비" → "네이버지도" */
#themeNameBox.theme17 .weddinginfo-navi button.navernavi span {
  font-size: 0 !important;
  line-height: 0;
}
#themeNameBox.theme17 .weddinginfo-navi button.navernavi span::after {
  content: "네이버지도";
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t17-green);
  white-space: nowrap;
}
/* 지도/약도: 풀폭 */
/* 지도/약도 풀블리드: 이 섹션 inner-wrap 좌우 패딩은 20px 이므로 -20px 로 상쇄해
 * 정확히 화면 끝까지 채운다. (이전 -32px 는 과하게 12px 씩 넘쳐 그 안의 교통안내
 * 텍스트가 30px 가 아닌 위치로 밀리고 옆으로 벗어났음) */
#themeNameBox.theme17 .weddinghall-map-wrap {
  margin-top: 20px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
#themeNameBox.theme17 .map-wrap,
#themeNameBox.theme17 .preview-map-img,
#themeNameBox.theme17 .preview-map-img .cropper-preview {
  width: 100% !important;
  max-width: 100%;
  border-radius: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
}
#themeNameBox.theme17 .map-wrap .map,
#themeNameBox.theme17 #kakao_map {
  width: 100% !important;
  min-height: 200px;
}
#themeNameBox.theme17 .preview-map-img .cropper-preview img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}
/* 교통 안내: 행 디자인 (하단 브라운 헤어라인 + 그린 아이콘, 피그마 348:1047) */
#themeNameBox.theme17 .way-guide-box {
  margin-top: 30px;
  padding: 0;
  background: transparent;
}
#themeNameBox.theme17 .way-guide {
  position: relative;
  padding: 20px 30px;
  border-top: 0;
  border-bottom: 0;
  gap: 0;
}
#themeNameBox.theme17 .way-guide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--t17-brown);
  transform: scaleY(0.5);
  transform-origin: bottom;
  pointer-events: none;
}
#themeNameBox.theme17 .way-guide .way-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 9px;
}
#themeNameBox.theme17 .way-guide .way-title p {
  margin: 0;
  color: var(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px !important;
  font-weight: 600;
}
#themeNameBox.theme17 .way-guide .way-content p {
  margin: 0;
  color: var(--t17-brown) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 18px;
  white-space: pre-line;
}
/* 교통 아이콘: 테마17 전용 그린 svg (피그마 export, #3E8440) */
#themeNameBox.theme17 .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.theme17 .way-guide.subway .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme17_icon_subway.svg");
}
#themeNameBox.theme17 .way-guide.bus .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme17_icon_bus.svg");
}
#themeNameBox.theme17 .way-guide.etc .way-title .weddinginfo-icon {
  background-image: url("/assets/tool/img/invitation/theme_2026/theme17_icon_info.svg");
}

/* ============================================================
 * 2-7. 마음 전하실 곳 (con_account 348:563) - 그린 버튼/텍스트
 * ============================================================ */
#themeNameBox.theme17 .preview-bank-wrap {
  padding-left: 0;
  padding-right: 0;
}
/* 좌우 여백은 base inner-wrap(padding 0 30px)에서만 준다 → 이중 패딩 방지, 전체 30px 통일 */
#themeNameBox.theme17 .preview-bank-title {
  padding-left: 0;
  padding-right: 0;
}
#themeNameBox.theme17 .preview-bank-title h2 {
  font-size: 20px;
}
/* 안내 문구 15px 600 브라운 (피그마 348:572) */
#themeNameBox.theme17 .preview-bank-title h2::after {
  content: "신랑\00026신부에게 축복의 의미로\A축의금을 전달해보세요.";
  white-space: pre-line;
  display: block;
  margin-top: 10px;
  color: var(--t17-brown);
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
#themeNameBox.theme17 .preview-bank-wrap .accordion-box {
  margin: 24px 0 0; /* 좌우 여백은 inner-wrap(30px)이 담당 (이전 30px 중복으로 60px가 됐음) */
  border: 0;
  background: transparent;
}
#themeNameBox.theme17 .preview-bank-wrap .accordion-inner {
  overflow: visible;
  margin-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
/* 신랑측/신부측 토글: 풀폭 45px 솔리드 그린 + 흰 16px (피그마 348:574) */
#themeNameBox.theme17 .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(--t17-green) !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.theme17 .preview-bank-wrap .accordion-box .btn-toggle span {
  color: #ffffff !important;
}
#themeNameBox.theme17 .preview-bank-wrap .accordion-box .btn-toggle .bank-icon {
  display: none;
}
#themeNameBox.theme17 .preview-bank-wrap .accordion-box .btn-toggle::after {
  content: none;
}
/* 계좌 행: 투명 + 하단 0.5px 그린 헤어라인 */
#themeNameBox.theme17 .preview-bank-wrap .accordion-box .bank {
  margin-bottom: 0;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
#themeNameBox.theme17 .preview-bank-wrap .bank-info,
#themeNameBox.theme17 .preview-bank-wrap .bank-btn-box {
  padding: 0;
}
#themeNameBox.theme17 .preview-bank-wrap .bank-info p {
  margin: 0;
  line-height: 1.6;
}
#themeNameBox.theme17 .preview-bank-wrap .bank-info p:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* 이름 14px 600 그린 / 관계 12px 400 그린 (피그마 348:578) */
#themeNameBox.theme17 .preview-bank-wrap .bank-info .name {
  color: var(--t17-green) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme17 .preview-bank-wrap .bank-info .name::before {
  font-weight: 400;
  font-size: 12px;
  margin-right: 5px;
  color: var(--t17-green);
}
#themeNameBox.theme17 .bank_groom00 .bank-info .name::before { content: "신랑"; }
#themeNameBox.theme17 .bank_bride00 .bank-info .name::before { content: "신부"; }
#themeNameBox.theme17 .bank_groom01 .bank-info .name::before,
#themeNameBox.theme17 .bank_bride01 .bank-info .name::before { content: "부"; }
#themeNameBox.theme17 .bank_groom02 .bank-info .name::before,
#themeNameBox.theme17 .bank_bride02 .bank-info .name::before { content: "모"; }
#themeNameBox.theme17 .preview-bank-wrap .bank-info .bank_type,
#themeNameBox.theme17 .preview-bank-wrap .bank-info .bank_no {
  color: var(--t17-green) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 14px;
  font-weight: 600;
}
#themeNameBox.theme17 .preview-bank-wrap .bank-btn-box {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 15px;
}
/* 계좌복사/카카오페이: 흰 배경 + 그린 아웃라인 + 그린 12px (피그마 348:584/592) */
#themeNameBox.theme17 .preview-bank-wrap .copy-bank,
#themeNameBox.theme17 .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(--t17-green) !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.theme17 .preview-bank-wrap .kakaopay span {
  color: var(--t17-green) !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* 계좌복사 아이콘: svg mask 로 그린 틴트 */
#themeNameBox.theme17 .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(--t17-green);
  -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_방명록 348:552/524) - 그린 이름 + 다크그린 헤어라인
 * ============================================================ */
/* 갤러리 미사용 시 오시는 길 상단 여백 보전 (2026-08-21)
 *  - 참석의사 전달(RSVP) ~ 오시는 길 사이 100px 간격은 갤러리 섹션이 담당한다
 *    (base `.preview-wrap.preview-gallery-wrap { padding: 100px 0 }`).
 *  - 갤러리를 끄면 그 여백이 사라져 RSVP 블록과 오시는 길이 그대로 붙는다.
 *  - 하객뷰는 @if 로 섹션 자체가 미렌더(:not(:has)), 편집기는 JS 가 display:none 처리하므로 둘 다 대응. */
#themeNameBox.theme17 .preview-etc-wrap:not(:has(.preview-gallery-wrap)) .preview-weddinginfo-wrap,
#themeNameBox.theme17 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display: none"]) .preview-weddinginfo-wrap,
#themeNameBox.theme17 .preview-etc-wrap:has(.preview-gallery-wrap[style*="display:none"]) .preview-weddinginfo-wrap {
  padding-top: 100px;
}

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

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

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

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

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

/* ---- 모달 2. 참석 의사 전달 (#attendModalContent, 피그마 348:366) ---- */
body:has(#themeNameBox.theme17) #attendModalContent .modal-header {
  padding: 32px 30px 14px !important;
  text-align: center;
  display: block !important;
  position: relative;
  border-bottom: 0;
}
body:has(#themeNameBox.theme17) #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.theme17) #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.theme17) #attendModalContent .modal-header .close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  transform: none;
}
body:has(#themeNameBox.theme17) #attendModalContent .modal-body {
  padding: 12px 0 30px !important;
  background: #ffffff;
}
body:has(#themeNameBox.theme17) #attendModalContent .preview-attend-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #111111;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
}
body:has(#themeNameBox.theme17) #attendModalContent .col-form-label {
  display: none !important;
}
body:has(#themeNameBox.theme17) #attendModalContent .form-group.row {
  display: block;
  margin: 0;
  padding: 10px 13px;
}
body:has(#themeNameBox.theme17) #attendModalContent .form-group.row > .col-sm-9,
body:has(#themeNameBox.theme17) #attendModalContent .form-group.row > .col-12 {
  flex: none;
  max-width: 100%;
  width: 100%;
  padding: 0;
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle {
  display: flex !important;
  gap: 8px;
  width: 100% !important;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme17) #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 - 연그린 #98C346 (피그마 348:381) */
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle > label.btn.active {
  background: var(--t17-green-light) !important;
  color: #ffffff !important;
  border-color: var(--t17-green-light) !important;
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle > label.btn.active::after {
  border-color: var(--t17-green-light);
}
/* 신부측/참석불가(각 행 두 번째) active - 그린 #3E8440 (피그마 348:378) */
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle > label.btn:last-child.active {
  background: var(--t17-green) !important;
  color: #ffffff !important;
  border-color: var(--t17-green) !important;
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle > label.btn:last-child.active::after {
  border-color: var(--t17-green);
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-group-toggle > label.btn input[type="radio"] {
  display: none;
}
body:has(#themeNameBox.theme17) #attendModalContent .form-group:nth-of-type(3) {
  padding: 30px 0 0;
}
body:has(#themeNameBox.theme17) #attendModalContent .form-group:nth-of-type(3) > .col-sm-9::before,
body:has(#themeNameBox.theme17) #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.theme17) #attendModalContent .form-group:nth-of-type(3) .input-group,
body:has(#themeNameBox.theme17) #attendModalContent .input-group.split {
  display: flex !important;
  gap: 8px;
  padding: 0 13px;
  margin: 0;
  flex-wrap: nowrap;
  grid-template-columns: none;
}
body:has(#themeNameBox.theme17) #attendModalContent .input-group.split {
  margin-bottom: 10px !important;
}
body:has(#themeNameBox.theme17) #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.theme17) #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.theme17) #attendModalContent .input-group-append {
  margin: 0;
  flex: 0 0 137px;
}
/* 동행추가/삭제: 연그린 #98C346 + 흰 13px (피그마 348:396) */
body:has(#themeNameBox.theme17) #attendModalContent .input-group-append .btn,
body:has(#themeNameBox.theme17) #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(--t17-green-light) !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.theme17) #attendModalContent .input-group-append .btn i.xeicon {
  display: none;
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-add-companion::before {
  content: "+";
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-del-companion::before {
  content: "-";
}
body:has(#themeNameBox.theme17) #attendModalContent .btn-dark.btn-block {
  margin: 20px 13px 0;
  width: calc(100% - 26px);
  height: 45px;
  background: var(--t17-green) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}

/* ---- 모달 3. 방명록 작성/수정/전체보기 (피그마 348:501) ---- */
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-title,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-title,
body:has(#themeNameBox.theme17) #guestbookModalContent .modal-title {
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 18px;
  font-weight: 600;
}
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body {
  padding: 25px 30px 30px;
}
body:has(#themeNameBox.theme17) #gueseditModalContent.guestbook-write-modal .form-group,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .form-group {
  margin-bottom: 25px;
}
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body label,
body:has(#themeNameBox.theme17) #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;
}
/* 입력창: 연그린 보더 (피그마 방명록 모달 시안) */
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body input.form-control,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 45px;
  padding: 10px;
  border: 0.5px solid var(--t17-green-light);
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 12px;
}
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body textarea.form-control,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body textarea.form-control {
  min-height: 80px;
}
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme17) #gueseditModalContent .modal-body textarea.form-control::placeholder,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body input.form-control::placeholder,
body:has(#themeNameBox.theme17) #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.theme17) #gueseditModalContent .modal-body .btn-dark.btn-block,
body:has(#themeNameBox.theme17) #guestUpdateModalContent .modal-body .btn-dark.btn-block {
  min-height: 45px;
  height: 45px;
  border: 0 !important;
  border-radius: 4px !important;
  background: var(--t17-green) !important;
  color: #ffffff !important;
  font-family: "Eulyoo1945", "JejuMyeongjo", serif;
  font-size: 13px;
  font-weight: 600;
}

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