/* 주문서 전용 */
.address-field { display: flex; flex-direction: column; gap: 8px; }

.pay-method { display: flex; justify-content: space-between; align-items: baseline; }
.pay-method__value { font-size: var(--fs-body2); font-weight: 600; }

/* 주문 상품 */
.order-list { padding: calc(24 * var(--u)) calc(20 * var(--u)) 0; }
.order-list .section-title { margin-bottom: 8px; }
.order-item { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 8px 0; }
.order-item__thumb { flex-shrink: 0; width: calc(64 * var(--u)); height: calc(64 * var(--u)); }
.order-item .num-tag { left: 4px; top: 4px; }
.order-item__body { display: flex; flex-direction: column; flex-grow: 1; gap: 2px; min-width: 0; }
.order-item__name { overflow: hidden; font-size: var(--fs-body3); line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.order-item__meta { font-size: var(--fs-caption1); font-weight: 400; color: var(--grey-400); }
.order-item__price { font-size: var(--fs-body3); font-weight: 600; }

/* 약관 동의 */
.agreement-list { display: flex; flex-direction: column; padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(32 * var(--u)); }
.agreement-list input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--grey-900); }
.agreement-list__all { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: var(--fs-body1); font-weight: 600; }
.agreement-list__row { display: flex; align-items: center; }
.agreement-list__item { display: flex; flex-grow: 1; align-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-body3); font-weight: 400; color: var(--grey-500); }
.agreement-list__view { margin-right: -12px; color: var(--grey-400); }
/* 동의 칸이 없으면(consent_required=false) 빈 여백과 선을 없앤다. 접수 오류 글 자리는 남긴다. */
.agreement-list:not(:has(input)), .checkout-aside .agreement-list:not(:has(input)) { padding-top: 0; padding-bottom: 0; box-shadow: none; }

/* 배송 메시지 셀렉트: 기존 .text-field__control에 화살표와 기본 모양 제거만 더한다 */
.text-field__control--select {
  padding-right: calc(44 * var(--u));
  appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234B5059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right calc(16 * var(--u)) center / 20px;
}
.text-field__control--select.is-empty { color: var(--grey-400); }

/* 웹용 래퍼: 모바일에서는 레이아웃에 영향이 없게 둔다 */
.checkout-main, .checkout-aside, .checkout-fields-row, .checkout-pay-fields { display: contents; }

/* ===== 웹 (600px 이상): 왼쪽 입력, 오른쪽 주문 요약 카드 (공통은 common.css의 .web-*) ===== */
@media (min-width: 600px) {
  .checkout-main { display: flex; flex-direction: column; flex: 999 1 560px; min-width: 0; }
  .checkout-main .band { display: none; }
  .checkout-main .section { padding: 24px 0 32px; box-shadow: inset 0 1px 0 var(--grey-900); }
  .checkout-main .section ~ .section { box-shadow: inset 0 1px 0 var(--grey-200); }
  .checkout-heading { font-size: 18px; }
  .checkout-main .section > .checkout-heading { margin-bottom: 4px; }
  .checkout-fields-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
  .checkout-pay-fields { display: flex; flex-direction: column; gap: 16px; width: 100%; }
  .checkout-aside { display: block; flex: 1 1 360px; }
  .checkout-aside .agreement-list { box-shadow: inset 0 1px 0 var(--grey-200); }
}
