/* 📚 도서몰 새 화면 — 30초 책 골라드림(/book/recommend.php) 전용 꾸밈 — 2026-11-29
   공용 꾸밈(bk.css) 위에 얹는다. 선택자는 모두 #bk 또는 .bk- 로 시작한다. */

#bk .bk-reco [hidden], #bk .bk-reco-res [hidden], #bk .bk-reco-list [hidden] { display: none !important; }

/* ═════════ 질문 ═════════ */
#bk .bk-reco { position: relative; padding: 16px 0 24px; background: linear-gradient(180deg, #F3E9D7 0%, #F3E9D7 55%, #FAF5EC 100%); border-image: linear-gradient(180deg, #F3E9D7 0%, #F3E9D7 55%, #FAF5EC 100%) fill 0 / 0 / 0 100vw; }
#bk .bk-reco__grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "box" "body"; gap: 14px; }
#bk .bk-reco__head { grid-area: head; }
#bk .bk-reco__box { grid-area: box; display: flex; flex-direction: column; align-items: center; padding: 0 12px; }
#bk .bk-reco__body { grid-area: body; min-width: 0; }

#bk .bk-reco__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#bk .bk-reco__k { display: inline-block; padding: 3px 10px; background: var(--bk-card); border: 1.5px solid var(--bk-ink); border-radius: 4px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--bk-ink); }
#bk .bk-reco-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--bk-ink2); white-space: nowrap; }
#bk .bk-reco-step__t b { font-size: 16px; font-weight: 800; color: var(--bk-ink); }
#bk .bk-reco-step__bar { display: flex; gap: 4px; }
#bk .bk-reco-step__bar i { display: block; width: 22px; height: 6px; background: var(--bk-kraft-l); border-radius: 2px; transition: background-color .2s; }
#bk .bk-reco-step__bar i.is-done { background: var(--bk-kraft-d); }
#bk .bk-reco-step__bar i.is-on { background: var(--bk-ink); }

#bk .bk-reco__ttl { margin-top: 12px; }
#bk .bk-reco__h { font-size: var(--bk-h1-l); font-weight: 800; line-height: 1.3; letter-spacing: -.05em; color: var(--bk-ink); outline: none; text-wrap: balance; }
#bk .bk-reco__p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--bk-ink2); }

/* 상자 그림(빈 칸에 칸 이름이 적힌다) */
#bk .bk-reco__boxin { width: 100%; display: flex; justify-content: center; }
#bk .bk-reco__cap { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--bk-ink2); text-align: center; text-wrap: balance; }
#bk .bk-reco-slot { padding-left: 0; padding-right: 0; background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 7px no-repeat, rgba(255, 253, 248, .95); box-shadow: 3px 3px 8px rgba(59, 42, 26, .16); word-break: keep-all; overflow-wrap: anywhere; transition: background-color .2s; }
#bk .bk-reco-slot.is-wait { background: linear-gradient(var(--c), var(--c)) 0 0 / 100% 7px no-repeat, rgba(255, 253, 248, .55); box-shadow: none; }
#bk .bk-reco-slot.is-wait > span { font-size: 20px; font-weight: 800; color: var(--c); opacity: .75; }
#bk .bk-reco-slot.is-pop { animation: bk-reco-pop .42s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes bk-reco-pop { from { translate: 0 -22px; opacity: .2; } to { translate: 0 0; opacity: 1; } }

