/* Scoped presentation of the existing cart controls. No viewport/iframe scaling. */
.cart-page .cart-flow{width:100%;max-width:620px;margin:0 auto;gap:0}
.cart-page .cart-flow>.cart-customer-form{display:flex;flex-direction:column;gap:9px;margin:0}
.cart-page .cart-items-panel{width:100%;max-width:620px;margin-inline:auto}
.cart-flow-section{min-width:0;width:100%;border:1px solid #dedbe0;border-radius:11px;background:#fff;box-sizing:border-box;overflow:hidden}
.cart-flow-section[open]{border-color:#a32b73;background:linear-gradient(135deg,#fff,#fff9fc)}
.cart-flow-section>summary{display:flex;align-items:center;gap:11px;min-height:49px;padding:11px 14px;list-style:none;cursor:pointer;box-sizing:border-box;font-size:14px;line-height:20px}
.cart-flow-section>summary::-webkit-details-marker{display:none}
.cart-flow-section>summary>strong{font-weight:700;white-space:normal}
.cart-flow-icon{display:flex;align-items:center;justify-content:center;width:22px;flex:0 0 22px;color:#9e2d75}
.cart-flow-icon svg{display:block;width:21px;height:21px}
.cart-flow-caption{margin-left:auto;font-size:11px;line-height:16px;color:#8f245f;text-align:right;max-width:48%;overflow-wrap:anywhere}
.cart-flow-caption:empty{display:none}
.cart-flow-arrow{width:7px;height:7px;flex:0 0 7px;border-right:1.6px solid #422432;border-bottom:1.6px solid #422432;transform:rotate(45deg);margin-left:3px}
.cart-flow-section[open]>summary .cart-flow-arrow{transform:rotate(225deg)}
.cart-flow-section>summary:focus-visible{outline:2px solid #873875;outline-offset:-3px;border-radius:10px}
.cart-flow-body{min-width:0;padding:4px 14px 15px;font-size:12px}
.cart-flow .cart-customer-block{margin:0}
.cart-flow .cart-form-grid{margin:0;gap:9px 11px}
.cart-flow-note{font-size:11px;line-height:1.5;color:#6d616a;margin:8px 0}
.cart-flow fieldset{min-inline-size:0;min-width:0;padding:0;margin:0;border:0}
.cart-flow-benefits{display:flex;flex-direction:column;gap:10px}
.cart-flow-benefit-choice{display:flex;align-items:center;gap:8px;font-size:12px;line-height:20px}
.cart-flow input[type=radio]{accent-color:#9e2d75;width:17px;height:17px;margin:0;flex:0 0 17px}
.cart-flow-coupon{display:flex;align-items:center;gap:7px;margin-left:25px;min-width:0}
.cart-flow-coupon input{flex:1;width:0;min-width:0}
.cart-flow-coupon input,.cart-flow-reward input,.cart-flow-reward select{border:1px solid #d8d5da;border-radius:6px;background:#fff;min-height:34px;padding:7px 9px;box-sizing:border-box;font:12px/18px Arial,sans-serif;color:#332c32}
.cart-flow-coupon button,.cart-flow-reward button{font-size:12px;min-height:34px;padding:7px 10px;border:1px solid #a76590;border-radius:6px;background:#b57b9f;color:#fff;white-space:nowrap}
.cart-flow-reward{display:grid;gap:7px;margin-left:25px}
.cart-flow-reward p{margin:0;font-size:11px}
.cart-flow-shipping-choice{display:flex;align-items:center;gap:8px;padding:10px 0;font-size:12px;line-height:18px}
.cart-flow-shipping-choice>span{flex:1;min-width:0}.cart-flow-shipping-choice>strong{font-weight:500;white-space:nowrap}
.cart-flow-summary{border-top:1px solid #e3dce0;margin:5px 0 3px;padding:14px 3px 3px;font-size:13px}
.cart-flow-summary h2{font-size:15px;line-height:21px;margin:0 0 10px;color:#2f232b}
.cart-flow-row{display:flex;justify-content:space-between;gap:12px;margin:6px 0;line-height:20px}
.cart-flow-row strong{font-weight:400}.cart-flow-row #cart-total{font-size:13px;color:inherit}
.cart-flow-total{display:flex;justify-content:space-between;gap:12px;padding:12px 10px;margin:12px -1px 4px;background:#f8eaf2;border-radius:8px;color:#8e235d;font-size:14px;line-height:20px;font-weight:700}
.cart-flow .cart-payment-block.compact-payments{margin:2px auto 0;max-width:300px}
.cart-flow .compact-method-body p{font-size:11px}
.cart-flow .cart-flow-footer{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:4px}
.cart-flow-footer .cart-customer-status{width:100%;margin:0;font-size:12px;line-height:18px}.cart-flow-footer .cart-customer-status:empty{display:none}
.cart-flow-footer #delivery-info-btn{margin:0;font-size:12px;min-height:34px;padding:7px 12px}
.cart-page .cart-flow-footer #cart-submit-btn{width:100%!important;max-width:340px;min-height:44px;margin:0;padding:10px 18px;font-size:14px;border-radius:26px}
.cart-flow-footer>a.btn-primary{background:transparent!important;color:#873875!important;box-shadow:none;border:1px solid #d7b9ce;border-radius:22px;min-height:36px;font-size:12px;padding:8px 17px;text-decoration:none}
.cart-flow-footer #stripe-powered-badge{order:0;margin:0 auto}
.cart-flow [hidden]{display:none!important}
#checkout-review-dialog.cart-flow-review{max-width:520px;width:calc(100% - 24px);padding:20px;background:#fffaf8;border:1px solid #decbd6;border-radius:15px;box-sizing:border-box;color:#332a30}
.cart-flow-review::backdrop{background:#39293666;backdrop-filter:blur(3px)}
.cart-flow-review-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
#checkout-review-dialog.cart-flow-review h2{font-size:20px;line-height:26px;color:#942e6d;margin:0}
.cart-flow-close{border:0;background:transparent;color:#942e6d;font-size:26px;line-height:26px;min-height:32px;min-width:32px;padding:0;cursor:pointer}
#checkout-review-dialog.cart-flow-review .checkout-review-items{margin:17px 0 14px}
#checkout-review-dialog.cart-flow-review .checkout-review-item{background:#fff;border-radius:11px}
#checkout-review-dialog.cart-flow-review .checkout-review-row{font-size:13px;line-height:20px;padding:8px 0}
#checkout-review-dialog.cart-flow-review .checkout-review-total{margin:12px 0 18px;background:#f7e8f1;border:0;color:#8e235d;padding:14px 12px;font-size:15px}
.cart-flow-review-section{padding:12px 0;border-bottom:1px solid #eee5ea}
.cart-flow-review-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
#checkout-review-dialog .cart-flow-review-section-heading h3{font-size:15px;line-height:22px;margin:0}
.cart-flow-edit{border:1px solid #ab5189;border-radius:8px;padding:6px 10px;min-height:32px;background:#fff;color:#942e6d;font-size:12px;cursor:pointer}
.cart-flow-review-address p{margin:3px 0;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.cart-flow-review-method{font-size:14px;margin:5px 0}
.cart-flow-review-legal{font-size:11px;line-height:1.5;margin:12px 0}
.cart-flow-review-legal p{margin:6px 0}.cart-flow-review-legal h3{font-size:12px!important}
.cart-flow-review-legal .checkout-context-links a{font-size:11px;min-height:28px;padding:4px 0}
.cart-flow-benefit-details{font-size:11px;line-height:1.5;margin-top:8px}.cart-flow-benefit-details summary{cursor:pointer;color:#873875}
.cart-flow-review-provider{min-width:0;margin:10px auto;max-width:360px}
.cart-flow-review-status{font-size:12px;color:#8c3865;line-height:1.5}
#checkout-review-dialog.cart-flow-review .checkout-dialog-actions{margin-top:14px;gap:8px}
#checkout-review-dialog.cart-flow-review #checkout-final-confirm{min-height:46px;max-width:none;width:100%!important;font-size:15px;border-radius:25px;padding:11px 18px}
.cart-flow-review-obligation{font-size:10px;line-height:1.6;color:#74636f;text-align:center;margin:10px 0 0}
@media(max-width:600px){
 .cart-flow-section>summary{min-height:49px;padding:11px 12px;font-size:13px;gap:10px}.cart-flow-caption{font-size:11px;max-width:47%}.cart-flow-body{padding:3px 12px 14px}
 .cart-flow-coupon input,.cart-flow-reward input,.cart-flow-reward select{font-size:16px;min-height:44px}.cart-flow-coupon button,.cart-flow-reward button{min-height:44px;font-size:12px}
 .cart-flow .cart-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.cart-flow .cart-field-full{grid-column:1/-1}
 #checkout-review-dialog.cart-flow-review{padding:17px;max-height:calc(100dvh - 24px)}#checkout-review-dialog.cart-flow-review h2{font-size:18px;line-height:24px}
 #checkout-review-dialog.cart-flow-review .checkout-dialog-actions button{min-height:44px}.cart-flow-review-address p{font-size:13px}
}
.cart-page .cart-container:has(.cart-flow){max-width:660px;background:#fffaf8}
.cart-page .cart-layout:has(.cart-flow){background:transparent;box-shadow:none}
.cart-flow .grid-span-all{grid-column:1/-1}
/* The three existing controls share equal tracks and dimensions. */
.cart-flow-footer-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:100%;max-width:620px;align-items:stretch}
.cart-page .cart-flow-footer-buttons #delivery-info-btn,
.cart-page .cart-flow-footer-buttons #cart-submit-btn,
.cart-page .cart-flow-footer-buttons>a.btn-primary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;max-width:none;height:46px;min-height:46px;min-width:0;margin:0;padding:7px 8px;border:1px solid #9b3978;border-radius:18px;background:#9b3978;color:#fff!important;box-shadow:none;text-decoration:none;text-align:center;font:600 12px/16px Arial,sans-serif;white-space:normal;overflow-wrap:anywhere}
.cart-flow-coupon{flex-wrap:wrap}.cart-flow-coupon select{flex:1;min-width:0;width:0;max-width:100%;border:1px solid #d8d5da;border-radius:6px;background:#fff;min-height:34px;padding:7px 9px;font:12px/18px Arial,sans-serif;color:#332c32}.cart-flow-coupon>p{flex:1 0 100%;margin:0}
.ulr-shipping-country-dialog{width:calc(100% - 28px);max-width:380px;box-sizing:border-box;padding:19px;border:1px solid #c6a4ba;border-radius:14px;background:#fffaf8;color:#392b34;max-height:85dvh;overflow:auto}
.ulr-shipping-country-dialog::backdrop{background:#32243266}.ulr-shipping-country-dialog h2{font-size:18px;line-height:24px;margin:0 0 14px}.ulr-shipping-country-dialog label{display:block;font-size:13px;margin-bottom:5px}.ulr-shipping-country-dialog input{width:100%;min-width:0;box-sizing:border-box;font-size:16px;min-height:44px;border:1px solid #c8bdc4;border-radius:7px;padding:8px}.ulr-shipping-country-actions{display:flex;gap:8px;margin-top:12px}.ulr-shipping-country-actions button{flex:1;min-height:44px;font-size:13px;border:1px solid #9b3978;border-radius:10px;padding:7px;background:#fff;color:#873875}.ulr-shipping-country-actions button:last-child{background:#9b3978;color:white}
@media(max-width:600px){.cart-flow-footer-buttons{gap:5px}.cart-page .cart-flow-footer-buttons #delivery-info-btn,.cart-page .cart-flow-footer-buttons #cart-submit-btn,.cart-page .cart-flow-footer-buttons>a.btn-primary{height:60px;min-height:60px;font-size:11px;line-height:15px;padding:5px}.cart-flow-coupon select{font-size:16px;min-height:44px}}
/* Readiness changes only the middle control's colours, never its geometry. */
.cart-page .cart-flow-footer-buttons #cart-submit-btn.cart-review-ready{background:#245c43;border-color:#245c43;color:#fff!important}
.cart-page .cart-flow-footer-buttons #cart-submit-btn.cart-review-ready:hover{background:#1d4c37;border-color:#1d4c37}
.cart-flow-total-notice{display:none}
@media(max-width:600px){
 .cart-flow-total-notice{display:block;font-size:12px;line-height:1.5;color:#655360}
 /* Keep the launcher in document flow on the cart so it cannot cover fields,
    quantities or the final buttons while scrolling. The chat still opens. */
 body:has(.cart-page) #customer-chat{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 body:has(.cart-page) #customer-chat .ulr-chat-fab{position:static;margin:16px}
}
