/* Booking · Step 3 — receipt printer (final) */

.rc { position: relative; padding: 24px 12px 20px; border-radius: 24px; overflow: visible; display: flex; flex-direction: column; align-items: center; }

/* glassy dotted background */
.rc__bg { position: absolute; inset: 0; pointer-events: none; }
.rc__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  animation: rc-dots 20s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes rc-dots { to { background-position: 22px 22px; } }

/* printer */
.rc__printer { position: relative; z-index: 2; width: 100%; max-width: 320px; margin: 0 auto 0 auto; }
.rc__slot {
  position: relative; z-index: 3;
  height: 42px; border-radius: 12px;
  background: linear-gradient(180deg, #f5dc9d, #d9a83f 55%, #b5852a);
  box-shadow: 0 10px 26px rgba(150,110,30,0.35), inset 0 2px 0 rgba(255,255,255,0.6), inset 0 -3px 0 rgba(0,0,0,0.12);
}
.rc__slot::after { content: ""; position: absolute; left: 14px; right: 14px; top: 17px; height: 7px; border-radius: 4px; background: #3a2c14; box-shadow: inset 0 2px 4px rgba(0,0,0,0.6); }
.rc__slot-glow { position: absolute; left: 10%; right: 10%; bottom: -14px; height: 22px; background: radial-gradient(ellipse at center, rgba(255,210,110,0.9), transparent 70%); filter: blur(6px); }

/* paper comes out from slot */
.rc__paperwrap { position: relative; z-index: 2; height: 0; overflow: hidden; margin: -10px 0 0; padding-top: 10px; transition: height 2.6s cubic-bezier(0.22, 1, 0.36, 1); }
.rc__paperwrap.is-out { overflow: visible; clip-path: inset(10px 0 -60px 0); }
.rc__paperwrap.is-out { height: var(--h, 520px); }
.rc__paper {
  background: linear-gradient(180deg, #fffdf6, #fff9ec);
  padding: 14px 16px 18px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 30px 60px rgba(120,90,30,0.25);
  font-family: 'Courier New', ui-monospace, monospace;
  color: #3b2f1b;
  font-size: 0.72rem;
  transform: translateY(-100%);
  transition: transform 2.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.rc__paperwrap.is-out .rc__paper { transform: translateY(0); }

.rc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rc__ok { display: block; font-size: 0.6rem; letter-spacing: 0.16em; color: #8a6a2c; }
.rc__amt { display: block; font-size: 1.3rem; font-weight: 800; color: #2a2114; margin: 2px 0 1px; }
.rc__meta { display: block; font-size: 0.58rem; color: #9a8256; letter-spacing: 0.04em; }
.rc__stamp { width: 40px; height: 40px; border-radius: 50%; background: #22c55e; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; box-shadow: 0 6px 14px rgba(34,197,94,0.4); transform: rotate(-8deg); }

.rc__rule { height: 1px; background: repeating-linear-gradient(90deg, #cdbd98 0 6px, transparent 6px 10px); margin: 8px 0; }
.rc__rule--soft { background: repeating-linear-gradient(90deg, #e6dcc5 0 4px, transparent 4px 8px); }
.rc__rows { display: grid; gap: 3px; }
.rc__row { display: flex; justify-content: space-between; gap: 10px; margin: 3px 0; }
.rc__row b { font-weight: 700; }
.rc__row--tot { font-size: 0.82rem; color: #2a2114; margin-top: 8px; }
.rc__row--tot b { color: #b5852a; }
.rc__row--dim { color: #9a8256; font-size: 0.64rem; }
.rc__info { display: grid; gap: 2px; font-size: 0.58rem; color: #6b5a3a; }
.rc__info span { display: flex; justify-content: space-between; gap: 10px; }
.rc__info b { font-weight: 700; color: #8a6a2c; }
.rc__info em { font-style: normal; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__foot { text-align: center; font-size: 0.58rem; letter-spacing: 0.16em; color: #9a8256; margin-top: 10px; }
.rc__zig { position: absolute; left: 0; right: 0; bottom: -8px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, #fff9ec 6px) 0 0/12px 12px, linear-gradient(45deg, transparent 6px, #fff9ec 6px) 0 0/12px 12px; background-repeat: repeat-x; }

/* text + actions */
.rc__text { position: relative; z-index: 1; text-align: center; margin-top: 24px; }
.rc__title { font-family: var(--bk-head); font-weight: 900; font-size: 1.6rem; color: #5a4520; margin: 0 0 4px; }
.rc__sub { font-size: 0.86rem; color: #8a7756; margin: 0 0 16px; }
.rc__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rc__btn {
  display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
  padding: 12px 20px; border-radius: 14px;
  font-family: var(--bk-head); font-weight: 800; font-size: 0.9rem;
  color: #3b2f1b; background: #fff; box-shadow: 0 10px 26px rgba(120,90,30,0.2), inset 0 1px 0 #fff;
  transition: transform 0.4s var(--bk-ease), box-shadow 0.3s ease;
}
.rc__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(120,90,30,0.28); }
.rc__btn--ghost { background: rgba(255,255,255,0.6); }
.rc__mail { display: block; margin-top: 12px; font-size: 0.74rem; color: #8a7756; }
.rc__mail i { color: #22c55e; margin-right: 4px; }

.rc__acc { max-width: 480px; margin: 26px auto 0; position: relative; z-index: 1; animation: bk-reveal 0.6s var(--bk-ease) both; }

@media (max-width: 480px) {
  .rc { padding: 18px 8px 16px; }
  .rc__paperwrap { margin: -6px 10px 0; }
  .rc__paper { padding: 16px 14px 24px; font-size: 0.68rem; }
  .rc__title { font-size: 1.35rem; }
  .rc__actions .rc__btn { width: 100%; justify-content: center; }
}

/* ===== tick + title sequence ===== */
.rc__tick { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: #22c55e; box-shadow: 0 0 0 8px rgba(34,197,94,0.18), 0 12px 30px rgba(34,197,94,0.45); transform: scale(0); opacity: 0; }
.rc__tick.is-in { animation: rc-tick-pop 0.6s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes rc-tick-pop { 0%{ transform:scale(0); opacity:0;} 70%{ transform:scale(1.15); opacity:1;} 100%{ transform:scale(1); opacity:1;} }
.rc__tick.is-side { animation: none; }

.rc__title2 { margin: 0; width: 0; overflow: hidden; white-space: nowrap; display: flex; gap: 7px; line-height: 1; font-family: var(--bk-head); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.04em; color: #fff; text-shadow: 0 6px 18px rgba(0,0,0,0.4); opacity: 0; transition: width 0.5s var(--bk-ease), opacity 0.4s ease; }
.rc__title2.is-in { width: auto; opacity: 1; }
.rc__title2 span { display: inline-block; }
.rc__title2 span:nth-child(2) { color: #7ee0a0; }

/* paper sits below hero: give room */
.rc__paperwrap { padding-top: 10px; }

@media (max-width: 560px) {
      .rc__title2 { font-size: 1.15rem; }
  .rc__tick { width: 48px; height: 48px; font-size: 1.2rem; }
}
@media (max-width: 400px) {
  }




/* ===== detailed receipt: brand, plan, QR + barcode ===== */
.rc__brand2 { text-align: center; font-family: var(--bk-head); font-weight: 900; font-size: 0.95rem; letter-spacing: 0.16em; color: #2a2114; }
.rc__tag { text-align: center; font-size: 0.58rem; letter-spacing: 0.08em; color: #9a8256; margin: 1px 0 8px; }
.rc__ok i { color: #22c55e; margin-right: 4px; }
.rc__row--plan { font-weight: 700; color: #2a2114; }
.rc__row--plan b { color: #8a6a2c; font-weight: 700; }

.rc__qrbox { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.rc__qr { width: 60px; height: 60px; flex: 0 0 auto; background: #fff; border-radius: 6px; padding: 4px; box-shadow: inset 0 0 0 1px rgba(120,90,30,0.15); }
.rc__qr svg { width: 100%; height: 100%; }
.rc__qrtxt b { display: block; font-size: 0.72rem; color: #3b2f1b; }
.rc__qrtxt span { font-size: 0.6rem; color: #9a8256; }

.rc__barcode { height: 34px; margin: 6px 0 2px; background-repeat: repeat-x; background-size: auto 100%; }
.rc__barnum { text-align: center; font-family: 'Courier New', monospace; font-size: 0.62rem; letter-spacing: 0.3em; color: #6b5a3a; margin-bottom: 8px; }


/* glassy bubble at receipt corner */
.rc__printer { position: relative; }
.rc__bubble {
  position: absolute; top: -14px; right: -8px; z-index: 8;
  min-width: 130px; max-width: 180px; width: max-content;
  padding: 10px 13px; border-radius: 14px;
  background: rgba(20,22,26,0.66); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 16px 36px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff; font-family: var(--bk-head); font-weight: 800; font-size: 0.8rem; line-height: 1.3;
  opacity: 0; transform: translateY(8px) scale(0.9); transform-origin: bottom right;
}
.rc__bubble::before { content: ""; position: absolute; right: 22px; bottom: -6px; width: 11px; height: 11px; background: rgba(20,22,26,0.66); border-right: 1px solid rgba(255,255,255,0.35); border-bottom: 1px solid rgba(255,255,255,0.35); transform: rotate(45deg); }
.rc__bubble.is-in { animation: rc-bubble 0.55s cubic-bezier(.2,1.4,.4,1) forwards, rc-bubble-float 3.5s ease-in-out 0.6s infinite; }
@keyframes rc-bubble { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rc-bubble-float { 0%,100%{ top:-14px; } 50%{ top:-19px; } }

@media (max-width: 560px) { .rc__bubble { right: 0; min-width: 110px; max-width: 150px; font-size: 0.72rem; } }
@media (max-width: 400px) { .rc__bubble { display: none; } }