/* UI-09: approved chat cart B01–B04. Reuses Checkout #71 lines and form. */
.checkoutFromChat .checkoutChatHeader{position:sticky;top:0;z-index:20;max-width:760px;width:100%;height:44px;min-height:44px;margin:0 auto;padding:0 6px;border-bottom:1px solid var(--line);background:#fff;transform:none!important}
.checkoutFromChat .checkoutChatHeader .bv-sections,.checkoutFromChat .checkoutChatHeader .bv-actions>*:not(.bv-cart){display:none}
.checkoutFromChat .checkoutChatHeader .bv-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:4px;align-items:center}
.checkoutFromChat .checkoutChatHeader .bv-wordmark{font:600 11px/1.05 Unbounded,sans-serif;letter-spacing:0}
.checkoutFromChat .checkoutChatHeader .bv-brand img{width:17px;height:17px}
.checkoutFromChat .checkoutChatHeader .bv-actions{margin-left:auto}
.checkoutFromChat .checkoutChatHeader .bv-cart{width:44px;height:44px;min-width:44px;background:transparent;border-radius:0;color:var(--ink);padding:0;position:relative}
.checkoutFromChat .checkoutChatHeader .bv-cart img{width:21px;height:21px;filter:none}
.checkoutFromChat .checkoutChatHeader .bv-count{position:absolute;top:3px;right:0;background:var(--ink);color:#fff;font:600 9px/14px Manrope,sans-serif;min-width:14px;height:14px;padding:0 2px;border-radius:7px}
.checkoutChatClose{position:absolute;top:0;left:6px;width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;padding:0}
.checkoutChatClose img{width:23px;height:23px}
.checkoutFromChat .checkoutEyebrow{display:none}
.checkoutChatCart .checkoutShell{max-width:760px;min-height:calc(100dvh - 44px);padding:20px 16px 24px}
.checkoutChatCart .checkoutHeader{margin:0}
.checkoutChatCart .checkoutHeader h1{font:600 19px/1.38 Unbounded,sans-serif;margin:0 2px}
.checkoutChatCart .checkoutLayout{display:block}
.checkoutChatCart .checkoutCart{display:flex;flex-direction:column;min-height:calc(100dvh - 114px);border:0;border-radius:0;background:#fff;padding:0;margin:0}
.checkoutChatCart #cartTitle{display:none}
.checkoutChatCart #cartCaption{font:400 12px/1.38 Manrope,sans-serif;color:#687783;margin:14px 2px 26px}
.checkoutChatCart .cartLines{margin:0 14px 24px}
.checkoutChatCart #refreshCart{align-self:flex-end;min-height:44px;margin:0 14px}
.checkoutChatCart .cartLine{border-radius:12px}
.checkoutFromChat .cartActions .removeItem{min-height:44px;text-decoration:none}
.checkoutFromChat .quantity{height:44px;border:0;border-radius:4px;background:linear-gradient(transparent 10px,var(--soft) 10px,var(--soft) 34px,transparent 34px)}
.checkoutFromChat .quantity button{width:44px;font:400 12px/18px Manrope,sans-serif}
.checkoutFromChat .quantity output{min-width:22px;color:var(--ink);font:400 12px/18px Manrope,sans-serif}
.checkoutFromChat .quantity button:disabled{opacity:.4;cursor:not-allowed}
.checkoutChatSummary{margin-top:auto;background:#fff;padding:12px 0 max(14px,env(safe-area-inset-bottom))}
.checkoutChatSummary .cartSubtotal{min-height:72px;padding:20px 14px;align-items:center;background:var(--soft);border-radius:2px;font:600 14px/1.38 Manrope,sans-serif;gap:12px}
.checkoutChatSummary .cartSubtotal strong{font-size:14px;text-align:right}
.checkoutChatContinue{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;border:0;border-radius:2px;background:var(--ink);color:#fff;font:600 14px/20px Manrope,sans-serif;padding:12px 16px;text-align:center;margin-top:15px;text-decoration:none}
.checkoutChatContinue:hover{text-decoration:none}
.checkoutChatContinue:disabled{opacity:.45;cursor:not-allowed}
.checkoutFromChat .bv-site-footer{display:none}
.checkoutFromChat #cartEditError{
  min-height:64px;margin:0 0 16px;padding:14px 12px;border:0;border-radius:0;
  background:#f8e8e8;color:var(--ink);font:400 14px/20px Manrope,sans-serif;
}
.checkoutFromChat .paymentNote{border:0;background:#f5f5f3;color:var(--ink)}
.checkoutFromChat .paymentNote strong{color:var(--ink)}
.checkoutFromChat .checkoutSubmit:disabled{background:#897c85;opacity:1}
.checkoutFromChat:not(.checkoutChatCart) .checkoutChatSummary{padding:12px 0 0;background:transparent}
.checkoutFromChat:not(.checkoutChatCart) .checkoutChatSummary .cartSubtotal{
  min-height:44px;padding:0;background:transparent;
}
.checkoutFromChat .checkoutChatContinue[hidden]{display:none}
.checkoutFromChat:not(.checkoutChatCart) .checkoutHeader h1:focus{outline:none}
.checkoutChatEmpty{padding:154px 16px 30px;text-align:left}
.checkoutChatEmpty h2{font:600 19px/1.45 Manrope,sans-serif;margin:0 0 18px}
.checkoutChatEmpty p{width:calc(100% + 10px);font:400 14px/1.45 Manrope,sans-serif;color:#657783;margin:0 0 32px}
.checkoutChatEmpty .checkoutChatContinue{margin-top:0}
.checkoutChatCart:has(.checkoutChatEmpty) #refreshCart{display:none}
@media(max-width:760px){
 .checkoutChatCart .cartLine{min-height:191px}
 .checkoutChatCart .cartActions{margin-top:auto}
 .checkoutChatCart .cartPhoto{border-radius:4px;object-fit:cover}
 .checkoutChatCart .cartCopy>p{color:var(--ink);font-size:10px;line-height:15px}
 .checkoutChatCart .cartSide strong{font-size:14px}
 .checkoutChatCart .checkoutChatSummary{position:sticky;bottom:0;z-index:5}
}

body.checkoutFromChat[data-bv-page]{padding-top:0}
.checkoutChatHeader{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}
.checkoutChatHeader .bv-brand{color:var(--ink);text-decoration:none}

body.checkoutFromChat .bv-wordmark{font:600 11px/1.05 Unbounded,sans-serif!important}
.checkoutChatHeader .bv-cart{display:flex;align-items:center;justify-content:center;border:0}
.checkoutChatCart #refreshCart{display:none}
.checkoutFromChat:not(.checkoutChatCart) .checkoutCart:has(.cartLine:not(.cartLineUnavailable)) #refreshCart{display:none}

@media(min-width:761px){
 .checkoutChatCart .checkoutShell{display:flex;flex-direction:column;padding-bottom:10px}
 .checkoutChatCart .checkoutLayout{display:flex;flex:1 0 auto;align-items:stretch}
 .checkoutChatCart .checkoutCart{flex:1;min-height:0}
 .checkoutChatCart #cartCaption{margin-bottom:14px}
 .checkoutChatCart .cartLines{margin-bottom:14px}
 .checkoutFromChat:not(.checkoutChatCart) .checkoutShell{padding-top:16px}
}
