/* Shipping hub: an order slip becomes a 4x6 ship-to label that feeds out of a thermal printer onto a kraft box. */
.hub-anim.ha-shipping-label-maker .ha-stage { background: #f3e4cb repeating-linear-gradient(115deg, rgba(150, 105, 55, 0.05) 0 2px, transparent 2px 9px); border: 1px solid #e6d2b1; }
.hub-anim.ha-shipping-label-maker .hs-scene { display: grid; grid-template-columns: minmax(0, 250px) minmax(50px, 110px) 300px; justify-content: center; align-items: center; font-family: Inter, system-ui, sans-serif; color: #241a10; }
.hub-anim.ha-shipping-label-maker .hs-scene p { margin: 0; text-align: left; }

/* Order slip */
.hub-anim.ha-shipping-label-maker .hs-order { position: relative; background: #fffdf8; padding: 16px 18px 22px; border-radius: 10px 10px 0 0; box-shadow: 0 16px 26px -18px rgba(70, 40, 10, 0.55); transform: rotate(-2.5deg); font-size: 13px; line-height: 1.45; color: #3b2c1c; }
.hub-anim.ha-shipping-label-maker .hs-order::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, #fffdf8 50%, transparent 50%) 0 0 / 12px 10px repeat-x, linear-gradient(225deg, #fffdf8 50%, transparent 50%) 0 0 / 12px 10px repeat-x; }
.hub-anim.ha-shipping-label-maker .hs-order::before { content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 16px; margin-left: -23px; background: rgba(255, 196, 120, 0.75); transform: rotate(3deg); }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-ohead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1.5px dashed #e3cfae; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #9a6b35; }
.hub-anim.ha-shipping-label-maker .hs-ohead b { padding: 5px 8px; border-radius: 999px; background: #ff7a3d; color: #fff; letter-spacing: 0.04em; }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-name { font: 800 16px/1.3 Manrope, Inter, sans-serif; color: #1c130a; }

/* Arrow */
.hub-anim.ha-shipping-label-maker .hs-arrow { position: relative; height: 20px; margin: 0 10px; }
.hub-anim.ha-shipping-label-maker .hs-arrow::before { content: ""; position: absolute; left: 0; right: 8px; top: 50%; border-top: 2.5px dashed #ff7a3d; }
.hub-anim.ha-shipping-label-maker .hs-arrow::after { content: ""; position: absolute; right: 1px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: solid #ff7a3d; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }

/* Printer, box and the label between them */
.hub-anim.ha-shipping-label-maker .hs-drop { position: relative; width: 300px; height: 410px; }
.hub-anim.ha-shipping-label-maker .hs-printer { position: absolute; z-index: 3; left: 50%; top: 0; width: 220px; height: 84px; margin-left: -110px; border-radius: 26px 26px 12px 12px; background: linear-gradient(#3a3a41, #232328); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 14px 20px -12px rgba(30, 20, 10, 0.6); }
.hub-anim.ha-shipping-label-maker .hs-printer::before { content: ""; position: absolute; left: 22px; right: 22px; top: 14px; height: 26px; border-radius: 14px; background: linear-gradient(#4a4a53, #34343b); }
.hub-anim.ha-shipping-label-maker .hs-slot { position: absolute; left: 34px; right: 34px; bottom: 9px; height: 5px; border-radius: 3px; background: #0b0b0d; }
.hub-anim.ha-shipping-label-maker .hs-light { position: absolute; right: 30px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: #7ee08a; box-shadow: 0 0 0 3px rgba(126, 224, 138, 0.2); z-index: 1; }
.hub-anim.ha-shipping-label-maker .hs-box { position: absolute; z-index: 1; left: 50%; bottom: 0; width: 290px; height: 290px; margin-left: -145px; border-radius: 6px; background: linear-gradient(#cf9a5e, #c08a4f); box-shadow: inset 0 0 0 1.5px rgba(120, 75, 30, 0.35), 0 22px 26px -18px rgba(70, 40, 10, 0.6); }
.hub-anim.ha-shipping-label-maker .hs-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; border-radius: 6px 6px 0 0; background: linear-gradient(#ddb07a, #d4a26a); border-bottom: 2px solid rgba(120, 75, 30, 0.3); }
.hub-anim.ha-shipping-label-maker .hs-tape { position: absolute; left: 50%; top: 0; width: 64px; height: 46px; margin-left: -32px; background: rgba(240, 215, 160, 0.85); }
.hub-anim.ha-shipping-label-maker .hs-up { position: absolute; right: 16px; bottom: 16px; width: 24px; height: 22px; background: linear-gradient(rgba(90, 55, 20, 0.45), rgba(90, 55, 20, 0.45)) 4px 6px / 3px 16px no-repeat, linear-gradient(rgba(90, 55, 20, 0.45), rgba(90, 55, 20, 0.45)) 17px 6px / 3px 16px no-repeat; }
.hub-anim.ha-shipping-label-maker .hs-up::before, .hub-anim.ha-shipping-label-maker .hs-up::after { content: ""; position: absolute; top: 1px; width: 7px; height: 7px; border: solid rgba(90, 55, 20, 0.45); border-width: 3px 0 0 3px; transform: rotate(45deg); left: 0.5px; }
.hub-anim.ha-shipping-label-maker .hs-up::after { left: 13.5px; }
.hub-anim.ha-shipping-label-maker .hs-feed { position: absolute; z-index: 2; left: 0; right: 0; top: 70px; bottom: 0; overflow: hidden; }
.hub-anim.ha-shipping-label-maker .hs-label { position: absolute; left: 50%; top: 92px; width: 156px; height: 234px; margin-left: -78px; box-sizing: border-box; padding: 10px 11px; display: flex; flex-direction: column; background: #fff; border-radius: 4px; box-shadow: 0 10px 16px -10px rgba(60, 35, 10, 0.55); transform: rotate(-2deg); color: #111; font-size: 10px; line-height: 1.3; }
.hub-anim.ha-shipping-label-maker .hs-label small { display: block; font: 800 7.5px/1 Inter, system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #555; margin-bottom: 3px; }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-from { font-size: 9.5px; padding-bottom: 7px; border-bottom: 2px solid #111; }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-to { padding: 8px 0 9px; font-size: 11px; line-height: 1.35; border-bottom: 2px solid #111; }
.hub-anim.ha-shipping-label-maker .hs-to b { display: block; font: 800 14px/1.25 Manrope, Inter, sans-serif; }
.hub-anim.ha-shipping-label-maker .hs-to strong { font-weight: 800; }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-meta { display: flex; justify-content: space-between; padding: 6px 0; font-weight: 700; font-size: 9.5px; }
.hub-anim.ha-shipping-label-maker .hs-scene .hs-bars { margin-top: auto; text-align: center; font: 600 8px/1 Inter, system-ui, sans-serif; letter-spacing: 0.15em; }
.hub-anim.ha-shipping-label-maker .hs-bars i { display: block; height: 34px; margin-bottom: 3px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 3px, #111 3px 4px, #fff 4px 7px, #111 7px 10px, #fff 10px 11px, #111 11px 12px, #fff 12px 15px); }

@media (max-width: 760px) {
    .hub-anim.ha-shipping-label-maker .hs-scene { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .hub-anim.ha-shipping-label-maker .hs-order { width: 100%; max-width: 250px; box-sizing: border-box; }
    .hub-anim.ha-shipping-label-maker .hs-arrow { width: 20px; height: 46px; margin: 10px 0 4px; }
    .hub-anim.ha-shipping-label-maker .hs-arrow::before { left: 50%; right: auto; top: 0; bottom: 8px; border-top: 0; border-left: 2.5px dashed #ff7a3d; margin-left: -1px; }
    .hub-anim.ha-shipping-label-maker .hs-arrow::after { right: auto; left: 50%; top: auto; bottom: 1px; margin: 0 0 0 -5px; transform: rotate(135deg); }
    .hub-anim.ha-shipping-label-maker .hs-drop { width: 260px; height: 400px; }
    .hub-anim.ha-shipping-label-maker .hs-label { top: 84px; }
    .hub-anim.ha-shipping-label-maker .hs-box { width: 250px; margin-left: -125px; height: 280px; }
    .hub-anim.ha-shipping-label-maker .hs-printer { width: 200px; margin-left: -100px; }
}
@media (max-width: 340px) {
    .hub-anim.ha-shipping-label-maker .hs-drop { width: 230px; }
    .hub-anim.ha-shipping-label-maker .hs-box { width: 226px; margin-left: -113px; }
}

@media (prefers-reduced-motion: no-preference) {
    .hub-anim.ha-shipping-label-maker .hs-order { animation: hashOrder 10s ease-out infinite; }
    .hub-anim.ha-shipping-label-maker .hs-arrow { animation: hashArrow 10s ease-out infinite; }
    .hub-anim.ha-shipping-label-maker .hs-light { animation: hashLight 10s linear infinite; }
    .hub-anim.ha-shipping-label-maker .hs-label { animation: hashLabel 10s infinite; }
    .hub-anim.ha-shipping-label-maker .hs-box { animation: hashBox 10s ease-out infinite; }

    @keyframes hashOrder { 0%, 2% { translate: 0 0; box-shadow: 0 16px 26px -18px rgba(70, 40, 10, 0.55); } 7%, 13% { translate: 0 -6px; box-shadow: 0 0 0 3px #ff7a3d, 0 22px 30px -18px rgba(70, 40, 10, 0.6); } 18%, 100% { translate: 0 0; box-shadow: 0 16px 26px -18px rgba(70, 40, 10, 0.55); } }
    @keyframes hashArrow { 0%, 10% { opacity: 0.15; } 16%, 92% { opacity: 1; } 97%, 100% { opacity: 0.15; } }
    @keyframes hashLight { 0%, 19% { background: #7ee08a; } 20%, 22%, 24%, 26%, 28%, 30%, 32%, 34%, 36%, 38%, 40%, 42%, 44% { background: #ffb36b; } 21%, 23%, 25%, 27%, 29%, 31%, 33%, 35%, 37%, 39%, 41%, 43% { background: #ff7a3d; } 45%, 100% { background: #7ee08a; } }
    @keyframes hashLabel {
        0%, 20% { translate: 0 -340px; rotate: 2deg; opacity: 1; animation-timing-function: linear; }
        42% { translate: 0 -120px; rotate: 2deg; animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
        51% { translate: 0 6px; rotate: 0deg; animation-timing-function: ease-out; }
        55% { translate: 0 0; rotate: 0deg; }
        90% { translate: 0 0; rotate: 0deg; opacity: 1; }
        96%, 100% { translate: 0 0; rotate: 0deg; opacity: 0; }
    }
    @keyframes hashBox { 0%, 50% { scale: 1 1; } 52% { scale: 1.015 0.985; } 56%, 100% { scale: 1 1; } }
}
