dialog.uxen-cart{inset:0 0 0 auto;margin:0;width:400px;max-width:100vw;height:100dvh;max-height:none;border:0;padding:0;color:#474747;font:14px/22px UXEN,sans-serif;background:white;overflow:hidden}
.uxen-cart::backdrop{background:rgba(0,0,0,.2);backdrop-filter:none}.cart-heading{height:56px;padding:0 12px;display:flex;justify-content:space-between;align-items:center}.cart-heading h2{font-size:14px;line-height:20px;font-weight:700}.cart-heading button{border:0;background:transparent;padding:0;width:46px;height:22px;font:inherit;color:#000;white-space:nowrap}.cart-heading button:hover,.cart-heading button:active{background:black;color:white}.cart-scroll{height:calc(100% - 56px);overflow:auto;overscroll-behavior:contain;padding:0 12px 12px}.cart-product{padding:16px 0;border-bottom:1px solid #ddd}.cart-product-info{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px}.cart-product-info img{width:72px;height:96px;object-fit:contain;background:#f7f7f7}.cart-product-info h3{font:inherit;color:inherit}.cart-product-info p{font:inherit;overflow-wrap:anywhere;margin-top:4px}.cart-photo-pending{width:72px;height:96px;background:#f7f7f7;display:grid;place-content:center;text-align:center;font-size:max(11px,var(--uxen-copy-min,0px));line-height:18px}.cart-product-actions{position:relative;display:flex;justify-content:flex-end;align-items:center;margin-top:12px;min-height:28px}.cart-unit{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}.cart-stepper{display:flex;width:76px;height:28px;background:#f0f0f0}.cart-stepper button{width:24px;flex:none;padding:0;border:0;background:transparent;display:grid;place-items:center}.cart-stepper input{width:28px;min-width:0;flex:none;border:0;background:transparent;padding:0;text-align:center;line-height:20px;white-space:nowrap}.cart-total{display:flex;justify-content:space-between;padding:24px 0 12px}.cart-price-note,.cart-warning{margin:0 0 12px;font:inherit}.cart-empty{padding:24px 0}.cart-continue,.cart-consult{width:calc(100% + 24px);margin-left:-12px;border:0;border-radius:0;min-height:44px;font:inherit;line-height:20px}.cart-continue{background:#f7f7f7;color:black}.cart-continue:hover,.cart-continue:active{background:black;color:white}.cart-consult{background:black;color:white}.cart-consult:hover,.cart-consult:active{background:white;color:black}
@media(max-width:800px){dialog.uxen-cart{width:390px}}

/* Formal empty state: one message, followed by in-flow actions. */
.uxen-cart[data-empty="true"] .cart-total{height:44px;padding:12px 0;line-height:20px}
.cart-empty-spacer{height:92px}
.cart-continue{background:#f0f0f0}
@media(min-width:801px){dialog.uxen-cart{right:12px}}
@media(max-width:800px){dialog.uxen-cart{width:100vw}.uxen-cart::backdrop{background:rgba(79%,79%,79%,.96)}.cart-empty-spacer{height:68px}}

/* Explicit regular weight; generic site button rules must not change the drawer. */
.uxen-cart .cart-heading button,.uxen-cart .cart-continue,.uxen-cart .cart-consult,.uxen-cart .cart-total{font-weight:400}

/* VIS-119: 图片不保留行内基线空隙，配置器与官网购物车共用正式96px图框。 */
.uxen-cart .cart-product-info img{display:block}

.uxen-cart .cart-heading h2{font:700 12px/20px 'Noto Sans SC',sans-serif}
.uxen-cart .cart-heading button{font:400 12px/22px 'Noto Sans SC',sans-serif}

/* The original cart's second view stays inside the same sheet. */
.cart-enquiry-scroll{padding:0;scrollbar-width:thin}
.cart-enquiry-intro{padding:8px 12px;display:flex;flex-direction:column;gap:8px;color:#000;font:400 14px/22px UXEN,sans-serif}
.cart-enquiry-intro h3{font:700 14px/22px UXEN,sans-serif;margin:0}
.cart-enquiry-intro p{font:inherit;margin:0}
.cart-enquiry-intro button{padding:0;border:0;background:transparent;text-align:left;min-height:22px;font:inherit}
.cart-enquiry-form{padding:8px 12px 0;color:#000;font:400 14px/22px UXEN,sans-serif}
.cart-enquiry-field{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:center;min-height:52px;padding:4px 0}
.cart-enquiry-field:first-child{min-height:82px}
.cart-enquiry-field:has(select),.cart-enquiry-field:has([name=country]),.cart-enquiry-field:has([name=region]){min-height:58px}
.cart-enquiry-field:has(textarea){min-height:84px}
.cart-enquiry-field :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;height:46px;margin:0;padding:8px 12px;border:1px solid #d4d4d4;border-radius:0;background:#fff;color:#000;font:inherit}
.cart-enquiry-consent{display:flex;gap:12px;align-items:center;min-height:92px;padding:12px 0;font-size:12px;line-height:18px}
.cart-enquiry-consent input{width:20px;height:20px;flex:none;accent-color:#000}
.cart-enquiry-status{font-size:12px;line-height:20px;margin:0 0 12px}
.cart-enquiry-form>.cart-consult{display:block;width:calc(100% + 24px);margin:0 -12px;min-height:44px}
.uxen-cart .cart-scroll:not(.cart-enquiry-scroll){padding-bottom:0}

.uxen-cart .cart-configuration-name{display:flex;align-items:center;gap:8px}.uxen-cart .cart-configuration-name input{font:inherit;color:inherit;min-width:0;width:120px;max-width:calc(100% - 24px);padding:0;border:0;background:transparent}.uxen-cart .cart-configuration-name input::placeholder{color:inherit;opacity:1}

.uxen-cart .cart-configuration-name input:is(:focus,:focus-visible){outline:none;box-shadow:none;border:0}

.uxen-cart .cart-configuration-name{gap:4px}.uxen-cart .cart-configuration-name input{flex:0 1 auto}.uxen-cart .cart-configuration-name .cart-edit{flex:none}

/* Approved cart product copy: regular weight and the existing secondary gray. */
html body:is([data-page],.formal-studio) :is(dialog,#drawer,#configuration-summary,#cart-dialog).uxen-cart .cart-product-info :is(h3,p){font-size:12px!important;font-weight:400!important;color:#474747!important}

/* Desktop cart actions stay visible; only products scroll. Mobile flow is retained. */
.uxen-cart .cart-product-list,.uxen-cart .cart-bottom{display:contents}
@media(min-width:801px){
 dialog.uxen-cart[data-view="products"]>.cart-scroll{display:flex;flex-direction:column;overflow:hidden}
 .uxen-cart[data-view="products"] .cart-product-list{display:block;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -12px;padding:0 12px}
 .uxen-cart[data-view="products"] .cart-bottom{display:block;flex:none;background:#fff}
}

.product-swipe-remove{display:none}
@media(max-width:800px){
 dialog:is(.uxen-cart,#configuration-summary) .cart-product{touch-action:pan-y pinch-zoom}
 dialog:is(.uxen-cart,#configuration-summary) .cart-product>:not(.product-swipe-remove){transform:translateX(var(--product-swipe-offset,0px))}
 html body dialog:is(.uxen-cart,#configuration-summary) .cart-product>.product-swipe-remove{position:absolute;top:16px;right:0;display:grid;place-items:center;min-width:0!important;min-height:0!important;padding:0!important;border:0;border-radius:0;color:#474747;font-weight:400;line-height:1;z-index:2}
 html body dialog:is(.uxen-cart,#configuration-summary) .product-swipe-remove[hidden]{display:none}
}

/* Approved cart grand-total band matches the action button height. */
.uxen-cart[data-view="products"] .cart-bottom>.cart-total{box-sizing:border-box;align-items:center;height:44px;min-height:44px;padding:0}

.cart-enquiry-privacy{margin:12px 0;font-size:12px;line-height:18px;overflow-wrap:anywhere}
.cart-enquiry-privacy a{color:inherit;text-decoration:underline;text-underline-offset:2px}
