/* Composer cards only. Native details, stock gates and quantity handlers stay intact. */
/* Framed gallery images keep their crop dimensions and offsets as one transform. */
#builder[data-selection-mode=custom] .selection-area{
 container-type:inline-size;
 container-name:composer-cards;
}
#builder[data-selection-mode=custom] #chocolates{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:stretch;
 gap:12px;
}
#builder[data-selection-mode=custom] #chocolates>.chocolate-card{
 display:grid;
 grid-template-areas:"product" "allergens" "controls" "notice";
 grid-template-rows:minmax(0,1fr) auto auto auto;
 min-width:0;
 align-content:stretch;
 overflow:hidden;
}
#builder[data-selection-mode=custom] #chocolates>.chocolate-card>.product-disclosure{
 grid-area:product;
 min-width:0;
 margin:0;
}
#builder[data-selection-mode=custom] #chocolates>.chocolate-card>.product-allergens{
 grid-area:allergens;
 min-width:0;
 margin:0 10px 8px;
 padding-top:0;
}
#builder[data-selection-mode=custom] #chocolates>.chocolate-card>.piece-selector{
 grid-area:controls;
 grid-template-columns:44px minmax(0,1fr) 44px!important;
 gap:4px;
 align-self:start;
 min-width:0;
 margin:0 8px 8px;
 padding:4px;
 border-width:1px;
}
#builder[data-selection-mode=custom] #chocolates>.chocolate-card>.weight-unavailable-note{
 grid-area:notice;
 margin:0 10px 9px;
 font-size:11px;
 line-height:1.4;
 overflow-wrap:anywhere;
}
/* Shared tracks align actions even when managed cards omit/reorder allergens. */
@supports(grid-template-rows:subgrid){
 #builder[data-selection-mode=custom] #chocolates>.chocolate-card{
  grid-row:span 4;
  grid-template-rows:subgrid;
  row-gap:0;
 }
}
#builder[data-selection-mode=custom] #chocolates .product-overview{
 display:block!important;
 height:auto;
 min-height:0!important;
}
#builder[data-selection-mode=custom] #chocolates .product-overview>.catalog-photo{margin-bottom:52px}
#builder[data-selection-mode=custom] #chocolates .product-gallery-media{
 display:block;
 min-block-size:196px;
}
#builder[data-selection-mode=custom] #chocolates .catalog-photo{
 width:100%!important;
 height:144px!important;
 min-height:144px!important;
 box-sizing:border-box;
 padding:10px!important;
}
#builder[data-selection-mode=custom] #chocolates .catalog-photo img:not(.pg-image-viewport[data-pg-framed]>img){
 max-width:100%!important;
 max-height:122px!important;
 width:auto!important;
 height:auto!important;
 object-fit:contain;
}
#builder[data-selection-mode=custom] #chocolates .pg-thumbnails{
 box-sizing:border-box;
 min-height:52px;
 gap:4px;
 padding:4px 6px;
}
#builder[data-selection-mode=custom] #chocolates .pg-thumb{
 flex-basis:44px;
 width:44px;
 height:44px;
 min-height:44px;
}
#builder[data-selection-mode=custom] #chocolates .product-intro{
 display:grid!important;
 grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
 grid-template-areas:"name name" "stock sheet" "weight premium" "teaser teaser" "more more";
 grid-template-rows:minmax(38px,auto) minmax(32px,auto) minmax(32px,auto) minmax(35px,auto) auto;
 align-content:start;
 align-items:start;
 gap:4px 6px;
 width:auto;
 min-width:0;
 min-height:0;
 padding:10px;
 font-size:12px;
 line-height:1.4;
}
#builder[data-selection-mode=custom] #chocolates .product-name{
 grid-area:name;
 display:-webkit-box!important;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
 overflow:hidden;
 margin:0;
 font:750 14px/1.35 var(--sans,Arial,sans-serif)!important;
 letter-spacing:-.015em;
 overflow-wrap:anywhere!important;
 hyphens:auto!important;
}
#builder[data-selection-mode=custom] #chocolates .stock-badge{
 grid-area:stock;
 align-self:start;
 justify-self:start;
 max-width:100%;
 margin:0;
 padding:3px 6px;
 font-size:10px;
 line-height:1.3;
 white-space:normal;
}
#builder[data-selection-mode=custom] #chocolates .piece-weight{
 grid-area:weight;
 justify-self:start;
 min-width:0;
 max-width:100%;
 margin:0;
 font-size:11px;
 line-height:1.4;
 overflow-wrap:anywhere;
}
#builder[data-selection-mode=custom] #chocolates .product-intro:not(:has(.premium-price-badge))>.piece-weight{grid-column:1 / -1}
#builder[data-selection-mode=custom] #chocolates .product-sheet-link{
 grid-area:sheet;
 justify-self:end;
 max-width:100%;
 margin:0;
 font-size:10px;
 line-height:1.35;
 overflow-wrap:anywhere;
}
#builder[data-selection-mode=custom] #chocolates .premium-price-badge{
 grid-area:premium;
 justify-self:end;
 width:auto;
 max-width:100%;
 margin:0;
 padding:2px 4px;
 font-size:10px;
 line-height:1.35;
 overflow-wrap:anywhere;
}
#builder[data-selection-mode=custom] #chocolates .product-teaser{
 grid-area:teaser;
 display:-webkit-box!important;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
 overflow:hidden;
 min-height:0;
 margin:0;
 font:400 12px/1.45 var(--sans,Arial,sans-serif);
}
#builder[data-selection-mode=custom] #chocolates .product-detail-link{
 grid-area:more;
 margin:0;
 font-size:11px;
}
#builder[data-selection-mode=custom] #chocolates .piece-selector button{
 width:44px;
 min-width:44px;
 height:44px;
 min-height:44px;
 padding:0;
 font:700 24px/1 Arial,sans-serif;
}
#builder[data-selection-mode=custom] #chocolates .piece-selector button:disabled{
 background:#f1ece7;
 color:#786d65;
 border-color:#d4c8be;
 opacity:1;
}
#builder[data-selection-mode=custom] #chocolates .piece-selector input{
 width:100%;
 min-width:0;
 height:27px;
 font-size:17px;
}
#builder[data-selection-mode=custom] #chocolates .piece-count-label{
 font-size:10px;
 line-height:1.15;
 overflow-wrap:anywhere;
}
#builder[data-selection-mode=custom] .gram-counter{
 position:static!important;
 inset:auto!important;
 z-index:auto!important;
 margin:10px 0;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock{
 padding:8px 12px max(8px,env(safe-area-inset-bottom));
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-heading{
 gap:6px;
 margin-bottom:4px;
 padding-bottom:4px;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-body{
 gap:6px;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-meter-dock{
 margin:0;
 padding:0;
 border:0;
 background:transparent;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-ring{
 display:none;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-meter-main{
 min-height:0;
 margin:0;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-main-copy{
 display:flex;
 flex-wrap:wrap;
 align-items:baseline;
 gap:3px 6px;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-amount{
 font-size:16px;
 line-height:1.25;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock :is(.fill-state,.fill-remainder,.fill-caution){
 margin:2px 0 0;
 font-size:10px;
 line-height:1.35;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .fill-track{
 margin:4px 0;
 height:4px;
}
html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-add{
 min-height:44px;
 padding:8px 10px;
 font-size:13px;
 line-height:1.3;
}
@container composer-cards (min-width:660px){
 #builder[data-selection-mode=custom] #chocolates{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container composer-cards (min-width:900px){
 #builder[data-selection-mode=custom] #chocolates{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:600px){
 #builder[data-selection-mode=custom] #chocolates{gap:9px}
 #builder[data-selection-mode=custom] #chocolates .product-intro{padding:9px 8px;grid-template-areas:"name name" "stock stock" "weight premium" "teaser teaser" "more sheet"}
 #builder[data-selection-mode=custom] #chocolates .product-sheet-link{grid-area:sheet}
 #builder[data-selection-mode=custom] #chocolates .product-detail-link{justify-self:start;min-width:0;max-width:100%;font-size:10px;line-height:1.35;letter-spacing:normal;flex-wrap:wrap;gap:3px;overflow-wrap:anywhere}
 #builder[data-selection-mode=custom] #chocolates .product-name{font-size:13px!important}
 #builder[data-selection-mode=custom] #chocolates .product-gallery-media{min-block-size:180px}
 #builder[data-selection-mode=custom] #chocolates .catalog-photo{height:128px!important;min-height:128px!important}
 #builder[data-selection-mode=custom] #chocolates .catalog-photo img:not(.pg-image-viewport[data-pg-framed]>img){max-height:108px!important}
 html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-box-name{font-size:13px}
 html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-price{font-size:14px}
 html:has(#builder[data-selection-mode=custom]) #purchase-dock .dock-review{font-size:11px;padding:4px;min-height:32px}
}
@media(max-width:360px){
 #builder[data-selection-mode=custom] #chocolates{grid-template-columns:minmax(0,1fr)!important}
 #builder[data-selection-mode=custom] #chocolates .product-overview{display:block!important}
}
