@charset "UTF-8";

/* fw-deal : 흥정 팝업 (신청 · 승인 · 거절 · 가격 제안) */

/* 내용 칸 — 본문은 스크롤, 바닥 버튼은 아래 고정 */
.fw-deal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
/* 띠(fw-fullBleed)가 본문 좌우 여백 밖 화면 끝까지 */
.fw-deal .fw-sheet__body {
  --fw-gutter: 15px;
}
/* 본문 안쪽 묶음 — 좌우 15 더 들인다 */
.fw-deal__inner {
  padding: 0 15px;
}

/* 신청 팝업 상품 영역 — 사진을 배경으로 깔고 그 위 어두운 상자에 상품 한 줄 */
.fw-deal__hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 200px;
  margin-top: -15px;
  padding: 15px;
  background: var(--gray-200, #F5F5F5) var(--fw-deal-hero-img, none) center / cover no-repeat;
}
/* 어두운 상자는 글자 칸에만 깐다 — 사진 밑에 깔면 흰 테두리 밖으로 비친다 */
.fw-deal__heroCard {
  gap: 0;
}
.fw-deal__heroCard .fw-goodsRow__photo {
  position: relative;
  z-index: 1;
  border-color: rgba(0, 0, 0, .6);
  background: var(--white, #fff);
}
.fw-deal__heroCard .fw-goodsRow__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  margin-left: -6px;
  padding: 0 15px 0 21px;
  border-radius: 0 6px 6px 0;
  background: rgba(0, 0, 0, .6);
}
.fw-deal__heroCard .fw-goodsRow__brand,
.fw-deal__heroCard .fw-goodsRow__name {
  color: var(--white, #fff);
}

/* 가격 위 한 줄 — 이름표 모양에 청록 */
.fw-areaLabel.fw-deal__lead {
  color: var(--primary-300, #169DAB);
}

/* 가격 문장 */
.fw-deal__price {
  margin: 0;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black-1200, #222);
}
.fw-deal__price strong {
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
}
.fw-deal__price + .fw-deal__price {
  margin-top: 5px;
}
.fw-deal__price > strong:first-child {
  font-size: 18px;
}
/* 받은 흥정 가격 — 가장 크게 */
.fw-deal__price .fw-deal__priceMain {
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 22px;
}

/* 받은 신청가 */
.fw-deal__priceSub {
  font-size: 18px;
}
/* 제안가 입력 줄 */
.fw-deal__offerLine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-height: 35px;
}
.fw-deal__offerLine > span {
  white-space: nowrap;
}
/* 제안가 입력 칸 */
.fw-deal__offerInput {
  box-sizing: border-box;
  width: calc(var(--fw-deal-offer-len, 9) * 1ch);
  min-width: 0;
  font-variant-numeric: tabular-nums;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--gray-800, #999);
  border-radius: 0;
  background: none;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 22px;
  line-height: 34px;
  color: var(--black-1200, #222);
}
.fw-deal__offerInput:focus {
  outline: 0;
  border-bottom-color: var(--black-1200, #222);
}
/* 제안 할인율 · 안내 문구 */
.fw-deal__offerRate:not(:empty)::before {
  content: "-";
}
.fw-deal__offer:has(.fw-deal__offerRate:empty) .fw-deal__offerLabel,
.fw-deal__offer:has(.fw-deal__offerRate:not(:empty)) .fw-deal__offerGuide {
  display: none;
}
/* 금액 조절기 */
.fw-deal__stepper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
/* (−) (+) — 누르는 칸 27, 동그라미 21 */
.fw-deal__stepBtn {
  position: relative;
  flex: none;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.fw-deal__stepBtn::before,
.fw-deal__stepBtn::after {
  content: "";
  position: absolute;
  inset: 3px;
}
.fw-deal__stepBtn::before {
  border: 1px solid var(--gray-800, #999);
  border-radius: 50%;
}
.fw-deal__stepBtn::after {
  background: linear-gradient(var(--gray-800, #999), var(--gray-800, #999)) center / 10px 1px no-repeat;
}
.fw-deal__stepBtn--plus::after {
  background:
    linear-gradient(var(--gray-800, #999), var(--gray-800, #999)) center / 10px 1px no-repeat,
    linear-gradient(var(--gray-800, #999), var(--gray-800, #999)) center / 1px 10px no-repeat;
}
/* 단위 고르기 — 오른쪽에 위아래 꺾쇠 */
.fw-deal__unitWrap {
  position: relative;
  flex: none;
  width: 110px;
}
.fw-deal__unitWrap::before,
.fw-deal__unitWrap::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 6px;
  height: 6px;
  border-left: 1px solid var(--gray-800, #999);
  border-top: 1px solid var(--gray-800, #999);
  pointer-events: none;
}
.fw-deal__unitWrap::before {
  top: 8px;
  transform: rotate(45deg);
}
.fw-deal__unitWrap::after {
  bottom: 8px;
  transform: rotate(225deg);
}
.fw-deal__unit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 27px;
  padding: 0 30px 0 18px;
  border: 1px solid var(--gray-800, #999);
  border-radius: 3px;
  background: var(--white, #fff);
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 12px;
  color: var(--black-1200, #222);
  text-align: left;
  cursor: pointer;
}
/* 단위 목록 — 늘 같은 자리. 둘째 줄이 단위 칸과 겹친다 (줄 높이 27 = 단위 칸 높이) */
.fw-deal__unitList {
  position: absolute;
  top: -37px;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid var(--gray-700, #AAA);
  border-radius: 3px;
  background: var(--white, #fff);
  list-style: none;
}
.fw-deal__unitList[hidden] {
  display: none;
}
.fw-deal__unitItem {
  display: block;
  width: 100%;
  height: 27px;
  padding: 0 0 0 10px;
  border: 0;
  background: none;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 12px;
  color: var(--black-1200, #222);
  text-align: left;
  cursor: pointer;
}
.fw-deal__unitItem.is-hover,
.fw-deal__unitItem[aria-selected="true"] {
  background: var(--gray-200, #F5F5F5);
}
.fw-deal__reset {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 11px;
  line-height: 1.6;
  color: var(--gray-900, #8D8D8D);
  text-decoration: underline;
  white-space: nowrap;
  cursor: pointer;
}

/* 가격 아래 점 목록 */
.fw-deal__factsRow {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: 5px;
}
.fw-deal__facts {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 5px;
}
.fw-deal__facts strong {
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
}
.fw-deal__rate {
  color: var(--color-link, #1188EC);
}

/* 최대 혜택 가격 */
.fw-deal__benefit {
  padding: 20px 30px;
  background: var(--gray-200, #F5F5F5);
}
.fw-deal__benefit[hidden],
.fw-deal__benefit:not([hidden]) + .fw-deal__benefitAlt {
  display: none;
}
.fw-deal__benefitHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.fw-deal__benefitTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black-1200, #222);
}
.fw-deal__benefitTitle::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("//www.feelway.com/tmp_assets/icons/recent/common/icon/ic-won-fill.svg") no-repeat center / 16px 16px;
}
.fw-deal__benefitDesc {
  margin: 0;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--black-1200, #222);
}
.fw-deal__benefitTitle + .fw-deal__benefitDesc {
  padding-left: 21px;
}
.fw-deal__benefitSum {
  text-align: right;
}
.fw-deal__benefitPrice {
  margin: 0;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black-1200, #222);
}
.fw-deal__benefitPrice strong {
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
}
/* 신청 팝업은 최대 혜택 금액을 강조색으로 */
.fw-deal__benefitPrice--point {
  color: var(--color-warning, #ED4E2B);
}
/* 흥정 가격을 아직 안 정했을 때 금액 · 할인율 자리의 안내 문구 */
.fw-deal__benefitSum--unset .fw-deal__benefitPrice,
.fw-deal__benefitSum--unset .fw-deal__benefitDesc {
  color: var(--gray-800, #999);
}
.fw-deal__benefitList {
  margin: 15px 0 0;
  padding: 10px 15px 10px 10px;
  border-radius: 6px;
  background: var(--white, #fff);
}
.fw-deal__benefitList li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.fw-deal__benefitList li + li {
  margin-top: 5px;
}
/* 메시지 */
.fw-deal__msgTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-family: 'Pretendard SemiBold';
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black-1200, #222);
}
/* 제목 앞 말풍선 */
.fw-deal__msgTitle::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("//www.feelway.com/tmp_assets/icons/recent/common/icon/ic-message-fill.svg") no-repeat center / 16px 16px;
}
/* 메시지 설명 */
.fw-deal__msgDesc {
  margin: 0 0 15px;
  padding-left: 21px;
  font-family: 'Pretendard';
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: var(--black-1200, #222);
}
.fw-deal__msgPicks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}
.fw-deal__msgPick {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  word-break: keep-all;
}
/* 가격 제안은 예시 문구를 폭 전체로 */
.fw-deal__msgPicks--full .fw-deal__msgPick {
  width: 100%;
}
.fw-deal__msgPickHead {
  color: var(--primary-300, #169DAB);
}

/* 거절 화면 바닥의 가격 제안하기 */
.fw-deal__offerBtn {
  background: var(--color-link, #1188EC);
}
