:root {
  --bj-content-max: 1000px;
  --bj-page-gutter: 24px;
  --bj-page-gutter-mobile: 16px;
  --bj-paper: #fbfaf7;
  --bj-clean: #fff;
  --bj-header-surface: #fdfdfc;
  --bj-footer-surface: var(--bj-header-surface);
  --bj-stone: #f1efe9;
  --bj-soft-surface: #f5f5f3;
  --bj-product-stage: #f7f5f1;
  /* 디자인(템플릿) 썸네일 바탕 = 청첩장 목록 대표 사진(*_a_1.jpg)에 구워진 바탕 #f1f1f1(2026-09-25 PC·폰 목록 화소 실측).
     사장님 «카드 썸네일 바탕색도 노란색으로 하지 말고 청첩장 리스트에 있는 바탕색하고 동일하게». 팩토리B 상세(--fbd-template-stage)·
     감사장·초대장 목록(companionCatalogCard__media)도 같은 값. 종전 --bj-product-stage(#f7f5f1, 누런 기)를 빌렸다. */
  --bj-template-media-surface: #f1f1f1;
  --bj-template-media-padding: 18px;
  --bj-information-surface: #f8f7f4;
  --bj-charcoal: #1a1a18;
  --bj-ink: #181817;
  --bj-muted: #66635e;
  --bj-tertiary: #918e87;
  --bj-nav-primary: #384a52;
  --bj-nav-active: #132b34;
  --bj-nav-indicator: #1b2631;
  /* Boundary roles: passive structure stays quiet; controls retain 3:1 contrast. */
  --bj-line: #ece9e6;
  --bj-shell-divider: #f0eeec;
  --bj-line-strong: #938d86;
  --bj-header-divider: var(--bj-shell-divider);
  --bj-success: #356a55;
  --bj-danger: #a14b46;
  /* (2026-09-21) 주의 — 「확인이 필요하다」는 상태. 위험(danger)과 다르다:
     막힌 것이 아니라 봐 달라는 것이다(저장 안 된 변경·핀 못 맞춤·연결 끊김).
     종전엔 에디터에 Tailwind 호박 한 벌(#92400e·#f59e0b·#fde68a·#fef3c7)이
     54개 규칙에 흩어져 있었다 — 정본에 말이 없어서 각자 지어 쓴 것이다.
     값은 danger·success 와 같은 결로 맞췄다: H38° S36% L36% · 흰 바탕 5.53:1
     (danger 5.82 · success 6.28 사이). 옅은 면·선은 color-mix 로 파생한다. */
  --bj-attention: #7d653b;
  --bj-sample-accent: var(--bj-charcoal, #1a1a18);
  --bj-font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
  --bj-type-display: 36px;
  --bj-type-page: 28px;
  --bj-type-section: 28px;
  --bj-type-product-name: 24px;
  --bj-type-subsection: 20px;
  --bj-type-body: 16px;
  --bj-type-nav: 16px;
  --bj-type-control: 15px;
  --bj-type-action: 16px;
  --bj-type-caption: 14px;
  --bj-type-display-weight: 600;
  --bj-type-page-weight: 700;
  --bj-type-product-name-weight: 700;
  --bj-type-section-weight: 600;
  --bj-type-subsection-weight: 600;
  --bj-type-body-weight: 400;
  --bj-type-nav-weight: 600;
  --bj-type-control-weight: 500;
  --bj-type-action-weight: 700;
  --bj-type-caption-weight: 400;
  --bj-type-display-line: 1.24;
  --bj-type-page-line: 1.35;
  --bj-type-page-tracking: -0.025em;
  --bj-type-section-line: 1.35;
  --bj-type-product-name-line: 1.4;
  --bj-type-product-name-tracking: -0.04em;
  --bj-type-subsection-line: 1.5;
  --bj-type-body-line: 1.6;
  --bj-type-body-tracking: -0.01em;
  --bj-type-nav-line: 1.5;
  --bj-type-control-line: 1.6;
  --bj-type-action-line: 1.5;
  --bj-type-caption-line: 1.5;
  --bj-catalog-meta-size: 11px;
  --bj-catalog-meta-line: 16px;
  --bj-catalog-supporting-size: 13px;
  --bj-catalog-supporting-line: 20px;
  --bj-catalog-title-size: 14px;
  --bj-catalog-title-weight: 500;
  --bj-catalog-title-line: 20px;
  --bj-catalog-title-color: var(--bj-text, #303c45);
  --bj-catalog-detail-size: 12px;
  --bj-catalog-detail-line: 18px;
  --bj-catalog-quantity-size: 13px;
  --bj-catalog-quantity-line: 20px;
  --bj-catalog-supporting-color: #556168;
  --bj-catalog-selected-action-color: var(--bj-text, #303c45);
  --bj-catalog-price-size: 14px;
  --bj-catalog-price-weight: 400;
  --bj-catalog-price-line: 20px;
  --bj-catalog-offer-value-size: 14px;
  --bj-catalog-offer-value-size-mobile: 14px;
  --bj-catalog-cta-height: 40px;
  --bj-catalog-cta-height-mobile: 44px;
  --bj-catalog-cta-radius: 8px;
  --bj-catalog-cta-size: 14px;
  --bj-catalog-cta-weight: 500;
  --bj-catalog-sample-plus-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --bj-catalog-sample-check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3.25 8.25 3 3 6.5-6.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --bj-catalog-category-tile: 36px;
  --bj-catalog-category-icon: 24px;
  --bj-catalog-category-radius: 8px;
  --bj-catalog-media-radius: 8px;
  --bj-catalog-category-label-pc: 15px;
  --bj-catalog-category-label-mobile: 16px;
  /* Compact list controls sit below the category navigation, without input zoom sizing. */
  --bj-catalog-toolbar-size: 15px;
  --bj-control-radius: 8px;
  --bj-order-panel-border: 1px solid #cec8bf;
  --bj-order-panel-radius: 12px;
  --bj-order-panel-shadow: 0 2px 6px rgba(24, 24, 23, 0.07), 0 12px 32px rgba(24, 24, 23, 0.10);
  --bj-space-1: 8px;
  --bj-space-2: 16px;
  --bj-space-3: 32px;
  --bj-space-4: 64px;
}

/* A filled information surface already owns its grouping through background.
   Interactive descendants keep their own focus, selected, and error boundaries. */
.bj-information-surface {
  border: 0;
  background: var(--bj-information-surface);
  box-shadow: none;
}

/* Product identity is one shared role across every product family. */
.bj-product-identity__title,
body.pdp-modern-page .pdp-modern-purchase-surface .pdp-product-title,
body.pdp-unified-product-detail .product_view_name,
body.pdp-modern-page.pdp-unified-product-detail[data-pdp-message-card="1"] .pdp-message-card-product-title,
body.pdp-video-unified-page .pdp-video-heading h1,
body.pdp-photo-retouch-page .pdp-retouch-identity h1 {
  color: var(--bj-ink, #181817) !important;
  font-family: var(--bj-font-family) !important;
  font-size: var(--bj-type-product-name, 24px) !important;
  font-weight: var(--bj-type-product-name-weight, 700) !important;
  line-height: var(--bj-type-product-name-line, 1.4) !important;
  letter-spacing: var(--bj-type-product-name-tracking, -0.04em) !important;
}

.bj-product-identity__lead {
  color: var(--bj-muted, #66635e) !important;
  font-family: var(--bj-font-family) !important;
  font-size: var(--bj-type-body, 16px) !important;
  font-weight: var(--bj-type-body-weight, 400) !important;
  line-height: var(--bj-type-body-line, 1.6) !important;
  letter-spacing: var(--bj-type-body-tracking, -0.01em) !important;
}

body.pdp-modern-page .pdp-modern-purchase-surface .pdp-product-title .editor-admin-btn,
body.pdp-unified-product-detail .product_view_name .editor-admin-btn,
body.pdp-modern-page.pdp-unified-product-detail[data-pdp-message-card="1"] .pdp-message-card-product-title .editor-admin-btn,
body.pdp-video-unified-page .pdp-video-heading h1 .editor-admin-btn,
body.pdp-photo-retouch-page .pdp-retouch-identity h1 .editor-admin-btn {
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
}

.bj-design-surface {
  color: var(--bj-ink);
  font-family: var(--bj-font-family);
  font-size: var(--bj-type-body);
  font-weight: var(--bj-type-body-weight);
}

.bj-design-surface,
.bj-design-surface * {
  box-sizing: border-box;
}

.bj-fluid-page,
.bj-fluid-page-root {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.bj-fluid-page #content_wrapper,
.bj-fluid-page #content_wrapper > tbody,
.bj-fluid-page #content_wrapper > tbody > tr,
.bj-fluid-page #content_wrapper > tbody > tr > td {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
}

.bj-fluid-page #content_wrapper > tbody > tr > td {
  padding-right: 0;
  padding-left: 0;
}

.bj-fluid-page #tail_area {
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
}

.bj-page-shell {
  width: min(var(--bj-content-max), calc(100% - (var(--bj-page-gutter) * 2)));
  min-width: 0;
  margin-right: auto !important;
  margin-left: auto !important;
}

.bj-full-bleed-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.bj-full-bleed-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bj-section-background, var(--bj-paper));
  pointer-events: none;
}

body.bj-header-blend:not(.renewal-header-overlay) {
  --bj-header-rest-layer: color-mix(in srgb, var(--bj-product-stage) 86%, transparent);
  --bj-header-pinned-layer: color-mix(in srgb, var(--bj-paper) 96%, transparent);
}

body.bj-header-blend:not(.renewal-header-overlay) #menu_r1,
body.bj-header-blend:not(.renewal-header-overlay) #menu_r2 .fixed_header_content_box {
  background:
    linear-gradient(var(--bj-header-rest-layer), var(--bj-header-rest-layer)),
    var(--bj-header-underlay, var(--bj-paper)) !important;
  -webkit-backdrop-filter: saturate(104%) blur(18px);
  backdrop-filter: saturate(104%) blur(18px);
}

