/* Label Crop — the realistic cut animation (front page and app): a 4×6 shipping label with its 4×6
 * tax invoice under it. All names and numbers are made up; no marketplace logo. Sized in em: the box's
 * font-size is set by LC_RC.fit. */
.rcbox { position: absolute; inset: 0; overflow: hidden; }
.rc { position: absolute; left: 50%; top: 50%; width: 30em; height: 90em; margin: -45em 0 0 -15em; color: #000; font-family: Arial, Helvetica, sans-serif; will-change: transform; transform-origin: 50% 25%; }
.rc * { box-sizing: border-box; }
.rc-sh { position: absolute; inset: 0; border-radius: .4em; box-shadow: 0 3em 6em -2em rgba(0, 0, 0, .55); background: #fff; }
.rc-pc { position: absolute; left: 0; width: 30em; height: 45em; background: #fff; overflow: hidden; will-change: transform, opacity; backface-visibility: hidden; }
.rc-lab { top: 0; border-radius: .4em .4em 0 0; }
.rc-inv { top: 45em; border-radius: 0 0 .4em .4em; }

/* --- the shipping label --- */
.rc-lab .lw { position: absolute; inset: 1em 1.1em; font-size: .78em; line-height: 1.25; display: flex; flex-direction: column; }
.rc-lab .tp { display: flex; gap: .8em; }
.rc-lab .bc { flex: 1; min-width: 0; }
.rc-bar { display: flex; height: 7em; align-items: stretch; overflow: hidden; }
.rc-bar i { display: block; background: #000; flex: none; }
.rc-lab .awb { text-align: center; font-weight: 700; font-size: 1.15em; margin: .3em 0 .8em; }
.rc-lab .to { font-size: 1.05em; line-height: 1.32; }
.rc-lab .side { width: 13em; display: flex; flex-direction: column; gap: .45em; }
.rc-lab .rw { display: flex; gap: .45em; align-items: stretch; }
.rc-lab .bx { border: .16em solid #000; display: grid; place-items: center; text-align: center; font-weight: 700; padding: .2em .3em; line-height: 1.1; }
.rc-lab .bx.big { flex: 1; font-size: 1.7em; padding: .25em .2em; }
.rc-lab .bx.sm { width: 6em; font-size: 1em; }
.rc-lab .bx.wide { flex: 1; font-size: 1.25em; max-width: 9.5em; }
.rc-lab .bx.e { height: 1.9em; }
.rc-lab .bx.tiny { font-size: .95em; margin-left: auto; margin-right: 1.6em; }
.rc-lab .vt { writing-mode: vertical-rl; font-weight: 700; font-size: 1.05em; }
.rc-lab .mid { display: flex; align-items: flex-end; justify-content: space-between; gap: .8em; margin-top: .9em; }
.rc-lab .oid { font-size: 1.1em; line-height: 1.4; }
.rc-lab .st3 { display: flex; border: .16em solid #000; }
.rc-lab .st3 > div { display: grid; text-align: center; min-width: 5.4em; border-left: .16em solid #000; }
.rc-lab .st3 > div:first-child { border-left: 0; }
.rc-lab .st3 small { font-size: .62em; font-weight: 700; padding: .2em .3em; border-bottom: .16em solid #000; }
.rc-lab .st3 b { font-size: 2.2em; padding: .05em .2em; }
.rc-lab .st3 .blk small { background: #000; color: #fff; }
.rc-lab .dms { display: flex; justify-content: space-between; margin: 1.1em .3em .8em; }
.rc-dm { display: grid; width: 7.6em; height: 7.6em; }
.rc-dm i { background: #000; } .rc-dm i.o { background: transparent; }
.rc-lab .from { font-size: .82em; border-bottom: .14em solid #000; padding-bottom: .5em; }
.rc-lab .decl { font-size: .78em; margin: .7em 0 .4em; }
.rc-lab table { width: 100%; border-collapse: collapse; font-size: .82em; }
.rc-lab th, .rc-lab td { border: .14em solid #000; padding: .2em .3em; text-align: center; }
.rc-lab td { height: 3.2em; vertical-align: top; font-size: .9em; }
.rc-lab .codes { display: flex; margin-top: auto; border: .16em solid #000; width: max-content; }
.rc-lab .codes > div { display: grid; gap: .15em; padding: .3em .5em; border-left: .16em solid #000; font-size: 1.15em; }
.rc-lab .codes > div:first-child { border-left: 0; }
.rc-lab .codes span { display: flex; gap: .2em; align-items: center; font-weight: 700; }
.rc-lab .codes i { font-style: normal; background: #000; color: #fff; padding: 0 .2em; }
.rc-lab .ft { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5em; font-size: .9em; }
.rc-lab .ft b { font-size: 1.4em; }

/* --- the tax invoice --- */
.rc-inv .iw { position: absolute; inset: 1em 1.1em; font-size: .6em; line-height: 1.28; }
.rc-inv .ih { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.2em; }
.rc-inv .ih .lg { font: 900 2.2em/1 Arial, sans-serif; letter-spacing: -.02em; color: #222; }
.rc-inv .ih .t { text-align: right; font-weight: 700; font-size: 1.25em; }
.rc-inv .ih .t small { display: block; font-weight: 400; font-size: .9em; }
.rc-inv .two { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 1em; }
.rc-inv .two .r { text-align: right; }
.rc-inv table { width: 100%; border-collapse: collapse; margin-top: .6em; }
.rc-inv th { background: #d9d9d9; border: .1em solid #000; padding: .2em; text-align: left; font-size: .9em; }
.rc-inv td { border: .1em solid #000; padding: .25em; vertical-align: top; }
.rc-inv td.d { width: 42%; }
.rc-inv td.sg { text-align: right; }
.rc-inv td.sg b { display: block; }
.rc-inv td.sg i { display: block; font-family: 'Brush Script MT', cursive; font-size: 1.6em; color: #555; margin: .2em 0; }
.rc-inv .rcv { margin: .3em 0 .6em; }
.rc-inv .pay td { width: 25%; }

/* --- the cut --- */
.rc-guide { position: absolute; left: -2em; width: 34em; top: 45em; height: 0; border-top: .18em dashed #e0a83a; pointer-events: none; opacity: 0; transition: opacity .3s; }
.rc-cut { position: absolute; left: 0; top: 44.95em; width: 30em; height: .12em; background: #6b7280; transform-origin: left; transform: scaleX(0); pointer-events: none; }
.rc-scan { position: absolute; left: -2em; right: -2em; top: 0; height: .4em; background: linear-gradient(90deg, transparent, #f3d27a, transparent); box-shadow: 0 0 2.4em #f3d27a; opacity: 0; pointer-events: none; }
.rc-sc { position: absolute; left: 0; top: 0; width: 10em; height: 10em; margin: -5em 0 0 -5em; pointer-events: none; opacity: 0; z-index: 5; will-change: transform; transition: opacity .25s; }
.rc-sc svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .5em .4em rgba(0, 0, 0, .3)); }

/* --- our strip and the 4×6 frame --- */
.rc-strip { position: absolute; left: 0; top: 45em; width: 30em; height: 8em; overflow: hidden; background: #fff; border-radius: 0 0 .5em .5em; transform-origin: top; transform: scaleY(0); }
.rc-strip .in { margin: .6em 1.1em .9em; border: .16em solid #000; display: flex; font-family: Arial, sans-serif; }
.rc-strip .tx { flex: 1; padding: .4em .7em; font-size: .9em; line-height: 1.4; }
.rc-strip .tx b { display: inline-block; min-width: 4.4em; }
.rc-strip .tx .k { background: #000; color: #fff; font-weight: 800; padding: 0 .3em; margin-left: .3em; }
.rc-strip .dt { background: #000; color: #fff; display: grid; place-items: center; font: 900 2.2em/1 Arial, sans-serif; padding: 0 .4em; }
.rc-head { position: absolute; left: -1em; top: 45em; width: 32em; height: .45em; border-radius: .3em; background: linear-gradient(90deg, #14213d, #3a4a72, #14213d); opacity: 0; box-shadow: 0 0 1.4em rgba(243, 210, 122, .7); }
.rc-frame { position: absolute; left: -1.1em; top: -1.1em; width: 32.2em; height: 55.2em; border: .22em dashed #e0a83a; border-radius: .9em; opacity: 0; pointer-events: none; }
.rc-tag { position: absolute; left: 16em; top: -2.1em; font: 800 1.3em var(--font, sans-serif); color: #1b1404; background: linear-gradient(90deg, #e0a83a, #f3d27a); border-radius: 99px; padding: .3em .8em; opacity: 0; }
.rc-chip { position: absolute; left: 1em; top: -2.4em; font: 700 1.3em 'IBM Plex Mono', monospace; background: #e3e7ee; color: #14213d; padding: .3em .9em; border-radius: 99px; }
.rc-gone { position: absolute; left: 50%; top: 66em; transform: translateX(-50%); font: 800 1.6em var(--font, sans-serif); color: #fff; background: #b42318; border-radius: 99px; padding: .4em 1.1em; white-space: nowrap; opacity: 0; }
.rc-ok { position: absolute; left: 50%; top: -4.4em; transform: translateX(-50%); font: 800 1.5em var(--font, sans-serif); color: #fff; background: #157a4a; border-radius: 99px; padding: .4em 1.1em; white-space: nowrap; opacity: 0; }
