/* ==========================================================================
   Heart to Kiss — outfit-receipt.css  (화이트 + 블랙 클린 톤)
   오늘의 코디 영수증 — 입구(디스펜서)에서 출력. 코디 사진 크게, 글 최소.
   톤앤매너: 화이트 배경 · 블랙 글씨/선 · 깔끔 모던 (빈티지 누런톤 X)
   ========================================================================== */

#outfitReceiptSection {
  padding: 26px 0 84px;
  background: #f4f4f5;          /* 클린 라이트 그레이 (흰 종이가 떠 보이게) */
  overflow: hidden;
}

/* 다시 뽑기 버튼 — 블랙 라인 */
.receipt-reshuffle {
  cursor: pointer;
  background: none;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  transition: background 0.18s ease, color 0.18s ease;
}
.receipt-reshuffle:hover { background: #1a1a1a; color: #fff; }
.receipt-reshuffle:active { transform: translateY(1px); }

/* ── 무대 ───────────────────────────────────────────────────────────────── */
.receipt-stage {
  position: relative;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 0 14px;
}

/* ── 입구 (디스펜서) — 화이트/그레이 ──────────────────────────────────── */
.receipt-slot {
  position: relative;
  z-index: 3;
  width: 392px;
  max-width: 100%;
  height: 48px;
  margin: 0 auto;
  border-radius: 13px 13px 5px 5px;
  background: linear-gradient(#fafafa 0%, #ededef 66%, #dcdcde 100%);
  box-shadow:
    0 7px 16px rgba(0,0,0,0.10),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 0 -3px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.receipt-slot__brand {
  margin-top: 9px;
  font: 800 10px/1 "Courier New", monospace;
  letter-spacing: 0.26em;
  color: #a0a0a4;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.receipt-slot__mouth {
  position: absolute;
  left: 22px; right: 22px; bottom: 7px;
  height: 8px;
  background: linear-gradient(#1b1b1d, #2c2c2e);
  border-radius: 4px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.7);
}

/* ── 마스크 — 입구 아래에서 종이가 나옴 ──────────────────────────────── */
.receipt-mask {
  position: relative;
  z-index: 1;
  width: 364px;
  max-width: calc(100% - 10px);
  margin: -4px auto 0;
  overflow: hidden;
  padding-top: 4px;
}

/* ── 화이트 영수증 ─────────────────────────────────────────────────────── */
.receipt-paper {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 10px 13px;
  transform-origin: top center;
  color: #1a1a1a;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.06);
  font-family: "Courier New", "D2Coding", Consolas, ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
}
/* 아랫변 톱니(찢어낸 자국) — 흰색 */
.receipt-paper::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -6px;
  height: 7px;
  background:
    linear-gradient(-45deg, transparent 50%, #ffffff 50%) 0 0 / 9px 7px repeat-x,
    linear-gradient(45deg, transparent 50%, #ffffff 50%) 4.5px 0 / 9px 7px repeat-x;
  transform: scaleY(-1);
  filter: drop-shadow(0 5px 4px rgba(0,0,0,0.10));
}

/* 인쇄되며 입구에서 내려오는 연출 + 이후 미세한 흔들림 */
.receipt-paper.is-printing {
  animation: receiptPrint 2.0s cubic-bezier(.2,.72,.25,1) both,
             receiptSway 6s ease-in-out 2.1s infinite;
}
@keyframes receiptPrint {
  0%   { transform: translateY(-101%); }
  60%  { transform: translateY(2%); }
  76%  { transform: translateY(-1%) rotate(-0.5deg); }
  90%  { transform: translateY(0) rotate(0.4deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes receiptSway {
  0%, 100% { transform: rotate(-0.5deg); }
  50%      { transform: rotate(0.5deg); }
}
/* 동작 줄이기(reduce motion) — 무한 흔들림은 빼되, 인쇄 슬라이드는 유지(짧게) */
@media (prefers-reduced-motion: reduce) {
  .receipt-paper.is-printing { animation: receiptPrint 1.1s ease both; }
}

/* 커피 자국 제거 (빈티지 요소 X) */
.receipt-paper__ring { display: none; }
/* 도장 — 블랙 라인 */
.receipt-paper__stamp {
  position: absolute; right: 12px; bottom: 52px;
  font: 800 14px/1 "Courier New", monospace; letter-spacing: 0.08em;
  color: rgba(0,0,0,0.30);
  border: 2.5px solid rgba(0,0,0,0.26);
  border-radius: 6px; padding: 3px 8px;
  transform: rotate(-13deg); pointer-events: none; text-transform: uppercase;
}

/* ── 내용 (글 최소) ────────────────────────────────────────────────────── */
.receipt-paper__inner { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.receipt-loading { text-align: center; color: #b8b8bb; font-size: 12px; padding: 40px 0; }

/* 작은 헤더 1줄 */
.receipt-head {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #9a9a9e;
  margin-bottom: 8px;
}

/* 🔴 코디 사진 — 가로 꽉, 정사각 (상/하 잘려 구분) */
.receipt-shots { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; }
.receipt-shot { display: block; width: 100%; text-decoration: none; color: inherit; }
.receipt-shot__media {
  position: relative; display: block;
  aspect-ratio: 1/1;
  overflow: hidden; border-radius: 4px;
  border: 1px solid #ececec; background: #f0f0f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.receipt-shot__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 세피아 빼고 깔끔한 원본 색 */
}
.receipt-shot__tag {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  color: #fff; background: rgba(20,20,20,0.86);
}

/* 점선 구분 */
.receipt-dot { border: 0; border-top: 1.5px dashed #dddddd; margin: 9px 0; }

/* 항목 줄 — 라벨 이름 … 가격 */
.receipt-line {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px; color: #1a1a1a; text-decoration: none; padding: 2px 0;
}
.receipt-line:hover .receipt-line__name { text-decoration: underline; }
.receipt-line__cat { flex: 0 0 auto; font-weight: 700; color: #8a8a8e; min-width: 28px; }
.receipt-line__name { flex: 0 1 auto; max-width: 56%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1a1a1a; }
.receipt-line__dots { flex: 1 1 auto; border-bottom: 1.5px dotted #d6d6d6; transform: translateY(-3px); }
.receipt-line__price { flex: 0 0 auto; font-weight: 700; color: #1a1a1a; min-width: 50px; text-align: right; }

.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14.5px; font-weight: 800; color: #111; margin: 3px 0;
}
.receipt-total .won { font-size: 15px; }

.receipt-foot { text-align: center; font-size: 11px; letter-spacing: 0.05em; color: #9a9a9e; margin-bottom: 2px; }

@media (max-width: 480px) {
  .receipt-stage { max-width: 100%; padding: 0 8px; }
  .receipt-slot { width: 95vw; }
  .receipt-mask { width: 91vw; }
  .receipt-paper { padding: 10px 9px 12px; }
}
