/* result-panel.css — 입혀 보기 결과 창 (fit-result-panel-v1) */
body.rp-on #resultBox{display:none !important}
main{transition:margin .25s}
.rp{position:fixed;z-index:40;background:#fff;display:flex;flex-direction:column;box-shadow:0 8px 30px rgba(0,0,0,.2)}
.rp-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eee}
.rp-title{font-size:16px}
.rp-x{width:34px;height:34px;border:0;border-radius:50%;background:#f1f1f1;font-size:20px;line-height:1;cursor:pointer}
.rp-body{overflow-y:auto;padding:14px}
.rp-wait,.rp-done,.rp-fail{display:none}
.rp[data-state=wait] .rp-wait,.rp[data-state=done] .rp-done,.rp[data-state=fail] .rp-fail{display:block}
.rp-stage{position:relative;min-height:260px;border-radius:12px;overflow:hidden;background:#eee}
.rp-me{width:100%;max-height:52vh;object-fit:contain;display:block;filter:blur(1px) brightness(.85)}
.rp-veil{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(20,10,40,.35);color:#fff;text-align:center;padding:12px}
.rp-spin{width:42px;height:42px;border:4px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:rpspin 1s linear infinite}
@keyframes rpspin{to{transform:rotate(360deg)}}
.rp-wtext{font-weight:700;font-size:16px;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.rp-sub{font-size:13px;opacity:.9}
.rp-bar{width:70%;height:6px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
.rp-bar i{display:block;height:100%;width:0;background:#fff;transition:width 1s linear}
.rp-picklabel{font-size:13px;color:#666;margin:12px 0 6px}
.rp-picks{display:flex;gap:8px}
.rp-picks img{width:64px;height:80px;object-fit:contain;background:#f3f3f3;border-radius:8px;border:1px solid #eee}
.rp-img{width:100%;max-height:60vh;object-fit:contain;display:block;border-radius:12px;background:#f3f3f3;cursor:zoom-in}
.rp-note{font-size:12px;color:#888;margin:8px 0 2px}
.rp-left{font-size:13px;color:#2a7;margin:0 0 6px}
.rp-buy #buyBox{margin-top:6px}
.rp-btns{display:flex;gap:8px;margin-top:4px}
.rp-btns button,.rp-retry{flex:1;padding:12px 0;border-radius:9px;border:1px solid #ccc;background:#fff;font-size:14px;cursor:pointer}
.rp-retry{width:100%;background:#1a73e8;border-color:#1a73e8;color:#fff;font-weight:600}
.rp-share{width:100%;margin-top:8px;padding:10px 0;border:0;background:none;color:#555;font-size:13px;text-decoration:underline;cursor:pointer}
.rp-err{color:#c62828;font-weight:600;font-size:14px;line-height:1.5}
.rp-open{position:fixed;right:16px;bottom:72px;z-index:35;padding:10px 16px;border:0;border-radius:999px;background:#2d074c;color:#fff;font-size:14px;box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer}
/* PC: 오른쪽에 고정, 본문은 왼쪽으로 비켜 줌 */
@media (min-width:1000px){
  .rp{top:16px;right:16px;width:370px;max-height:calc(100vh - 32px);border-radius:16px}
  body.rp-show main{margin-left:max(16px,calc((100vw - 1100px - 402px) / 2));margin-right:402px}
  .rp-dim{display:none !important}
}
/* 휴대폰: 아래에서 올라옴 */
@media (max-width:999px){
  .rp{left:0;right:0;bottom:0;max-height:88vh;border-radius:18px 18px 0 0;transform:translateY(100%);transition:transform .3s ease}
  .rp.rp-in{transform:none}
  .rp-dim{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:39}
  .rp-me{max-height:46vh}
}
