.cube-order-dialog403{box-sizing:border-box;width:min(700px,100vw);max-width:100vw;height:min(880px,94dvh);max-height:94dvh;border:1px solid #d7c9a9;border-radius:20px;background:#faf6ec;color:#174b35;padding:0;overflow:auto;overscroll-behavior:contain}.cube-order-dialog403::backdrop{background:#153d32aa}.cube-order-bar403{position:sticky;top:0;z-index:15;background:#faf6ec;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #e1d4b9}.cube-order-bar403 strong{font-size:15px}.cube-order-bar403 button{border:0;border-radius:10px;padding:10px 12px;min-height:42px;background:#17533b;color:white;font:inherit;white-space:nowrap}.cube-order-dialog403 #emotionCube{margin:0!important;border:0;border-radius:0;box-shadow:none}.cube-order-dialog403 .em-heading{padding-top:18px}.cube-order-dialog403 .em-heading h2{font-size:25px}.cube-order-dialog403 .em-extra-actions{padding-bottom:20px}#stickerOrderLayer .direct-design-actions402 button{font-size:11px;padding:8px}.coupon-design-actions401 button{font-size:11px!important;padding:8px!important}

/* V4.0.4: order-only compact layout; reserve room for actions on mobile. */
.cube-order-dialog403{height:min(880px,94dvh);max-height:94dvh;overflow:auto}
.cube-order-dialog403[open]{display:flex;flex-direction:column}
.cube-order-bar403{flex:none;padding:10px 12px}
.cube-order-dialog403 #emotionCube{--order-card-height:clamp(200px,calc(94dvh - 330px),302px);width:100%;max-width:none;padding:12px 18px 10px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.cube-order-dialog403 .em-heading{padding:0}
.cube-order-dialog403 .em-eyebrow{margin-bottom:6px;font-size:10px}
.cube-order-dialog403 .em-heading h2{font-size:clamp(20px,5.6vw,25px);margin-bottom:5px;line-height:1.3}
.cube-order-dialog403 .em-heading>p:last-child{font-size:12px;line-height:1.5}
.cube-order-dialog403 .em-stage{height:clamp(150px,calc(94dvh - 330px),210px)}
.cube-order-dialog403 .em-stage.em-expanded{height:calc(var(--order-card-height) * 1.1 + 20px)}
.cube-order-dialog403 .em-expanded .em-front{height:var(--order-card-height);top:calc((152px - var(--order-card-height))/2);padding:20px 18px 12px}
.cube-order-dialog403 .em-expanded .em-mark{margin-top:9px}
.cube-order-dialog403 .em-expanded .em-front p{font-size:22px;line-height:1.4}
.cube-order-dialog403 .em-expanded .em-card-bottom{margin-top:8px}
.cube-order-dialog403 .em-live{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.cube-order-dialog403 #emResult{position:sticky;bottom:-10px;z-index:5;background:#f1f3e8;padding:6px 0 0}
.cube-order-dialog403 .em-main-actions{gap:8px}
.cube-order-dialog403 .em-main-actions button{min-height:46px;padding:11px 12px}
.cube-order-dialog403 .em-extra-actions{margin-top:3px;padding-bottom:0}
.cube-order-dialog403 .em-extra-actions button{padding:7px 0}
@media(max-height:620px){.cube-order-dialog403 .em-expanded .em-mark img{width:46px!important;height:46px!important}.cube-order-dialog403 .em-expanded .em-front p{font-size:20px;line-height:1.3}.cube-order-dialog403 .em-expanded .em-mark{margin-top:5px}.cube-order-dialog403 .em-heading>p:last-child{font-size:11px}}
