/* Figma Upsell modal, extended to the whole cart.
   Approved compact variant: max 500px; 18px prices match standard product cards. */
body.cart-panel-open .nm-cart-panel-holder, body.cart-panel-closing .nm-cart-panel-holder { width: 100%; }
body #nm-cart-panel {
    --mini-padding: 8px; --mini-image: 74px; --mini-gap: 16px;
    width: 100%; max-width: 500px; min-height: 0;
    background: var(--dudette-moody-grey); color: var(--dudette-pearly-white);
    box-shadow: var(--dudette-shadow-down-medium);
}
#nm-cart-panel .nm-cart-panel-header { flex: none; padding: 24px var(--mini-padding) 24px; color: inherit; }
#nm-cart-panel .nm-cart-panel-header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; height: auto; border: 0; }
#nm-cart-panel h2 { margin: 0; color: inherit; font: 400 32px/40px 'Futura Condensed PT', sans-serif; }
body #nm-cart-panel #nm-cart-panel-close { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 4px; margin: 0; border: 0; background: transparent; }
#nm-cart-panel-close img { display: block; width: 32px; height: 32px; }
#nm-cart-panel .dudette-mini-error { margin-top: 12px; font: 400 14px/20px Jost,sans-serif; }
#nm-cart-panel .dudette-mini-error[hidden] { display: none; }
#nm-cart-panel .dudette-mini-retry { color: inherit; text-decoration: underline; background: none; border: 0; padding: 4px; }
#nm-cart-panel .widget_shopping_cart_content { min-height: 0; }
#nm-cart-panel .nm-cart-panel-list-wrap { min-height: 0; padding: 16px var(--mini-padding) 32px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
#nm-cart-panel .nm-cart-panel-list-wrap::-webkit-scrollbar { display: none; }
#nm-cart-panel .product_list_widget { gap: 24px; flex-wrap: nowrap; }
#nm-cart-panel .product_list_widget > li { position: relative; align-items: flex-start; flex-wrap: nowrap; gap: var(--mini-gap); padding: 24px 0 0; border-color: var(--dudette-medium-green); }
#nm-cart-panel .nm-cart-panel-item-thumbnail { flex: 0 0 var(--mini-image); width: var(--mini-image); }
#nm-cart-panel .product_list_widget li img { width: 100%; max-width: none; height: auto; aspect-ratio: 74 / 101; object-fit: cover; border-radius: 0; }
#nm-cart-panel .nm-cart-panel-item-details { min-width: 0; }
#nm-cart-panel .nm-cart-panel-product-title, #nm-cart-panel .dudette-mini-product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0 0 4px; padding-right: 28px; font: 400 18px/24px 'Futura Condensed PT', sans-serif; color: var(--dudette-pearly-white); pointer-events: auto; }
#nm-cart-panel .product_list_widget .remove, #nm-cart-panel .product_list_widget .woocommerce-mini-cart-item:first-child .remove { top: 20px; right: 0; width: 28px; height: 32px; line-height: 32px; text-align: center; opacity: 1; }
#nm-cart-panel .product_list_widget .woocommerce-mini-cart-item:first-child .remove { top: -4px; }
#nm-cart-panel .variation, #nm-cart-panel .dudette-mini-size { color: var(--dudette-pearly-white); font: 500 14px/20px Jost,sans-serif; margin: 0 0 8px; }
#nm-cart-panel .nm-cart-panel-quantity-pricing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; overflow: visible; margin-top: 8px; }
#nm-cart-panel .nm-quantity-wrap .quantity { margin: 0; }
#nm-cart-panel .quantity .nm-qty-minus, #nm-cart-panel .quantity .nm-qty-plus, #nm-cart-panel .quantity .qty { height: 32px; line-height: 32px; width: 32px; text-align: center; color: var(--dudette-pearly-white); background: transparent; }
#nm-cart-panel .quantity .qty { padding: 0; }
#nm-cart-panel .nm-cart-panel-item-price { float: none; color: var(--dudette-green); }
#nm-cart-panel .nm-cart-panel-item-price .amount, #nm-cart-panel .dudette-mini-recommendation .price { font: 600 18px/24px Jost,sans-serif; color: var(--dudette-green); }
#nm-cart-panel .woocommerce-Price-currencySymbol { font-size: .65em; }
body #nm-cart-panel .nm-cart-panel-summary { flex: none; padding: 16px var(--mini-padding) max(24px, env(safe-area-inset-bottom)); background: var(--dudette-moody-grey); color: var(--dudette-pearly-white); box-shadow: var(--dudette-shadow-up-strong); }
#nm-cart-panel .total { padding: 0 0 16px; gap: 8px; border: 0; line-height: 24px; }
#nm-cart-panel .total .amount { color: var(--dudette-green); font: 600 18px/24px Jost,sans-serif; }
#nm-cart-panel .woocommerce-mini-cart__buttons { display: flex; gap: 16px; }
/* Override Savoy's more specific empty-cart display:block rule. */
body #nm-cart-panel .buttons.nm-cart-empty-button .button { display:flex; align-items:center; justify-content:center; text-align:center; }
body #nm-cart-panel .buttons .button, body #nm-cart-panel .buttons .button.checkout { display: flex; align-items: center; justify-content: center; flex: 1; width: auto; min-width: 0; height: 40px; margin: 0; padding: 0 12px; float: none; border-radius: 4px; font: 400 16px/24px Jost,sans-serif; }
body #nm-cart-panel .buttons .button.checkout { color: var(--dudette-jazzy-black); background: var(--dudette-green); border: 1px solid var(--dudette-green); }
body #nm-cart-panel .buttons .button.wc-forward:not(.checkout) { color: var(--dudette-green); border-color: var(--dudette-green); }
body #nm-cart-panel .buttons .button:hover { background: var(--dudette-light-green); color: var(--dudette-jazzy-black); border-color: var(--dudette-light-green); }
#nm-cart-panel .product_list_widget .empty i { background: var(--dudette-medium-green); color: var(--dudette-pearly-white); }
#nm-cart-panel-loader, #nm-cart-panel .nm-cart-panel-thumbnail-loader { background: var(--dudette-moody-grey); }
#nm-cart-panel :is(a, button, input):focus-visible { outline: 2px solid var(--dudette-pearly-white); outline-offset: 2px; }
#nm-cart-panel .dudette-mini-recommendations { padding-top: 40px; }
#nm-cart-panel .dudette-mini-recommendations h3 { color: inherit; margin: 0 0 16px; font: 400 24px/32px 'Futura Condensed PT',sans-serif; }
#nm-cart-panel .dudette-mini-recommendation-list { display: grid; gap: 32px; list-style: none; padding: 0; margin: 0; }
#nm-cart-panel .dudette-mini-recommendation { display: flex; gap: var(--mini-gap); margin: 0; padding: 0; }
#nm-cart-panel .dudette-mini-recommendation-image { flex: 0 0 var(--mini-image); width: var(--mini-image); align-self: flex-start; }
#nm-cart-panel .dudette-mini-recommendation-image img { display: block; width: 100%; height: auto; aspect-ratio: 74 / 101; object-fit: cover; }
#nm-cart-panel .dudette-mini-recommendation-details { display: flex; flex: 1; flex-direction: column; min-width: 0; }
#nm-cart-panel .dudette-mini-product-title { padding-right: 0; }
#nm-cart-panel .dudette-mini-recommendation-buy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
#nm-cart-panel .dudette-mini-recommendation .price { min-width: 0; flex: 1; overflow-wrap: anywhere; }
#nm-cart-panel .dudette-mini-recommendation .price del { display: block; color: var(--dudette-light-green); font: 500 14px/20px Jost,sans-serif; opacity: 1; }
#nm-cart-panel .dudette-mini-recommendation .price ins { background: none; text-decoration: none; }
#nm-cart-panel .dudette-mini-recommendation .dudette-card-buy { display: flex; align-items: center; justify-content: center; position: relative; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 8px; border: 0; border-radius: 4px; background: var(--dudette-green); color: var(--dudette-jazzy-black); }
#nm-cart-panel .dudette-mini-recommendation .dudette-card-buy img { width: 24px; height: 24px; }
#nm-cart-panel .dudette-mini-recommendation .dudette-card-buy:hover { background: var(--dudette-light-green); }
#nm-cart-panel .dudette-mini-recommendation .added_to_cart { display: none; }
#nm-cart-panel .dudette-mini-recommendation .loading { opacity: .5; pointer-events: none; }
#nm-cart-panel .dudette-shipping-bar--mini-cart-fragment { flex: none; padding: 0 var(--mini-padding) 8px; }
#nm-cart-panel .dudette-shipping-bar--mini-cart { font: 500 14px/20px Jost,sans-serif; }
#nm-cart-panel .dudette-shipping-bar__desktop { display: none; }
#nm-cart-panel .dudette-shipping-bar__mobile { display: inline; }
#nm-cart-panel .dudette-shipping-bar__progress { height: 4px; margin-top: 8px; background: var(--dudette-medium-green); border-radius: 4px; overflow: hidden; }
#nm-cart-panel .dudette-shipping-bar__progress-fill { height: 100%; background: var(--dudette-green); }
@media (min-width: 768px) { body #nm-cart-panel { --mini-padding: 24px; width: 372px; } }
@media (min-width: 1024px) {
    body #nm-cart-panel { --mini-padding: 32px; --mini-image: 84px; --mini-gap: 32px; width: 496px; }
    #nm-cart-panel .nm-cart-panel-header { padding-top: 32px; }
    #nm-cart-panel h2 { font-size: 40px; line-height: 48px; }
    #nm-cart-panel .nm-cart-panel-product-title, #nm-cart-panel .dudette-mini-product-title { font-size: 24px; line-height: 32px; }
    #nm-cart-panel .dudette-mini-recommendations h3 { font-size: 32px; line-height: 40px; }
}
@media (min-width: 1440px) {
    body #nm-cart-panel { width: 500px; }
    #nm-cart-panel .nm-cart-panel-header { padding-top: 40px; }
    #nm-cart-panel .dudette-shipping-bar__desktop { display: inline; }
    #nm-cart-panel .dudette-shipping-bar__mobile { display: none; }
}
@media (max-height: 550px) {
    #nm-cart-panel .nm-cart-panel-header { padding-top: 8px; padding-bottom: 8px; }
    body #nm-cart-panel .nm-cart-panel-summary { padding-top: 8px; padding-bottom: 8px; }
}
