@charset "UTF-8";
/* 장바구니 (cart/cartList.jsp) · 결제 (cart/checkout.jsp) · 주문 완료 (cart/orderComplete.jsp)
   Apple 장바구니(https://www.apple.com/kr/shop/bag) 화면 구성에 맞춘다 */

.agn-bag { max-width: 980px; margin: 0 auto; padding: 0 22px; color: #1d1d1f;
  font-family: "SF Pro KR", "SF Pro Text", "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif; }
body.agn-cart-has-items .rs-bagempty { display: none; }

.agn-bag-head { padding: 80px 0 56px; text-align: center; border-bottom: 1px solid #d2d2d7; }
.agn-bag-head h1 { margin: 0 0 14px; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.003em; }
.agn-bag-head p { margin: 0 0 30px; font-size: 17px; }

.agn-bag-checkout { display: inline-block; box-sizing: border-box; border-radius: 12px; background: #0071e3; color: #fff !important;
  font-size: 17px; font-weight: 400; text-align: center; text-decoration: none !important; }
.agn-bag-checkout:hover { background: #0077ed; }
.agn-bag-checkout-top { min-width: 300px; padding: 11px 28px; border-radius: 8px; }
.agn-bag-checkout-bottom { width: 360px; max-width: 100%; padding: 16px 28px; font-size: 17px; font-weight: 600; }

.agn-bag-items { margin: 0; padding: 0; list-style: none; }
.agn-bag-item { display: grid; grid-template-columns: 200px 1fr; gap: 0 32px; padding: 56px 0 50px; border-bottom: 1px solid #d2d2d7; }
.agn-bag-item-image { display: flex; justify-content: center; }
.agn-bag-item-image img { width: 160px; height: auto; max-height: 200px; object-fit: contain; }
.agn-bag-item-row { display: grid; grid-template-columns: 1fr 120px 220px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid #d2d2d7; }
/* 상품명(굵게) 아래 옵션: 작고 굵지 않은 글씨로 한 줄씩 */
.agn-bag-item-head { min-width: 0; padding-right: 20px; }
.agn-bag-item-opts { margin: 8px 0 0; padding: 0; list-style: none; }
.agn-bag-item-opts li { font-size: 14px; font-weight: 400; line-height: 1.5; color: #6e6e73; }
.agn-bag-item-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.17; }
.agn-bag-qty select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center/11px;
  padding: 0 20px 0 4px; font: inherit; font-size: 24px; font-weight: 600; color: #1d1d1f; cursor: pointer; }
.agn-bag-item-price { text-align: right; }
.agn-bag-price { margin: 0 0 14px; font-size: 24px; font-weight: 600; }
.agn-bag-item-price form { margin: 0 0 10px; }
.agn-bag-link { padding: 0; border: 0; background: none; color: #0066cc; font: inherit; font-size: 17px; text-decoration: underline; cursor: pointer; }
.agn-bag-link:hover { color: #0077ed; }
.agn-bag-note { margin: 14px 0 0; font-size: 14px; color: #6e6e73; }

.agn-bag-applecare { display: grid; grid-template-columns: 22px 1fr auto; gap: 0 10px; padding: 24px 0 26px; border-bottom: 1px solid #d2d2d7; }
.agn-bag-ac-icon svg { width: 20px; height: 20px; margin-top: 2px; }
.agn-bag-applecare h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.agn-bag-applecare ul { margin: 0 0 10px 20px; padding: 0; font-size: 14px; line-height: 1.7; }
.agn-bag-more { font-size: 14px; color: #0066cc; text-decoration: none; }
.agn-bag-ac-added { margin: 0; font-size: 14px; color: #6e6e73; }

.agn-bag-delivery { padding-top: 24px; font-size: 14px; }
.agn-bag-delivery-q { margin: 0 0 14px; font-weight: 600; }
.agn-bag-zip-toggle { padding: 0; border: 0; background: none; color: #0066cc; font: inherit; font-weight: 400; cursor: pointer; }
.agn-bag-zip { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.agn-bag-zip[hidden] { display: none; }
.agn-bag-zip input { width: 120px; padding: 8px 10px; border: 1px solid #d2d2d7; border-radius: 8px; font: inherit; }
.agn-bag-zip button { padding: 8px 14px; border: 0; border-radius: 8px; background: #e8e8ed; font: inherit; cursor: pointer; }
.agn-bag-zip-result { color: #6e6e73; }
.agn-bag-delivery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agn-bag-delivery-row p { display: flex; align-items: center; gap: 8px; margin: 0; }
.agn-bag-delivery-row svg { width: 20px; height: 16px; flex: none; }

.agn-bag-summary { margin-left: 232px; padding: 40px 0 80px; }
.agn-bag-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 17px; }
.agn-bag-summary-total { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 18px; padding-top: 24px; border-top: 1px solid #d2d2d7; font-size: 24px; font-weight: 600; }
.agn-bag-summary-total strong { display: block; text-align: right; }
.agn-bag-summary-total small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: #6e6e73; text-align: right; }
.agn-bag-summary-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 40px; }
.agn-bag-continue { font-size: 17px; color: #0066cc; text-decoration: none; }

.agn-bag-saved { padding-bottom: 60px; }
.agn-bag-saved > h2 { margin: 60px 0 0; padding-bottom: 20px; font-size: 28px; border-bottom: 1px solid #d2d2d7; }
.agn-bag-saved .agn-bag-item-row { grid-template-columns: 1fr 220px; border-bottom: 0; padding-bottom: 0; }

/* 결제 화면 */
.agn-checkout { max-width: 980px; margin: 0 auto; padding: 60px 22px 100px; color: #1d1d1f;
  font-family: "SF Pro KR", "SF Pro Text", "Apple SD Gothic Neo", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif; }
.agn-checkout h1 { margin: 0 0 40px; font-size: 40px; font-weight: 600; }
.agn-checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.agn-checkout h2 { margin: 0 0 18px; font-size: 24px; font-weight: 600; }
.agn-checkout fieldset { margin: 0 0 44px; padding: 0; border: 0; }
.agn-field { display: block; margin-bottom: 12px; }
.agn-field span { display: block; margin-bottom: 6px; font-size: 14px; color: #6e6e73; }
.agn-field input { box-sizing: border-box; width: 100%; height: 50px; padding: 0 14px; border: 1px solid #86868b; border-radius: 12px; font: inherit; font-size: 17px; }
.agn-field input:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,125,250,.2); }
.agn-field.is-error input { border-color: #e30000; background: #fff2f4; }
.agn-field-error { display: none; margin-top: 6px; font-size: 13px; color: #e30000; }
.agn-field.is-error .agn-field-error { display: block; }
.agn-field-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.agn-pay { display: grid; gap: 12px; }
.agn-pay label { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid #86868b; border-radius: 12px; font-size: 17px; cursor: pointer; }
.agn-pay label:has(input:checked) { border: 2px solid #0071e3; padding: 17px; }
.agn-pay small { margin-left: auto; color: #6e6e73; font-size: 13px; }
/* 카카오페이·토스페이 로고는 글씨(17px) 높이에 맞춘다 */
.agn-pay-kakao img, .agn-pay-toss img { display: block; flex: 0 0 auto; width: auto; height: 20px; max-width: 64px; object-fit: contain; }
/* 신용카드 또는 체크카드 → 결제대행사 선택 (가로로 나란히) */
.agn-pay-card { display: grid; gap: 10px; }
.agn-pg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 28px; }
.agn-pg[hidden] { display: none; }
.agn-pay .agn-pg label { justify-content: center; gap: 10px; padding: 14px; font-size: 15px; }
.agn-pay .agn-pg label:has(input:checked) { padding: 13px; }
.agn-pg-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: -.02em; }
.agn-pg-inicis { background: #4b2a88; }
.agn-pg-kcp { background: #1aa0ff; }
.agn-pg .agn-field-error { grid-column: 1 / -1; display: none; margin: 0; color: #e30000; font-size: 12px; font-style: normal; }
.agn-pg.is-error .agn-field-error { display: block; }
.agn-pg.is-error label { border-color: #e30000; }
.agn-pay-message { margin: 14px 0 0; color: #e30000; font-size: 14px; }
.agn-checkout-submit:disabled { background: #a7c8ef; cursor: default; }
.agn-checkout-summary { position: sticky; top: 70px; padding: 26px; border-radius: 18px; background: #f5f5f7; }
.agn-checkout-summary ol { margin: 0 0 18px; padding: 0; list-style: none; }
.agn-checkout-summary li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d2d2d7; font-size: 14px; }
.agn-checkout-summary li img { width: 56px; height: 56px; object-fit: contain; }
.agn-checkout-summary .agn-sum-price { display: block; margin-top: 4px; font-weight: 600; }
.agn-checkout-summary .agn-bag-summary-row { font-size: 14px; }
.agn-checkout-summary .agn-bag-summary-total { font-size: 20px; }
.agn-checkout-submit { width: 100%; margin-top: 22px; padding: 16px; border: 0; border-radius: 12px; background: #0071e3; color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.agn-checkout-submit:hover { background: #0077ed; }
.agn-checkout-back { display: inline-block; margin-top: 16px; color: #0066cc; font-size: 14px; text-decoration: none; }
.agn-checkout-alert { margin: 0 0 30px; padding: 14px 18px; border-radius: 12px; background: #fff2f4; color: #e30000; font-size: 14px; }
.agn-done { text-align: center; padding-top: 100px; }
.agn-done h1 { margin-bottom: 14px; }
.agn-done p { font-size: 17px; color: #6e6e73; }
.agn-done .agn-done-box { max-width: 520px; margin: 40px auto; padding: 26px; border-radius: 18px; background: #f5f5f7; text-align: left; }
/* 결제 완료 */
.agn-done .agn-done-title { margin: 0 0 16px; color: #0071e3; font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.agn-done .agn-done-number { margin: 0; color: #1d1d1f; font-size: 21px; }
.agn-done .agn-done-number strong { letter-spacing: .02em; }
.agn-done .agn-done-ship { margin: 10px 0 0; color: #1d1d1f; font-size: 17px; }
.agn-done-info { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #d2d2d7; display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 14px; }
.agn-done-info dt { color: #6e6e73; }
.agn-done-info dd { margin: 0; color: #1d1d1f; word-break: break-all; }
.agn-done-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.agn-done-actions form { margin: 0; }
.agn-done-actions .agn-bag-checkout { margin: 0; }
.agn-done-orders { padding: 12px 22px; border: 1px solid #0071e3; border-radius: 980px; background: #fff; color: #0071e3; font: inherit; font-size: 17px; cursor: pointer; }
.agn-done-orders:hover { background: #f5f9ff; }

@media (max-width: 833px) {
  .agn-bag-item { grid-template-columns: 1fr; }
  .agn-bag-item-image { margin-bottom: 20px; }
  .agn-bag-item-row { grid-template-columns: 1fr auto; gap: 10px; }
  .agn-bag-item-price { grid-column: 1 / -1; text-align: left; }
  .agn-bag-summary { margin-left: 0; }
  .agn-checkout-grid { grid-template-columns: 1fr; }
  .agn-bag-head h1 { font-size: 30px; }
}
