#orderedBooks{grid-column:1/-1;grid-row:2;min-width:0;background:#fff;border:1px solid #ddd7ca;border-radius:16px;padding:20px;--ob-w:144px;--ob-cw:136px;--ob-ch:190px}
#orderedBooks header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
#orderedBooks h2{font-size:18px;margin:0}#orderedBooks a{color:#245f62;font-size:13px}
#orderedBooks .ordered-all{color:#1f4e46;font-weight:700;text-decoration:none;white-space:nowrap}#orderedBooks .ordered-all:hover{text-decoration:underline}
/* 2026-10-31 칸 고정 — 한 줄에 들어가는 만큼(JS가 계산), 양 끝까지 고르게 */
.ordered-strip{display:grid;justify-content:space-between;gap:18px 14px;padding:4px 0 4px}
.ordered-book{width:var(--ob-w);min-width:0}
.ordered-cover{display:flex;height:var(--ob-ch);width:var(--ob-cw);align-items:center;justify-content:center;background:#e5eeea;border:0;border-radius:4px 9px 9px 4px;border-left:5px solid #8ba69a;box-shadow:0 3px 8px #183c3c18;overflow:hidden;text-decoration:none;padding:0;cursor:pointer;font:inherit;color:inherit}
.ordered-cover img{width:100%;height:100%;object-fit:cover}.ordered-cover span{padding:12px;font-size:17px;line-height:1.5}
.ordered-empty .ordered-cover{background:#f7f5f0;border:1.5px dashed #cfc8b8;box-shadow:none;border-radius:9px;color:#b7af9e!important;font-size:30px!important;font-weight:300}
.ordered-empty .ordered-cover:hover{border-color:#8ba69a;color:#5f8a7d!important;background:#f1f6f3}
.ordered-book h3{width:var(--ob-cw);font-size:14px;margin:12px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ordered-line{display:flex;align-items:center;justify-content:space-between;gap:6px;width:var(--ob-cw)}
.ordered-status{display:inline-block;background:#e9f1ee;color:#285b50;border-radius:5px;padding:3px 7px;font-size:12px}
.ordered-book .ordered-more{border:0;background:none;padding:0;border-radius:0;cursor:pointer;font:inherit;font-size:12.5px;color:#1f4e46;font-weight:700;white-space:nowrap}.ordered-book .ordered-more:hover{text-decoration:underline}
.ordered-pager{display:flex;justify-content:center;gap:4px;margin-top:14px}
.ordered-pager button{min-width:30px;height:30px;border:1px solid #ddd7ca;background:#fff;border-radius:7px;font:inherit;font-size:13px;color:#4c5a55;cursor:pointer}
.ordered-pager button.on{background:#1f4e46;border-color:#1f4e46;color:#fff;font-weight:700}.ordered-pager button:disabled{opacity:.35;cursor:default}
#orderedBooks>button{border:1px solid #9cbab4;background:white;color:#194f49;border-radius:7px;padding:8px 10px;cursor:pointer;font:inherit;font-size:12px}
/* 2026-10-31 「상세」 팝업 */
.od-pop{position:fixed;inset:0;z-index:2147483000;background:rgba(28,26,23,.42);display:flex;align-items:center;justify-content:center;padding:16px}
.od-pop-card{position:relative;background:#fff;border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.28);width:min(420px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:20px 20px 16px;box-sizing:border-box;color:#1c1a17}
.od-pop-x{position:absolute;top:6px;right:6px;width:36px;height:36px;border:0;background:none;color:#8a8274;font-size:22px;cursor:pointer;border-radius:50%}.od-pop-x:hover{background:#f1ece2}
.od-pop-top{display:flex;gap:14px;align-items:flex-start;padding-right:24px}
.od-pop-cv{flex:0 0 64px;height:90px;background:#e5eeea;border-left:4px solid #8ba69a;border-radius:3px 7px 7px 3px;overflow:hidden}.od-pop-cv img{width:100%;height:100%;object-fit:cover}
.od-pop-tt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.od-pop-tt b{font-size:16px;line-height:1.35}.od-pop-tt small{font-size:12.5px;color:#65757c}
.od-pop-steps{display:flex;list-style:none;margin:16px 0 4px;padding:0;counter-reset:s}
.od-pop-steps li{flex:1;position:relative;text-align:center;font-size:11px;color:#a59e90;padding-top:16px;white-space:nowrap}
.od-pop-steps li::before{content:"";position:absolute;top:3px;left:50%;width:9px;height:9px;margin-left:-5px;border-radius:50%;background:#ddd7ca;z-index:1}
.od-pop-steps li::after{content:"";position:absolute;top:7px;left:-50%;width:100%;height:2px;background:#ddd7ca}.od-pop-steps li:first-child::after{display:none}
.od-pop-steps li.on{color:#2f6f5e}.od-pop-steps li.on::before,.od-pop-steps li.on::after{background:#2f8f5b}
.od-pop-steps li.now{font-weight:800;color:#1f4e46}.od-pop-steps li.now::before{box-shadow:0 0 0 3px #d5eadf}
.od-pop-dl{display:grid;grid-template-columns:auto 1fr;gap:7px 14px;margin:14px 0 0;padding:12px 0 0;border-top:1px solid #eee8dc;font-size:13px}
.od-pop-dl dt{color:#8a8272}.od-pop-dl dd{margin:0;color:#2c2721;word-break:keep-all}
.od-pop-btns{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}
.od-pop-link{font-size:13px;color:#1f4e46;font-weight:700;text-decoration:none}.od-pop-link:hover{text-decoration:underline}
.od-pop-main{border:0;border-radius:9px;padding:9px 18px;background:#1f4e46;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer;text-decoration:none}.od-pop-main:disabled{opacity:.6;cursor:wait}
#wrap #list{grid-row:3}#wrap #odForm{grid-row:4}#wrap #payCard{grid-row:3/span 2}
#wrap #empty{padding:24px;margin:0}#empty .big{display:none}#empty>a{margin-top:14px}#orderedBooks p{font-size:14px;color:#65757c;margin:0;line-height:1.7}
@media(max-width:800px){#orderedBooks{margin-bottom:18px;padding:16px;--ob-w:128px;--ob-cw:120px;--ob-ch:168px}}

/* 2026-10-31 (점검 38번 · 시안 A 채택) 책가방 카드 안쪽을 콤팩트하게 — 표지 작게, 미리보기·고치기 단추는 글자 폭만, 상세·미리보기 확인 표시를 한 줄에 */
.bk-card.hasv{padding-left:128px;min-height:0;margin-bottom:12px}
.bk-card .cv{width:92px;height:129px;left:18px;top:16px}
.bk-card .pr{margin-top:6px;justify-content:flex-start}
.bk-card .pr small:last-child{margin-left:auto}
.bk-go{margin:6px 0 0}.bk-go button{flex:0 0 auto;padding:5px 14px}
.bk-card details{display:inline-block;margin:8px 10px 0 0;font-size:12.5px}
.bag-confirm{display:inline-block;margin:8px 0 0;padding:3px 9px}
.bag-actions{margin:8px 0 0}
@media(max-width:800px){.bk-card.hasv{padding-left:116px}.bk-card .cv{width:84px;height:118px;left:16px}}

/* 2026-10-31 (제이 · 시안 B) PC 넓은 화면에서는 「이번에 주문」 카드를 2열로 */
@media(min-width:1000px){
  #list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start}
  #list>*{min-width:0}
  #list .bk-card{margin:0}
  #list .bk-card.hasv{padding-left:120px}
  #list .bk-card .cv{width:86px;height:120px;left:16px}
}

/* 2026-10-31 (제이) 책가방 카드 단추 3줄 — ① 미리보기·고치기 ② VIP 카드·할인권 ③ 상세·미리보기 확인. 단추 크기를 맞춰 줄 맞춤 */
.bk-card .bk-go,.bk-card .bag-perk{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0}
.bk-card .bk-go button,.bk-card .bag-perk button,.bk-card .bag-perk .bg{flex:0 0 auto;min-width:96px;height:28px;box-sizing:border-box;padding:0 12px;border-radius:7px;font:inherit;font-size:12px;line-height:26px;text-align:center;white-space:nowrap;cursor:pointer}
.bk-card .bag-perk button,.bk-card .bag-perk .bg{border:1px solid #d4b46a;background:#fff;color:#8a6414;font-weight:700}
.bk-card .bag-perk button:hover{background:#fffbea}
.bk-card .bag-perk .bg.vip,.bk-card .bag-perk #btnPct.on{background:#fff6dc;border-color:#c9a24c;color:#7a5610}
.bk-card .bag-perk #btnPct{width:auto;margin:0}
.bk-card .bk-foot{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;margin-top:8px}
.bk-card .bk-foot details{margin:0;display:block}.bk-card .bk-foot details[open]{flex-basis:100%}
.bk-card .bk-foot .bag-confirm{margin:0;padding:2px 8px}
