/* Cart drawer: keep controls in their own grid cells and preserve real cart values. */
[data-wpfcu-drawer] .wpfcu-items { overflow-y:auto; overflow-x:hidden; flex:1 1 auto; min-height:0; scrollbar-gutter:stable; }
[data-wpfcu-drawer] .wpfcu-item[data-wpfcu-item] { display:grid; grid-template-columns:minmax(58px,80px) minmax(0,1fr) 36px; grid-template-rows:auto auto; gap:8px 12px; align-items:start; position:relative; padding:18px 0; }
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-image {grid-column:1;grid-row:1 / 3;min-width:0;width:100%}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-main {grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-name a,[data-wpfcu-drawer] .wpfcu-item .variation,[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-price,[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-total {white-space:normal;overflow-wrap:anywhere;word-break:normal}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-total {grid-column:2 / 4;grid-row:2;min-width:0;text-align:left;margin:0;line-height:1.5}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-total del {display:inline;margin-right:5px}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-price::before {content:'Unit price: ';font-size:12px;color:#666}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-item-total::before {content:'Item total: ';font-size:12px;color:#666}
[data-wpfcu-drawer] .wpfcu-item [data-wpfcu-remove] {position:relative!important;inset:auto!important;grid-column:3;grid-row:1;justify-self:end;align-self:start;margin:0!important;z-index:1}
[data-wpfcu-drawer] .wpfcu-item .wpfcu-quantity {max-width:100%;margin:0;vertical-align:top}
[data-wpfcu-drawer] .wpfcu-drawer-footer {flex:none;min-width:0}
[data-wpfcu-drawer] .wpfcu-estimated {gap:8px;flex-wrap:wrap}
[data-wpfcu-drawer] .wpfcu-estimated > * {min-width:0;overflow-wrap:anywhere;white-space:normal}
[data-wpfcu-drawer] .wpfcu-actions a {height:auto;min-height:48px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:380px){[data-wpfcu-drawer] .wpfcu-items{padding-inline:12px}[data-wpfcu-drawer] .wpfcu-item[data-wpfcu-item]{grid-template-columns:minmax(50px,64px) minmax(0,1fr) 32px;column-gap:8px}}
