/* V5: preserve the actual delivery carton's tape, paper, logo and plain faces.
   Load after carton-v4.css. Root owns placement, opening and camera timeline. */
#shipment-space.shipment-space{perspective:2479.756px;perspective-origin:50% 45%}
#shipment-box.photo-matched{transform-origin:170px 110px 0}
.cargo-photo-shape{position:absolute;inset:0;width:340px;height:220px;transform-origin:170px 110px 0;transform-style:preserve-3d}
.cargo-photo-board,.cargo-photo-skin{position:absolute;inset:0;overflow:hidden;pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.cargo-photo-texture{position:absolute;left:0;top:0;width:1672px!important;height:941px!important;max-width:none!important;object-fit:fill!important;object-position:0 0!important;transform-origin:0 0;pointer-events:none;user-select:none}
.photo-matched .cargo-photo-board{z-index:0}
.photo-matched .cargo-photo-skin{z-index:1}
.photo-matched .cargo-photo-skin--front{mask-image:linear-gradient(#000 0 55%,transparent 66%);-webkit-mask-image:linear-gradient(#000 0 55%,transparent 66%)}
.photo-matched .cargo-photo-skin--side{mask-image:linear-gradient(#000 0 48%,transparent 63%);-webkit-mask-image:linear-gradient(#000 0 48%,transparent 63%)}
.photo-matched .cargo-front-caption,.photo-matched .cargo-front-title,.photo-matched .cargo-destination,.photo-matched .cargo-handling,.photo-matched .cargo-side-symbol,.photo-matched .cargo-side-label,.photo-matched .cargo-side-rule,.photo-matched .cargo-lid-print,.photo-matched .cargo-lid-surface--outer>.cargo-lid-fold{display:none}
.photo-matched .cargo-wall::after,.photo-matched .cargo-lid-surface--outer::after{display:none}
.photo-matched .cargo-wall{background-color:#bea07b;box-shadow:inset 0 0 .5px #d6bb98}
.photo-matched .cargo-wall--left .cargo-photo-board{filter:brightness(.88)}
.photo-matched .cargo-wall--right .cargo-photo-board{filter:brightness(.94)}
.photo-matched .cargo-wall--back .cargo-photo-board{filter:brightness(.87)}
.photo-matched .cargo-lid-surface--outer{background:#cfb99b;box-shadow:inset 0 0 .7px #c4a77e}
.photo-matched .cargo-inner{background-color:#ad8c61}
.photo-matched .cargo-inner--back{background-color:#b99b70}
.photo-matched .cargo-lid-surface--inner{background-color:#bd9b70}
/* V9 close-up material. The very shallow photographic lid remains visible
   at the delivery handoff, then gives way to these resolution-independent
   paper planes before the two existing hinges start opening. */
#shipment-box.photo-matched{--lid-detail:0}
.photo-matched .cargo-photo-skin--lid,
.photo-matched .cargo-photo-skin--side,
.photo-matched .cargo-wall--left .cargo-photo-board{opacity:calc(1 - var(--lid-detail))}
.cargo-lid-detail{
 position:absolute;inset:0;z-index:2;pointer-events:none;
 opacity:var(--lid-detail);background-color:#d3b68e;
 background-image:
  radial-gradient(ellipse at 22% 18%,#eed7b731,transparent 62%),
  repeating-linear-gradient(12deg,#53391906 0 .32px,transparent .32px 2.7px),
  repeating-linear-gradient(98deg,#fff4db0d 0 .4px,transparent .4px 3.3px),
  linear-gradient(115deg,#e2c7a3,#d5b991 56%,#caae88);
 box-shadow:inset 0 .65px #f1ddbf99,inset 0 -.65px #a88a625c;
}
.cargo-hinge--left .cargo-lid-detail{box-shadow:inset .65px 0 #f4e2c58c,inset -.7px 0 #886c4859,inset 0 .65px #f1ddbf99,inset 0 -.65px #a88a625c}
.cargo-hinge--right .cargo-lid-detail{box-shadow:inset .7px 0 #886c4859,inset -.65px 0 #f1ddbf70,inset 0 .65px #f1ddbf99,inset 0 -.65px #a88a625c}
/* Each half owns half of the packing tape. There is no stretched photo,
   printed stripe or rigid bridge across the two independently moving lids. */
.cargo-lid-detail::before{
 content:"";position:absolute;top:0;bottom:0;width:21px;
 background:
  linear-gradient(90deg,#fff1c516,#c3a37325 40%,#f9e7b62b 82%,#ab8c6530),
  repeating-linear-gradient(0deg,transparent 0 39px,#fff9de1c 39px 39.55px,transparent 39.55px 66px);
 border-left:.5px solid #f7e6c461;border-right:.5px solid #a4875d47;
}
.cargo-hinge--left .cargo-lid-detail::before{right:0}
.cargo-hinge--right .cargo-lid-detail::before{left:0;transform:scaleX(-1)}
.cargo-lid-detail::after{content:"";position:absolute;left:0;right:0;top:8px;bottom:8px;border-top:.5px solid #a88c6326;border-bottom:.5px solid #a88c631f}
.photo-matched .cargo-wall--left{
 background-color:#b49773;
 background-image:repeating-linear-gradient(2deg,#573d2007 0 .4px,transparent .4px 3px),linear-gradient(110deg,#bda27e,#a88a65);
 box-shadow:inset -.5px 0 #775c3d45;
}
/* Quiet paper edges replace the high-contrast checkerboard corrugation. */
.photo-matched .cargo-rim,.photo-matched .cargo-lid-edge{
 background-color:#b29368;
 background-image:linear-gradient(0deg,#91734e38,#eed4ad30),repeating-linear-gradient(90deg,#a180551a 0 1px,#cfb38918 1px 2px);
 box-shadow:inset 0 .5px #efd6b156,inset 0 -.5px #80633e38;
}
@media(max-height:600px){#shipment-space.shipment-space{display:none}}