body.bj-header-blend:not(.renewal-header-overlay) #menu_r2 {
  border-bottom-color: transparent !important;
  background: transparent !important;
}

body.bj-header-blend:not(.renewal-header-overlay) #menu_r2 .fixed_header_content_box {
  border-bottom-color: transparent !important;
  transition: border-color .28s ease;
}

body.bj-header-blend:not(.renewal-header-overlay) #menu_r2.is-header-pinned .fixed_header_content_box {
  background: var(--bj-header-pinned-layer) !important;
  border-bottom-color: var(--bj-shell-divider) !important;
}

body.bj-header-blend:not(.renewal-header-overlay) #menu_r2.is-header-pinned {
  z-index: 123 !important;
}

/*
 * Shared scroll-navigation contract
 * - pages with an explicit icon submenu pin that submenu;
 * - all other standard pages pin the primary navigation.
 * The outer slot always stays in normal flow. Only its declared surface is
 * fixed, so legacy body overflow rules cannot disable the pinned state.
 */
body:not(.renewal-header-overlay) [data-header-sticky-role] {
  --bj-header-sticky-top: 0px;
}

body:not(.renewal-header-overlay) [data-header-sticky-role="submenu"] {
  min-height: var(--bj-header-sticky-height, auto);
}

body:not(.renewal-header-overlay) [data-header-sticky-role].is-header-pinned > [data-header-sticky-surface] {
  position: fixed !important;
  z-index: 123 !important;
  top: var(--bj-header-sticky-top) !important;
  right: 0;
  left: 0;
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body:not(.renewal-header-overlay) [data-header-sticky-role="submenu"].is-header-pinned > [data-header-sticky-surface] {
  background: var(
    --bj-header-pinned-layer,
    color-mix(in srgb, var(--bj-paper) 96%, transparent)
  ) !important;
  -webkit-backdrop-filter: saturate(104%) blur(18px);
  backdrop-filter: saturate(104%) blur(18px);
  border-bottom-color: var(--bj-shell-divider) !important;
}

.bj-page-kicker {
  margin: 0;
  color: var(--bj-tertiary);
  font-size: var(--bj-type-caption);
  font-weight: var(--bj-type-caption-weight);
  line-height: var(--bj-type-caption-line);
  letter-spacing: .06em;
}

.bj-page-title {
  margin: 0;
  color: var(--bj-ink);
  font-size: var(--bj-type-display);
  font-weight: var(--bj-type-display-weight);
  line-height: var(--bj-type-display-line);
  letter-spacing: -.04em;
  word-break: keep-all;
}

.bj-primary-action {
  display: inline-flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bj-charcoal);
  border-radius: var(--bj-control-radius);
  background: var(--bj-charcoal);
  color: var(--bj-paper) !important;
  font-family: var(--bj-font-family);
  font-size: var(--bj-type-action);
  font-weight: var(--bj-type-action-weight);
  line-height: var(--bj-type-action-line);
  text-decoration: none !important;
  cursor: pointer;
}

