/* 이벤트 차량 목록(EVT)의 '검색 결과 이벤트 이름' 입력 + 공개 검색 카드의 이벤트 이름 표시.
   관리 모달(공개 홈)·인라인 관리 화면(/admin/promotion) 모두 #featuredEventNameFields 범위로만 스타일한다. */

/* ── 관리: 라벨 + 입력 한 줄, 짧은 안내 ─────────────────────────────── */
#featuredEventNameFields { flex: none; min-width: 0; }
#featuredEventNameFields[hidden] { display: none !important; }
#featuredEventNameFields:empty { display: none; }
#featuredEventNameFields .sjcopy-editor { display: block; max-width: none; gap: 0; }
#featuredEventNameFields .sjcopy-group { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
/* 그룹 제목은 읽기 보조용으로만 남기고, 화면에는 입력 라벨 한 줄만 보인다(반복 제목·큰 상자 없음). */
#featuredEventNameFields .sjcopy-group-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#featuredEventNameFields .sjcopy-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; min-width: 0; margin: 0; }
#featuredEventNameFields .sjcopy-field + .sjcopy-field { margin-top: 10px; }
#featuredEventNameFields .sjcopy-label { margin: 0; color: #0f172a; font-size: 14px; font-weight: 700; white-space: nowrap; }
#featuredEventNameFields .sjcopy-input { box-sizing: border-box; width: 100%; min-width: 0; max-width: 520px; min-height: 42px; padding: 9px 12px; border: 1.5px solid #dbe2ea; border-radius: 12px; background: #fff; color: #0f172a; font: inherit; font-size: 14px; }
#featuredEventNameFields .sjcopy-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
#featuredEventNameFields .sjcopy-input:disabled { cursor: not-allowed; color: #94a3b8; background: #f8fafc; }
#featuredEventNameFields .sjcopy-default { grid-column: 2; margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
/* 불러오는 중·실패 안내와 다시 불러오기 */
#featuredEventNameFields .friends-event-name-status { margin: 0; color: #64748b; font-size: 13px; font-weight: 700; line-height: 1.5; }
#featuredEventNameFields .friends-event-name-status:empty { display: none; }
#featuredEventNameFields .friends-event-name-retry { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 6px; padding: 0 14px; border: 1px solid #dbe2ea; border-radius: 999px; background: #fff; color: #0f172a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#featuredEventNameFields .friends-event-name-retry:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
#featuredEventNameFields .friends-event-name-retry:disabled { opacity: .5; cursor: default; }
#featuredEventNameFields :is(.friends-event-name-retry, .sjcopy-input):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) {
  #featuredEventNameFields .sjcopy-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #featuredEventNameFields .sjcopy-input { max-width: none; min-height: 44px; font-size: 16px; }
  #featuredEventNameFields .sjcopy-default { grid-column: 1; }
  #featuredEventNameFields .friends-event-name-retry { min-height: 44px; }
}

/* ── 공개 검색 카드: 별 아이콘 옆 이벤트 이름. 길어도(50자) 카드 가로로 넘치지 않고 자연스럽게 줄바꿈한다. ── */
/* 이름이 있을 때만 칩이 줄어들 수 있게 하고, 칩이 길면 '직판가 적용'은 다음 줄로 내려간다(문구·가격 규칙은 그대로). */
.car-row .cr-feature-main:has(.cr-event-name) { flex-wrap: wrap; row-gap: 4px; }
.car-row [data-feature-chip]:has(.cr-event-name) { flex-shrink: 1; min-width: 0; max-width: 100%; border-radius: 12px; }
.car-row [data-feature-chip] > svg { flex-shrink: 0; }
.car-row .cr-event-name { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; line-height: 1.35; }
.car-row .cr-event-name:empty { display: none; }
