@charset "UTF-8";
/* ==========================================================================
   autobase — 셀프 견적 + 견적서 (데스크톱)
   플로우 레퍼런스: 인터피플 렌탈 견적 / 디자인은 사이트 언어(제품 상세 표·버튼 재사용).
   ※ @media 는 m.quote.css 에만.
   ========================================================================== */

/* 채움 버튼 — 제품 상세와 동일 언어 */
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 100px;
  background: var(--brand);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #fff;
  cursor: pointer;
}
.btn-fill:disabled { opacity: .5; cursor: default; }
.btn-fill img { width: 6.06px; height: 10.71px; margin: 0 -0.53px; }
.btn-line:disabled { opacity: .5; cursor: default; }

/* ── 셀프 견적 ───────────────────────────────────────────────────────── */
.qt { margin-top: 100px; }
.qt__title { font-size: 60px; font-weight: 700; line-height: 1.2; text-align: center; }
.qt__desc { margin-top: 20px; font-size: 17px; line-height: 1.6; color: #555; text-align: center; }

/* 품목 선택 바 */
.qt-pick {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: 20px;
  background: #f6f6f6;
}
.qt-pick__field { display: flex; flex-direction: column; gap: 8px; }
.qt-pick__field--product { flex: 1 1 auto; min-width: 0; }
.qt-pick__field label { font-size: 14px; font-weight: 600; color: #555; }
.qt-pick__field select,
.qt-pick__field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.qt-pick__field select { width: 100%; }
.qt-pick__field input { width: 110px; }
.qt-pick__add { height: 48px; flex: none; }

/* 선택한 제품 미리보기 */
.qt-preview {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  padding: 24px 32px;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  background: #fff;
}
.qt-preview[hidden] { display: none; }
.qt-preview__thumb {
  flex: none;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qt-preview__thumb img { max-width: 100%; max-height: 150px; object-fit: contain; }
.qt-preview__body { flex: 1 1 auto; min-width: 0; }
.qt-preview__name { display: block; font-size: 20px; font-weight: 700; }
.qt-preview__sub { display: block; margin-top: 4px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--brand); }
.qt-preview__desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.qt-preview__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.qt-preview__link img { width: 6.06px; height: 10.71px; }

/* 담은 품목 표 — 상세 스펙 표 언어 */
.qt-table {
  display: none;
  width: 100%;
  margin-top: 32px;
  border-spacing: 0;
  border-collapse: separate;
}
.qt-table th {
  height: 52px;
  background: var(--brand);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.qt-table th:first-child { border-radius: 16px 0 0 0; }
.qt-table th:last-child { border-radius: 0 16px 0 0; }
.qt-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}
.qt-table td.item { text-align: left; }
.qt-table td.item strong { display: block; font-weight: 600; }
.qt-table td.item span { display: block; margin-top: 2px; font-size: 13px; color: #888; }
.qt-table td.price, .qt-table td.amount { text-align: right; white-space: nowrap; }
.qt-table td.tbd { text-align: center; color: #888; }
.qt-table .qty input {
  width: 84px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  text-align: center;
}
.qt-table td.del button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  font-size: 16px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.qt-table td.del button:hover { background: #e33; color: #fff; }
.qt-table col.no, .qt-table th.no { width: 64px; }
.qt-table th.qty { width: 120px; }
.qt-table th.price, .qt-table th.amount { width: 160px; }
.qt-table th.del { width: 56px; }

/* 담기 피드백 — 토스트 + 새 행 강조 */
.qt-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 16px);
  z-index: 100;
  max-width: min(90vw, 560px);
  padding: 14px 26px;
  border-radius: 100px;
  background: var(--brand);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.qt-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.qt-table tr.is-new { animation: qt-row-flash 1.6s ease; }
@keyframes qt-row-flash {
  0%, 40% { background: var(--brand-tint); }
  100% { background: transparent; }
}

.qt-empty { margin-top: 32px; padding: 56px 0; border-radius: 20px; background: #f6f6f6; font-size: 16px; color: #888; text-align: center; }
.qt-empty[hidden] { display: none; }

/* 합계 */
.qt-sum { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-end; }
.qt-sum[hidden] { display: none; }
.qt-sum dl { width: 380px; }
.qt-sum dl > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 16px;
  color: #555;
}
.qt-sum dl > div.qt-sum__total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 2px solid var(--brand);
  font-size: 20px;
  font-weight: 700;
  color: #000;
}
.qt-sum__total dd { color: var(--brand); }
.qt-sum__tbd { margin-top: 10px; font-size: 14px; color: #888; }
.qt-sum__tbd[hidden] { display: none; }

/* 고객 정보 폼 */
.qt-form { margin-top: 64px; padding: 40px 48px; border-radius: 20px; background: #f6f6f6; }
.qt-form__title { font-size: 24px; font-weight: 700; }
.qt-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-top: 24px;
}
.qt-form__field { display: flex; flex-direction: column; gap: 8px; }
.qt-form__field--full { grid-column: 1 / -1; }
.qt-form__field label { font-size: 14px; font-weight: 600; color: #555; }
.qt-form__field label em { color: #e33; font-style: normal; }
.qt-form__field input,
.qt-form__field textarea {
  padding: 13px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.qt-form__field textarea { resize: vertical; }
.qt-form__actions { margin-top: 32px; text-align: center; }

/* ── 견적서 (view) — 레퍼런스 estimate.html 디자인 ──────────────────────
   지면 1100px 고정(레퍼런스 실측), 모바일은 JS transform scale 로 축소.
   라인 #999 / 라벨 셀 #F9F9F9 / 셀 padding 6px 10px / 합계 셀 30px 10px. */
.qv { margin-top: 80px; }
.qv-wrap { width: 100%; overflow: hidden; }  /* x만 hidden이면 y가 auto로 승격돼 내부 스크롤바가 생긴다 */
.qv-sheet {
  width: 1100px;
  margin: 0 auto;
  padding: 50px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;          /* 레퍼런스 body 0.88rem */
  line-height: 1.5;
  color: #333;
  transform-origin: top left;
}
.qv-sheet table { width: 100%; border-collapse: collapse; }

/* 헤더 — 좌 로고 셀(파랑) / 우 타이틀·공급자 */
.qv-head td { vertical-align: middle; }
.qv-head__logo { padding: 0; }
.qv-head__logo img { display: block; width: 260px; }
.qv-head__co { text-align: right; color: #555; }
.qv-head__co h2 { font-size: 32px; font-weight: 700; color: #000; }
.qv-head__co h4 { margin: 8px 0 4px; font-size: 17px; font-weight: 700; color: #000; }

/* 정보 2열 — 행 라인 #999, padding 5px */
.qv-info { margin-top: 30px; }
.qv-info > tr > td, .qv-info td { vertical-align: top; }
.qv-info__list { width: 90%; }
.qv-info__right .qv-info__list { margin-left: auto; }
.qv-info__list td { border-bottom: 1px solid #999; padding: 10px; }
.qv-info__list td.first { border-top: 1px solid #999; }

/* 품목 표 — th/td #999 라인, 라벨 #F9F9F9 */
.qv-items { margin-top: 30px; }
.qv-items th, .qv-items td {
  border-bottom: 1px solid #999;
  border-right: 1px solid #999;
  padding: 10px;
}
.qv-items th { border-top: 1px solid #999; background-color: #F9F9F9; font-weight: 700; }
.qv-items .fl { border-left: 0; }
.qv-items .lr { border-right: 0; }
.qv-items .c { text-align: center; }
.qv-items .l { text-align: left; }
.qv-items .r { text-align: right; }
.qv-items td.bg { background-color: #F9F9F9; }
.qv-items td.tbd { color: #888; }
.qv-items small { font-size: 12px; color: #888; }

/* 하단 2열 — 좌 안내 / 우 합계 */
.qv-bottom { margin-top: 8px; }
.qv-bottom td { vertical-align: bottom; }
.qv-bottom__notes { padding-top: 30px; vertical-align: top; }
.qv-bottom__notes > b { display: inline-block; margin-bottom: 4px; }
.qv-bottom__notes li { position: relative; padding-left: 10px; font-size: 13px; line-height: 1.7; color: #666; }
.qv-bottom__notes li::before { content: "-"; position: absolute; left: 0; }
.qv-sum { width: 90%; margin-left: auto; margin-top: 30px; }
.qv-sum td { border-top: 1px solid #999; border-bottom: 1px solid #999; padding: 10px; }
.qv-sum td.bg { background-color: #F9F9F9; border-right: 1px solid #999; }
.qv-sum td.r { text-align: right; }
.qv-sum tr.total td.bg { font-size: 18px; }
.qv-sum tr.total td.r { font-size: 16px; }

.qv-hr { margin: 40px 0 0; border: 0; border-top: 1px solid #ccc; }
.qv-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

.qv__empty { padding: 100px 0 0; font-size: 18px; color: #666; text-align: center; }
.qv__empty-back { margin-top: 32px; text-align: center; }