.bj-primary-action:hover {
  background: var(--bj-ink);
  border-color: var(--bj-ink);
}

.bj-primary-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.bj-editorial-split-section {
  --bj-section-background: var(--bj-stone);
  padding: 52px 0;
  background: transparent;
  font-size: var(--bj-type-body);
}

.bj-editorial-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.bj-editorial-split__visual {
  grid-column: 1 / 7;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.bj-editorial-split__content {
  display: flex;
  grid-column: 8 / 13;
  grid-row: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  font-size: var(--bj-type-body);
}

.bj-editorial-split__eyebrow {
  margin: 0 0 12px;
  color: var(--bj-tertiary);
  font-size: var(--bj-type-body);
  font-weight: var(--bj-type-body-weight);
  line-height: var(--bj-type-body-line);
  letter-spacing: -.01em;
}

.bj-editorial-split__title {
  margin: 0;
  color: var(--bj-ink);
  font-size: var(--bj-type-section);
  font-weight: var(--bj-type-section-weight);
  line-height: var(--bj-type-section-line);
  letter-spacing: -.035em;
  word-break: keep-all;
}

.bj-editorial-split__body {
  margin: 16px 0 0;
  color: var(--bj-muted);
  font-size: var(--bj-type-body);
  font-weight: var(--bj-type-body-weight);
  line-height: var(--bj-type-body-line);
  letter-spacing: -.01em;
  word-break: keep-all;
}

.bj-editorial-split__meta {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bj-line);
  color: var(--bj-ink);
  font-size: var(--bj-type-body);
  font-weight: var(--bj-type-nav-weight);
  line-height: var(--bj-type-nav-line);
  letter-spacing: -.01em;
  word-break: keep-all;
}

