/* Component sizing, loaded after WooCommerce and page styles. */
@media(max-width:1024px){
 .nice-content,.nice-home-content,.nice-footer,.nice-header{min-inline-size:0;box-sizing:border-box}
 .nice-content :where(.woocommerce,.woocommerce-cart-form,.cart-collaterals,.cart_totals,.woocommerce-notices-wrapper,.nice-cart-layout,.nice-cart-suggestions,.nice-cart-product-grid,.nice-product-shortcuts){min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
 .nice-content :where(img,video,iframe){max-inline-size:100%}
 .nice-content :where(.woocommerce-message,.woocommerce-error,.woocommerce-info){max-inline-size:100%;overflow-wrap:anywhere;box-sizing:border-box}
 .nice-content :where(.woocommerce-message,.woocommerce-info) .button{white-space:normal;text-align:center}
 .nice-content :where(.variation,.product_meta,.woocommerce-shipping-destination){overflow-wrap:anywhere}
 .nice-content :where(.select2-container){max-inline-size:100%}
 .nice-product-mobilebar{min-inline-size:0;max-inline-size:calc(100% - 28px);box-sizing:border-box}
 .nice-product-mobilebar-price{overflow-wrap:anywhere}
 .nice-product-mobilebar button{flex-shrink:1;min-width:0;white-space:normal}
}
@media(max-width:1024px){
 .nice-content{inline-size:calc(100% - 28px)!important;max-inline-size:calc(100% - 28px)!important;margin-inline:auto}
 .nice-content>.woocommerce{inline-size:100%}
 /* A table containing block/grid rows must also leave table formatting. */
 .nice-cart-page table.cart{display:block!important;inline-size:100%!important;max-inline-size:100%;table-layout:fixed}
 .nice-cart-page table.cart tbody{display:block;inline-size:100%;max-inline-size:100%}
 .nice-cart-page table.cart tbody>tr{inline-size:100%;max-inline-size:100%;box-sizing:border-box}
 .nice-cart-page table.cart td{min-inline-size:0;max-inline-size:100%;box-sizing:border-box;overflow-wrap:anywhere}
 .nice-cart-page table.cart td.actions{inline-size:100%!important;display:block!important}
 .nice-cart-page table.cart .product-name dl.variation{margin:6px 0 0;max-inline-size:100%;white-space:normal}
 .nice-cart-page table.cart .product-name dl.variation dt,.nice-cart-page table.cart .product-name dl.variation dd{float:none;display:inline;margin:0 4px 0 0;overflow-wrap:anywhere}
 .nice-cart-page table.cart .product-name dl.variation p{display:inline}
 .nice-cart-page .coupon{inline-size:100%;max-inline-size:100%;grid-template-columns:minmax(0,1fr) minmax(0,auto)}
 .nice-cart-page .coupon>*{min-inline-size:0;max-inline-size:100%}
 .nice-cart-page .coupon .button{white-space:normal;overflow-wrap:anywhere}
 .nice-cart-page .cart_totals table{table-layout:fixed;inline-size:100%;max-inline-size:100%}
 .nice-cart-page .cart_totals table th{inline-size:38%;overflow-wrap:anywhere}
 .nice-cart-page .cart_totals table td{min-inline-size:0;overflow-wrap:anywhere}
 .nice-cart-page .cart_totals :where(.woocommerce-Price-amount,bdi,label){white-space:normal;overflow-wrap:anywhere}
 .nice-cart-page .cart_totals .shipping-calculator-form{inline-size:100%;min-inline-size:0;padding-inline:0}
 .nice-cart-page .cart_totals .shipping-calculator-form .form-row{padding-inline:0;float:none;width:100%;min-width:0}
 .nice-cart-page .cart_totals .shipping-calculator-form :where(input,select,.select2-container){inline-size:100%!important;min-inline-size:0;box-sizing:border-box}
 .nice-cart-page .nice-cart-product .price{overflow-wrap:anywhere}
 .nice-cart-page .nice-cart-product .button{white-space:normal}
 .nice-cart-page .nice-cart-heading>a{flex-shrink:1;min-inline-size:0}
 .nice-single-product .summary .single_add_to_cart_button{max-inline-size:100%;white-space:normal}
 .nice-single-product .summary .group_table{table-layout:fixed}
 .nice-single-product .woocommerce-product-attributes{table-layout:fixed}
 .nice-footer-inner>*{min-inline-size:0;overflow-wrap:anywhere}
}

/* Keep the store name beside the logo on one line, including sticky mode. */
@media(max-width:1024px){
 .nice-header .nice-logo{flex-wrap:nowrap;min-width:0;gap:min(var(--nice-logo-text-gap,6px),6px)}
 .nice-header .nice-logo-text{white-space:nowrap;overflow-wrap:normal;word-break:normal;max-width:none;min-width:max-content;flex:0 0 auto;line-height:1.5}
 .nice-header .nice-logo-image{flex:0 1 auto;min-width:0;overflow:hidden}
 .nice-header .nice-logo-image img{max-width:100%;object-fit:contain}
}
