/* FD40g: original artwork and PDP composition; two-pack thumbnail framing is scoped below. */
img[src*="fd40-thumbnail-transparent-v74.webp"]{object-fit:contain!important;object-position:center!important;mix-blend-mode:normal!important;filter:none!important;transform:none!important}
.collection-photo img[src*="fd40-thumbnail-transparent-v74.webp"]{width:100%;max-width:none;max-height:100%}
.catalog .catalog-card .catalog-flat-photo img[src*="fd40-thumbnail-transparent-v74.webp"]{width:100%;height:100%}
.bbc-hero-pack .bbc-pack-wrap:has(img[src*="fd40-thumbnail-transparent-v74.webp"]),.bbc-format-image:has(img[src*="fd40-thumbnail-transparent-v74.webp"]){aspect-ratio:3/2;background:transparent!important}
img[src*="fd40-lunch-approved-v73.webp"],img[src*="fd40-coffee-approved-v73.webp"]{object-fit:contain!important;object-position:center!important;transform:none!important;filter:none!important;mix-blend-mode:normal!important}
.bbc-wide-photo:has(img[src*="fd40-lunch-approved-v73.webp"]){aspect-ratio:1705/922}
.bbc-detail-photo:has(img[src*="fd40-coffee-approved-v73.webp"]){aspect-ratio:1}

/* Shadow-only plate beneath unchanged product pixels. Separate placement follows the outer and sachet floor contacts. */
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image):has(>img[src*="fd40-thumbnail-transparent-v74.webp"]){position:relative;isolation:isolate;overflow:hidden}
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image):has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::before,
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image):has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::after{content:"";position:absolute;left:0;top:50%;width:100%;aspect-ratio:3/2;pointer-events:none;z-index:0;opacity:.84;filter:blur(.45px);background:url('/assets/optimized-v122/products/fd40-shadow-plate-v77.webp') center/100% 100% no-repeat}
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image):has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::before{clip-path:inset(85% 48.5677083333% 0 0);transform-origin:0 89.6%;transform:translateY(-47.8515625%) matrix(1,0,.75,1.85,0,0)}
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image):has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::after{clip-path:inset(85% 0 0 51.4322916667%);transform-origin:0 89.45%;transform:translateY(-48.6328125%) matrix(1,0,.75,1.85,0,0)}
:is(.photo-surface,.bbc-pack-wrap,.bbc-format-image)>img[src*="fd40-thumbnail-transparent-v74.webp"]{position:relative;z-index:1}

/* Keep the existing longer PDP shadow; move its core to the package base. */
.bbc-hero-pack .bbc-pack-wrap:has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::before,
.bbc-hero-pack .bbc-pack-wrap:has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::after{opacity:1;filter:none}
.bbc-hero-pack .bbc-pack-wrap:has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::before{transform:translateY(-48.046875%) matrix(1,0,1.2,2.5,0,0)}
.bbc-hero-pack .bbc-pack-wrap:has(>img[src*="fd40-thumbnail-transparent-v74.webp"])::after{transform:translateY(-48.828125%) matrix(1,0,1.2,2.5,0,0)}


/* v82 card thumbnail: outer pouch plus the English 5 g sachet.
   Original 1536 x 1024 pixels are placed on a 1100 x 1100 CSS canvas.
   Offset (-68.5, 38), crop at source x=1108, before the French sachet.
   The outer pouch is 39.6% larger than in the former full-width image.
   v83: widen the shadows by 12%, extend their depth by 35%, and raise opacity.
   Scale around each package base to preserve contact; product pixels are unchanged. */
:is(.photo-surface,.bbc-format-image):has(>.fd40-duo-art){display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate;overflow:visible}
.fd40-duo-art{display:block;position:relative;isolation:isolate;flex:none;width:100%;max-width:390px;aspect-ratio:1;overflow:visible}
.fd40-main-art>img[src*="fd40-thumbnail-transparent-v74.webp"]{display:block;position:absolute!important;left:-6.2272727273%;top:3.4545454545%;width:139.6363636364%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;clip-path:inset(0 27.8645833333% 0 0);z-index:1}
.fd40-main-art::before,.fd40-main-art::after{content:"";position:absolute;left:-6.2272727273%;top:3.4545454545%;width:139.6363636364%;aspect-ratio:3/2;pointer-events:none;z-index:0;opacity:1;filter:blur(.45px);background:url('/assets/optimized-v122/products/fd40-shadow-plate-v77.webp') center/100% 100% no-repeat}
.fd40-main-art::before{clip-path:inset(85% 48.5677083333% 0 0);transform-origin:29.296875% 89.6%;transform:translateY(2.1484375%) matrix(1.12,0,1.05,2.5,0,0)}
.fd40-main-art::after{clip-path:inset(85% 27.8645833333% 0 51.4322916667%);transform-origin:61.71875% 89.45%;transform:translateY(1.3671875%) matrix(1.12,0,1.05,2.5,0,0)}
.collection-photo .fd40-duo-art{max-width:clamp(320px,22vw,370px)}
.bbc-pdp-b2b .bbc-format-image:has(>.fd40-duo-art){aspect-ratio:1;background:transparent!important}
@media(max-width:1000px){.collection-photo .fd40-duo-art{max-width:290px}}
@media(max-width:760px){.collection-photo .fd40-duo-art{max-width:260px}}

/* v85: one unchanged English sachet behind the front sachet.
   v86: shift 110 additional source pixels right (about 1 cm at the desktop
   catalogue size), keeping the same height and angle. Clip the original artwork
   separately so the rear sachet can extend into the card's existing white space. */
.fd40-sachet-stack{position:absolute;inset:0;z-index:0;pointer-events:none}
.fd40-sachet-layer{display:block;position:absolute;left:67.22727272727272%;top:43.81818181818182%;width:25.545454545454543%;height:44.90909090909091%;transform-origin:50% 100%}
.fd40-sachet-layer--1{transform:translateX(47.686832740213525%)}
.fd40-sachet-cutout{display:block;position:relative;z-index:1;width:100%;height:100%;background-image:url('/assets/optimized-v122/products/fd40-thumbnail-transparent-v74.webp');background-repeat:no-repeat;background-size:546.6192170818506% 207.28744939271255%;background-position:64.38247011952191% 83.77358490566039%}
.fd40-sachet-layer::before{content:"";position:absolute;left:0;bottom:-1.3%;width:100%;height:5.5%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.23) 0%,rgba(0,0,0,.12) 38%,rgba(0,0,0,.035) 62%,transparent 76%);filter:blur(.35px)}

/* Bound the original cutout and its shadows while leaving room for the rear sachet. */
.fd40-main-art{display:block;position:absolute;inset:0;overflow:hidden;z-index:1}
.catalog .catalog-flat-photo:has(.fd40-sachet-stack){overflow:visible}
