/* Shared shell; WooCommerce owns cart, totals, validation and payment state. */
.nb-commerce{--nb-commerce-max:1120px;background:#e5e3dd;color:#24324b}
.nb-commerce .wp-site-blocks{padding:0 24px}
.nb-commerce-header,.nb-commerce-main,.nb-commerce-footer{width:100%;max-width:var(--nb-commerce-max);margin-inline:auto;box-sizing:border-box}
.nb-commerce .nb-commerce-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:88px;border-bottom:1px solid #c8c9c1;margin-block:0 24px;padding:12px 0}
.nb-commerce-header img{display:block;width:108px;height:52px;object-fit:contain}
.nb-commerce-header a{font-size:.875rem;font-weight:700;color:#24324b;text-decoration:none}
.nb-commerce-header a:last-child{display:flex;align-items:center;min-height:44px}
.nb-commerce .nb-commerce-main{margin-block:0}
.nb-commerce .wp-block-post-content{max-width:none!important;margin:0!important;width:100%}
.nb-commerce .nb-commerce-footer{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;border-top:1px solid #c8c9c1;padding:24px 0;margin-top:40px;font-size:.875rem;color:#526078}
.nb-commerce-footer a{color:#24324b;font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.nb-checkout-intro{margin:0 0 24px}
.nb-commerce-steps ol{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;padding:0;margin:0 0 24px;font-size:.875rem;font-weight:700;color:#526078}
.nb-commerce-steps li{padding:8px 0}
.nb-commerce-steps li[aria-current]{color:#24324b;border-bottom:2px solid currentColor}
.nb-commerce-steps a{color:inherit;text-decoration:none}
.nb-checkout-intro h1{font-size:1.75rem;line-height:1.15;letter-spacing:-.025em;margin:0 0 12px;font-weight:800}
.nb-checkout-intro>p{margin:0;color:#526078;font-size:1rem}
.nb-commerce-delivery{margin-bottom:24px;background:#f9f8f4;border-radius:20px;padding:0 24px}
.nb-checkout-date,.nb-checkout-delivery{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0}
.nb-checkout-date strong{font-size:1rem}
.nb-checkout-date p{font-size:.875rem;color:#526078;margin:4px 0 0;line-height:1.5}
.nb-checkout-delivery{border-top:1px solid #d4d5cd}
.nb-checkout-delivery>div{display:grid;gap:4px}
.nb-checkout-delivery span{font-size:.875rem;color:#526078}
.nb-commerce .wp-block-woocommerce-checkout{margin-top:0!important}
.nb-commerce-delivery button{font:inherit;font-weight:700;font-size:.875rem;white-space:nowrap;background:transparent;border:1px solid #7a8075;border-radius:12px;min-height:44px;padding:10px 16px;flex-shrink:0;color:#24324b;cursor:pointer}
.nb-commerce-delivery button:hover{background:#e9ece3}
.nb-commerce-delivery button:active{background:#dce7d6}
.nb-commerce .wc-block-components-sidebar-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start;margin:0}
.nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-main,.nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-sidebar{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:24px;border-radius:20px;background:#fff}
.nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-sidebar{background:#f9f8f4;position:sticky;top:24px}
.nb-commerce .wc-block-components-checkout-step{margin-bottom:32px}
.nb-commerce .wc-block-components-checkout-step__title{font-size:1.25rem;font-weight:800}
.nb-commerce .wc-block-components-text-input input,.nb-commerce .wc-block-components-combobox-control input,.nb-commerce .wc-block-components-textarea{font-size:1rem;border-radius:10px!important;min-height:56px}
.nb-commerce .wc-block-components-text-input label{color:#526078}
.nb-commerce .wc-block-components-order-summary-item__image img{border-radius:10px;object-fit:cover}
.nb-commerce .wp-block-woocommerce-checkout-order-summary-block{border:0}
/* Keep the native top/sidebar summary; omit its duplicate before Place order. */
.nb-commerce .wc-block-checkout__actions .checkout-order-summary-block-fill-wrapper{display:none}
.nb-commerce .wc-block-components-order-summary-item__description .wc-block-components-product-metadata{font-size:.875rem}
.nb-commerce .wc-block-components-checkout-place-order-button,.nb-commerce .wc-block-cart__submit-button{background:#24324b;color:white;border:0;border-radius:12px;min-height:52px;font:inherit;font-weight:800;text-decoration:none;padding:12px 20px}
.nb-commerce .wc-block-components-checkout-place-order-button:hover,.nb-commerce .wc-block-cart__submit-button:hover{background:#18273e}
.nb-commerce .wc-block-components-checkout-place-order-button:active,.nb-commerce .wc-block-cart__submit-button:active{background:#101d31}
.nb-commerce :is(button,a,input,textarea,select):focus-visible{outline:3px solid #52664b;outline-offset:3px}
.nb-commerce button:disabled{cursor:not-allowed}
.nb-commerce .wc-block-components-product-name{color:#24324b;font-size:1rem!important;font-weight:800!important;text-decoration:none;line-height:1.35}
.nb-commerce .wc-block-components-formatted-money-amount{font-size:1rem!important}
.nb-commerce .wc-block-components-product-name:hover{text-decoration:underline}
.nb-commerce .wc-block-cart table.wc-block-cart-items{margin:0;border:0}
.nb-commerce .wc-block-cart-items__header th{font-size:.875rem;color:#526078;text-transform:none;padding-bottom:16px}
.nb-commerce .wc-block-cart-items__row td{padding-block:20px;border-color:#e2e3dd}
.nb-commerce .wc-block-cart-item__image img{border-radius:12px;width:88px;height:88px;object-fit:cover;max-width:100%}
.nb-commerce .wc-block-cart-item__image{width:104px!important;padding-right:16px!important}
.nb-commerce .wc-block-cart-item__product{padding-right:16px!important}
.nb-commerce .wc-block-cart-item__total{min-width:64px;font-weight:700;font-variant-numeric:tabular-nums}
.nb-commerce .wc-block-components-product-metadata__description{font-size:.875rem!important;line-height:1.5;color:#526078}
.nb-commerce .wc-block-components-quantity-selector{min-height:44px;width:132px;border-radius:10px;border-color:#7a8075;margin-top:4px}
.nb-commerce .wc-block-components-quantity-selector__button{min-width:44px;min-height:44px;font-size:1.125rem}
.nb-commerce .wc-block-components-quantity-selector__input{font-size:1rem;min-height:44px}
.nb-commerce .wc-block-cart-item__remove-link{min-width:44px;min-height:44px;margin-left:8px}
.nb-commerce .wc-block-cart__totals-title{font-size:1.25rem!important;text-transform:none!important;font-weight:800;padding:0 0 20px!important}
.nb-commerce .wc-block-components-totals-item{padding-inline:0}
.nb-commerce .wc-block-components-totals-footer-item{font-size:1.125rem;font-weight:800}
.nb-commerce .wc-block-components-totals-coupon__button{font-size:.875rem}
.nb-commerce .wc-block-cart__submit-container{margin-top:20px}
.nb-commerce .wp-block-woocommerce-empty-cart-block{background:#f9f8f4;border-radius:20px;padding:32px;text-align:center}
.nb-commerce .wp-block-woocommerce-empty-cart-block h2{font-size:1.5rem}
.nb-empty-cart>img{width:240px;height:180px;max-width:100%;object-fit:cover;border-radius:16px;margin:0 auto 24px;display:block}
.nb-empty-cart>p{max-width:44ch;margin:16px auto 24px;color:#526078}
.nb-empty-cart .nb-primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:52px;border-radius:12px}
.nb-commerce .wc-block-components-order-summary .wc-block-components-product-metadata__description{display:none}
/* One line total per product; keep quantity and any variant metadata. */
.nb-commerce .wc-block-components-order-summary-item__description>.wc-block-cart-item__prices{display:none}
.nb-commerce .wc-block-components-order-summary-item{padding-block:8px;margin:0;align-items:center}
.nb-commerce .wc-block-components-order-summary-item__image{width:40px;flex:0 0 40px;margin:0 12px 0 0;padding:0}
.nb-commerce .wc-block-components-order-summary-item__image img{width:40px;height:40px}
.nb-commerce .wc-block-components-order-summary-item__description{padding:0;min-width:0}
.nb-commerce .wc-block-components-order-summary-item__description .wc-block-components-product-name{margin:0;overflow-wrap:anywhere}
.nb-commerce .wc-block-components-order-summary-item__total-price{padding:0 0 0 12px;white-space:nowrap;align-self:center;font-variant-numeric:tabular-nums}
/* Checkout only: quantity sits beside the photo, never over it. */
.nb-commerce .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image{display:flex;flex-direction:row;align-items:center;gap:8px;width:auto;max-width:none;flex:0 0 auto}
.nb-commerce .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity span[aria-hidden]{color:#24324b}
.nb-commerce .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img{order:0;flex:0 0 40px}
.nb-commerce .wp-block-woocommerce-checkout .wc-block-components-order-summary-item__quantity{position:static;inset:auto;transform:none;order:1;flex:0 0 auto;min-width:24px;height:24px;padding:0 4px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin:0;border:0;box-shadow:none;border-radius:6px;background:#e9ece3;color:#24324b;font-size:14px;font-weight:800;line-height:1}
/* Delivery wizard: the same flow on cart and checkout, with no homepage detour. */
.nb-checkout{z-index:100100}
.nb-checkout header{min-height:72px}
.nb-checkout header .nb-checkout-close{width:auto;font-size:.875rem;padding:8px 12px;border:1px solid #7a8075;border-radius:12px;background:#fff;flex-shrink:0}
.nb-checkout header>div{min-width:0}
.nb-checkout header strong{font-size:.875rem}
.nb-checkout-step>h2{font-size:1.75rem;line-height:1.15;font-weight:800;letter-spacing:-.025em}
.nb-checkout .nb-panel{margin-top:20px}
.nb-checkout .nb-panel h3{font-size:1.125rem}
.nb-checkout .nb-checkout-step>.nb-eyebrow{display:none}
.nb-checkout [data-checkout-progress]{font-size:.875rem}
.nb-checkout .nb-residence label,.nb-checkout .nb-floor button{min-height:48px}
.nb-checkout input,.nb-checkout textarea{font-size:1rem}
.nb-checkout .nb-delivery label:has(input:focus-visible),.nb-checkout .nb-residence label:has(input:focus-visible){outline:3px solid #52664b;outline-offset:3px}
.nb-checkout-action button{min-height:52px}
.nb-checkout .nb-field-row{gap:16px}
.nb-checkout .nb-login-prompt{font-size:.875rem;line-height:1.5;color:#526078;margin:16px 0 0}
.nb-login-prompt a{font-weight:800;color:#24324b}
.nb-commerce .wc-block-components-product-metadata__description p{font-size:.875rem!important}
.nb-checkout-close{font:inherit;background:white;border:1px solid #7a8075;border-radius:12px;min-height:44px;padding:8px 12px;color:#24324b;cursor:pointer}
@media(max-width:900px){
 .nb-commerce .wc-block-components-sidebar-layout{grid-template-columns:minmax(0,1fr) 320px;gap:20px}
 .nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-main,.nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-sidebar{padding:20px}
}
@media(max-width:780px){
 .nb-commerce .wp-site-blocks{padding-inline:16px}
 .nb-commerce .nb-commerce-header{min-height:72px;margin-bottom:16px;padding:8px 0}
 .nb-commerce-header img{width:92px;height:48px}
 .nb-commerce-steps ol{gap:16px;margin-bottom:20px;font-size:.875rem}
 .nb-checkout-intro{margin-bottom:20px}
 .nb-commerce-delivery{padding:0 16px;margin-bottom:20px}
 .nb-checkout-date,.nb-checkout-delivery{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:16px 0;gap:12px}
 .nb-commerce-delivery button{padding-inline:12px}
 .nb-commerce .wc-block-components-sidebar-layout{display:flex;flex-direction:column;gap:20px}
 .nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-main,.nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-sidebar{width:100%;padding:16px;position:static}
 .nb-commerce .wc-block-components-checkout-step{padding-left:0}
 .nb-commerce .wc-block-cart-item__image{width:76px!important;padding-right:12px!important}
 .nb-commerce .wc-block-cart-item__image img{width:64px;height:76px}
 .nb-commerce .wc-block-cart-item__product{padding-right:8px!important}
 .nb-commerce .wc-block-cart-items__row td{padding-block:16px}
 .nb-commerce .wc-block-cart-item__total{min-width:48px}
 .nb-commerce .wc-block-cart table.wc-block-cart-items,.nb-commerce .wc-block-cart-items tbody{display:block;width:100%}
 .nb-commerce table.wc-block-cart-items .wc-block-cart-items__row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;box-sizing:border-box;width:100%;padding:16px 0}
 .nb-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image{grid-column:1;grid-row:1;width:64px!important;padding:0!important}
 .nb-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product{grid-column:2;grid-row:1;min-width:0;padding:0!important}
 .nb-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total{grid-column:2;grid-row:2;padding:0;justify-content:flex-end}
 .nb-commerce .wc-block-cart-item__quantity{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
 .nb-commerce .wc-block-cart-item__remove-link{margin-left:0}
 .nb-commerce .wc-block-components-quantity-selector{flex-shrink:0}
 .nb-commerce .wc-block-cart__submit-container--sticky{background:#f9f8f4;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #c8c9c1}
 .nb-commerce .nb-commerce-footer{margin-top:32px;padding-bottom:100px;gap:8px 20px}
 .nb-commerce-footer>span{width:100%}
 .nb-checkout .nb-residence{grid-template-columns:1fr}
 .nb-checkout .nb-panel .nb-delivery label{display:grid;grid-template-columns:88px minmax(0,1fr);min-height:100px}
 .nb-checkout .nb-delivery img{width:88px;height:100%;aspect-ratio:1;object-fit:cover}
 .nb-checkout .nb-delivery span{min-height:96px;font-size:.875rem}
 .nb-checkout .nb-delivery small{font-size:.8125rem}
}
@media(max-width:360px){
 .nb-commerce .wp-site-blocks{padding-inline:12px}
 .nb-commerce-steps ol{gap:12px;font-size:.8125rem}
 .nb-commerce .wc-block-components-sidebar-layout>.wc-block-components-main{padding:12px}
 .nb-commerce .wc-block-cart-item__image{width:60px!important;padding-right:8px!important}
 .nb-commerce .wc-block-cart-item__image img{width:52px;height:64px}
 .nb-commerce .wc-block-components-quantity-selector{width:120px}
 .nb-commerce .wc-block-cart-item__remove-link{margin-left:0}
}
.nb-commerce-main:has(.nb-empty-cart) .nb-commerce-delivery{display:none}
@media(prefers-reduced-motion:reduce){.nb-commerce *,.nb-checkout *{scroll-behavior:auto!important;transition:none!important}}