.bj-editorial-split__actions {
  width: 100%;
  margin-top: auto;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-top: 18px;
}

.bj-editorial-split__action {
  min-height: 48px;
  font-size: var(--bj-type-action);
}

.bj-editorial-split--story {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.bj-editorial-split--story .bj-editorial-split__lead,
.bj-editorial-split--story .bj-editorial-split__tail {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  font-size: var(--bj-type-body);
}

.bj-editorial-split--story .bj-editorial-split__lead {
  grid-column: 1 / 6;
  grid-row: 1;
  align-self: start;
}

.bj-editorial-split--story .bj-editorial-split__visual {
  grid-column: 7 / 13;
  grid-row: 1 / 4;
}

.bj-editorial-split--story .bj-editorial-split__tail {
  grid-column: 1 / 6;
  grid-row: 3;
  align-self: end;
}

.bj-editorial-split--story .bj-editorial-split__tail .bj-editorial-split__meta {
  margin-top: 0;
}

@media (max-width: 1039px) {
  .bj-fluid-page #scroll_guide_line,
  .bj-fluid-page #m_mode_btn {
    display: none !important;
  }

  body:not(.renewal-header-overlay) #menu_r1 .top_r1_block_wrapper,
  .bj-fluid-page #menu_r1 .top_r1_block_wrapper {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 var(--bj-page-gutter-mobile);
    box-sizing: border-box;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] .top_r2_block,
  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] .top_r2_menu,
  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_left,
  .bj-fluid-page #menu_r2 .top_r2_block,
  .bj-fluid-page #menu_r2 .top_r2_menu,
  .bj-fluid-page #menu_r2 #top_r2_left {
    width: 100% !important;
    min-width: 0 !important;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_left,
  .bj-fluid-page #menu_r2 #top_r2_left {
    position: relative;
    overflow: hidden;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_menu_ul,
  .bj-fluid-page #menu_r2 #top_r2_menu_ul {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 var(--bj-page-gutter-mobile) !important;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: var(--bj-page-gutter-mobile);
    scroll-snap-type: x proximity;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_menu_ul::-webkit-scrollbar,
  .bj-fluid-page #menu_r2 #top_r2_menu_ul::-webkit-scrollbar {
    display: none;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_menu_ul > li,
  .bj-fluid-page #menu_r2 #top_r2_menu_ul > li {
    flex: 0 0 auto !important;
    width: auto !important;
    scroll-snap-align: start;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_menu_ul > li > a,
  .bj-fluid-page #menu_r2 #top_r2_menu_ul > li > a {
    width: auto !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] #top_r2_right,
  .bj-fluid-page #menu_r2 #top_r2_right {
    display: none !important;
  }
}

