/* Adapt only the existing WPFCU surfaces; keep WooCommerce interactions and calculations intact. */
[data-wpfcu-drawer], [data-wpfcu-page] { --wpfcu-ink:#111; --wpfcu-muted:#555; --wpfcu-primary:#111; font-family:Arial,Helvetica,sans-serif; color:#111; }
[data-wpfcu-overlay] { background:rgba(0,0,0,.55); }
[data-wpfcu-drawer] { width:min(480px,100%); box-shadow:-8px 0 32px #0003; }
[data-wpfcu-drawer] .wpfcu-header { padding:24px 24px 16px; border-bottom:1px solid #e5e5e5; }
[data-wpfcu-drawer] .wpfcu-heading { font-size:24px; font-weight:700; line-height:1.2; letter-spacing:-.02em; overflow-wrap:anywhere; }
[data-wpfcu-drawer] .wpfcu-items { min-height:0; overflow-y:auto; overflow-x:hidden; padding:0 20px; scrollbar-gutter:stable; }
/* Separate image, text, total and remove into actual grid cells, never overlay controls. */
[data-wpfcu-drawer] [data-wpfcu-item] { grid-template-columns:minmax(64px,96px) minmax(0,1fr) 36px; grid-template-areas:'image main remove' 'image total total'; gap:10px 12px; align-items:start; padding:20px 0; }
[data-wpfcu-drawer] .wpfcu-item-image { grid-area:image; width:100%; min-width:0; border-radius:8px; background:#efefef; }
[data-wpfcu-drawer] .wpfcu-item-image img { width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
[data-wpfcu-drawer] .wpfcu-item-main { grid-area:main; min-width:0; }
[data-wpfcu-drawer] .wpfcu-item-name, [data-wpfcu-drawer] .wpfcu-item-name a, [data-wpfcu-drawer] .wpfcu-item-main dl.variation, [data-wpfcu-drawer] .wpfcu-item-main dl.variation *, [data-wpfcu-drawer] .wpfcu-item-price, [data-wpfcu-drawer] .wpfcu-item-total { white-space:normal; overflow-wrap:anywhere; word-break:normal; max-width:100%; }
[data-wpfcu-drawer] .wpfcu-item-name a { font-size:15px; font-weight:700; line-height:1.4; margin:0 0 6px; }
[data-wpfcu-drawer] .wpfcu-item-main dl.variation { line-height:1.45; }
[data-wpfcu-drawer] .wpfcu-item-price { margin:8px 0; }
[data-wpfcu-drawer] .wpfcu-item-total { grid-area:total; text-align:left; min-width:0; font-weight:600; }
[data-wpfcu-drawer] [data-wpfcu-remove] { grid-area:remove; position:static; justify-self:end; align-self:start; width:36px; height:36px; min-width:36px; }
[data-wpfcu-drawer] .wpfcu-item-total del { display:inline; margin-right:5px; }
[data-wpfcu-drawer] ins, [data-wpfcu-page] ins { color:#c90028; text-decoration:none; }
[data-wpfcu-drawer] .wpfcu-quantity, [data-wpfcu-page] .wpfcu-quantity { max-width:100%; min-width:0; width:max-content; border-radius:6px; }
[data-wpfcu-drawer] [data-wpfcu-quantity], [data-wpfcu-page] [data-wpfcu-quantity] { flex:0 1 5ch; width:5ch; min-width:4ch; max-width:none; }
[data-wpfcu-drawer] .wpfcu-drawer-footer { max-height:48%; overflow:auto; scrollbar-gutter:stable; padding:16px 24px max(20px,env(safe-area-inset-bottom)); border-top:1px solid #e5e5e5; }
[data-wpfcu-drawer] .wpfcu-breakdown { grid-template-columns:minmax(0,1fr) minmax(0,auto); }
[data-wpfcu-drawer] .wpfcu-breakdown dt, [data-wpfcu-drawer] .wpfcu-breakdown dd, [data-wpfcu-drawer] .wpfcu-estimated, [data-wpfcu-drawer] .wpfcu-estimated > * { min-width:0; white-space:normal; overflow-wrap:anywhere; }
[data-wpfcu-drawer] .wpfcu-estimated { flex-wrap:wrap; }
[data-wpfcu-drawer] .wpfcu-actions { gap:10px; }
[data-wpfcu-drawer] a.wpfcu-checkout, [data-wpfcu-drawer] a.wpfcu-view-cart, [data-wpfcu-page] a.wpfcu-checkout, [data-wpfcu-page] .wpfcu-summary .wc-proceed-to-checkout a.checkout-button { border-radius:6px; white-space:normal; overflow-wrap:anywhere; line-height:1.35; letter-spacing:0; }
[data-wpfcu-drawer] :is(a,button,input):focus-visible, [data-wpfcu-page] :is(a,button,input,select):focus-visible { outline:2px solid #111!important; outline-offset:3px; }
/* Cart page: content, values and controls can wrap instead of clipping at intermediate widths. */
[data-wpfcu-page] :is(.product-name,.product-name *,.product-price,.product-subtotal,.wpfcu-summary,.wpfcu-summary th,.wpfcu-summary td) { white-space:normal; overflow-wrap:anywhere; word-break:normal; }
[data-wpfcu-page] .product-name, [data-wpfcu-page] .product-price, [data-wpfcu-page] .product-subtotal, [data-wpfcu-page] .product-quantity { min-width:0; }
@media (max-width:380px) {
 [data-wpfcu-drawer] .wpfcu-header { padding:20px 16px 14px; }
 [data-wpfcu-drawer] .wpfcu-items { padding:0 12px; }
 [data-wpfcu-drawer] [data-wpfcu-item] { grid-template-columns:minmax(56px,72px) minmax(0,1fr) 32px; gap:8px; }
 [data-wpfcu-drawer] [data-wpfcu-remove] { width:32px; min-width:32px; height:32px; }
 [data-wpfcu-drawer] .wpfcu-drawer-footer { padding-left:16px; padding-right:16px; }
}
