/* Reuse the finalized card system; constrain only JS-A291's small option sets. */
body.single-product .ncx-jsa291-choices .ncx-variation-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
body.single-product .ncx-jsa291-choices .ncx-choice-section:first-child .ncx-variation-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
body.single-product .ncx-jsa291-choices .ncx-choice-section:nth-child(3) .ncx-variation-cards{grid-template-columns:minmax(0,240px)}
@media(max-width:600px){body.single-product .ncx-jsa291-choices .ncx-variation-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Stable-width parents wrap without growing to fill a spare row. */
.ncx-jsa291-nested .ncx-printhead-parents{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
body.single-product .ncx-jsa291-nested .ncx-printhead-parent{flex:0 0 460px;width:460px;max-width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;overflow:hidden}
body.single-product .ncx-jsa291-nested .ncx-printhead-parent h3{font-size:16px;font-weight:600;margin:0;padding:13px 14px;border-bottom:1px solid #d8e0e8;line-height:1.5;color:#334155}
.ncx-jsa291-nested .ncx-nested-prices{display:grid;grid-template-columns:repeat(var(--ncx-amount-columns,4),minmax(0,1fr));gap:8px;padding:12px}
body.single-product .ncx-jsa291-nested .ncx-nested-price{font-size:14px;line-height:1.5}
.ncx-jsa291-nested .ncx-nested-price .ncx-variation-card__amount{padding:8px 7px;font-size:14px}
.ncx-jsa291-nested .ncx-nested-price .ncx-variation-card__price{padding:8px 7px;font-size:13px;white-space:nowrap}
body.single-product .ncx-jsa291-nested .ncx-printhead-parent.is-selected{border-color:#aeb4bc}
body.single-product .ncx-jsa291-nested .ncx-printhead-parent.is-selected h3{background:#f0f1f2}
body.single-product .ncx-jsa291-nested .ncx-nested-price[aria-pressed=true]{border-color:#555;box-shadow:inset 0 0 0 1px #555;background:#f0f1f2}
.ncx-selected-formulation:empty{display:none}
@media(max-width:600px){.ncx-jsa291-nested .ncx-nested-prices{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Larger centered labels, with the original card and header heights retained. */
body.single-product .ncx-jsa291-nested .ncx-printhead-parent h3{font-size:18px;line-height:24px}
body.single-product .ncx-jsa291-nested .ncx-nested-price{height:75.5px}
body.single-product .ncx-jsa291-nested .ncx-nested-price .ncx-variation-card__amount{font-size:16px;height:38px;flex:0 0 38px;display:flex;align-items:center;padding:0 5px}
body.single-product .ncx-jsa291-nested .ncx-nested-price .ncx-variation-card__price{font-size:15px;flex:1;display:flex;align-items:center;padding:0 5px}
body.single-product .ncx-jsa291-nested .ncx-nested-selection{padding:0;border:0;outline:1px solid rgba(229,31,40,.5);outline-offset:8px;border-radius:6px}