/* 선택지 */
#bk .bk-reco-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#bk .bk-reco-opt { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 64px; padding: 10px 40px 10px 14px; background: var(--bk-card); border: 1.5px solid var(--bk-line); border-left: 5px solid var(--bk-or); border-radius: 10px; color: var(--bk-ink); line-height: 1.35; letter-spacing: -.03em; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
#bk a.bk-reco-opt::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-right: 2.4px solid var(--bk-or); border-top: 2.4px solid var(--bk-or); transform: rotate(45deg); }
#bk .bk-reco-opt b { font-size: 17px; font-weight: 700; }
#bk .bk-reco-opt span { font-size: 14px; color: var(--bk-ink2); }
#bk .bk-reco-opt:active { transform: translateY(1px); }
@media (hover: hover) { #bk .bk-reco-opt:hover { background: var(--bk-or-bg); border-color: var(--bk-or); } }
#bk .bk-reco-opt.is-on { background: var(--bk-or-l); border-color: var(--bk-or); }
#bk a.bk-reco-opt.is-on::after { width: 14px; height: 8px; margin-top: -7px; border: 0; border-left: 2.6px solid var(--bk-or-d); border-bottom: 2.6px solid var(--bk-or-d); transform: rotate(-45deg); }
#bk .bk-reco-opt--unsure { background: transparent; border-style: dashed; border-left-style: solid; border-color: var(--bk-kraft-d); border-left-color: var(--bk-kraft-d); }
#bk a.bk-reco-opt--unsure::after { border-color: var(--bk-kraft-dd); }
#bk .bk-reco-opt--unsure.is-on { border-color: var(--bk-or); }

/* 여러 개 고르는 선택지(세 번째 질문) */
#bk .bk-reco-opts--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#bk .bk-reco-opts__wide { grid-column: 1 / -1; }
#bk .bk-reco-opt--chk { min-height: 76px; height: 100%; padding: 11px 10px 11px 12px; border-left-width: 1.5px; border-left-color: var(--bk-line); }
#bk .bk-reco-opt--chk input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#bk .bk-reco-opt--chk b { padding-right: 28px; font-size: 16px; }
#bk .bk-reco-opt__chk { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; background: var(--bk-white); border: 2px solid var(--bk-or); border-radius: 5px; }
#bk .bk-reco-opt--chk.is-on .bk-reco-opt__chk { background: var(--bk-or); }
#bk .bk-reco-opt--chk.is-on .bk-reco-opt__chk::after { content: ""; position: absolute; left: 4px; top: 4px; width: 11px; height: 6px; border-left: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: rotate(-45deg); }
#bk .bk-reco-opt--chk:focus-within { outline: 3px solid var(--bk-ink); outline-offset: 2px; }
#bk .bk-reco-opt--chk.bk-reco-opt--unsure { min-height: 60px; border-left-color: var(--bk-kraft-d); }
#bk .bk-reco-opt--chk.bk-reco-opt--unsure .bk-reco-opt__chk { border-color: var(--bk-kraft-d); }
#bk .bk-reco-opt--chk.bk-reco-opt--unsure.is-on .bk-reco-opt__chk { background: var(--bk-or); border-color: var(--bk-or); }
@media (max-width: 349.98px) { #bk .bk-reco-opts--multi { grid-template-columns: minmax(0, 1fr); } #bk .bk-reco-opt--chk { min-height: 60px; } }

#bk .bk-reco__go { margin-top: 18px; align-items: center; gap: 14px; }
#bk .bk-reco__go p { font-size: 15px; color: var(--bk-ink2); }
#bk .bk-reco__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 8px; }
#bk .bk-reco__back, #bk .bk-reco__skip { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--bk-ink2); text-decoration: underline; text-underline-offset: 4px; }
#bk .bk-reco__back::before { content: ""; width: 8px; height: 8px; margin-right: 8px; border-left: 2.2px solid currentColor; border-bottom: 2.2px solid currentColor; transform: rotate(45deg); }
#bk .bk-reco__skip { margin-left: auto; }
#bk .bk-reco__back:hover, #bk .bk-reco__skip:hover { color: var(--bk-or-d); }

#bk .bk-reco-more { padding-top: 8px; }
#bk .bk-reco-more__p { font-size: 15px; line-height: 1.7; color: var(--bk-ink2); }
#bk .bk-reco-more__go { display: flex; flex-wrap: wrap; gap: 0 24px; }
#bk .bk-reco-more__go a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--bk-or-d); text-decoration: underline; text-underline-offset: 4px; }
.bk-reco-dock .bk-btn { flex: none; min-height: 50px; padding: 0 18px; font-size: 16px; }
.bk-reco-dock .bk-dock__txt b { font-size: 16px; }

@media (max-width: 767.98px) {
  #bk .bk-reco[data-step="3"] ~ .bk-reco-more { padding-bottom: 96px; }
  #bk .bk-reco__box .bk-box { aspect-ratio: 100 / 55; }
  #bk .bk-reco__box .bk-box__front { padding: 15px 10px 6px; gap: 10px; }
  #bk .bk-reco__box .bk-box__edge { height: 9px; }
  #bk .bk-reco__box .bk-box__print i { display: none; }
  #bk .bk-reco__box .bk-box__print span { font-size: 13px; }
  #bk .bk-reco__box .bk-box__print span:first-of-type { font-size: 15px; }
  #bk .bk-reco__box .bk-box__label { min-height: 0; padding: 5px 10px 13px; line-height: 1.28; }
  #bk .bk-reco__box .bk-box__label::after { left: 10px; right: 10px; bottom: 4px; height: 5px; }
  #bk .bk-reco__box .bk-box__label-k { display: none; }
  #bk .bk-reco__box .bk-box__label b { font-size: 16px; }
  #bk .bk-reco-slot { padding-top: 16%; line-height: 1.2; }
}
@media (min-width: 768px) {
  #bk .bk-reco { padding: 32px 0 36px; }
  #bk .bk-reco__grid { gap: 20px; }
  #bk .bk-reco__p { font-size: 16px; }
  #bk .bk-reco__box { padding: 0 30px; }
  #bk .bk-reco-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #bk .bk-reco-opts > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #bk .bk-reco-opt { min-height: 72px; padding-left: 18px; }
  #bk .bk-reco-opt--chk { min-height: 72px; padding-left: 16px; }
  #bk .bk-reco__go { display: flex; }
  #bk .bk-reco-slot { font-size: 15px; }
}
@media (min-width: 1024px) {
  #bk .bk-reco { padding: 44px 0 52px; }
  #bk .bk-reco__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "head box" "body box"; grid-template-rows: auto 1fr; gap: 22px 64px; align-items: start; }
  #bk .bk-reco__box { position: sticky; top: 96px; padding: 26px 14px 0; }
  #bk .bk-reco__h { line-height: 1.24; }
  #bk .bk-reco__p { margin-top: 8px; font-size: 17px; }
  #bk .bk-reco__ttl { margin-top: 18px; }
  #bk .bk-reco__cap { margin-top: 18px; font-size: 15px; }
  #bk .bk-reco-opts { grid-template-columns: minmax(0, 1fr); }
  #bk .bk-reco-opts--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bk .bk-reco-opt b { font-size: 18px; }
  #bk .bk-reco-opt span { font-size: 15px; }
  #bk .bk-reco-opt--chk b { font-size: 17px; }
  #bk .bk-reco-slot { font-size: 16px; padding-top: 24%; background-size: 100% 9px, auto; }
  #bk .bk-reco-slot.is-wait > span { font-size: 26px; }
  #bk .bk-reco__nav { margin-top: 12px; }
}

/* ═════════ 결과 ═════════ */
#bk .bk-reco-res { padding: 18px 0 24px; background: linear-gradient(180deg, #F3E9D7 0%, #F3E9D7 55%, #FAF5EC 100%); border-image: linear-gradient(180deg, #F3E9D7 0%, #F3E9D7 55%, #FAF5EC 100%) fill 0 / 0 / 0 100vw; }
#bk .bk-reco-res__top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "txt" "box" "buy" "ans"; gap: 16px; }
#bk .bk-reco-res__txt { grid-area: txt; }
#bk .bk-reco-res__box { grid-area: box; display: flex; justify-content: center; padding: 0 12px; }
#bk .bk-reco-buy { grid-area: buy; }
#bk .bk-reco-ans { grid-area: ans; }

#bk .bk-reco-res__h { margin-top: 10px; font-size: var(--bk-h1-l); font-weight: 800; line-height: 1.28; letter-spacing: -.05em; color: var(--bk-ink); }
#bk .bk-reco-res__h span { display: inline-block; }
#bk .bk-reco-res__h em { font-style: normal; white-space: nowrap; background: linear-gradient(transparent 60%, #E7C68F 60%, #E7C68F 93%, transparent 93%); padding: 0 2px; margin: 0 -2px; }
#bk .bk-reco-res__sum { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--bk-ink2); }
#bk .bk-reco-res__few { margin-top: 10px; padding: 10px 12px; background: var(--bk-card); border-left: 4px solid var(--bk-kraft-d); border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.55; color: var(--bk-ink); }

/* 상자에 표지가 차례로 들어간다 */
#bk .bk-reco-res__box .bk-slot.is-on { animation: bk-reco-drop .5s cubic-bezier(.2, .9, .3, 1.2) backwards; }
#bk .bk-reco-res__box .bk-slot.is-on:nth-child(2) { animation-delay: .09s; }
#bk .bk-reco-res__box .bk-slot.is-on:nth-child(3) { animation-delay: .18s; }
#bk .bk-reco-res__box .bk-slot.is-on:nth-child(4) { animation-delay: .27s; }
#bk .bk-reco-res__box .bk-slot.is-on:nth-child(5) { animation-delay: .36s; }
#bk .bk-reco-res__box .bk-slot.is-on.is-swapin { animation: bk-reco-drop2 .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes bk-reco-drop { from { translate: 0 -54px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes bk-reco-drop2 { from { translate: 0 -54px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* 값 + 담기 */
#bk .bk-reco-buy { padding: 14px 14px 6px; background: var(--bk-card); border: 1.5px solid var(--bk-ink); border-radius: 12px; box-shadow: 0 4px 0 rgba(59, 42, 26, .12); }
#bk .bk-reco-buy__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--bk-ink); }
#bk .bk-reco-buy__sum span { font-size: 16px; font-weight: 700; }
#bk .bk-reco-buy__sum b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
#bk .bk-reco-buy__fee { margin-top: 1px; font-size: 14px; color: var(--bk-ink2); text-align: right; }
#bk .bk-reco-buy__go { margin-top: 12px; }
#bk .bk-reco-buy__next { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--bk-ink2); text-align: center; }
#bk .bk-reco-buy.is-done .bk-reco-buy__next { display: none; }
#bk .bk-reco-buy__have { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--bk-ink2); }
#bk .bk-reco-buy__done { margin-top: 12px; }
#bk .bk-reco-buy__done p { margin-bottom: 10px; padding: 10px 12px; background: var(--bk-ok-bg); border-left: 4px solid var(--bk-ok); border-radius: 0 8px 8px 0; line-height: 1.5; }
#bk .bk-reco-buy__done p b { display: block; font-size: 16px; font-weight: 800; color: var(--bk-ok); }
#bk .bk-reco-buy__done p span { display: block; font-size: 14px; color: var(--bk-ink); }
#bk .bk-reco-buy__cart { margin-top: 8px; }
#bk .bk-reco-buy.is-done .bk-reco-buy__go, #bk .bk-reco-buy.is-done .bk-reco-buy__have { display: none; }
#bk .bk-reco-buy__alt { display: flex; justify-content: center; gap: 28px; margin-top: 4px; }
#bk .bk-reco-buy__alt a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--bk-ink2); text-decoration: underline; text-underline-offset: 4px; }
#bk .bk-reco-buy__alt a:hover { color: var(--bk-or-d); }

/* 이렇게 답하셨어요 */
#bk .bk-reco-ans__k { font-size: 14px; font-weight: 700; color: var(--bk-ink2); }
#bk .bk-reco-ans ul { margin-top: 4px; border-top: 1px solid var(--bk-line); }
#bk .bk-reco-ans li { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 46px; padding: 2px 0; border-bottom: 1px solid var(--bk-line); line-height: 1.4; }
#bk .bk-reco-ans__q { font-size: 14px; color: var(--bk-ink2); }
#bk .bk-reco-ans__a { font-size: 15px; font-weight: 700; color: var(--bk-ink); }
#bk .bk-reco-ans__fix { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px 0 10px; font-size: 14px; font-weight: 700; color: var(--bk-or-d); text-decoration: underline; text-underline-offset: 4px; }

/* 책 목록 */
#bk .bk-reco-list { padding-top: 24px; }
#bk .bk-reco-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#bk .bk-reco-item { --c: #D9623B; position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "slot slot" "cv b" "why why" "f f"; gap: 10px 12px; padding: 12px 14px 12px; background: var(--bk-card); border: 1px solid var(--bk-line); border-top: 4px solid var(--c); border-radius: 4px 4px 12px 12px; scroll-margin-top: 84px; transition: opacity .15s; }
#bk .bk-reco-item:nth-child(5n+2) { --c: #2F5D62; }
#bk .bk-reco-item:nth-child(5n+3) { --c: #B37A14; }
#bk .bk-reco-item:nth-child(5n+4) { --c: #49654A; }
#bk .bk-reco-item:nth-child(5n) { --c: #2E4A6B; }
#bk .bk-reco-item.is-busy { opacity: .55; pointer-events: none; }
#bk .bk-reco-item__slot { grid-area: slot; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: -.03em; color: var(--bk-ink); }
#bk .bk-reco-item__slot b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--c); border-radius: 4px; font-size: 14px; font-weight: 800; color: #fff; }
#bk .bk-reco-item__cv { grid-area: cv; align-self: start; display: block; aspect-ratio: 2 / 3; background: #EFE4D0; border-radius: 2px 4px 4px 2px; box-shadow: inset 0 0 0 1px rgba(59, 42, 26, .12), 3px 3px 8px rgba(59, 42, 26, .22); overflow: hidden; }
#bk .bk-reco-item__cv img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
#bk .bk-reco-item__b { grid-area: b; min-width: 0; }
#bk .bk-reco-item__t { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.03em; color: var(--bk-ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#bk a.bk-reco-item__b { display: block; min-height: 44px; color: inherit; text-decoration: none; }
#bk a.bk-reco-item__b:hover .bk-reco-item__t { text-decoration: underline; text-underline-offset: 3px; }
#bk .bk-reco-item__by { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--bk-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bk .bk-reco-item__line { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--bk-ink2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#bk .bk-reco-item__why { grid-area: why; display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; background: var(--bk-band); border-radius: 8px; line-height: 1.5; }
#bk .bk-reco-item__why b { flex: none; font-size: 14px; font-weight: 800; color: var(--bk-kraft-dd); }
#bk .bk-reco-item__why span { font-size: 15px; font-weight: 500; color: var(--bk-ink); }
#bk .bk-reco-item__f { grid-area: f; display: flex; flex-direction: column; gap: 8px; }
#bk .bk-reco-item__price .bk-price { margin: 0; }
#bk .bk-reco-item__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#bk .bk-reco-item__btns > :only-child, #bk .bk-reco-item__swap[hidden] + .bk-reco-item__add { grid-column: 1 / -1; }
#bk .bk-reco-item__add { display: flex; }
#bk .bk-reco-item__add .bk-add { width: 100%; }
#bk .bk-reco-item__swap { padding: 0 12px; font-size: 15px; white-space: nowrap; }
#bk .bk-reco-item.is-swap .bk-reco-item__cv, #bk .bk-reco-item.is-swap .bk-reco-item__b, #bk .bk-reco-item.is-swap .bk-reco-item__why, #bk .bk-reco-item.is-swap .bk-reco-item__price { animation: bk-reco-in .38s ease-out; }
@keyframes bk-reco-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* 목록 끝 다시 한 번 */
#bk .bk-reco-end { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 14px; background: var(--bk-band); border: 1.5px dashed var(--bk-kraft-d); border-radius: 12px; }
#bk .bk-reco-end__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--bk-ink); }
#bk .bk-reco-end__sum span { font-size: 16px; font-weight: 700; }
#bk .bk-reco-end__sum b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
#bk .bk-reco-end__fee { font-size: 14px; color: var(--bk-ink2); text-align: right; }
#bk .bk-reco-end__btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#bk .bk-reco-end__go { display: flex; }
#bk .bk-reco-end__go .bk-btn { width: 100%; }
#bk .bk-reco-end.is-done .bk-reco-end__go { display: none; }

/* 어울리는 상황 · 서가 */
#bk .bk-reco-self { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 16px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: 12px; }
#bk .bk-reco-next > .bk-wrap > .bk-reco-self:first-child { margin-top: 0; }
#bk .bk-reco-self p { line-height: 1.5; }
#bk .bk-reco-self b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--bk-ink); }
#bk .bk-reco-self span { display: block; margin-top: 2px; font-size: 15px; color: var(--bk-ink2); }

@media (max-width: 767.98px) {
  #bk .bk-reco-res__box .bk-box { aspect-ratio: 100 / 58; }
  #bk .bk-reco-res__box .bk-box__front { padding: 15px 10px 6px; gap: 10px; }
  #bk .bk-reco-res__box .bk-box__edge { height: 9px; }
  #bk .bk-reco-res__box .bk-box__print i { display: none; }
  #bk .bk-reco-res__box .bk-box__print span { font-size: 13px; }
  #bk .bk-reco-res__box .bk-box__print span:first-of-type { font-size: 15px; }
  #bk .bk-reco-res__box .bk-box__label { min-height: 0; padding: 5px 10px 13px; line-height: 1.28; }
  #bk .bk-reco-res__box .bk-box__label::after { left: 10px; right: 10px; bottom: 4px; height: 5px; }
  #bk .bk-reco-res__box .bk-box__label-k { display: none; }
  #bk .bk-reco-res__box .bk-box__label b { font-size: 16px; }
}
@media (max-width: 359.98px) {
  #bk .bk-reco-item { grid-template-columns: 68px minmax(0, 1fr); }
  #bk .bk-reco-item__swap, #bk .bk-reco-item__add .bk-add { padding: 0 6px; }
  #bk .bk-reco-end__btns { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) {
  #bk .bk-reco-res { padding: 32px 0 36px; }
  #bk .bk-reco-res__top { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-areas: "txt box" "buy box" "ans ans"; gap: 18px 32px; align-items: start; }
  #bk .bk-reco-res__box { align-self: center; grid-row: 1 / span 2; }
  #bk .bk-reco-res__sum { font-size: 17px; }
  #bk .bk-reco-ans li { grid-template-columns: 96px minmax(0, 1fr) auto; }
  #bk .bk-reco-item { grid-template-columns: 104px minmax(0, 1fr) 216px; grid-template-areas: "cv slot f" "cv b f" "cv why f"; grid-template-rows: auto auto 1fr; gap: 8px 20px; padding: 16px 20px 18px; }
  #bk .bk-reco-item__why { align-self: start; }
  #bk .bk-reco-item__f { justify-content: center; gap: 12px; padding-left: 20px; border-left: 1px dashed var(--bk-line); }
  #bk .bk-reco-item__price .bk-price { justify-content: flex-end; }
  #bk .bk-reco-item__price { text-align: right; }
  #bk .bk-reco-item__btns { grid-template-columns: minmax(0, 1fr); }
  #bk .bk-reco-item__t { font-size: 19px; }
  #bk .bk-reco-item__line { font-size: 16px; }
  #bk .bk-reco-end { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 22px; }
  #bk .bk-reco-end__sum { justify-content: flex-start; }
  #bk .bk-reco-end__fee { text-align: left; }
  #bk .bk-reco-end__btns { display: flex; }
  #bk .bk-reco-end__go .bk-btn { width: auto; }
  #bk .bk-reco-self { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 22px; }
  #bk .bk-reco-self .bk-btn { flex: none; }
}
@media (min-width: 1024px) {
  #bk .bk-reco-res { padding: 44px 0 48px; }
  #bk .bk-reco-res__top { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-areas: "txt box" "buy box" "ans box"; grid-template-rows: auto auto 1fr; gap: 22px 64px; }
  #bk .bk-reco-res__box { grid-row: 1 / span 3; align-self: start; padding: 34px 14px 0; position: sticky; top: 96px; }
  #bk .bk-reco-res__box .bk-box { max-width: 500px; }
  #bk .bk-reco-res__h { line-height: 1.24; }
  #bk .bk-reco-res__sum { margin-top: 12px; }
  #bk .bk-reco-buy { padding: 20px 22px 8px; }
  #bk .bk-reco-buy__sum b { font-size: 30px; }
  #bk .bk-reco-buy__fee { font-size: 15px; }
  #bk .bk-reco-list { padding-top: 40px; }
  #bk .bk-reco-item { grid-template-columns: 116px minmax(0, 1fr) 232px; gap: 8px 26px; padding: 18px 26px 20px; }
  #bk .bk-reco-item__t { font-size: 20px; }
}

/* 결과 화면의 아래 고정 막대: 주황 단추는 본문의 '상자째 담기 → 바로 주문서 쓰기' 하나만 두고, 막대의 '내 상자 보기'는 선 단추로 낮춘다 */
.bk-tray .bk-tray__btn { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 247, 234, .72); color: var(--bk-dark-t); }
.bk-tray .bk-tray__btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ── 🎨 그림(GPT 리소 일러스트, 2026-11-29) — 그림이 켜졌을 때(#bk.bk--art)만. 꺼지면 위 모양 그대로 ── */
#bk.bk--art .bk-reco-band { position: relative; margin: 2px 0 14px; aspect-ratio: 5 / 2; overflow: hidden; background: #FAF5EC; border: 1.5px solid #3B2A1A; border-radius: 14px; box-shadow: 4px 4px 0 rgba(59, 42, 26, .14); }
#bk.bk--art .bk-reco-band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
#bk.bk--art .bk-reco-band--res { margin-bottom: 16px; }

/* 선택지 작은 그림 */
#bk.bk--art .bk-reco-opt__art { display: block; flex: none; width: 64px; height: 64px; pointer-events: none; }
#bk.bk--art .bk-reco-opt__art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
@media (hover: hover) { #bk.bk--art .bk-reco-opt.has-art:hover .bk-reco-opt__art img { transform: rotate(-4deg) scale(1.06); } }
#bk.bk--art .bk-reco-opt.has-art.is-on .bk-reco-opt__art img { transform: rotate(-4deg) scale(1.06); }
/* 한 개 고르기(줄 모양): 그림 왼쪽 · 글 오른쪽 */
#bk.bk--art a.bk-reco-opt.has-art,
#bk.bk--art .bk-reco-opts__wide .bk-reco-opt--chk.has-art { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 1px; align-content: center; padding-top: 8px; padding-bottom: 8px; padding-left: 10px; }
#bk.bk--art a.bk-reco-opt.has-art .bk-reco-opt__art,
#bk.bk--art .bk-reco-opts__wide .bk-reco-opt--chk.has-art .bk-reco-opt__art { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
#bk.bk--art a.bk-reco-opt.has-art > b,
#bk.bk--art .bk-reco-opts__wide .bk-reco-opt--chk.has-art > b { grid-column: 2; align-self: end; }
#bk.bk--art a.bk-reco-opt.has-art > span:not(.bk-reco-opt__art),
#bk.bk--art .bk-reco-opts__wide .bk-reco-opt--chk.has-art > span:not(.bk-reco-opt__art) { grid-column: 2; align-self: start; }
/* 여러 개 고르기(칸 모양): 그림 위 · 글 아래 */
#bk.bk--art .bk-reco-opt--chk.has-art { justify-content: flex-start; }
#bk.bk--art .bk-reco-opts:not(.x) li:not(.bk-reco-opts__wide) .bk-reco-opt--chk.has-art .bk-reco-opt__art { width: 72px; height: 72px; margin: -2px 0 4px -4px; }

@media (min-width: 1024px) {
  #bk.bk--art .bk-reco-band { aspect-ratio: 3 / 1; }
  #bk.bk--art .bk-reco-band--res { aspect-ratio: 5 / 2; }
  #bk.bk--art a.bk-reco-opt.has-art { grid-template-columns: 76px minmax(0, 1fr); }
  #bk.bk--art .bk-reco-opt__art { width: 76px; height: 76px; }
  #bk.bk--art .bk-reco-opts:not(.x) li:not(.bk-reco-opts__wide) .bk-reco-opt--chk.has-art .bk-reco-opt__art { width: 84px; height: 84px; }
}
