/* Cart drawer (trycure.org runs the Essential Cart Drawer app): its look, measured on the origin with a filled and an
   empty cart at 1440x900 and 390x844 (tools/pw/ecd_capture.js → tools/crawl/ecd/). Markup: src/worker/drawer.js. The
   phone layout is the desktop one at full width. */
cart-drawer.ecd{position:fixed;inset:0;z-index:99998;visibility:hidden;pointer-events:none;transition:visibility 0s linear .2s}
cart-drawer.ecd.active{visibility:visible;pointer-events:auto;transition-delay:0s}
cart-drawer.ecd #CartDrawer-Overlay{position:fixed;inset:0;background-color:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity .2s ease-in-out}
cart-drawer.ecd.active #CartDrawer-Overlay{opacity:1}
.ecd-panel{position:fixed;top:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;width:450px;max-width:100%;height:100%;overflow:hidden;background-color:#fff;box-shadow:-5px 0 15px rgba(0,0,0,.1);transform:translateX(105%);transition:transform .2s ease-in-out;font-family:inherit;font-size:16px;letter-spacing:normal;color:rgba(18,18,18,.9);text-align:left;outline:none}
cart-drawer.ecd.active .ecd-panel{transform:none}
@media (max-width:749px){.ecd-panel{width:100%}}
.ecd-panel *{box-sizing:border-box}
.ecd-panel p{margin:0}
.ecd-panel button{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;-webkit-appearance:none;appearance:none}
.ecd-panel a{color:inherit;text-decoration:none}
.ecd-panel svg{display:block}
.ecd-vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* header: 52px, title 17/600, close 20x20 */
.ecd-head{position:static;height:52px;line-height:normal;display:flex;align-items:center;justify-content:space-between;flex:none;padding:16px;background-color:#fff;border-bottom:1px solid #e3e3e3;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.ecd-head__title{display:flex;align-items:center;gap:10px}
.ecd-head__title span{display:block;font-size:17px;font-weight:600;line-height:18.7px;color:#303030}
.ecd-close{display:flex;align-items:center;justify-content:center;width:20px;height:20px}
.ecd-close svg{width:20px;height:20px}

/* content: the "Checkout in" bar and the line list scroll between header and footer */
.ecd-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;background-color:#fff}
.ecd-bar{display:flex;align-items:center;justify-content:center;flex:none;padding:12px 16px;background-color:#f1f1f1;text-align:center;font-size:14px;font-weight:400;line-height:21px;color:#303030;white-space:pre-wrap}
.ecd-timer{white-space:nowrap}
.ecd-timer span{display:inline-block;min-width:18px;text-align:center}
.ecd-bar.is-done{display:none}
.ecd-list-wrap{padding:0 16px}
.ecd-list{padding:16px 0 8px}
.ecd-line{display:flex}
.ecd-line+.ecd-line{margin-top:16px}
.ecd-line__frame{display:flex;flex-direction:column;width:100%;padding-bottom:16px;border-bottom:1px solid #e3e3e3}
.ecd-line__row{display:flex;gap:12px}
.ecd-line__media{display:flex;align-items:center;justify-content:center;flex:none;width:80px;height:80px;border-radius:4px;overflow:hidden;background-color:#f5f5f5}
.ecd-line__media img{display:block;width:80px;height:80px;object-fit:cover}
.ecd-line__details{display:flex;flex-direction:column;flex:1 1 0;min-width:0;gap:4px}
.ecd-line__title{font-size:15px;font-weight:500;line-height:21px;color:rgba(18,18,18,.9)}
.ecd-line__props div{font-size:14px;font-weight:400;line-height:19.6px;color:#616161}
.ecd-line__deals{display:flex;flex-direction:column;gap:2px}
.ecd-line__deal{display:flex;align-items:center;gap:2px;font-size:14px;font-weight:400;line-height:19.6px;color:#616161}
.ecd-line__deal svg{width:20px;height:20px;flex:none;fill:#616161}
.ecd-line__side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;flex:none;gap:8px}
.ecd-line__price{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ecd-line__regular{font-size:15px;font-weight:400;line-height:normal;color:#616161;text-decoration:line-through}
.ecd-line__final{font-size:15px;font-weight:700;line-height:normal;color:#000}
.ecd-line__actions{display:flex;align-items:center;gap:16px}
.ecd-line__remove,.ecd-line__remove button{display:flex;align-items:center;justify-content:center;width:20px;height:20px}
.ecd-qty{display:flex;align-items:center;height:28px;border-radius:12px;background-color:#f1f1f1}
.ecd-qty button{display:flex;align-items:center;justify-content:center;width:28px;height:28px}
.ecd-qty button svg{width:20px;height:20px;fill:#303030}
.ecd-qty__value{width:20px;height:28px;padding:0;margin:0;border:0;background:none;font:inherit;font-size:14px;font-weight:400;letter-spacing:normal;color:#303030;text-align:center;pointer-events:none;-moz-appearance:textfield;appearance:textfield}
.ecd-qty__value::-webkit-outer-spin-button,.ecd-qty__value::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ecd-line.is-loading{opacity:.5;pointer-events:none}

/* footer */
.ecd-foot-wrap{flex:none}
cart-drawer.ecd.is-empty .ecd-foot-wrap{display:none}
.ecd-foot{display:flex;flex-direction:column;background-color:#fff;border-top:1px solid rgba(0,0,0,.08);box-shadow:0 -2px 8px rgba(0,0,0,.1)}
.ecd-protect{display:flex;flex-direction:column;gap:6px;padding:12px 16px;background-color:#fff;border-bottom:1px solid #ebebeb}
.ecd-protect__row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ecd-protect__name{display:flex;align-items:center;flex:1 1 auto;gap:10px;min-width:0}
.ecd-protect__name img{display:block;width:24px;height:24px;object-fit:contain}
.ecd-protect__name span{font-size:14px;font-weight:600;line-height:21px;color:#303030;white-space:nowrap}
.ecd-protect__end{display:flex;align-items:center;gap:10px}
.ecd-protect__end>span{font-size:14px;font-weight:400;line-height:21px;color:#303030}
.ecd-panel .ecd-switch{position:relative;display:block;flex:none;width:40px;height:22px;border-radius:11px;background-color:#ccc;transition:background-color .2s}
.ecd-switch span{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background-color:#fff;transition:left .2s}
.ecd-protect[data-selected="true"] .ecd-switch{background-color:#303030}
.ecd-protect[data-selected="true"] .ecd-switch span{left:20px}
.ecd-protect__desc{display:block;font-size:12px;font-weight:400;line-height:16.8px;color:#6b7177}
.ecd-savings{padding:16px 16px 8px}
.ecd-savings__row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:400;line-height:21px;color:#303030}
.ecd-savings__row span:first-child{line-height:19.6px}
.ecd-subtotal{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;font-size:16px;line-height:16px;color:#303030}
.ecd-subtotal__label{font-weight:500}
.ecd-subtotal__value{font-weight:700}
.ecd-checkout{padding:8px 16px 16px}
.ecd-panel .ecd-checkout__btn{display:flex;align-items:center;justify-content:center;width:100%;padding:16px;border-radius:12px;background-color:#000;color:#fff;font-size:16px;font-weight:400;line-height:25px;text-align:center}
.ecd-panel .ecd-checkout__btn:disabled{background-color:#e3e3e3;color:#303030;cursor:default}
.ecd-checkout__btn.loading{opacity:.7}
.ecd-pay{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px 16px}
.ecd-pay img{display:block;width:36px;height:36px;object-fit:contain}

/* empty cart: icon, message and "Continue shopping" centred in the panel */
.ecd-empty{display:flex;flex-direction:column;justify-content:center;flex:1 1 auto;padding:32px 0;background-color:#fff}
.ecd-empty__inner{display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.ecd-empty__icon{display:block;width:28px;height:28px;object-fit:contain}
.ecd-empty__msg{font-size:16px;font-weight:400;line-height:24px;color:rgba(18,18,18,.9)}
.ecd-panel .ecd-empty__btn{display:inline-block;padding:12px 24px;border-radius:12px;background-color:#000;color:#fff;font-size:16px;font-weight:500;line-height:28.8px;letter-spacing:.96px}
/* Essential's cross-sell offer under the lines (measured on the origin 2026-11-06, tools/crawl/ecd/xsell_1440_*.json):
   wrapper 8px 0; box 16px padding, 8px gap; heading 14/20 600 #303030; product rows 12px gap, 8px apart; image 64 r4;
   title 14/20 #303030; price row 4px gap: sale 14 700 #303030, regular 14 #616161 struck; button 13 500 white on #303030,
   8px 12px, r8, 4px gap, 16px icon */
.ecd-panel .ecd-xs{padding:8px 0}
.ecd-panel .ecd-xs__box{display:flex;flex-direction:column;gap:8px;padding:16px;background:rgba(255,255,255,0)}
.ecd-panel .ecd-xs__head{display:flex;row-gap:8px}
.ecd-panel .ecd-xs__heading{font-size:14px;font-weight:600;line-height:20px;color:#303030}
.ecd-panel .ecd-xs__list{display:flex;flex-direction:column;gap:8px}
.ecd-panel .ecd-xs__product{display:flex;align-items:center;gap:12px;min-height:69px}
.ecd-panel .ecd-xs__img{flex:0 0 64px;width:64px;height:64px;border-radius:4px;overflow:hidden;display:block}
.ecd-panel .ecd-xs__img img{width:64px;height:64px;object-fit:cover;display:block}
.ecd-panel .ecd-xs__content{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
.ecd-panel .ecd-xs__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ecd-panel .ecd-xs__title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:20px;color:#303030;text-decoration:none}
.ecd-panel .ecd-xs__price{display:flex;align-items:center;gap:4px;line-height:normal}
.ecd-panel .ecd-xs__new{font-size:14px;font-weight:700;color:#303030}
.ecd-panel .ecd-xs__old{font-size:14px;color:#616161;text-decoration:line-through}
.ecd-panel .ecd-xs__plan{font-size:12px;color:#616161;margin-top:2px;line-height:1.3}
.ecd-panel .ecd-xs__btn{display:flex;align-items:center;gap:4px;flex:0 0 auto;padding:8px 12px;border:0;border-radius:8px;background:#303030;color:#fff;font-family:Arial;font-size:13px;font-weight:500;line-height:normal;letter-spacing:normal;cursor:pointer}
.ecd-panel .ecd-xs__btn div{width:16px;height:16px;display:flex}
.ecd-panel .ecd-xs__btn[aria-busy]{opacity:.7}

/* the deal tag row sits in a 27px wrapper on the origin (details: title 42 + 4 + plan 19.6 + 4 + 27) */
.ecd-panel .ecd-line__deals{min-height:27px}