@media (max-width: 767px) {
  :root {
    --bj-type-display: 30px;
    --bj-type-page: 24px;
    --bj-type-product-name: 24px;
    --bj-type-section: 24px;
    --bj-type-subsection: 20px;
    --bj-type-body: 16px;
    --bj-type-nav: 16px;
    --bj-type-control: 16px;
    --bj-type-action: 16px;
    --bj-type-caption: 14px;
    --bj-space-3: 24px;
    --bj-space-4: 48px;
  }

  .bj-page-shell {
    width: min(var(--bj-content-max), calc(100% - (var(--bj-page-gutter-mobile) * 2)));
  }

  .bj-editorial-split-section {
    padding: 32px 0;
  }

  .bj-editorial-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .bj-editorial-split__visual,
  .bj-editorial-split__content {
    grid-column: 1 / -1;
  }

  .bj-editorial-split__visual {
    grid-row: 1;
  }

  .bj-editorial-split__content {
    grid-row: 2;
    display: block;
  }

  .bj-editorial-split__actions {
    padding-top: 24px;
  }

  .bj-editorial-split__action {
    width: 100%;
  }

  .bj-editorial-split--story {
    grid-template-rows: auto auto auto;
    gap: 24px;
  }

  .bj-editorial-split--story .bj-editorial-split__lead,
  .bj-editorial-split--story .bj-editorial-split__visual,
  .bj-editorial-split--story .bj-editorial-split__tail {
    grid-column: 1 / -1;
  }

  .bj-editorial-split--story .bj-editorial-split__lead {
    grid-row: 1;
  }

  .bj-editorial-split--story .bj-editorial-split__visual {
    grid-row: 2;
  }

  .bj-editorial-split--story .bj-editorial-split__tail {
    grid-row: 3;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtility,
  .bj-fluid-page #menu_r1 .headerUtility {
    display: flex !important;
    height: 56px !important;
    margin-left: auto !important;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityItem,
  .bj-fluid-page #menu_r1 .headerUtilityItem {
    width: 44px !important;
    height: 44px !important;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityItem:nth-child(2),
  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityItem:nth-child(3),
  .bj-fluid-page #menu_r1 .headerUtilityItem:nth-child(2),
  .bj-fluid-page #menu_r1 .headerUtilityItem:nth-child(3) {
    display: none !important;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityItem:nth-child(4),
  .bj-fluid-page #menu_r1 .headerUtilityItem:nth-child(4) {
    order: 3;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityItem:nth-child(5),
  .bj-fluid-page #menu_r1 .headerUtilityItem:nth-child(5) {
    order: 2;
  }

  body:not(.renewal-header-overlay) #menu_r1 .headerUtilityButton,
  body:not(.renewal-header-overlay) #menu_r1 .headerUtility .unifiedCartEntry,
  .bj-fluid-page #menu_r1 .headerUtilityButton,
  .bj-fluid-page #menu_r1 .headerUtility .unifiedCartEntry {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }

  body:not(.renewal-header-overlay) [data-header-sticky-role="primary"] .headerAllMenuButton,
  .bj-fluid-page #menu_r2 .headerAllMenuButton {
    display: none !important;
  }

  /* 공통 상품 헤더의 후기·혜택은 전체 메뉴로 들어간다. 모바일에서도 진입 버튼을 유지한다. */
  body:not(.renewal-header-overlay) #menu_r2[data-header-experience-menu] .headerAllMenuButton {
    display: grid !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 8px;
  }
}

