:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:35px; align-content:start; min-height:calc(var(--one-star-express-reserve,0px) + var(--one-star-separator-reserve,0px)); gap:8px; margin:8px 0 14px; width:100%; min-width:0; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot { min-width:0; height:35px; min-height:35px; max-height:35px; border-radius:999px; overflow:hidden; box-sizing:border-box; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express:not(:has(>.one-star-sidecard-express-slot~.one-star-sidecard-express-slot))>.one-star-sidecard-express-slot { grid-column:1 / -1; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="paypal"] { order:1; background:#ffc439; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="wallet"] { order:2; background:#000; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="card"] { order:3; background:#000; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="paylater"] { order:4; background:#ffc439; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot apple-pay-button { display:block; width:100%; height:35px; --apple-pay-button-width:100%; --apple-pay-button-height:35px; --apple-pay-button-border-radius:999px; --apple-pay-button-padding:0; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot .gpay-button { width:100%; height:35px; min-height:35px; border-radius:999px; }
/* The mobile dock supplies the bottom inset, including Home Screen safe area.
   Keep the summary-to-icons margin on desktop only. */
:is(body.page-basket,#one-star-sidecard) :is(body.page-basket,#one-star-sidecard)-dock .one-star-sidecard-express{margin-bottom:0}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Shared basket separator markup and exact basket geometry. */
:is(body.page-basket,#one-star-sidecard) .one-star-basket-express-separator { grid-column:1 / -1; order:0; display:flex; align-items:center; gap:10px; width:100%; height:18px; margin:0; color:rgba(60,60,67,.68); font-size:.82rem; font-weight:400; line-height:18px; white-space:nowrap; box-sizing:border-box; }
:is(body.page-basket,#one-star-sidecard) .one-star-basket-express-separator::before,
:is(body.page-basket,#one-star-sidecard) .one-star-basket-express-separator::after { content:""; flex:1; height:1px; background:#d2d2d7; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="amazon"]{order:5;grid-column:1/-1;background:#f1f3f5}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"]{order:6;background:#000}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="google"]{order:7;background:#000}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"]:not(:has(~[data-funding="google"])) {grid-column:1/-1}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express:not(:has([data-funding="apple"]))>[data-funding="google"] {grid-column:1/-1}

:is(body.page-basket,#one-star-sidecard) [data-funding="amazon"] .amazon-pay-button-wrapper,:is(body.page-basket,#one-star-sidecard) [data-funding="amazon"] .amazon-pay-button {display:block!important;width:100%!important;height:35px!important;min-height:35px!important;max-height:35px!important;margin:0!important;padding:0!important;border-radius:999px;overflow:hidden}
/* Reserve the static icon strip height, including narrow screens. */
:is(body.page-basket,#one-star-sidecard) .one-star-basket-summary-payment-icons>div {min-height:30px;opacity:1!important;animation:none!important}

:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-error{grid-column:1/-1;align-self:center;font-size:12px;line-height:16px;color:#626267}
/* Independent wallets start their own row, as in BasketIndependentWallets. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"]:has(~[data-funding="google"]){grid-column:1}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express:not(:has(>.one-star-sidecard-express-slot:is([data-funding="paypal"],[data-funding="wallet"],[data-funding="card"],[data-funding="paylater"])~.one-star-sidecard-express-slot:is([data-funding="paypal"],[data-funding="wallet"],[data-funding="card"],[data-funding="paylater"])))>.one-star-sidecard-express-slot:is([data-funding="paypal"],[data-funding="wallet"],[data-funding="card"],[data-funding="paylater"]){grid-column:1/-1}

/* Keep provider construction behind the existing coloured reservation. Opacity
   preserves native control layout; visibility/display can break Safari paint. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot:not([data-funding="amazon"]):not([data-render-ready="true"]) > * { opacity:0!important; pointer-events:none!important; }
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot > *,
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot .paypal-buttons { transition:none!important; }

/* Prepaint uses the same provider artwork and 35px geometry as the real control.
   Pseudo-elements survive provider innerHTML replacement and cannot receive focus
   or start payments. The existing ready attribute swaps both paints atomically.
   PayPal artwork: paypalobjects.com/js-sdk-logos/2.3.7/paypal-blue.svg. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot{position:relative}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="paypal"]:not([data-render-ready="true"])::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:url("data:image/svg+xml,%3Csvg%20width%3D%22101px%22%20height%3D%2232%22%20viewBox%3D%220%200%20101%2032%22%20preserveAspectRatio%3D%22xMinYMin%20meet%22%20xmlns%3D%22http%3A%26%23x2F%3B%26%23x2F%3Bwww.w3.org%26%23x2F%3B2000%26%23x2F%3Bsvg%22%3E%3Cpath%20fill%3D%22%23003087%22%20d%3D%22M%2012.237%202.8%20L%204.437%202.8%20C%203.937%202.8%203.437%203.2%203.337%203.7%20L%200.237%2023.7%20C%200.137%2024.1%200.437%2024.4%200.837%2024.4%20L%204.537%2024.4%20C%205.037%2024.4%205.537%2024%205.637%2023.5%20L%206.437%2018.1%20C%206.537%2017.6%206.937%2017.2%207.537%2017.2%20L%2010.037%2017.2%20C%2015.137%2017.2%2018.137%2014.7%2018.937%209.8%20C%2019.237%207.7%2018.937%206%2017.937%204.8%20C%2016.837%203.5%2014.837%202.8%2012.237%202.8%20Z%20M%2013.137%2010.1%20C%2012.737%2012.9%2010.537%2012.9%208.537%2012.9%20L%207.337%2012.9%20L%208.137%207.7%20C%208.137%207.4%208.437%207.2%208.737%207.2%20L%209.237%207.2%20C%2010.637%207.2%2011.937%207.2%2012.637%208%20C%2013.137%208.4%2013.337%209.1%2013.137%2010.1%20Z%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22%23003087%22%20d%3D%22M%2035.437%2010%20L%2031.737%2010%20C%2031.437%2010%2031.137%2010.2%2031.137%2010.5%20L%2030.937%2011.5%20L%2030.637%2011.1%20C%2029.837%209.9%2028.037%209.5%2026.237%209.5%20C%2022.137%209.5%2018.637%2012.6%2017.937%2017%20C%2017.537%2019.2%2018.037%2021.3%2019.337%2022.7%20C%2020.437%2024%2022.137%2024.6%2024.037%2024.6%20C%2027.337%2024.6%2029.237%2022.5%2029.237%2022.5%20L%2029.037%2023.5%20C%2028.937%2023.9%2029.237%2024.3%2029.637%2024.3%20L%2033.037%2024.3%20C%2033.537%2024.3%2034.037%2023.9%2034.137%2023.4%20L%2036.137%2010.6%20C%2036.237%2010.4%2035.837%2010%2035.437%2010%20Z%20M%2030.337%2017.2%20C%2029.937%2019.3%2028.337%2020.8%2026.137%2020.8%20C%2025.037%2020.8%2024.237%2020.5%2023.637%2019.8%20C%2023.037%2019.1%2022.837%2018.2%2023.037%2017.2%20C%2023.337%2015.1%2025.137%2013.6%2027.237%2013.6%20C%2028.337%2013.6%2029.137%2014%2029.737%2014.6%20C%2030.237%2015.3%2030.437%2016.2%2030.337%2017.2%20Z%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22%23003087%22%20d%3D%22M%2055.337%2010%20L%2051.637%2010%20C%2051.237%2010%2050.937%2010.2%2050.737%2010.5%20L%2045.537%2018.1%20L%2043.337%2010.8%20C%2043.237%2010.3%2042.737%2010%2042.337%2010%20L%2038.637%2010%20C%2038.237%2010%2037.837%2010.4%2038.037%2010.9%20L%2042.137%2023%20L%2038.237%2028.4%20C%2037.937%2028.8%2038.237%2029.4%2038.737%2029.4%20L%2042.437%2029.4%20C%2042.837%2029.4%2043.137%2029.2%2043.337%2028.9%20L%2055.837%2010.9%20C%2056.137%2010.6%2055.837%2010%2055.337%2010%20Z%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22%23009cde%22%20d%3D%22M%2067.737%202.8%20L%2059.937%202.8%20C%2059.437%202.8%2058.937%203.2%2058.837%203.7%20L%2055.737%2023.6%20C%2055.637%2024%2055.937%2024.3%2056.337%2024.3%20L%2060.337%2024.3%20C%2060.737%2024.3%2061.037%2024%2061.037%2023.7%20L%2061.937%2018%20C%2062.037%2017.5%2062.437%2017.1%2063.037%2017.1%20L%2065.537%2017.1%20C%2070.637%2017.1%2073.637%2014.6%2074.437%209.7%20C%2074.737%207.6%2074.437%205.9%2073.437%204.7%20C%2072.237%203.5%2070.337%202.8%2067.737%202.8%20Z%20M%2068.637%2010.1%20C%2068.237%2012.9%2066.037%2012.9%2064.037%2012.9%20L%2062.837%2012.9%20L%2063.637%207.7%20C%2063.637%207.4%2063.937%207.2%2064.237%207.2%20L%2064.737%207.2%20C%2066.137%207.2%2067.437%207.2%2068.137%208%20C%2068.637%208.4%2068.737%209.1%2068.637%2010.1%20Z%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22%23009cde%22%20d%3D%22M%2090.937%2010%20L%2087.237%2010%20C%2086.937%2010%2086.637%2010.2%2086.637%2010.5%20L%2086.437%2011.5%20L%2086.137%2011.1%20C%2085.337%209.9%2083.537%209.5%2081.737%209.5%20C%2077.637%209.5%2074.137%2012.6%2073.437%2017%20C%2073.037%2019.2%2073.537%2021.3%2074.837%2022.7%20C%2075.937%2024%2077.637%2024.6%2079.537%2024.6%20C%2082.837%2024.6%2084.737%2022.5%2084.737%2022.5%20L%2084.537%2023.5%20C%2084.437%2023.9%2084.737%2024.3%2085.137%2024.3%20L%2088.537%2024.3%20C%2089.037%2024.3%2089.537%2023.9%2089.637%2023.4%20L%2091.637%2010.6%20C%2091.637%2010.4%2091.337%2010%2090.937%2010%20Z%20M%2085.737%2017.2%20C%2085.337%2019.3%2083.737%2020.8%2081.537%2020.8%20C%2080.437%2020.8%2079.637%2020.5%2079.037%2019.8%20C%2078.437%2019.1%2078.237%2018.2%2078.437%2017.2%20C%2078.737%2015.1%2080.537%2013.6%2082.637%2013.6%20C%2083.737%2013.6%2084.537%2014%2085.137%2014.6%20C%2085.737%2015.3%2085.937%2016.2%2085.737%2017.2%20Z%22%3E%3C%2Fpath%3E%3Cpath%20fill%3D%22%23009cde%22%20d%3D%22M%2095.337%203.3%20L%2092.137%2023.6%20C%2092.037%2024%2092.337%2024.3%2092.737%2024.3%20L%2095.937%2024.3%20C%2096.437%2024.3%2096.937%2023.9%2097.037%2023.4%20L%20100.237%203.5%20C%20100.337%203.1%20100.037%202.8%2099.637%202.8%20L%2096.037%202.8%20C%2095.637%202.8%2095.437%203%2095.337%203.3%20Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E") center/auto 18px no-repeat;
}
/* Embedded Apple artwork stays identical before and after SDK readiness.
   The real accessible payment control remains underneath; this paint never
   captures clicks or keyboard focus. No browser-specific artwork is needed. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"]::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:#000 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2035%2015%22%3E%3Csvg%20x%3D%220%22%20y%3D%223.85%22%20width%3D%2235%22%20height%3D%227.3%22%20class%3D%22logo%22%20viewBox%3D%220%200%20105%2043%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Ctitle%3EApple%20Logo%3C%2Ftitle%3E%0A%20%20%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%20%20%20%20%3Cg%20fill%3D%22%23FFF%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M19.4028%2C5.5674%20C20.6008%2C4.0684%2021.4138%2C2.0564%2021.1998%2C0.0004%20C19.4458%2C0.0874%2017.3058%2C1.1574%2016.0668%2C2.6564%20C14.9538%2C3.9414%2013.9688%2C6.0374%2014.2258%2C8.0074%20C16.1948%2C8.1784%2018.1618%2C7.0244%2019.4028%2C5.5674%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.1772%2C8.3926%20C18.3182%2C8.2226%2015.8872%2C10.0156%2014.5212%2C10.0156%20C13.1552%2C10.0156%2011.0642%2C8.4786%208.8022%2C8.5196%20C5.8592%2C8.5626%203.1282%2C10.2276%201.6342%2C12.8746%20C-1.4378%2C18.1696%200.8232%2C26.0246%203.8112%2C30.3376%20C5.2622%2C32.4716%207.0102%2C34.8206%209.3142%2C34.7366%20C11.4912%2C34.6506%2012.3442%2C33.3266%2014.9902%2C33.3266%20C17.6352%2C33.3266%2018.4042%2C34.7366%2020.7082%2C34.6936%20C23.0972%2C34.6506%2024.5922%2C32.5586%2026.0422%2C30.4226%20C27.7072%2C27.9906%2028.3882%2C25.6426%2028.4312%2C25.5126%20C28.3882%2C25.4706%2023.8232%2C23.7186%2023.7812%2C18.4676%20C23.7382%2C14.0706%2027.3652%2C11.9786%2027.5362%2C11.8496%20C25.4882%2C8.8196%2022.2872%2C8.4786%2021.1772%2C8.3926%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M85.5508%2C43.0381%20L85.5508%2C39.1991%20C85.8628%2C39.2421%2086.6158%2C39.2871%2087.0158%2C39.2871%20C89.2138%2C39.2871%2090.4558%2C38.3551%2091.2108%2C35.9581%20L91.6548%2C34.5371%20L83.2428%2C11.2321%20L88.4368%2C11.2321%20L94.2958%2C30.1421%20L94.4068%2C30.1421%20L100.2668%2C11.2321%20L105.3278%2C11.2321%20L96.6048%2C35.7141%20C94.6078%2C41.3291%2092.3208%2C43.1721%2087.4828%2C43.1721%20C87.1048%2C43.1721%2085.8838%2C43.1271%2085.5508%2C43.0381%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M42.6499%2C19.3555%20L48.3549%2C19.3555%20C52.6829%2C19.3555%2055.1469%2C17.0255%2055.1469%2C12.9855%20C55.1469%2C8.9455%2052.6829%2C6.6375%2048.3769%2C6.6375%20L42.6499%2C6.6375%20L42.6499%2C19.3555%20Z%20M49.6869%2C2.4425%20C55.9009%2C2.4425%2060.2289%2C6.7265%2060.2289%2C12.9625%20C60.2289%2C19.2225%2055.8129%2C23.5285%2049.5309%2C23.5285%20L42.6499%2C23.5285%20L42.6499%2C34.4705%20L37.6779%2C34.4705%20L37.6779%2C2.4425%20L49.6869%2C2.4425%20Z%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M76.5547%2C25.7705%20L76.5547%2C23.9715%20L71.0287%2C24.3275%20C67.9207%2C24.5275%2066.3007%2C25.6815%2066.3007%2C27.7015%20C66.3007%2C29.6545%2067.9887%2C30.9195%2070.6287%2C30.9195%20C74.0027%2C30.9195%2076.5547%2C28.7665%2076.5547%2C25.7705%20M61.4617%2C27.8345%20C61.4617%2C23.7285%2064.5917%2C21.3755%2070.3627%2C21.0205%20L76.5547%2C20.6425%20L76.5547%2C18.8675%20C76.5547%2C16.2705%2074.8457%2C14.8495%2071.8057%2C14.8495%20C69.2967%2C14.8495%2067.4777%2C16.1375%2067.0997%2C18.1125%20L62.6167%2C18.1125%20C62.7497%2C13.9615%2066.6567%2C10.9435%2071.9387%2C10.9435%20C77.6207%2C10.9435%2081.3267%2C13.9175%2081.3267%2C18.5345%20L81.3267%2C34.4705%20L76.7327%2C34.4705%20L76.7327%2C30.6305%20L76.6217%2C30.6305%20C75.3127%2C33.1395%2072.4267%2C34.7145%2069.2967%2C34.7145%20C64.6807%2C34.7145%2061.4617%2C31.9625%2061.4617%2C27.8345%22%3E%3C%2Fpath%3E%0A%20%20%20%20%20%20%20%20%3C%2Fg%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%3C%2Fsvg%3E") center/auto 35px no-repeat}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"] > *{opacity:0!important}
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="apple"]:has(:focus-visible){outline:2px solid #00658a;outline-offset:3px}

/* Explicit PayPal + Apple Pay form one shared row on every device. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express:has(>[data-funding="paypal"]):has(>[data-funding="apple"]):not(:has(>[data-funding]:not([data-funding="paypal"]):not([data-funding="apple"])))>.one-star-sidecard-express-slot{grid-column:auto}

/* The installed PayPal SDK shrinks its logo for iframe widths up to 320px.
   Query the slot, not the viewport: desktop summary columns can be narrow too. */
:is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="paypal"]{container-type:inline-size;container-name:one-star-paypal}
@container one-star-paypal (max-width:320px){
 :is(body.page-basket,#one-star-sidecard) .one-star-sidecard-express-slot[data-funding="paypal"]:not([data-render-ready="true"])::before{background-size:auto 16px}
}
