:is(#customer-deliveries,#latest-promotion) .delivery-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
:is(#customer-deliveries,#latest-promotion) h2 { margin:0 0 10px; }
:is(#customer-deliveries,#latest-promotion) .delivery-heading p { margin:0; color:#526477; }
:is(#customer-deliveries,#latest-promotion) .delivery-motion { background:none; border:0; padding:12px 4px; color:#335a7e; font:inherit; font-size:.85rem; text-decoration:underline; cursor:pointer; flex-shrink:0; }
:is(#customer-deliveries,#latest-promotion) .delivery-stream { --photo-width:calc((100vw - 100px)/4.4); overflow-x:auto; overflow-y:hidden; max-width:100%; scrollbar-width:none; overscroll-behavior-x:contain; border-radius:12px; touch-action:pan-x pan-y; mask-image:linear-gradient(to right,transparent,#000 10px,#000 calc(100% - 10px),transparent); }
:is(#customer-deliveries,#latest-promotion) .delivery-stream::-webkit-scrollbar { display:none; }
:is(#customer-deliveries,#latest-promotion) .delivery-track,:is(#customer-deliveries,#latest-promotion) .delivery-group { display:flex; flex-wrap:nowrap; width:max-content; }
:is(#customer-deliveries,#latest-promotion) .delivery-group { gap:12px; padding-right:12px; }
:is(#customer-deliveries,#latest-promotion) .delivery-photo { width:clamp(220px,var(--photo-width),275px); aspect-ratio:1 / 1; margin:0; flex:none; border-radius:12px; overflow:hidden; background:#e8edf3; }
:is(#customer-deliveries,#latest-promotion) .delivery-photo img { display:block; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .15s; user-select:none; }
:is(#customer-deliveries,#latest-promotion) .delivery-photo img.is-ready { opacity:1; }
:is(#customer-deliveries,#latest-promotion) .delivery-stream:focus-visible,:is(#customer-deliveries,#latest-promotion) .delivery-motion:focus-visible { outline:2px solid #1765b5; outline-offset:4px; }
:is(#customer-deliveries,#latest-promotion) .delivery-pending { margin:12px 0 0; }
@media(max-width:760px) {
 :is(#customer-deliveries,#latest-promotion) .delivery-heading { align-items:start; gap:10px; }
 :is(#customer-deliveries,#latest-promotion) h2 { font-size:1.5rem; }
 :is(#customer-deliveries,#latest-promotion) .delivery-heading p { font-size:.9rem; }
 :is(#customer-deliveries,#latest-promotion) .delivery-motion { font-size:.75rem; }
 :is(#customer-deliveries,#latest-promotion) .delivery-photo { width:clamp(200px,55vw,260px); }
 :is(#customer-deliveries,#latest-promotion) .delivery-group { gap:10px; padding-right:10px; }
}
@media(prefers-reduced-motion:reduce) {
 :is(#customer-deliveries,#latest-promotion) .delivery-photo img { transition:none; }
}

/* Promotion artwork fills a square frame without distortion. */
#latest-promotion { margin-top:24px; }
#latest-promotion .delivery-heading { margin-bottom:16px; }
#latest-promotion .delivery-photo { width:clamp(180px,20vw,220px); aspect-ratio:1 / 1; }
#latest-promotion .delivery-photo img { object-fit:contain; }
@media(max-width:760px) { #latest-promotion .delivery-photo { width:clamp(170px,48vw,210px); } }

/* Manual promotion controls sit outside the artwork. */
#latest-promotion .promotion-carousel { display:grid; grid-template-columns:40px minmax(0,1fr) 40px; gap:10px; align-items:center; }
#latest-promotion .promotion-arrow { width:40px; height:44px; padding:0; border:1px solid #dce4ed; border-radius:8px; background:#fff; color:#173958; font-size:1.4rem; cursor:pointer; }
#latest-promotion .promotion-arrow:disabled { opacity:.35; cursor:default; }
#latest-promotion .promotion-arrow:focus-visible { outline:2px solid #1765b5; outline-offset:2px; }
@media(max-width:760px) {
 #latest-promotion .promotion-carousel { grid-template-columns:32px minmax(0,1fr) 32px; gap:6px; }
 #latest-promotion .promotion-arrow { width:32px; }
 #latest-promotion .delivery-photo { width:clamp(220px,65vw,280px); }
}

@media(max-width:600px) {
 #latest-promotion .promotion-carousel { grid-template-columns:28px minmax(0,1fr) 28px; gap:4px; }
 #latest-promotion .promotion-arrow { width:28px; }
 #latest-promotion .delivery-stream { container-type:inline-size; }
 #latest-promotion .delivery-group { gap:8px; padding-right:0; }
 #latest-promotion .delivery-photo { width:calc((100cqw - 8px) / 2); }
}