/*
 * Shared decision-form components
 * Registered for renewed application, reservation and order surfaces.
 * Page CSS may set spacing variables, but structure, focus and state behavior
 * remain owned here.
 */
.bj-action-form {
  --bj-action-form-label-width: 148px;
  overflow: hidden;
  border: 1px solid var(--bj-line);
  background: var(--bj-clean);
}

.bj-action-form__section + .bj-action-form__section {
  border-top: 1px solid var(--bj-line);
}

.bj-action-form__heading {
  display: flex;
  min-height: 68px;
  padding: 18px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bj-paper);
}

.bj-action-form__heading h2,
.bj-action-form__heading h3 {
  margin: 0;
  color: var(--bj-ink);
  font-size: var(--bj-type-subsection);
  font-weight: var(--bj-type-subsection-weight);
  line-height: var(--bj-type-subsection-line);
  letter-spacing: -.025em;
}

.bj-action-form__heading p {
  margin: 4px 0 0;
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  line-height: var(--bj-type-caption-line);
}

.bj-form-row {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--bj-action-form-label-width) minmax(0, 1fr);
  border-top: 1px solid var(--bj-line);
}

.bj-form-row:first-child {
  border-top: 0;
}

.bj-form-row__label {
  margin: 0;
  padding: 21px 12px 21px 24px;
  color: var(--bj-ink);
  font-size: var(--bj-type-control);
  font-weight: var(--bj-type-control-weight);
  line-height: var(--bj-type-control-line);
}

.bj-form-row__label [aria-hidden="true"] {
  color: #a44738;
}

.bj-form-row__control {
  min-width: 0;
  padding: 14px 24px 14px 0;
}

.bj-form-control input:not([type="checkbox"]):not([type="radio"]),
.bj-form-control select,
.bj-form-control textarea {
  min-height: 48px;
  border: 1px solid var(--bj-line);
  border-radius: var(--bj-control-radius);
  background: var(--bj-clean);
  color: var(--bj-ink);
  font-family: var(--bj-font-family);
  font-size: var(--bj-type-control);
  line-height: var(--bj-type-control-line);
}

.bj-form-control textarea {
  resize: vertical;
}

.bj-form-control input:not([type="checkbox"]):not([type="radio"]):focus,
.bj-form-control select:focus,
.bj-form-control textarea:focus {
  border-color: var(--bj-charcoal);
  outline: 2px solid color-mix(in srgb, var(--bj-charcoal) 16%, transparent);
  outline-offset: 1px;
}

.bj-form-help {
  margin: 8px 0 0;
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  line-height: var(--bj-type-caption-line);
}

.bj-form-state {
  display: inline-flex;
  min-height: 32px;
  padding: 4px 10px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--bj-line);
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  line-height: var(--bj-type-caption-line);
}

.bj-form-state.is-success {
  border-color: #b8d6c6;
  background: #f2f8f5;
  color: #315f49;
}

