@charset "utf-8";

/* =============================================================================
 * B2C 주문 페이지 스타일 (checkout.php, complete.php)
 * ============================================================================= */

/* ---------- checkout.php ---------- */
.order_area { max-width: 1200px; margin: 0 auto; padding: 0 0 100px; }
.order_area .sub_title3 { font-size: 24px; font-weight: 700; padding: 30px 0 20px; border-bottom: 2px solid #333; }
.order_area .section { margin-top: 40px; }
.order_area .section_title { font-size: 18px; font-weight: 600; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #ddd; }
.order_area .order_layout { display: flex; gap: 40px; margin-top: 20px; }
.order_area .order_layout .left { flex: 1; min-width: 0; }
.order_area .order_layout .right { width: 340px; flex-shrink: 0; }

.order_items { border-top: 1px solid #333; }
.order_items li { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #eee; align-items: center; }
.order_items .thumb { width: 100px; height: 100px; background-size: cover; background-position: center; background-color: #f5f5f5; flex-shrink: 0; }
.order_items .info { flex: 1; min-width: 0; }
.order_items .info .brand { display: inline-block; font-size: 12px; color: #888; }
.order_items .info .name { display: block; font-size: 15px; font-weight: 500; margin-top: 4px; word-break: keep-all; }
.order_items .info .qty { display: block; font-size: 13px; color: #666; margin-top: 8px; }
.order_items .price { text-align: right; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.order_items .price .rate { display: block; color: #e33; font-size: 13px; font-weight: 700; }

.order_form_tbl { width: 100%; border-top: 1px solid #333; }
.order_form_tbl tr { border-bottom: 1px solid #eee; }
.order_form_tbl th { text-align: left; padding: 15px 10px 15px 0; width: 140px; font-size: 14px; color: #555; vertical-align: middle; }
.order_form_tbl td { padding: 10px 0; }
.order_form_tbl input[type="text"],
.order_form_tbl input[type="email"],
.order_form_tbl select,
.order_form_tbl textarea {
	width: 100%; padding: 8px 10px; border: 1px solid #ccc; font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.order_form_tbl .post_row { display: flex; gap: 8px; }
.order_form_tbl .post_row input { width: 120px; }
.order_form_tbl .post_row button { padding: 0 14px; border: 1px solid #333; background: #fff; font-size: 13px; cursor: pointer; }
.order_form_tbl .addr_row { margin-top: 6px; }
.order_form_tbl .same_chk { margin-bottom: 10px; display: block; }

/* 쿠폰 선택 영역 */
.coupon_select_area { border-top: 1px solid #333; padding-top: 5px; }
.coupon_option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ddd; cursor: pointer; margin-top: 8px; transition: border-color .15s; }
.coupon_option:hover { border-color: #999; }
.coupon_option input[type="radio"] { flex-shrink: 0; accent-color: #333; width: 16px; height: 16px; cursor: pointer; }
.coupon_option.on { border-color: #333; background: #f7f7f7; font-weight: 600; }
.coupon_opt_label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.coupon_nm { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon_benefit { font-size: 13px; color: #e33; font-weight: 700; white-space: nowrap; }
.coupon_exp { font-size: 12px; color: #999; white-space: nowrap; }

.pay_method_list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay_method_list label { display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid #ddd; cursor: pointer; font-size: 14px; transition: all .15s; }
.pay_method_list label.on { border-color: #333; background: #f7f7f7; font-weight: 600; }
.pay_method_list input { display: none; }
.pay_method_list .full { grid-column: 1 / -1; }
.pay_method_guide { background: #f7f7f7; padding: 14px; margin-top: 12px; font-size: 13px; color: #555; line-height: 1.6; }
.pay_method_guide strong { color: #333; }

.order_summary { border: 1px solid #333; padding: 20px; position: sticky; top: 20px; }
.order_summary .title { font-size: 18px; font-weight: 700; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #ddd; }
.order_summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.order_summary .row.payment { border-top: 1px solid #333; margin-top: 10px; padding-top: 15px; font-size: 16px; font-weight: 700; }
.order_summary .row.payment .amt { color: #e33; font-size: 20px; }
.order_summary .agree { margin-top: 15px; font-size: 13px; color: #666; }
.order_summary .agree label { display: block; padding: 4px 0; }
.order_summary .pay_btn { width: 100%; padding: 14px; background: #333; color: #fff; border: none; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 15px; }
.order_summary .pay_btn:disabled { background: #aaa; cursor: not-allowed; }
.order_summary .cancel_btn { width: 100%; padding: 12px; background: #fff; color: #333; border: 1px solid #ccc; font-size: 14px; cursor: pointer; margin-top: 8px; }

@media (max-width: 900px) {
	.order_area { padding: 0 15px 80px; }
	.order_area .order_layout { flex-direction: column; gap: 30px; }
	.order_area .order_layout .right { width: 100%; }
	.order_summary { position: static; }
	.order_form_tbl th { display: block; width: 100%; padding: 12px 0 5px; }
	.order_form_tbl td { display: block; padding-bottom: 12px; }
}

/* ---------- complete.php ---------- */
.complete_area { max-width: 720px; margin: 0 auto; padding: 60px 20px 100px; text-align: center; }
.complete_area .icon { width: 80px; height: 80px; border-radius: 50%; background: #333; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.complete_area .icon::after { content: ''; width: 28px; height: 14px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg) translate(4px, -4px); }
.complete_area .title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.complete_area .desc { color: #666; font-size: 15px; margin-bottom: 30px; }
.complete_area .order_num_box { background: #f7f7f7; padding: 18px; font-size: 16px; margin-bottom: 30px; }
.complete_area .order_num_box strong { font-weight: 700; color: #333; margin-left: 10px; letter-spacing: 0.5px; }

.complete_area table { width: 100%; border-top: 1px solid #333; text-align: left; margin-bottom: 30px; }
.complete_area table th { width: 140px; padding: 14px 10px; background: #fafafa; font-size: 14px; color: #555; border-bottom: 1px solid #eee; vertical-align: top; }
.complete_area table td { padding: 14px 15px; font-size: 14px; border-bottom: 1px solid #eee; }
.complete_area .items_box li { padding: 6px 0; font-size: 14px; }
.complete_area .total_amt { font-size: 20px; font-weight: 700; color: #e33; }

.complete_area .bank_guide { background: #fff8e7; border: 1px solid #f0d889; padding: 16px; text-align: left; margin-bottom: 30px; font-size: 14px; line-height: 1.7; }
.complete_area .bank_guide strong { color: #c48a00; }

.complete_area .btns { display: flex; gap: 10px; justify-content: center; }
.complete_area .btns button { padding: 14px 30px; font-size: 15px; cursor: pointer; }
.complete_area .btns .solid { background: #333; color: #fff; border: 1px solid #333; }
.complete_area .btns .line  { background: #fff; color: #333; border: 1px solid #333; }

@media (max-width: 600px) {
	.complete_area table th { display: block; width: 100%; padding: 10px; }
	.complete_area table td { display: block; padding: 10px; border-bottom: none; }
	.complete_area table tr { border-bottom: 1px solid #eee; display: block; }
	.complete_area .btns { flex-direction: column; }
}
