<div class="foldGroup">
	<ul>
		<li class="fold_gift">
			<!-- 선물하기주문내역 --> 
			<div class="fold_head">
				<a href="javascript:void(0)">
					<div>
						<div class="fold_tit">
							<th:block th:unless="${order.giftPackYn} == 'N'" >
								<span pan="">선물하기 주문내역</span>
							</th:block>
							<th:block th:if="${order.giftPackYn} == 'N'" >
								<span>주문내역</span>
							</th:block>
						</div>
						<div class="data">
							<em class="c_primary" th:text="${goodsTotCnt}"></em>개의 상품
						</div>
					</div>
				</a>
			</div>
			<!-- //선물하기주문내역 -->
			 
			<div class="fold_cont" style="display: none;">
				<div class="od_item_box">	
					<th:block th:each="delvAllCart, i : ${delvAllCartList}">
						<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
							<div class="part_goods">
								<th:block th:if="${order.giftPackYn} == 'N'" >
									<th:block th:if="${i.index} == 0">
										<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
											<div class="goods_top">
												<div class="goods_date">STYLE24 총알배송<span class="date">오늘 자정까지 도착</span></div>
											</div>
										</th:block>
									</th:block>
									<th:block th:if="${i.index} == 1">
										<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
											<div class="goods_top">
												<div class="goods_date">STYLE24 일반배송</div>
											</div>
										</th:block>
									</th:block>
									<th:block th:if="${i.index} == 2">
										<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
											<div class="goods_top">
												<div class="goods_date">업체직배송</div>
											</div>
										</th:block>
									</th:block>
									<th:block th:if="${i.index} == 3">
										<th:block th:if="${delvAllCart != null and #lists.size(delvAllCart) > 0}">
											<div class="goods_top">
												<div class="goods_date">예약배송</div>
											</div>
										</th:block>
									</th:block>
								</th:block>
								<!-- 주문 접수 -->
								<th:block th:each="goods, i : ${delvAllCart}" th:with="imageUrl=${@environment.getProperty('upload.goods.view')}">
									<div class="goods_section">
										<div class="goods_detail">
											<a href="">
												<div class="thumb_box">
													<img th:src="${imageUrl + '/' + goods.sysImgNm}" src="/" width="100%" alt="">
												</div>
												<div class="info_box">
													<div class="od_name">
														<div class="brand"><span th:text="${goods.brandGroupNm}"></span></div>
														<div class="name" th:text="${goods.goodsNm}"></div>
													</div>
													<div class="od_opt" >
														<div class="option" th:each="colorNm, index : ${goods.colorNmArr}">
															<th:block th:if="${goods.goodsType} == 'G056_S'">
																<em th:text="${goods.itemNmArr[index.index]}"></em>
																<em th:text="${colorNm}"></em>
																<em th:text="${goods.optCd2Arr[index.index]}"></em>
															</th:block>
															<th:block th:unless="${goods.goodsType} == 'G056_S'">
																<em th:text="${colorNm}"></em>
																<em th:text="${goods.optCd2Arr[index.index]}"></em>
															</th:block>
														</div>
													</div>
													<!-- 회원인경우 노출 -->
													<th:block th:if="${isLogin}">
														<div class="od_point">
															<p class="point">
																<input type="hidden" name="cartSq" th:value="${goods.cartSq}">
																<span class="orderListSavePntDcAmt" th:text="${#numbers.formatInteger(goods.savePntAmt, 1, 'COMMA')}"></span>P 적립예정
															</p>
														</div>
													</th:block>
												</div>
											</a>
										</div>
										<div class="od_calc">
											<p class="count">수량 <em th:text="${goods.goodsQty}"></em>개</p>
											<p class="price">
												<!-- 다다익선할인금액없으면 즉시할인가 까지만 표현 -->
												<th:block th:if="${goods.tmtbDcAmt} < 1">
													<span class="selling_price"><em th:text="${#numbers.formatInteger((goods.currPrice + goods.optAddPrice) * goods.goodsQty, 1, 'COMMA')}"></em>원</span>
												</th:block>
												<!-- 다다익선할인금액있으면 즉시할인가, 다다익선할인가 표현 -->
												<th:block th:if="${goods.tmtbDcAmt} > 0">
													<span class="sale_price"><del><em th:text="${#numbers.formatInteger((goods.currPrice + goods.optAddPrice) * goods.goodsQty, 1, 'COMMA')}"></em>원</del></span>
													<span class="selling_price"><em th:text="${#numbers.formatInteger(goods.tmtbDcAmt, 1, 'COMMA')}"></em>원</span>
												</th:block>
											</p>
										</div>
										<th:block th:if="${goods.delvResDt}">
											<div class="goods_txt reserv">
												<span th:text="${goods.delvResDt}"></span> 배송예정
											</div>
										</th:block>
									</div>
								</th:block>
							</div>
						</div>
					</th:block>
				</th:block>
				
				<div class="od_amount_box">
					<dl>
						<div>
							<dt>상품금액</dt>
							<dd><em id="orgGoodsSumAmt" th:text="${#numbers.formatInteger(listSumAmt, 1, 'COMMA')}"></em>원</dd>
						</div>
						<div>
							<dt>배송비</dt>
							<dd><em id="delvSumAmt" th:text="${#numbers.formatInteger(sumDelvFee, 1, 'COMMA')}"></em>원</dd>
						</div>
						<div>
							<dt>상품할인</dt>
							<th:block th:if="${goodsDcSumAmt} > 0">
								<dd><span class="disc_amount" th:text="|-${#numbers.formatInteger(goodsDcSumAmt, 1, 'COMMA')}원|"></span></dd>
							</th:block>
							<th:block th:if="${goodsDcSumAmt} < 1">
								<dd><span class="disc_amount" th:text="|${#numbers.formatInteger(goodsDcSumAmt, 1, 'COMMA')}원|"></span></dd>
							</th:block>
						</div>
						<div>
							<dt>즉시할인</dt>
							<th:block th:if="${cpn1DcSumAmt} > 0">
								<dd><span class="disc_amount" id="cpn1DcSumAmt" th:text="|-${#numbers.formatInteger(cpn1DcSumAmt, 1, 'COMMA')}원|"></span></dd>
							</th:block>
							<th:block th:if="${cpn1DcSumAmt} < 1">
								<dd><span class="disc_amount" id="cpn1DcSumAmt" th:text="|${#numbers.formatInteger(cpn1DcSumAmt, 1, 'COMMA')}원|"></span></dd>
							</th:block>
						</div>
						
						<!-- 회원인경우 노출 -->
						<th:block th:if="${isLogin}">
							<div>
								<dt>다다익선할인</dt>
								<th:block th:if="${tmtbDcSumAmt} > 0">
									<dd><span class="disc_amount" id="tmtbDcSumAmt" th:text="|-${#numbers.formatInteger(tmtbDcSumAmt, 1, 'COMMA')}원|"></span></dd>
								</th:block>
								<th:block th:if="${tmtbDcSumAmt} < 1">
									<dd><span class="disc_amount" id="tmtbDcSumAmt" th:text="|${#numbers.formatInteger(tmtbDcSumAmt, 1, 'COMMA')}원|"></span></dd>
								</th:block>
							</div>
							<div>
								<dt>쿠폰할인</dt>
								<dd>
									<span class="disc_amount"><em id="couponDcSumAmt"></em>원</span>
								</dd>
							</div>
							<div>
								<dt>선포인트 사용</dt>
								<th:block th:if="${prePntDcAmt} > 0">
									<dd><span class="disc_amount" id="prePntDcAmt" th:text="|-${#numbers.formatInteger(prePntDcAmt, 1, 'COMMA')}원|"></span></dd>
								</th:block>
								<th:block th:if="${prePntDcAmt} < 1">
									<dd><span class="disc_amount" id="prePntDcAmt" th:text="|${#numbers.formatInteger(prePntDcAmt, 1, 'COMMA')}원|"></span></dd>
								</th:block>
							</div>
							<div>
								<dt>포인트 사용</dt>
								<dd>
									<span class="disc_amount"><em id="pntDcAmt"></em>P</span>
								</dd>
							</div>
							<div>
								<dt>상품권 사용</dt>
								<dd>
									<span class="disc_amount"><em id="gfcdUseAmt"></em>원</span>
								</dd>
							</div>
						</th:block>
						<!-- //회원인경우 노출 -->
					</dl>
				</div>
				<div class="totalprice_box">
					<dl>
						<dt>총 결제 예정 금액</dt>
						<dd data-weight="price" data-font="lato"><span id="realOrdAmt"></span>원</dd>
					</dl>
					<p class="info_point">
						<th:blcok th:if="${isLogin}">
							<span span class="save_point" id="savePntSumAmt" th:text="|${#numbers.formatInteger(savePntSumAmt, 1, 'COMMA')} P|"></span> 적립예정
						</th:blcok>
						<th:blcok th:if="!${isLogin}">
							회원가입 후 구매하면&nbsp;&nbsp;<span span class="save_point" id="savePntSumAmt" th:text="|${#numbers.formatInteger(savePntSumAmt, 1, 'COMMA')} P|"></span> 적립예정
						</th:blcok>
					</p>
					<p class="info_delivery">총 <span id="delvFeeCdCnt" th:text="${delvFeeCdCnt}"></span>건으로 나뉘어 배송 예정</p>
				</div>
			</div> 
		</li>
	</ul>
</div>
<input type="hidden" name="delvFeeCdCnt" th:value="${delvFeeCdCnt}"/>
<input type="hidden" name="shotCnt" th:value="${shotCnt}"/>
<input type="hidden" name="wmsCnt" 	th:value="${wmsCnt}"/>