.bj-media-choice {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.bj-media-choice__item {
  min-width: 0;
  border: 1px solid var(--bj-line);
  background: var(--bj-clean);
}

.bj-address-confirm {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.bj-address-confirm table {
  width: 100% !important;
  max-width: 420px;
}

.bj-address-confirm .addr1_wrapper,
.bj-address-confirm .addr2_wrapper {
  width: min(100%, 620px);
}

.bj-disclosure {
  overflow: hidden;
  border: 1px solid var(--bj-line);
  background: var(--bj-clean);
}

.bj-disclosure__trigger {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--bj-ink);
  font-family: var(--bj-font-family);
  text-align: left;
  cursor: pointer;
}

.bj-disclosure__trigger:focus-visible {
  outline: 2px solid var(--bj-charcoal);
  outline-offset: -3px;
}

.bj-disclosure__indicator {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.bj-disclosure__trigger[aria-expanded="true"] .bj-disclosure__indicator {
  transform: rotate(225deg);
}

.bj-disclosure__panel[hidden] {
  display: none;
}

.bj-sticky-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--bj-shell-divider);
  background: color-mix(in srgb, var(--bj-clean) 96%, transparent);
}

.bj-sticky-action__summary {
  min-width: 0;
}

.bj-sticky-action__summary strong,
.bj-sticky-action__summary span {
  display: block;
}

.bj-sticky-action__summary strong {
  color: var(--bj-ink);
  font-size: var(--bj-type-control);
  font-weight: var(--bj-type-action-weight);
  line-height: var(--bj-type-action-line);
}

.bj-sticky-action__summary span {
  margin-top: 2px;
  color: var(--bj-muted);
  font-size: var(--bj-type-caption);
  line-height: var(--bj-type-caption-line);
}

.bj-task-result {
  border: 1px solid var(--bj-line);
  background: var(--bj-clean);
}

.bj-task-result__mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bj-charcoal);
  color: var(--bj-clean);
}

.bj-task-result__mark::before {
  content: "";
  width: 16px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}

@media (max-width: 767px) {
  .bj-action-form {
    --bj-action-form-label-width: 1fr;
  }

  .bj-action-form__heading {
    min-height: 0;
    padding: 18px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bj-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bj-form-row__label {
    padding: 17px 16px 0;
  }

  .bj-form-row__control {
    padding: 9px 16px 17px;
  }

  .bj-media-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bj-sticky-action {
    position: sticky;
    z-index: 30;
    bottom: 0;
    padding: 10px var(--bj-page-gutter-mobile) calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(24, 24, 23, .08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .bj-sticky-action__summary {
    display: none;
  }
}

/* Horizontal rail (COMP.RAIL) — 가로로 넘기는 목록 한 벌. 메인 페이지 상품·이벤트 줄(card/main-renewal.php)과
   「비슷한 디자인」 줄(common/catalog_personal_client.php)이 함께 쓴다: 기본 스크롤 막대는 숨기고, 목록 아래에
   1px 진행선(보이는 몫과 위치) + 34px 원형 ← →(PC). 폰은 진행선만(손가락으로 넘김). 동작은 common/bj-rail.js.
   칸 너비·간격 같은 줄마다 다른 배치는 그 줄을 쓰는 화면에 둔다.
   2026-09-26 사장님 «가로 스크롤 바 형태는 통일감 있게 — 메인 페이지처럼, 눈에 거슬리게 두지 말 것». */
.bj-rail__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bj-rail__track::-webkit-scrollbar {
  display: none;
}

.bj-rail__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.bj-rail__track a,
.bj-rail__track img {
  -webkit-user-drag: none;
  user-select: none;
}

.bj-rail__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--bj-space-2);
}

.bj-rail[data-rail-fits] .bj-rail__controls {
  display: none;
}

.bj-rail__progress {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: var(--bj-line);
}

.bj-rail__meter {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--bj-ink);
  transition: transform .25s ease;
}

.bj-rail__button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bj-line);
  border-radius: 50%;
  background: transparent;
  color: var(--bj-ink);
  font: inherit;
  cursor: pointer;
}

.bj-rail__button:disabled {
  opacity: .28;
  cursor: default;
}

