/* An already-open TASK70 controller can receive the new private cart fragment. */
.order-addons{--order-addons-style-version:task70-1}
.order-addons{--order-addons-style-version:task72-1;--accent:#c41e50;box-sizing:border-box;color:#2b2a29;font-family:Arial,Helvetica,sans-serif;isolation:isolate}
.order-addons *{box-sizing:border-box;font-family:inherit}
.order-addons [hidden]{display:none!important}
.order-addons :focus-visible,.addon-tooltip :focus-visible{outline:2px solid #c41e50;outline-offset:2px}
.order-addons [data-addon-items]{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 3px 2px;scroll-snap-type:x proximity;min-height:0;align-items:flex-start;scrollbar-width:none}
.order-addons [data-addon-items]::-webkit-scrollbar{display:none}
.order-addons .box-catalog__card{flex:0 0 130px;width:130px;min-width:0;height:auto;scroll-snap-align:start;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;display:block}
.order-addons .addon-mini__image{position:relative;width:128px;max-width:100%;margin:0 auto}
.order-addons .box-catalog__photo{display:block;width:100%;height:auto;aspect-ratio:3/2;padding:0;border:1px solid #eee6e1;border-radius:6px;background:#fff;cursor:pointer;overflow:hidden}
.order-addons .box-catalog__photo img{display:block;width:100%;height:100%;object-fit:contain}
.order-addons .box-catalog__price{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px 4px;margin:5px 0 0;line-height:18px;color:#2b2a29}
.order-addons .box-catalog__price strong{font-size:13px;white-space:nowrap}
.order-addons .box-catalog__code{font-size:10px;color:#817770;white-space:nowrap}
.order-addons .box-catalog__action{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;cursor:pointer;z-index:1;box-shadow:none}
.order-addons .box-catalog__action span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#c41e50;color:#fff;font:22px/1 Arial,sans-serif;box-shadow:0 1px 3px #0002}
.order-addons .box-catalog__action:disabled{cursor:wait}
.order-addons .box-catalog__action:disabled span{opacity:.6}
.order-addons .box-catalog__action[data-addon-added] span{background:#36744b;opacity:1;font-size:18px}
.order-addons [data-addon-status]{margin:0;color:#7d2441;min-height:0;font-size:11px!important;line-height:14px!important}
.order-addons [data-addon-status]:empty{display:none}
.order-addons[data-addon-location=box_group]{width:min(1300px,calc(100% - 28px));margin:24px auto 0}
.order-addons[data-addon-location=cart] [data-addon-items]{gap:8px;padding:0 0 2px}
.order-addons [data-addon-scroll]{display:none}
/* Reuse product-detail-v1.css .product-related__controls button declarations;
   only scope/position differ so checkout does not load the full product sheet. */
@media(min-width:761px){
.order-addons .product-related__controls{display:flex;align-items:center;gap:7px;--pink:#c41e50}
.order-addons .product-related__controls :where(*){color:inherit}
.order-addons .product-related__controls > button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #eadfd8;border-radius:50%;background:#fff;color:var(--pink);padding:0;cursor:pointer}
.order-addons .product-related__controls > button:disabled{border-color:#eee8e4;background:#faf8f6;color:#c8bdb7;box-shadow:none;cursor:default;opacity:.58}
.order-addons .product-related__controls .product-line-icon{display:block;width:18px;height:18px;fill:currentColor}
.order-addons .addon-rail{position:relative;padding:0 40px}
.order-addons .addon-rail__controls > button{position:absolute;top:24px}
.order-addons .addon-rail__controls [data-addon-scroll=prev]{left:0}
.order-addons .addon-rail__controls [data-addon-scroll=next]{right:0}
.order-addons[data-addon-location=cart]{background:#eee!important}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__photo{border:0}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__photo img{object-fit:cover}
}
@media(min-width:900px){#modal_cart .cart-drawer{width:min(620px,100vw)}}
.order-addons[data-addon-location=checkout] [data-addon-items]{display:flex;gap:10px;height:96px;overflow-x:auto;padding:0;scroll-snap-type:x proximity}
.order-addons[data-addon-location=checkout] .box-catalog__card{flex:0 0 104px;width:104px;min-width:0}
.order-addons[data-addon-location=checkout] .addon-mini__image{width:100%;max-width:104px}
.order-addons[data-addon-location=checkout] .box-catalog__price{margin-top:5px;line-height:17px;gap:0 3px}
.order-addons[data-addon-location=checkout] .box-catalog__price strong{font-size:12px}
.order-addons[data-addon-location=checkout] [data-addon-status]{position:absolute;bottom:1px;left:8px;right:8px}
.addon-tooltip{box-sizing:border-box;position:fixed;z-index:2147483647;width:max-content;max-width:min(280px,calc(100vw - 16px));padding:10px 12px;border:1px solid #dfd1c8;border-radius:8px;background:#fff;color:#2b2a29;box-shadow:0 4px 18px #0002;font:14px/19px Arial,sans-serif;overflow-wrap:anywhere}
.addon-tooltip p{margin:0 0 5px;font:inherit}
.addon-tooltip strong{font-size:13px}
.addon-tooltip button{display:block;min-height:40px;margin:8px 0 0;padding:6px 14px;border:0;border-radius:5px;background:#c41e50;color:#fff;font:14px/20px Arial,sans-serif;cursor:pointer}
.addon-tooltip button:disabled{opacity:.55}
.addon-tooltip--preview img{display:block;width:220px;max-width:100%;height:147px;margin:0 0 8px;object-fit:contain;background:#fff}
.addon-tooltip--preview p{margin:0}
@media(max-width:760px){.order-addons .box-catalog__card{flex-basis:120px;width:120px}.order-addons .addon-mini__image{width:104px}.order-addons[data-addon-location=box_group]{width:calc(100% - 28px)}.order-addons[data-addon-location=checkout] [data-addon-items]{display:grid;height:90px;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}.order-addons[data-addon-location=checkout] .box-catalog__card{width:auto}.order-addons[data-addon-location=checkout] .addon-mini__image{width:64px}}

/* Same card/image/price layout as the response, without interactive or analytics data. */
.order-addons .addon-skeleton .box-catalog__photo{background:#d8d8d8;border-color:transparent;cursor:default}
.order-addons .addon-skeleton .box-catalog__price{position:relative}
.order-addons .addon-skeleton .box-catalog__price::after{content:"";position:absolute;top:4px;width:68px;height:10px;border-radius:3px;background:#d8d8d8}
.order-addons .addon-skeleton .box-catalog__code{visibility:hidden}

/* Width follows the measured row; checkout always uses a complete, filled row. */
.order-addons:not([data-addon-location=checkout]) .box-catalog__card{flex-basis:var(--addon-card-width,130px);width:var(--addon-card-width,130px)}
.order-addons[data-addon-location=checkout] [data-addon-items]{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;overflow:hidden;scroll-snap-type:none}
.order-addons[data-addon-location=checkout] .box-catalog__card{width:100%}
.addon-tooltip a{display:block;margin-top:8px;color:#a21b44;text-decoration:underline;font:13px/18px Arial,sans-serif}

/* TASK72 owner prototype: only cart and checkout adopt these surfaces. */
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]){--pink:#c41e50}
.order-addons[data-addon-location=cart]{background:#eeebe7!important}
.order-addons[data-addon-location=cart] .cart-extras__header{background:transparent;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin:0 0 8px}
#modal_cart .cart-extras__header h2,.order-addons[data-addon-location=cart] .cart-extras__header h2{flex:1;min-width:0;margin:0;color:#69615c;font:700 13px/1.2 Arial,sans-serif}
.order-addons[data-addon-location=cart] .product-related__controls{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.order-addons[data-addon-location=cart] .addon-rail{padding:0}
.order-addons[data-addon-location=cart] .product-related__controls > button{position:static;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:1px solid #ded6cf;border-radius:50%;background:#faf8f5;color:#8c747c;cursor:pointer}
.order-addons[data-addon-location=cart] .product-related__controls > button:disabled{opacity:.35;cursor:default}
.order-addons[data-addon-location=cart] .product-related__controls > button:not(:disabled):hover{border-color:var(--pink);color:var(--pink);background:#fff0f4}
.order-addons[data-addon-location=cart] .product-line-icon{display:block;width:15px;height:15px;fill:currentColor}
.order-addons[data-addon-location=cart] [data-addon-items]{gap:8px;padding:0;min-height:103px;scroll-snap-type:x mandatory}
.order-addons[data-addon-location=cart] [data-addon-items]:empty{min-height:0}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .addon-mini__image{width:120px;max-width:100%}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__photo{aspect-ratio:3/2;border:0;border-radius:6px;background:#e8e1d8}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__photo img{object-fit:cover}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__action{right:3px;bottom:3px;width:28px;height:28px;padding:0;border:1px solid #e4ccd2;border-radius:50%;background:#fffcfa;color:var(--pink);box-shadow:none}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__action span{width:auto;height:auto;background:transparent;color:inherit;font:22px/1 Arial,sans-serif;box-shadow:none}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__action:not(:disabled):hover{background:var(--pink);color:#fff}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__action[data-addon-added]{background:#f8e8ed}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__action[data-addon-added] span{background:transparent;color:var(--pink);font-size:18px;opacity:1}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__price{margin:5px 0 0;gap:0 3px;line-height:16px;color:#645d57}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__price strong{font-size:11px;font-weight:600;color:#645d57}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__code{font-size:9px;color:#817a73}
.order-addons[data-addon-location=checkout] [data-addon-items]{gap:8px;height:103px}
.order-addons[data-addon-location=checkout] .addon-mini__image{width:100%;max-width:120px}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .addon-skeleton .box-catalog__photo{background:#e8e1d8}
@media(max-width:760px){
.order-addons[data-addon-location=cart].cart-extras{padding-inline:12px!important}
.order-addons[data-addon-location=cart] .addon-mini__image{width:100px}
.order-addons[data-addon-location=cart] [data-addon-items]{min-height:88px}
.order-addons[data-addon-location=checkout] .addon-mini__image{max-width:100px}
.order-addons[data-addon-location=checkout] [data-addon-items]{height:92px}
}
/* TASK72c: catalogue pages make .box-catalog__price a column; keep add-on prices on one centred row. */
.order-addons .box-catalog__price{flex-direction:row}
.order-addons:is([data-addon-location=cart],[data-addon-location=checkout]) .box-catalog__price{flex-wrap:nowrap;white-space:nowrap}
