/* V651: denser screen cart. Calculation, permission and print markup stay native. */
@media screen {
 body .sidebar-cart .cart-title {gap:6px;margin-bottom:8px;padding-bottom:8px}
 body .sidebar-cart .cart-title>div>strong {font-size:21px}
 body .sidebar-cart .cart-primary-actions {margin-bottom:9px;padding-bottom:9px;flex-shrink:0}
 body .sidebar-cart .cart-customer-actions:has(>button:not([hidden])) {gap:6px}
 body .sidebar-cart .cart-primary-actions :is(#save-offer-btn,#open-offers-btn) {flex:1 1 120px;min-height:42px;padding:7px 8px;font-size:12px;line-height:1.3;gap:6px}
 body .sidebar-cart .cart-primary-actions :is(#save-offer-btn,#open-offers-btn)::before {flex-basis:16px;width:16px;height:16px}
 body .sidebar-cart .cart-customer-actions:has(>button:not([hidden]))+.cart-favorite-actions:has(>button:not([hidden])) {margin-top:6px;padding-top:6px}
 body .sidebar-cart .cart-primary-actions #save-shop-favorite-btn {min-height:34px;padding:5px 8px;font-size:12px;border-color:transparent;background:transparent}
 body .sidebar-cart .cart-primary-actions #save-shop-favorite-btn:hover {background:#edf4f9;border-color:#cbdce8}
 body .sidebar-cart .cart-item {margin-bottom:7px;padding:9px 10px}
 body .sidebar-cart .cart-item-subtitle {margin-bottom:5px}
 body .sidebar-cart .cart-price-table {margin-bottom:4px;padding:4px}
 body .sidebar-cart .cart-price-table .cart-item-row {padding:3px 5px;flex-wrap:wrap;column-gap:8px;row-gap:2px}
 body .sidebar-cart .cart-price-table .cart-item-row>strong {margin-left:auto}
 body .sidebar-cart .cart-item-footer-info {margin-top:4px;padding-top:4px}
 body .sidebar-cart .cart-totals {padding:10px 12px;flex-shrink:0}
 body .sidebar-cart .cart-totals .total-row {margin-bottom:5px}
 body .sidebar-cart .cart-totals .onetime-row {margin-top:4px;padding-top:6px}
 body .sidebar-cart .cart-phase-list {margin-bottom:6px;padding-bottom:5px}
 body .sidebar-cart .cart-phase-row {padding:3px 0}
 body .sidebar-cart #provi-sum-code {margin-top:6px;padding-top:5px}
 body .sidebar-cart #cart-list:focus-visible {outline:2px solid #0785bd;outline-offset:2px;border-radius:6px}
}
@media screen {
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item:has(>.cart-product-preview) {display:grid;grid-template-columns:minmax(0,1fr) 32px;column-gap:7px;align-items:start}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item:has(>.cart-product-preview)>* {grid-column:1/-1;min-width:0}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item:has(>.cart-product-preview)>.cart-item-header {grid-row:1}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item:has(>.cart-product-preview)>.cart-item-subtitle {grid-column:1;grid-row:2;align-self:center}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item:has(>.cart-product-preview)>.cart-price-table {grid-column:1/-1;grid-row:3;width:auto}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item>.cart-product-preview {grid-column:2;grid-row:2;display:flex;justify-content:center;align-items:flex-start;min-height:0;margin:0 0 4px;padding:0;border:0;background:transparent;box-shadow:none}
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item>.cart-product-preview img {width:30px;height:30px;object-fit:contain}
 /* Name is already present in the item heading; keep the actual product image. */
 body:not([data-layout="smartphone"]) .sidebar-cart #cart-list>.cart-item>.cart-product-preview>span {display:none}
}
@media screen and (min-width:1101px) and (min-height:620px) {
 body:not([data-layout="smartphone"]):not([data-layout="tablet"]):not(:has(#tab-family-renewal.active)) .sidebar-cart:has(#cart-list>.cart-item) {padding:14px;top:12px;height:auto;min-height:0;max-height:calc(100dvh - 24px);overflow:visible}
 body:not([data-layout="smartphone"]):not([data-layout="tablet"]):not(:has(#tab-family-renewal.active)) .sidebar-cart:has(#cart-list>.cart-item) .cart-title {flex-shrink:0}
 body:not([data-layout="smartphone"]):not([data-layout="tablet"]):not(:has(#tab-family-renewal.active)) .sidebar-cart:has(#cart-list>.cart-item) #cart-list {flex:1 1 auto;min-height:100px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;margin-bottom:8px;padding:2px 6px 2px 2px}
}
@media screen and (max-width:768px) {
 body .sidebar-cart .cart-primary-actions :is(#save-offer-btn,#open-offers-btn,#save-shop-favorite-btn) {min-height:44px}
 body .sidebar-cart .cart-primary-actions #save-shop-favorite-btn {padding:6px 8px}
}