@media (max-width: 767px) {
  .bj-rail__controls {
    margin-top: 10px;
  }

  .bj-rail__button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-rail__meter {
    transition: none;
  }
}
.bj-catalog-product-status {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--bj-muted);
    background: none;
    font-family: var(--bj-font-family);
    font-size: var(--bj-catalog-supporting-size, 13px);
    font-weight: var(--bj-type-control-weight, 500);
    line-height: var(--bj-catalog-supporting-line, 20px);
    letter-spacing: 0;
    white-space: nowrap;
}

/* 아이폰 입력칸 초점 확대 막기 — 사이트 전체 한 곳(2026-09-29 사장님 폰 캡처: 자유형 명함 「세로」 칸을 누르자 화면이 확대돼
   입력을 마쳐도 돌아오지 않음 · «에디터에선 메뉴도 못 보고 얼어 버린다 · 주문하기도 같다 — 전수조사»).
   왜: iOS WebKit 은 글을 넣는 칸(input·textarea·select·contenteditable)에 초점이 갈 때 그 칸 글자가 16px 보다 작으면 페이지 자체를
   약 16/크기 배 확대하고, 입력이 끝나도 되돌리지 않는다(되돌리는 API 없음 · iOS 26 은 maximum-scale=1 도 무시).
   전수조사(폰 390 · 아이폰 UA · 공개 페이지 260쪽): 입력칸이 있는 거의 모든 쪽에 16px 미만 칸이 있다(11~15px) — 칸마다 고치면 끝이 없다.
   언제 재나: 초점이 잡히는 그 순간이다. WebKit Document::setFocusedElement 는 setFocus(true)(= :focus 켜짐) → dispatchFocusEvent 안의
   WebPage::elementDidFocus(iOS 26 = safari-7622~7624: 이 자리에서 nodeFontSize 를 곧바로 읽는다) → focusin 순서다. 다음 판(7625~)은
   같은 값을 다음 화면 그리기 때 읽는다. :focus 는 두 판 모두 판정 전에 켜져 있다 → 이 규칙이 판정에 잡힌다.
   focusin 처리기로 글자를 키우는 방식(에디터 #7531)은 iOS 26 에서 판정 뒤라 늦었다 — 걷고 이 규칙 하나로 모은다.
   왜 층(@layer) 안 !important: 칸마다 크기 규칙이 !important 로 박혀 있다(주문서 order_form.css · 에디터 약도 검색 #sidePanel … 14px 등).
   층 안의 !important 는 층 밖의 모든 !important 를 이긴다(선택자 무게와 무관) — 칸 규칙과 싸우지 않는다.
   초점 동안만 16px — 쉬는 모양은 화면마다 디자인 그대로다. 전수조사에서 16px 보다 큰 입력칸은 0개였다(큰 칸을 새로 만들면 이 층 안에 그 칸 규칙을 둔다).
   아이폰·아이패드 WebKit 에만(-webkit-touch-callout 은 iOS WebKit 만 안다) — 안드로이드·PC 는 확대하지 않으므로 그대로 둔다.
   뺀 것: 에디터 캔버스 글자 편집칸(#edSvg 안 · .ed-screen-ce · .ed-inline-edit · [data-text-host])은 글자 실치수가 곧 화면이라
   키울 수 없다 — editor/js/src/81-contenteditable-runs.js _ceFocusNoZoom 이 초점 순간만 따로 올린다.
   계약: editor/tests/phone_page_zoom_guard_contract_test.js · 전 화면 적재 = 이 파일이 실리는 곳(에디터 index.php 포함). */
@layer bj-ios-input-focus {
  @supports (-webkit-touch-callout: none) {
    :is(
      input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"], [type="hidden"]),
      textarea,
      select,
      [contenteditable]:not([contenteditable="false"])
    ):focus:not(#edSvg *, .ed-screen-ce, .ed-screen-ce *, .ed-inline-edit, .ed-inline-edit *, [data-text-host], [data-text-host] *) {
      font-size: 16px !important;
    }
  }
}
