/* ==============================
   MyPage Reservation List
   역할: v1/v2 공통 예약글 빠른 이동 리스트
   구조: 글번호 / 상태칩 / 예약·문의칩 / 제목 / 작성일
============================== */

.hs-res-list {
  display: flex;
  flex-direction: column;
}

.hs-res-list--compact {
  width: 100%;
  max-width: 860px;
  border-top: 1px solid #e5e7eb;
}

/* Flatsome link style reset */
.hs-res-list--compact a,
.hs-res-list--compact a:link,
.hs-res-list--compact a:visited,
.hs-res-list--compact a:hover,
.hs-res-list--compact a:focus,
.hs-res-list--compact a:active {
  color: inherit !important;
  text-decoration: none !important;
}

.hs-res-compact-row {
  width: 100%;
  min-height: 52px;
  padding: 11px 0;

  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;

  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;

  background: transparent;
  cursor: pointer;
}

.hs-res-compact-row:hover {
  background: #f9fafb;
}

/* 글번호 */
.hs-res-compact-id {
  color: #64748b !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* 상태칩 공통 */
.hs-res-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* 상태별 */
.hs-phase-reserve {
  background: #eff6ff;
  color: #2563eb !important;
}

.hs-phase-quote {
  background: #fef3c7;
  color: #b45309 !important;
}

.hs-phase-confirm {
  background: #ecfdf5;
  color: #059669 !important;
}

.hs-phase-finish {
  background: #f3e8ff;
  color: #7c3aed !important;
}

.hs-phase-cancel {
  background: #fee2e2;
  color: #dc2626 !important;
}

/* 예약 / 문의 칩 */
.hs-res-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  background: #f3f4f6;
  color: #374151 !important;
}

.hs-res-type-chip.예약 {
  background: #dbeafe;
  color: #2563eb !important;
}

.hs-res-type-chip.문의 {
  background: #fffbeb;
  color: #b45309 !important;
}

.hs-res-compact-title-wrap {
  min-width: 0;

  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* 제목 */
.hs-res-compact-title {
  min-width: 0;

  color: #111827 !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.hs-res-compact-row:hover .hs-res-compact-title {
  color: #111827 !important;
}

/* 작성일 */
.hs-res-compact-date {
  color: #6b7280 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* 빈 상태 */
.hs-empty {
  max-width: 860px;
  padding: 40px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
}

/* ==============================
   Mobile
============================== */

@media (max-width: 768px) {
  .hs-res-list--compact {
    max-width: none;
  }

  .hs-res-compact-row {
    min-height: auto;
    padding: 13px 4px;

    grid-template-columns: auto auto 1fr;
    gap: 6px 8px;
  }

  .hs-res-compact-id {
    font-size: 13px;
  }

  .hs-res-compact-title-wrap {
    grid-column: 1 / -1;
    width: 100%;

    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hs-res-compact-title {
    min-width: 0;
    font-size: 14px;
    white-space: normal;
  }

  .hs-res-compact-date {
    grid-column: 1 / -1;
    font-size: 12px;
  }
}