/**
 * Renewal — 견적(get a quote) 페이지 (Figma 32:42557, 26.05.22 최종본)
 * templates/{kor,eng}/order/quote.html
 * 레이아웃·옵션 타일은 legacy style.css(.order_wrap …) 를 그대로 쓰고, Figma 와 다른 부분만 보정한다.
 */

/* ── Figma 에 선택 UI 가 없는 값(계정 구간·결제 방식): DOM 에만 두고 숨김 ── */
body.renewal .qr-hidden-fields,
body.renewal .order_wrap .order_data .capsule_data,
body.renewal .order_wrap .order_data .option_data {
  display: none !important;
}

/* ── 옵션 타일 ───────────────────────────── */
/* flex 안의 grid 가 이미지 원본 폭에 끌려가지 않게 남은 폭을 꽉 채움 */
body.renewal .order_wrap .list_item .item {
  flex: 1 1 0;
  min-width: 0;
}

body.renewal .order_wrap .list_item .item.exterior {
  grid-template-columns: repeat(3, 1fr);
}

body.renewal .order_wrap .list_item .item.exterior-color {
  grid-template-columns: repeat(2, 1fr);
}

body.renewal .order_wrap .list_item .item.floor li,
body.renewal .order_wrap .list_item .item.wall li,
body.renewal .order_wrap .list_item .item.backseat li,
body.renewal .order_wrap .list_item .item.exterior li,
body.renewal .order_wrap .list_item .item.exterior-color li {
  height: 160px;
}

body.renewal .order_wrap .list_item .item li > img {
  display: block;
}

body.renewal .order_wrap .list_item .item li p {
  font-weight: 600;
  line-height: 1.3;
}

/* "Other" 타일 — Figma #DEDDDD 단색 */
body.renewal .order_wrap .list_item .item li.qr-other {
  border-radius: 10px;
  background: #dedddd;
}

/* 외장/외장 컬러 미리보기는 배경 없는 제품 컷 */
body.renewal .order_wrap .list_item .img.qr-preview-plain {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.renewal .order_wrap .list_item .img.qr-preview-plain img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* IoT: 공기질 센서 타일은 흰 배경 + 연한 테두리, 제품 컷이 잘리지 않게 */
body.renewal .order_wrap .list_item .item.iot-system li {
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
}

body.renewal .order_wrap .list_item .item.iot-system li.qr-iot-light {
  border: 1px solid #e1e1e1;
  background: #fff;
}

body.renewal .order_wrap .list_item .item.iot-system li.qr-iot-light.active {
  border-color: #000;
}

body.renewal .order_wrap .list_item .item.iot-system li.qr-iot-light img {
  object-fit: cover;
  padding: 28px 0 0;
  box-sizing: border-box;
}

body.renewal .order_wrap .iot_list .txt {
  margin: 20px 0 40px;
  padding: 0 12px;
  border-radius: 5px;
  background: #fbfbfb;
  box-shadow: 0 0 2.45px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  color: #000;
}

/* ── 플랜 ───────────────────────────────── */
body.renewal .order_wrap .list_item .item.plan .recom::before {
  content: 'recommended';
}

body.renewal .qr-plan > ul.dot {
  gap: 5px;
  font-weight: 400;
}

body.renewal .qr-plan > ul.dot > li {
  width: 50%;
  padding: 10px 6px 0;
  color: #000;
}

body.renewal .qr-plan .qr-plan__price {
  font-size: 15px;
  font-weight: 700;
  line-height: 32px;
}

body.renewal .qr-plan .qr-plan__sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

body.renewal .qr-plan .qr-plan__fine {
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: #6b6b6b;
}

body.renewal .qr-plan .qr-plan__list {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: #000;
}

body.renewal .qr-plan .qr-plan__list + .qr-plan__list {
  margin-top: 22px;
}

body.renewal .qr-plan .qr-plan__list--muted {
  color: #505050;
}

/* legacy .plan_txt 규칙(li width 50%·text-indent·점) 무력화 후 Figma 불릿으로 */
body.renewal .qr-plan .qr-plan__list li {
  position: relative;
  width: auto;
  margin: 0;
  padding-left: 12px;
  text-indent: 0;
  color: inherit;
  letter-spacing: 0;
}

body.renewal .qr-plan .qr-plan__list li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: none;
}

body.renewal .qr-plan .qr-plan__list ul {
  margin: 0;
  padding-left: 12px;
  font-weight: 500;
}

body.renewal .qr-plan .qr-plan__note {
  margin: 24px 0 40px;
  padding: 10px 12px;
  border-radius: 5px;
  background: #fbfbfb;
  box-shadow: 0 0 2.45px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  color: #000;
}

/* ── 우측 주문 패널: 예상 결제액 / 토스 버튼 ── */
body.renewal #quotePricing.quote-pricing {
  margin: 0 0 20px;
  padding: 20px;
  border: 0;
  border-radius: 15px;
  background: #f2f2f4;
  color: #3d3e49;
}

body.renewal #quotePricing .qp-title {
  font-size: 14px;
  font-weight: 600;
  color: #3d3e49;
}

body.renewal #quotePricing .qp-row-main strong {
  color: #2c2c2c;
}

body.renewal #quotePricing .qp-divider {
  background: #dcdce2;
}

body.renewal #quotePricing .qp-formula {
  border-color: #dcdce2;
}

body.renewal .order_form .qr-toss {
  margin-top: 12px;
}

body.renewal .order_form .qr-toss button {
  background: #3182f6;
  color: #fff;
}

@media (max-width: 768px) {
  body.renewal .qr-plan > ul.dot > li {
    width: 100%;
  }

  body.renewal .order_wrap .list_item .item.floor li,
  body.renewal .order_wrap .list_item .item.wall li,
  body.renewal .order_wrap .list_item .item.backseat li,
  body.renewal .order_wrap .list_item .item.exterior li,
  body.renewal .order_wrap .list_item .item.exterior-color li {
    height: 120px;
  }

  body.renewal .order_wrap .list_item .item.iot-system li {
    height: 110px;
  }

  body.renewal .order_wrap .list_item .item.iot-system li.qr-iot-light img {
    padding: 24px 0 0;
  }

  body.renewal .order_wrap .iot_list .txt,
  body.renewal .qr-plan .qr-plan__note {
    font-size: 13px;
    line-height: 20px;
    padding: 10px 12px;
  }
}
