/* The title grows freely; identifiers and prices form the bottom of the card. */
body.fscpc-card-codes ul.products li.product{display:flex;flex-direction:column}
body.fscpc-card-codes ul.products li.product>a.woocommerce-LoopProduct-link.woocommerce-loop-product__link{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;width:100%}
body.fscpc-card-codes ul.products li.product .woocommerce-loop-product__title{height:auto;max-height:none;overflow:visible;white-space:normal;-webkit-line-clamp:unset;margin-bottom:6px}
body.fscpc-card-codes ul.products li.product .fscpc-loop-code{margin-top:auto;padding-top:6px;margin-bottom:5px;min-height:1.3em;overflow-wrap:anywhere}
body.fscpc-card-codes ul.products li.product>a.woocommerce-LoopProduct-link>.price{min-height:3em;box-sizing:border-box;margin:0 0 6px;line-height:1.45}
body.fscpc-card-codes ul.products li.product .fs-card-actions{margin-top:0;flex-shrink:0}

body.fscpc-card-codes ul.products li.product .stock-pill.fscpc-order-only{color:#B45309}

/* Unavailable cards have no quantity control: label left, details icon right. */
body.fscpc-card-codes ul.products li.product .fs-card-actions.fscpc-unavailable-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box}
body.fscpc-card-codes ul.products li.product .fscpc-unavailable-actions .stock-pill{white-space:nowrap;overflow-wrap:normal;flex:0 1 auto;text-align:left;margin:0}
body.fscpc-card-codes ul.products li.product .fscpc-unavailable-actions a.fscpc-product-info{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px;box-sizing:border-box;padding:0!important;margin:0 0 0 auto!important;line-height:1;font-size:24px;font-weight:800;text-indent:0;overflow:visible}
body.fscpc-card-codes ul.products li.product a.fscpc-product-info::before,body.fscpc-card-codes ul.products li.product a.fscpc-product-info::after{display:none!important;content:none!important}

body.fscpc-card-codes ul.products li.product a.fscpc-product-info .fs-product-info-icon{display:block!important;width:24px!important;height:24px!important;min-width:24px;max-width:none;margin:0!important;flex:none;color:#fff;vertical-align:middle}

/* Two explicit lines, centered vertically with quantity and cart controls. */
body.fscpc-card-codes ul.products li.product .fs-card-actions .stock-pill.fscpc-order-only{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;text-align:center;line-height:1.25;margin:0;white-space:normal;overflow-wrap:normal}
body.fscpc-card-codes ul.products li.product .fs-card-actions .fscpc-order-only>span{display:block;white-space:nowrap}
