/* =========================================================
   fb-sub-t4 — 투어·항공 상품 상세 (피그마 05-01 투어 상세 / 옵션 선택 / 사진 보기 / 항공 상세)
   모든 선택자는 .ft-rami-detail.fbt4 로 스코프 (호텔 상세 등 다른 페이지에 새지 않도록)
   ========================================================= */
.ft-rami-detail.fbt4 {
  --t4-green: #1d783b;
  --t4-line: rgba(0, 0, 0, 0.1);
  --t4-text: #555;
  --t4-muted: #888;
  --t4-gray: #6b7280;
  letter-spacing: -0.03em;
  color: #000;
}
/* 피그마 자간 -3%는 글자 크기마다 다시 계산돼야 한다 (루트 -0.03em 이 px 로 상속되던 문제) */
.ft-rami-detail.fbt4 *,
.ft-rami-detail.fbt4 button { letter-spacing: -0.03em; }
.fbt4-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- 폭 / 레이아웃 (본문 프레임 1076, 좌 668 + 38 + 우 365) ---------- */
.ft-rami-detail.fbt4 .ft-rami-shell,
.ft-rami-detail.fbt4 .ft-rami-layout {
  max-width: 1132px;
  padding-left: 28px;
  padding-right: 28px;
}
.ft-rami-detail.fbt4 .ft-rami-shell { padding-top: 40px; }
.ft-rami-detail.fbt4 .ft-rami-layout {
  gap: 38px;
  padding-top: 20px;
  padding-bottom: 130px;
}
.ft-rami-detail.fbt4 .ft-rami-sidebar {
  width: 365px;
  position: sticky;
  top: 140px;
  align-self: flex-start;
  z-index: 10;
}
.ft-rami-detail.fbt4 .ft-rami-sidebar-inner { position: static; }
@media (min-width: 1024px) {
  .ft-rami-detail.fbt4 .ft-rami-main { flex: 0 1 668px; }
}

/* ---------- 뒤로가기 ---------- */
.ft-rami-detail.fbt4 .ft-rami-back {
  gap: 4px;
  margin-bottom: 20px;
  color: var(--t4-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
}
.ft-rami-detail.fbt4 .fbt4-back-ico { width: 16px; height: 16px; }
/* v3: inline-flex 가 줄상자 안에서 1.5px 내려앉던 문제 → 블록 flex (피그마 y160) */
.ft-rami-detail.fbt4 .ft-rami-back { display: flex; width: max-content; }

/* ---------- 갤러리 (593 + 10 + 2x232.5, 높이 318) ---------- */
.ft-rami-detail.fbt4 .ft-rami-gallery-grid {
  grid-template-columns: minmax(0, 593fr) minmax(0, 471fr);
  gap: 10px;
  max-width: 1074px;
  height: 318px;
  border-radius: 0 !important;
  overflow: visible;
}
.ft-rami-detail.fbt4 .ft-rami-gallery-thumbs { gap: 6px; }
.ft-rami-detail.fbt4 .ft-rami-gallery-main,
.ft-rami-detail.fbt4 .ft-rami-gallery-thumb,
.ft-rami-detail.fbt4 .ft-rami-gallery-empty {
  background: #f3f3f3;
  border-radius: 8px;
}
.ft-rami-detail.fbt4 .ft-rami-gallery-main img,
.ft-rami-detail.fbt4 .ft-rami-gallery-thumb img { border-radius: 8px; }
.ft-rami-detail.fbt4 .ft-rami-gallery-placeholder {
  background: #f3f3f3;
  color: #c0c0c0;
  border-radius: 8px;
  font-size: 12px;
}
.ft-rami-detail.fbt4 .ft-rami-gallery-empty { min-height: 318px; color: #c0c0c0; }
.ft-rami-detail.fbt4 .ft-rami-gallery-more {
  right: 12px;
  bottom: 11px;
  width: 78px;
  min-height: 37px;
  height: 37px;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--t4-line);
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.ft-rami-detail.fbt4 .ft-rami-gallery-more:hover { background: #f7f7f7; }
.ft-rami-detail.fbt4 .ft-rami-gallery-badge.is-user-review { background: rgba(29, 120, 59, 0.9); }

/* ---------- 본문 상단 (안내 / 메타 / 칩) ---------- */
.ft-rami-detail.fbt4 .fbt4-top {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--t4-line);
}
.ft-rami-detail.fbt4 .ft-rami-product-notice {
  order: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ft-rami-detail.fbt4 .ft-rami-product-notice p {
  margin: 0;
  color: var(--t4-green);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}
.ft-rami-detail.fbt4 .ft-rami-product-notice p + p { margin-top: 4px; }
.ft-rami-detail.fbt4 .ft-rami-meta {
  gap: 6px 20px;
  margin: 0;
  color: var(--t4-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .ft-rami-meta:empty { display: none; }
.ft-rami-detail.fbt4 .ft-rami-meta span { gap: 4px; }
.ft-rami-detail.fbt4 .ft-rami-meta .fbt4-meta-ico,
.ft-rami-detail.fbt4 .ft-rami-meta svg {
  width: 16px;
  height: 16px;
  stroke: #555;
  stroke-width: 1.33px;
  flex-shrink: 0;
}
.ft-rami-detail.fbt4 .ft-tour-fit-info {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ft-rami-detail.fbt4 .ft-tour-fit-info__chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--t4-line);
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  box-sizing: border-box;
}
.ft-rami-detail.fbt4 .ft-tour-fit-info__chip svg { flex-shrink: 0; }

/* ---------- 상품 소개 ---------- */
.ft-rami-detail.fbt4 #ft-tour-itinerary {
  order: 2;
  margin: 0 0 60px;
  padding: 0;
  border: 0;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary h2 { margin-bottom: 8px; }
.ft-rami-detail.fbt4 #ft-tour-itinerary .fbt4-intro-lead {
  margin: 0;
  color: var(--t4-text);
  font-size: 14px;
  line-height: 1.6;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary .ft-rami-intro-detail {
  margin: 22px 0 0;
  background: #fff;
  padding: 20px;
  border: 1px solid var(--t4-line);
  color: var(--t4-text);
  font-size: 14px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary .ft-rami-intro-detail ul,
.ft-rami-detail.fbt4 #ft-tour-itinerary .ft-rami-intro-detail ol { gap: 0; }
.ft-rami-detail.fbt4 #ft-tour-itinerary .ft-rami-intro-detail p { margin: 0 0 22px; }
.ft-rami-detail.fbt4 #ft-tour-itinerary .ft-rami-intro-detail p:last-child { margin-bottom: 0; }

/* ---------- 탭 바 ---------- */
.ft-rami-detail.fbt4 .ft-rami-tab-bar {
  margin: 0 0 31px;
  border-bottom: 1px solid #d4d4d4;
  box-shadow: none;
  height: 39px;
}
.ft-rami-detail.fbt4 .ft-rami-tab {
  min-height: 39px;
  height: 39px;
  padding: 6px 20px;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  color: var(--t4-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.ft-rami-detail.fbt4 .ft-rami-tab small { font-size: 12px; }
.ft-rami-detail.fbt4 .ft-rami-tab.is-active,
.ft-rami-detail.fbt4 .ft-rami-tab:hover {
  color: #000;
  font-weight: 600;
  border-bottom-color: #000;
}

/* ---------- 섹션 공통: 카드 → 선으로 구분되는 평면 섹션 ---------- */
.ft-rami-detail.fbt4 .ft-rami-card {
  margin: 0 0 30px;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid var(--t4-line);
  background: transparent;
}
.ft-rami-detail.fbt4 .ft-rami-card h2,
.ft-rami-detail.fbt4 .ft-rami-card > h3 {
  margin: 0 0 16px;
  color: #000;
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
}
.ft-rami-detail.fbt4 .ft-rami-body,
.ft-rami-detail.fbt4 .ft-rami-side-note {
  color: var(--t4-text);
  font-size: 14px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-rami-body a { color: var(--t4-green); }
.ft-rami-detail.fbt4 .ft-rami-body ul,
.ft-rami-detail.fbt4 .ft-rami-body ol { gap: 2px; }
.ft-rami-detail.fbt4 .ft-rami-list { gap: 4px; }
.ft-rami-detail.fbt4 .ft-rami-list li {
  gap: 6px;
  color: var(--t4-text);
  font-size: 14px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-rami-list li > svg { width: 14px !important; height: 14px !important; }
/* 포함/불포함: 에디터 글머리 목록은 항목당 한 줄 + 불릿 (913 후속, 아이콘은 피그마대로 숨김) */
.ft-rami-detail.fbt4 .ft-rami-list--included,
.ft-rami-detail.fbt4 .ft-rami-list--excluded { display: block; margin: 0; padding: 0; }
.ft-rami-detail.fbt4 .ft-rami-list--included li,
.ft-rami-detail.fbt4 .ft-rami-list--excluded li { display: block; margin: 0 0 4px; padding-left: 12px; }
.ft-rami-detail.fbt4 .ft-rami-list--included li:last-child,
.ft-rami-detail.fbt4 .ft-rami-list--excluded li:last-child { margin-bottom: 0; }
.ft-rami-detail.fbt4 .ft-rami-list--included li > svg,
.ft-rami-detail.fbt4 .ft-rami-list--included li > i,
.ft-rami-detail.fbt4 .ft-rami-list--excluded li > svg,
.ft-rami-detail.fbt4 .ft-rami-list--excluded li > i { display: none; }
.ft-rami-detail.fbt4 .ft-rami-list--included li > span::before,
.ft-rami-detail.fbt4 .ft-rami-list--excluded li > span::before { content: "\2022"; display: inline-block; width: 12px; margin-left: -12px; }
/* 이용 안내 목록: 아이콘 대신 "- " 줄 (3571:78654) */
.ft-rami-detail.fbt4 .ft-rami-usage-block .ft-rami-list { gap: 0; }
.ft-rami-detail.fbt4 .ft-rami-usage-block .ft-rami-list li { display: block; }
.ft-rami-detail.fbt4 .ft-rami-usage-block .ft-rami-list li > svg,
.ft-rami-detail.fbt4 .ft-rami-usage-block .ft-rami-list li > i { display: none; }
.ft-rami-detail.fbt4 .ft-rami-usage-block .ft-rami-list li > span::before { content: "- "; }
.ft-rami-detail.fbt4 .ft-rami-list-num {
  background: #f3f3f3;
  color: #000;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body h3 {
  border-left-color: var(--t4-green);
  font-size: 14px;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body ul li::before { background: var(--t4-green); }
/* v3: 상세 일정 본문(관리자 HTML)도 피그마 본문 토큰 14 #555 lh1.8 (구 #374151·lh1.5·mb6·ul 8/16 여백 제거) */
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body ul { margin: 0; gap: 0; }
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body ul li {
  margin: 0;
  color: var(--t4-text);
  font-size: 14px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body ul li::before { margin-top: 8.6px; }
.ft-rami-detail.fbt4 #ft-tour-itinerary-media .ft-rami-body h3 { color: #000; font-weight: 600; }
.ft-rami-detail.fbt4 .ft-rami-usage-list { gap: 15px; }
/* v3: 기본 grid gap 10 + h3 margin 8 = 18 이던 것 → 피그마 소제목→본문 8 (4482:89068) */
.ft-rami-detail.fbt4 .ft-rami-usage-block { display: block; }
.ft-rami-detail.fbt4 .ft-rami-usage-block { padding: 0; border: 0; background: transparent; }
.ft-rami-detail.fbt4 .ft-rami-usage-block + .ft-rami-usage-block {
  margin-top: 0;
  padding-top: 15px;
  border-top: 1px solid var(--t4-line);
}
.ft-rami-detail.fbt4 .ft-rami-usage-block h3 {
  margin: 0 0 8px;
  line-height: normal;
  color: var(--t4-text);
  font-size: 14px;
  font-weight: 500;
}
.ft-rami-detail.fbt4 #ft-tour-terms .mb-4 { margin-bottom: 0; }

/* 여행 후기 — 제목은 다른 섹션 제목(.ft-rami-card h2)과 같은 16px */
.ft-rami-detail.fbt4 #ft-tour-reviews { border-bottom: 0; margin-bottom: 0; }
.ft-rami-detail.fbt4 #ft-tour-reviews .ft-rami-section-title {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 600;
}
.ft-rami-detail.fbt4 #ft-tour-reviews .reviews-section { margin-top: 0; padding-top: 0; }
.ft-rami-detail.fbt4 .no-reviews-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
  border: 1px solid var(--t4-line);
  border-radius: 0;
  background: #fff;
  color: var(--t4-muted);
  font-size: 14px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .no-reviews-placeholder p { margin: 0; }
.ft-rami-detail.fbt4 .reviews-summary-card {
  border: 1px solid var(--t4-line);
  border-radius: 0;
  background: #fff;
}
.ft-rami-detail.fbt4 .dist-bar-fill { background: var(--t4-green); }
/* v3: 후기 요약·목록(피그마 빈 상태만 있음, 기능상 유지 요소) → 같은 디자인 토큰으로 정리 (구 #0B473A·#5B6863·#EAE2D5 베이지·r12) */
.ft-rami-detail.fbt4 .summary-rating-num { color: #000; font-size: 40px; line-height: 1.2; font-weight: 600; }
.ft-rami-detail.fbt4 .summary-rating-count,
.ft-rami-detail.fbt4 .dist-label,
.ft-rami-detail.fbt4 .dist-count { color: var(--t4-text); font-size: 13px; font-weight: 400; }
.ft-rami-detail.fbt4 .dist-bar-bg { background: #f3f3f3; }
.ft-rami-detail.fbt4 .review-item { border: 1px solid var(--t4-line); border-radius: 8px; background: #fff; }
.ft-rami-detail.fbt4 .review-item-author { color: #000; font-size: 14px; font-weight: 600; }
.ft-rami-detail.fbt4 .review-item-date { color: var(--t4-muted); font-size: 12px; }
.ft-rami-detail.fbt4 .review-item-title { color: #000; font-size: 16px; line-height: normal; font-weight: 600; }
.ft-rami-detail.fbt4 .review-item-content { color: var(--t4-text); font-size: 14px; line-height: 1.8; }
.ft-rami-detail.fbt4 .ft-rami-page-btn.is-current { background: var(--t4-green); border-color: var(--t4-green); color: #fff; }

/* ---------- 함께 보기 좋은 투어 ---------- */
.ft-rami-detail.fbt4 .ft-rami-related { margin-top: 50px; }
.ft-rami-detail.fbt4 .ft-rami-related h2 {
  margin: 0 0 16px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}
.ft-rami-detail.fbt4 .ft-rami-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-top: 0;
}
.ft-rami-detail.fbt4 .fbt4-rel-card { position: relative; min-width: 0; }
.ft-rami-detail.fbt4 .fbt4-rel-link {
  display: flex;
  flex-direction: column;
  color: #000;
  text-decoration: none;
}
.ft-rami-detail.fbt4 .fbt4-rel-img {
  display: block;
  aspect-ratio: 210 / 134;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}
.ft-rami-detail.fbt4 .fbt4-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.ft-rami-detail.fbt4 .fbt4-rel-link:hover .fbt4-rel-img img { transform: scale(1.04); }
.ft-rami-detail.fbt4 .fbt4-rel-name {
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  word-break: keep-all;
}
.ft-rami-detail.fbt4 .fbt4-rel-label {
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.35;
}
.ft-rami-detail.fbt4 .fbt4-rel-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.ft-rami-detail.fbt4 .fbt4-rel-card .fb-wish-card-btn {
  top: 3px;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.12));
}
.ft-rami-detail.fbt4 .fbt4-rel-card .fb-wish-card-btn svg {
  width: 22px;
  height: 22px;
  fill: rgba(85, 85, 85, 0.5) !important;
  stroke: #fff;
  stroke-width: 1.64px;
}
.ft-rami-detail.fbt4 .fbt4-rel-card .fb-wish-card-btn:hover { background: transparent; color: #fff; }
.ft-rami-detail.fbt4 .fbt4-rel-card .fb-wish-card-btn[data-wished="1"] svg {
  fill: #fff !important;
  stroke: #fff !important;
}

/* ---------- 사이드 카드 ---------- */
.ft-rami-detail.fbt4 .ft-rami-side-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  background: #fff;
}
.ft-rami-detail.fbt4 .ft-rami-side-code {
  order: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--t4-gray);
  font-size: 13px;
  font-weight: 400;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .ft-rami-side-title {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--t4-line);
  color: #000;
  font-size: 22px;
  line-height: normal;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ft-rami-detail.fbt4 .fbt4-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-top: 12px;
}
.ft-rami-detail.fbt4 .fbt4-side-tags span {
  color: var(--t4-green);
  font-size: 14px;
  line-height: 1.3;
}
.ft-rami-detail.fbt4 .fbt4-side-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .fbt4-stars { display: inline-flex; }
.ft-rami-detail.fbt4 .fbt4-stars svg { display: block; }
.ft-rami-detail.fbt4 .fbt4-side-rating b { font-weight: 500; color: #000; }
.ft-rami-detail.fbt4 .fbt4-side-rating span:last-child { color: var(--t4-gray); }
.ft-rami-detail.fbt4 .fbt4-side-bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}
.ft-rami-detail.fbt4 .fbt4-side-pricerow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ft-rami-detail.fbt4 .ft-rami-price { padding: 0; }
.ft-rami-detail.fbt4 .ft-rami-price small {
  margin: 0 0 3px;
  color: var(--t4-gray);
  font-size: 13px;
  font-weight: 400;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .ft-rami-price > div {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .ft-rami-price strong {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .ft-rami-price strong.is-pending { color: var(--t4-gray); font-size: 18px; }
.ft-rami-detail.fbt4 .ft-rami-price > div span { font-size: 13px; line-height: 22.4px; color: #000; }
.ft-rami-detail.fbt4 .fbt4-side-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ft-rami-detail.fbt4 .fbt4-icon-btn,
.ft-rami-detail.fbt4 .fbt4-side-icons .ft-rami-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  text-decoration: none;
  cursor: pointer;
}
.ft-rami-detail.fbt4 .fbt4-icon-btn svg { display: block; }
/* 피그마 아이콘 박스: 공유 17.7 / 찜 28 / 인쇄 20.6 (간격 12) */
.ft-rami-detail.fbt4 .fbt4-side-icons .fbt4-icon-btn:first-child { width: 18px; }
.ft-rami-detail.fbt4 .fbt4-side-icons .fbt4-icon-btn:last-child { width: 21px; }
.ft-rami-detail.fbt4 .fbt4-side-icons .ft-rami-gallery-link { filter: drop-shadow(0 0.824px 1.235px rgba(0, 0, 0, 0.12)); }
.ft-rami-detail.fbt4 .fbt4-side-icons .ft-rami-gallery-link svg,
.ft-rami-detail.fbt4 .fbt4-side-icons .ft-rami-gallery-link i {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  stroke-width: 1.87px !important;
  color: #999;
}
.ft-rami-detail.fbt4 .fbt4-side-icons .ft-rami-gallery-link[data-wished="1"] svg {
  fill: var(--t4-green) !important;
  stroke: var(--t4-green) !important;
}
.ft-rami-detail.fbt4 .fbt4-side-icons [data-fb-wish-label] {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.ft-rami-detail.fbt4 .ft-rami-btn {
  min-height: 52px;
  border: 1px solid var(--t4-green);
  border-radius: 4px;
  background: #fff;
  color: var(--t4-green);
  font-size: 15px;
  font-weight: 600;
}
.ft-rami-detail.fbt4 .ft-rami-btn--primary {
  background: var(--t4-green);
  color: #fff;
}
.ft-rami-detail.fbt4 .ft-rami-btn--primary:hover { background: #17652f; }
.ft-rami-detail.fbt4 .ft-rami-btn:disabled {
  border-color: #d4d4d4;
  background: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}

/* ---------- 항공 일정표 ---------- */
.ft-rami-detail.fbt4 #ft-flight-itinerary h2 { margin-bottom: 16px; }
.ft-rami-detail.fbt4 .ft-fi-days { gap: 30px; margin-top: 0; }
.ft-rami-detail.fbt4 .ft-fi-day {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
.ft-rami-detail.fbt4 .ft-fi-day-head {
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.ft-rami-detail.fbt4 .ft-fi-day-badge {
  padding: 8px;
  border-radius: 4px;
  background: #000;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.ft-rami-detail.fbt4 .ft-fi-day-title { color: #000; font-size: 14px; font-weight: 600; }
.ft-rami-detail.fbt4 .ft-fi-day-note { color: var(--t4-muted); }
.ft-rami-detail.fbt4 .ft-fi-flight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 15px 20px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}
.ft-rami-detail.fbt4 .ft-fi-flight-top { gap: 8px; margin: 0; }
.ft-rami-detail.fbt4 .ft-fi-airline { color: #000; font-size: 14px; font-weight: 600; line-height: 1.8; }
.ft-rami-detail.fbt4 .ft-fi-flightno {
  color: var(--t4-green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8; /* v3: 4482:88954 Medium12 lh1.8 */
}
.ft-rami-detail.fbt4 .ft-fi-chip,
.ft-rami-detail.fbt4 .ft-fi-chip.is-nonstop {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--t4-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 17.53px;
}
.ft-rami-detail.fbt4 .ft-fi-chip { display: inline-flex; align-items: center; height: 18px; }
.ft-rami-detail.fbt4 .ft-fi-chip-ico { flex-shrink: 0; width: 12.52px; height: 12.52px; margin-right: 3.13px; }
.ft-rami-detail.fbt4 .ft-fi-route {
  flex-wrap: wrap;
  gap: 0 20px;
}
.ft-rami-detail.fbt4 .ft-fi-node { gap: 0; }
.ft-rami-detail.fbt4 .ft-fi-node b {
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-fi-node b sup { color: var(--t4-green); }
.ft-rami-detail.fbt4 .ft-fi-node span {
  color: var(--t4-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-fi-line {
  align-self: flex-start;
  height: 1px;
  margin-top: 16px;
  border-top: 0;
  background: linear-gradient(90deg, #9a9a9a 50%, transparent 50%) 0 0 / 4px 1px repeat-x;
  background-clip: content-box;
  padding: 0 7px;
}
/* 피그마: 선 양 끝 초록 점(5.7×6)은 선 안쪽에서 시작 */
.ft-rami-detail.fbt4 .ft-fi-line::before,
.ft-rami-detail.fbt4 .ft-fi-line::after {
  top: -2.5px;
  width: 5.7px;
  height: 6px;
  background: var(--t4-green);
}
.ft-rami-detail.fbt4 .ft-fi-line::before { left: 0; }
.ft-rami-detail.fbt4 .ft-fi-line::after { right: 0; }
.ft-rami-detail.fbt4 .ft-fi-flight-note { margin: 0; color: var(--t4-muted); font-size: 12px; }
.ft-rami-detail.fbt4 .ft-fi-row {
  align-items: center;
  gap: 10px;
  margin: 0 8px;
  padding: 0;
  border: 0;
}
/* 일차 카드 gap 15 안에서 정보 행끼리는 10 (피그마 4482:88978) */
.ft-rami-detail.fbt4 .ft-fi-row + .ft-fi-row { margin-top: -5px; }
.ft-rami-detail.fbt4 .ft-fi-label {
  width: 72px;
  color: var(--t4-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  padding: 0;
}
.ft-rami-detail.fbt4 .ft-fi-val {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-fi-sub { color: var(--t4-muted); font-size: 12px; font-weight: 500; }
.ft-rami-detail.fbt4 .ft-fi-guide { margin: 0; color: var(--t4-muted); font-size: 12px; }
/* 상세일정 → 라벨 없이 초록 점 타임라인 + 아래 구분선 */
.ft-rami-detail.fbt4 .ft-fi-row--acts {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--t4-line);
}
.ft-rami-detail.fbt4 .ft-fi-row--acts .ft-fi-label { display: none; }
.ft-rami-detail.fbt4 .ft-fi-acts li {
  margin: 0;
  padding-left: 13px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}
.ft-rami-detail.fbt4 .ft-fi-acts li + li { margin-top: 5px; }
.ft-rami-detail.fbt4 .ft-fi-acts li::before {
  top: 9.5px;
  width: 6px;
  height: 6px;
  background: var(--t4-green);
}
.ft-rami-detail.fbt4 .ft-fi-acts li::after {
  left: 3px;
  top: 16px;
  bottom: -14px;
  width: 1px;
  background: #ddd;
  opacity: 1;
}
.ft-rami-detail.fbt4 .ft-fi-act-time {
  display: inline-block;
  width: 40px;
  margin-right: 3px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}
.ft-rami-detail.fbt4 .ft-fi-meals { gap: 10px; } /* v3: 식사 칩은 행 gap10 을 그대로 씀 (4482:88996) */
.ft-rami-detail.fbt4 .ft-fi-meal,
.ft-rami-detail.fbt4 .ft-fi-meal.is-off {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid var(--t4-line);
  border-style: solid;
  border-radius: 4px;
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  font-size: 12px;
  line-height: 1.3;
}
.ft-rami-detail.fbt4 .ft-fi-meal b,
.ft-rami-detail.fbt4 .ft-fi-meal.is-off b {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 400;
}
.ft-rami-detail.fbt4 .ft-fi-daynote { margin: 0 8px; color: var(--t4-muted); font-size: 12px; }

/* ---------- 옵션 선택 모달 (1313 x auto, padding 40/50) ---------- */
.ft-rami-detail.fbt4 .ft-rami-choice-modal {
  padding: 60px 18px;
  background: rgba(0, 0, 0, 0.5); /* v3: 피그마 딤 Rectangle 44 = black .5 (3571:79613) */
}
.ft-rami-detail.fbt4 .ft-rami-choice-modal.is-open { align-items: flex-start; }
.ft-rami-detail.fbt4 .ft-rami-choice-panel--booking {
  width: 1313px !important;
  max-width: calc(100vw - 36px) !important;
  min-height: 0;
  max-height: calc(100vh - 120px);
  padding: 40px 50px;
  gap: 20px;
  border-radius: 8px !important;
  box-shadow: none;
  overflow: hidden;
}
.ft-rami-detail.fbt4 .fbt4-bk-head {
  display: flex;
  min-height: 0;
  height: 14px;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  border: 0;
  flex-shrink: 0;
}
.ft-rami-detail.fbt4 .fbt4-bk-head .ft-rami-choice-close {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  color: #000;
}
.ft-rami-detail.fbt4 .ft-booking-modal-container {
  gap: 30px;
  padding: 0;
  overflow-y: auto;
  align-items: flex-start;
}
.ft-rami-detail.fbt4 .ft-rami-choice-panel--booking .ft-rami-choice-body { padding-bottom: 0; }
.ft-rami-detail.fbt4 .ft-booking-modal-left {
  flex: 0 1 816px;
  align-self: flex-start;
  min-width: 0;
  padding: 20px 30px;
  border: 1px solid var(--t4-line);
  border-right: 1px solid var(--t4-line);
  border-radius: 8px;
}
.ft-rami-detail.fbt4 .ft-booking-modal-right {
  flex: 0 0 367px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}
/* 우측이 달력보다 짧으면 옵션 선택 카드가 남는 높이를 채운다 (피그마 3571:78721) */
.ft-rami-detail.fbt4 .ft-booking-modal-right > [data-fbt4-acc="option"] { flex: 1 0 auto; }
.ft-rami-detail.fbt4 .ft-booking-section-title {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--t4-line);
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-transform: none;
  letter-spacing: -0.03em;
}
/* 달력 */
.ft-rami-detail.fbt4 .ft-rami-calendar {
  margin: 0;
  max-width: 100%;
  padding: 0 39px;
  border: 0;
}
.ft-rami-detail.fbt4 .ft-rami-calendar-grid { gap: 20px; }
.ft-rami-detail.fbt4 .ft-rami-calendar-nav {
  top: 157px;
  width: 24px;
  height: 24px;
  color: #000;
}
.ft-rami-detail.fbt4 .ft-rami-calendar-nav:disabled { color: #999; }
.ft-rami-detail.fbt4 .ft-rami-calendar-nav--prev { left: 0; }
.ft-rami-detail.fbt4 .ft-rami-calendar-nav--next { right: 0; }
.ft-rami-detail.fbt4 .ft-rami-calendar-month h3 {
  margin: 0 0 15px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}
.ft-rami-detail.fbt4 .ft-rami-days {
  grid-template-columns: repeat(7, 40px);
  justify-content: center;
  column-gap: 4px;
  row-gap: 0;
}
.ft-rami-detail.fbt4 .ft-rami-days span,
.ft-rami-detail.fbt4 .ft-rami-days button {
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.5px;
}
.ft-rami-detail.fbt4 .ft-rami-days .is-head {
  min-height: 40px;
  color: #000;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.4px;
}
.ft-rami-detail.fbt4 .ft-rami-days .is-head:nth-child(7n+1) { color: #e1191c; }
.ft-rami-detail.fbt4 .ft-rami-days .is-head:nth-child(7n) { color: #0071fe; }
.ft-rami-detail.fbt4 .ft-rami-days > :nth-child(7n+1).is-available { color: #e1191c; }
.ft-rami-detail.fbt4 .ft-rami-days > :nth-child(7n).is-available { color: #0071fe; }
.ft-rami-detail.fbt4 .ft-rami-days .is-disabled {
  color: rgba(0, 0, 0, 0.3);
  text-decoration: line-through;
}
.ft-rami-detail.fbt4 .ft-rami-days button { border-radius: 50% !important; }
.ft-rami-detail.fbt4 .ft-rami-days .is-available:hover { background: #f0f5f2; }
.ft-rami-detail.fbt4 .ft-rami-days .is-available.is-selected,
.ft-rami-detail.fbt4 .ft-rami-days .is-available.is-selected:hover {
  background: var(--t4-green);
  color: #fff !important;
}
.ft-rami-detail.fbt4 .fbt4-cal-legend {
  display: flex;
  justify-content: flex-end;
  gap: 11.4px;
  margin-top: 0;
  font-size: 12.8px;
  line-height: normal;
  letter-spacing: -0.256px;
  color: rgba(0, 0, 0, 0.7);
}
.ft-rami-detail.fbt4 .fbt4-cal-legend span { letter-spacing: -0.256px; }
.ft-rami-detail.fbt4 .fbt4-cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ft-rami-detail.fbt4 .fbt4-cal-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
}
.ft-rami-detail.fbt4 .fbt4-cal-legend .is-on::before { background: var(--t4-green); }

/* 우측 아코디언 카드 */
.ft-rami-detail.fbt4 .fbt4-acc {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--t4-line);
  border-radius: 8px;
  background: #fff;
}
.ft-rami-detail.fbt4 .fbt4-acc .ft-booking-section-title { margin: 0; padding: 0; border: 0; }
.ft-rami-detail.fbt4 .fbt4-acc.is-open .ft-booking-section-title {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--t4-line);
}
.ft-rami-detail.fbt4 .fbt4-acc-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-align: left;
  cursor: pointer;
}
.ft-rami-detail.fbt4 .fbt4-acc-head small { color: var(--t4-gray); font-size: 12px; font-weight: 400; }
/* 피그마 벡터 12×6 + 2px 스트로크(바깥 14×8) — viewBox 14×8 그대로 렌더해 선 굵기 2px 유지 */
.ft-rami-detail.fbt4 .fbt4-acc-chev { width: 14px; height: 8px; margin-right: -1px; flex-shrink: 0; transition: transform .2s; }
.ft-rami-detail.fbt4 .fbt4-acc.is-open .fbt4-acc-chev { transform: rotate(180deg); }
.ft-rami-detail.fbt4 .fbt4-acc:not(.is-open) .fbt4-acc-body { display: none; }

/* 옵션 목록 → 체크박스형 */
.ft-rami-detail.fbt4 .modal-options-list { display: flex; flex-direction: column; gap: 20px; }
.ft-rami-detail.fbt4 .modal-option-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
}
.ft-rami-detail.fbt4 .modal-option-item input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  background: #fff center / 10px no-repeat;
  cursor: pointer;
}
.ft-rami-detail.fbt4 .modal-option-item input[type="radio"]:checked {
  border-color: #000;
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.ft-rami-detail.fbt4 .modal-option-item input[type="radio"]:focus-visible { outline: 2px solid var(--t4-green); outline-offset: 2px; }
.ft-rami-detail.fbt4 .modal-option-text { flex: 1; min-width: 0; }
.ft-rami-detail.fbt4 .modal-option-name {
  color: #222a27;
  font-size: 15px;
  font-weight: 400;
  line-height: 20.8px;
  letter-spacing: -0.45px;
}
.ft-rami-detail.fbt4 .modal-option-desc {
  margin: 10px 0 0 -4px;
  color: var(--t4-gray);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
}
.ft-rami-detail.fbt4 .modal-option-details-box {
  margin-top: 20px;
  padding: 18px 16px;
  border: 1px solid #ddd;
  background: #f9fafb;
  text-align: left;
}
.ft-rami-detail.fbt4 .modal-option-details-title {
  margin: 0 0 6px;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  line-height: 20.8px;
}
.ft-rami-detail.fbt4 .modal-option-details-required {
  align-items: center;
  height: 24px;
  margin: 0 0 12px;
  padding: 5px 6px;
  max-width: fit-content;
  border-radius: 4px;
  background: #ecf8f0;
  color: var(--t4-green);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  box-sizing: border-box;
}
.ft-rami-detail.fbt4 .modal-option-details-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--t4-gray);
  font-size: 12px;
  line-height: 1.4;
}
/* 장바구니 "옵션/날짜 변경"으로 연 모달: 상품명 제목 + 닫기 (피그마 3482:83324) */
.ft-rami-detail.fbt4 .fbt4-bk-head--titled {
  height: 32px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ft-rami-detail.fbt4 .fbt4-bk-head--titled .ft-rami-choice-title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}
.ft-rami-detail.fbt4 .fbt4-season-badge {
  margin: 0 0 12px;
  padding: 5px 9px;
  max-width: fit-content;
  border-radius: 4px;
  background: #e8f2ec;
  color: var(--t4-green);
  font-size: 12px;
  font-weight: 600;
}

/* 수량 / 추가옵션 행 */
.ft-rami-detail.fbt4 .ft-rami-qty-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ft-rami-detail.fbt4 .js-headcount-steppers-list .ft-rami-qty-row + .ft-rami-qty-row { margin-top: 20px; }
.ft-rami-detail.fbt4 .ft-rami-qty-row {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.ft-rami-detail.fbt4 .fbt4-qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.ft-rami-detail.fbt4 .fbt4-qrow-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.ft-rami-detail.fbt4 .ft-rami-qty-name {
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  white-space: pre-line;
  word-break: keep-all;
}
.ft-rami-detail.fbt4 .fbt4-qrow-note {
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: normal;
}
.ft-rami-detail.fbt4 .fbt4-qrow-note:empty { display: none; }
.ft-rami-detail.fbt4 .ft-rami-qty-price {
  margin-top: 8px;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}
.ft-rami-detail.fbt4 .fbt4-qrow-ctrl { flex-shrink: 0; display: flex; align-items: center; }
.ft-rami-detail.fbt4 .ft-rami-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 0;
}
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 50% !important;
  background: #fff;
  color: #000;
  font-size: 0;
  position: relative;
  cursor: pointer;
}
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button::before,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 1.8px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button[data-ft-qty-plus]::after,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button[data-ft-extra-plus]::after,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button.btn-tier-plus::after {
  width: 1.8px;
  height: 7px;
}
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button[data-ft-qty-minus]::after,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button[data-ft-extra-minus]::after,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button.btn-tier-minus::after { display: none; }
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button:disabled,
.ft-rami-detail.fbt4 .ft-rami-qty-stepper button[aria-disabled="true"] {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.15);
  cursor: not-allowed;
}
.ft-rami-detail.fbt4 .ft-rami-qty-stepper output {
  display: inline-block;
  width: 10px;
  min-width: 10px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}
.ft-rami-detail.fbt4 [data-ft-extra-hint] {
  margin: 0 0 20px;
  color: var(--t4-green);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

/* 예약자 정보 */
.ft-rami-detail.fbt4 .fbt4-contact .ft-rami-booking-question-list { gap: 12px; }
.ft-rami-detail.fbt4 .ft-rami-booking-question { gap: 6px; }
.ft-rami-detail.fbt4 .ft-rami-booking-question label,
.ft-rami-detail.fbt4 .ft-rami-booking-question strong,
.ft-rami-detail.fbt4 .ft-rami-question-title {
  color: #000;
  font-size: 13px;
  font-weight: 500;
}
.ft-rami-detail.fbt4 .fbt4-req { color: #e1191c; }
.ft-rami-detail.fbt4 .ft-rami-booking-question input[type="text"],
.ft-rami-detail.fbt4 .ft-rami-booking-question input[type="email"],
.ft-rami-detail.fbt4 .ft-rami-booking-question textarea,
.ft-rami-detail.fbt4 .ft-rami-booking-question select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px !important;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.ft-rami-detail.fbt4 .ft-rami-booking-question input[type="text"]:focus,
.ft-rami-detail.fbt4 .ft-rami-booking-question input[type="email"]:focus { outline: none; border-color: var(--t4-green); }

/* 하단 합계 / 버튼 */
.ft-rami-detail.fbt4 .fbt4-bk-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--t4-line);
  background: #fff;
  flex-shrink: 0;
}
.ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-info-side { gap: 3px; flex: 1; }
.ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-helper {
  color: var(--t4-gray);
  font-size: 13px;
  font-weight: 400;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-total {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  color: #000;
  font-size: 13px;
  font-weight: 400;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-total strong {
  color: #000;
  font-size: 22px;
  font-weight: 600;
  line-height: 22.4px;
}
.ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-actions {
  display: flex;
  gap: 10px;
  width: 368px;
  flex-shrink: 0;
}
.ft-rami-detail.fbt4 .fbt4-btn-line,
.ft-rami-detail.fbt4 .fbt4-btn-fill {
  height: 52px;
  padding: 0 8px;
  border-radius: 4px !important;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s;
}
.ft-rami-detail.fbt4 .fbt4-btn-line {
  flex: 0 0 120px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #000;
  font-weight: 400;
}
.ft-rami-detail.fbt4 .fbt4-btn-line:hover { background: #f7f7f7; }
.ft-rami-detail.fbt4 .fbt4-btn-fill {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  background: var(--t4-green);
  color: #fff;
  font-weight: 600;
}
.ft-rami-detail.fbt4 .fbt4-btn-fill:hover { background: #17652f; }
.ft-rami-detail.fbt4 .fbt4-btn-fill:disabled { background: #d4d4d4; cursor: not-allowed; }

/* 확인 팝업 (검증 / 장바구니) 버튼 색 */
.ft-rami-detail.fbt4 #cart-success-modal a[href="/cart.php"],
.ft-rami-detail.fbt4 #booking-validation-modal button { background: var(--t4-green) !important; }
.ft-rami-detail.fbt4 #cart-success-modal > div > div:first-child { background: #e8f2ec !important; color: var(--t4-green) !important; }

/* ---------- 사진 전체 보기 모달 (1440, padding 50) ---------- */
.ft-rami-detail.fbt4 .ft-rami-modal[data-ft-gallery-modal] {
  padding: 60px 18px;
  background: rgba(0, 0, 0, 0.5); /* v3: 3571:80026 */
}
.ft-rami-detail.fbt4 .ft-rami-modal[data-ft-gallery-modal].is-open { display: block; }
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 8px;
  background: #fff;
}
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-head strong {
  justify-self: auto;
  color: #000;
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-close {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
}
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-close svg { width: 14px !important; height: 14px !important; }
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.ft-rami-detail.fbt4 .fbt4-photo { position: relative; overflow: hidden; background: #7d7d7d; }
.ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 662 / 366;
  object-fit: cover;
  border-radius: 0;
  background: #7d7d7d;
}

/* ---------- 모바일 하단 바 ---------- */
.ft-rami-detail.fbt4 .ft-rami-mobile-bar .ft-rami-btn { min-height: 44px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1240px) {
  .ft-rami-detail.fbt4 .ft-rami-choice-panel--booking { padding: 32px 28px; }
  .ft-rami-detail.fbt4 .ft-booking-modal-right { flex-basis: 340px; }
  .ft-rami-detail.fbt4 .ft-rami-calendar { padding: 0 30px; }
  .ft-rami-detail.fbt4 .ft-rami-days { grid-template-columns: repeat(7, minmax(0, 40px)); column-gap: 2px; }
}
@media (max-width: 1023px) {
  .ft-rami-detail.fbt4 .ft-rami-shell,
  .ft-rami-detail.fbt4 .ft-rami-layout { padding-left: 16px; padding-right: 16px; }
  .ft-rami-detail.fbt4 .ft-rami-shell { padding-top: 24px; }
  .ft-rami-detail.fbt4 .ft-rami-layout { gap: 24px; }
  .ft-rami-detail.fbt4 .ft-rami-sidebar {
    order: -1;
    width: 100%;
    position: static;
  }
  .ft-rami-detail.fbt4 .ft-rami-side-card { padding: 20px; }
  .ft-rami-detail.fbt4 .fbt4-side-bottom { margin-top: 24px; gap: 20px; }
  .ft-rami-detail.fbt4 .ft-booking-modal-container { flex-direction: column; align-items: stretch; }
  .ft-rami-detail.fbt4 .ft-booking-modal-left,
  .ft-rami-detail.fbt4 .ft-booking-modal-right { flex: 0 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .ft-rami-detail.fbt4 .ft-rami-gallery-grid { height: auto; grid-template-columns: 1fr; }
  .ft-rami-detail.fbt4 .ft-rami-gallery-main { aspect-ratio: 593 / 318; }
  .ft-rami-detail.fbt4 .ft-rami-side-title { font-size: 20px; }
  .ft-rami-detail.fbt4 .ft-rami-tab-bar { margin-left: -16px; margin-right: -16px; padding: 0 6px; }
  .ft-rami-detail.fbt4 .ft-rami-tab { padding: 6px 12px; }
  .ft-rami-detail.fbt4 .ft-rami-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ft-rami-detail.fbt4 .ft-fi-day { padding: 16px; }
  .ft-rami-detail.fbt4 .ft-fi-flight { padding: 12px 14px; }
  .ft-rami-detail.fbt4 .ft-fi-row { flex-direction: row; margin: 0; }
  .ft-rami-detail.fbt4 .ft-fi-label { width: 56px; }
  .ft-rami-detail.fbt4 .ft-fi-meals { flex-wrap: wrap; }

  .ft-rami-detail.fbt4 .ft-rami-choice-modal { padding: 0; }
  .ft-rami-detail.fbt4 .ft-rami-choice-panel--booking {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    /* 템플릿 인라인 height/max-height:100% !important 때문에 패널이 화면 높이에서 잘리고
       우측 카드가 패널 밖(흰 배경 없이)으로 넘쳐 뒤 페이지가 비치던 문제 → 내용만큼 늘린다 */
    height: auto !important;
    max-height: none !important;
    padding: 20px 16px 0;
    border-radius: 0 !important;
    overflow: visible;
  }
  .ft-rami-detail.fbt4 .ft-booking-modal-container { gap: 12px; max-height: none; overflow: visible; }
  .ft-rami-detail.fbt4 .ft-rami-choice-panel--booking .ft-rami-choice-body { padding-bottom: 150px; }
  .ft-rami-detail.fbt4 .ft-booking-modal-left { padding: 16px; }
  .ft-rami-detail.fbt4 .ft-rami-calendar { padding: 0 28px; }
  .ft-rami-detail.fbt4 .ft-rami-calendar-grid { grid-template-columns: 1fr; }
  .ft-rami-detail.fbt4 .ft-rami-calendar-nav { top: 4px; transform: none; }
  .ft-rami-detail.fbt4 .ft-rami-days { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 0; }
  .ft-rami-detail.fbt4 .ft-rami-days span,
  .ft-rami-detail.fbt4 .ft-rami-days button { width: 100%; max-width: 40px; justify-self: center; }
  .ft-rami-detail.fbt4 .fbt4-acc { padding: 16px; }
  .ft-rami-detail.fbt4 .fbt4-bk-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }
  .ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-actions { width: 100%; }
  .ft-rami-detail.fbt4 .fbt4-bk-foot .ft-rami-choice-helper { line-height: 1.4; }

  .ft-rami-detail.fbt4 .ft-rami-modal[data-ft-gallery-modal] { padding: 0; }
  .ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-inner { padding: 20px 16px 40px; border-radius: 0; min-height: 100vh; }
  .ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-head {
    position: sticky;
    top: -20px;
    z-index: 2;
    margin: -20px -16px 16px;
    padding: 16px;
    background: #fff;
  }
  .ft-rami-detail.fbt4 [data-ft-gallery-modal] .ft-rami-modal-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .ft-rami-detail.fbt4 .ft-rami-shell,
  .ft-rami-detail.fbt4 .ft-rami-layout { padding-left: 16px; padding-right: 16px; }
  .ft-rami-detail.fbt4 .ft-rami-meta { gap: 4px 14px; font-size: 13px; }
}

@media print {
  .ft-rami-detail.fbt4 .ft-rami-sidebar { position: static; }
}
.ft-rami-detail.fbt4 .ft-fi-day-head .ft-fi-day-title { margin: 0; }
.ft-rami-detail.fbt4 .ft-rami-gallery-placeholder span,
.ft-rami-detail.fbt4 .ft-rami-gallery-placeholder svg { color: #b5b5b5; }
