/* Checkout screens: the Bag, the quick checkout sheet, one tap, the seller's web checkout, the handoff sheet.
   Everything is scoped to .ig and prefixed checkout-. */
.ig .checkout-t15 { font: 600 15px/19px var(--ig-text); }
.ig .checkout-h { font: 700 17px/21px var(--ig-text); }
.ig .checkout-sum { font: 600 17px/21px var(--ig-text); }
.ig .checkout-b15 { font: 400 15px/20px var(--ig-text); }

/* Bag: header, chips, item list, checkout bar */
.ig .checkout-head { left: 0; top: 58px; width: 402px; height: 48px; gap: 12px; padding: 0 16px; }
.ig .checkout-chips { left: 0; top: 118px; width: 402px; gap: 6px; padding: 0 16px; }
.ig .checkout-chip { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ig-line); font: 600 14px/17px var(--ig-text); flex-shrink: 0; }
.ig .checkout-chip.on { background: #fff; color: #0B0B0B; border: 0; }
.ig .checkout-list { left: 0; top: 166px; width: 402px; }
.ig .checkout-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.ig .checkout-item + .checkout-item, .ig .checkout-hint { border-top: 1px solid #FFFFFF1A; }
.ig .checkout-prices { width: 64px; flex-shrink: 0; gap: 3px; align-items: flex-end; }
.ig .checkout-was { font: 400 13px/16px var(--ig-text); color: var(--ig-muted); text-decoration: line-through 1px; }
.ig .checkout-off { font: 600 13px/16px var(--ig-text); color: #58C322; }
.ig .checkout-badge { padding: 2px 7px; border-radius: 6px; background: #58C32224; color: #58C322; }
.ig .checkout-hint { gap: 8px; padding: 18px 16px 0; }
.ig .checkout-bar { left: 0; bottom: 0; width: 402px; gap: 12px; padding: 16px 16px 34px; background: #000; border-top: 1px solid #FFFFFF1A; }
.ig .checkout-home { left: 134px; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: #fff; }

/* the notification banner */
.ig .checkout-banner { left: 8px; top: 54px; width: 386px; gap: 12px; padding: 12px 14px; border-radius: 22px; border: 1px solid #FFFFFF14; background: #2C2D30F2; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ig .checkout-app { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(in oklab 45deg, #FEDA75 0%, #FA7E1F 25%, #D62976 50%, #962FBF 75%, #4F5BD5 100%); }
.ig .checkout-now { font: 400 13px/16px var(--ig-text); color: #FFFFFF8C; flex-shrink: 0; }

/* sheets that sit on the bottom edge and size to their content */
.ig .checkout-sheet { left: 0; bottom: 0; width: 402px; display: flex; flex-direction: column; padding-bottom: 28px; background: var(--ig-sheet); border-radius: 20px 20px 0 0; }
.ig .checkout-line { gap: 12px; padding: 0 16px 14px; border-bottom: 1px solid #FFFFFF1A; }
.ig .checkout-detail { gap: 12px; padding: 10px 0; }
.ig .checkout-detail .lbl { width: 84px; flex-shrink: 0; font: 400 14px/18px var(--ig-text); color: var(--ig-muted); }
.ig .checkout-detail .val { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 6px; font: 400 14px/18px var(--ig-text); text-align: right; }
.ig .checkout-total { font: 600 16px/20px var(--ig-text); }
.ig .checkout-pay { height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font: 600 20px/24px var(--ig-display); }
.ig .checkout-pay.apple { gap: 4px; background: #fff; color: #000; }
.ig .checkout-pay.meta { background: #0866FF; color: #fff; }
.ig .checkout-cardpay { height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ig .checkout-fine { padding: 6px 24px 0; font: 400 12px/16px var(--ig-text); color: var(--ig-muted); text-align: center; }

/* one tap with saved Meta Pay */
.ig .ig-btn.checkout-onetap { flex: 1 1 0; height: 50px; gap: 8px; font: 600 16px/20px var(--ig-text); }
.ig .checkout-saved { gap: 10px; padding: 10px 12px; border-radius: 12px; background: #26292E; font: 400 14px/18px var(--ig-text); }
.ig .checkout-saved .change { flex-shrink: 0; font-weight: 600; color: var(--ig-link); }
.ig .checkout-metabadge { width: 34px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; background: #0866FF; }

/* the seller's checkout in Instagram's browser: dark bar, white page */
.ig .checkout-webbar { left: 0; top: 0; width: 402px; height: 110px; background: #121316; border-bottom: 1px solid #FFFFFF1A; }
.ig .checkout-webnav { left: 0; top: 56px; width: 402px; height: 50px; gap: 8px; padding: 0 12px; }
.ig .checkout-box36 { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.ig .checkout-web { left: 0; top: 110px; width: 402px; height: 764px; gap: 18px; padding: 0 20px 20px; background: #fff; color: #111; font: 400 15px/20px system-ui, sans-serif; }
.ig .checkout-store { height: 52px; flex-shrink: 0; justify-content: space-between; border-bottom: 1px solid #E6E6E6; font: 700 15px/18px var(--ig-display); letter-spacing: .22em; }
.ig .checkout-wtitle { font: 700 24px/28px var(--ig-display); }
.ig .checkout-witem { gap: 12px; padding: 10px; border-radius: 6px; background: #F5F5F5; }
.ig .checkout-witem b { font: 600 14px/18px system-ui, sans-serif; }
.ig .checkout-witem .m { font: 400 13px/16px system-ui, sans-serif; color: #6B6B6B; }
.ig .checkout-wlabel { font: 600 15px/20px system-ui, sans-serif; }
.ig .checkout-field { height: 44px; flex-shrink: 0; padding: 0 12px; border: 1px solid #D4D4D4; border-radius: 6px; color: #8A8A8A; }
.ig .checkout-wcta { height: 48px; flex-shrink: 0; justify-content: center; border-radius: 6px; background: #111; color: #fff; font-weight: 600; }
.ig .checkout-wnote { font: 400 12px/16px system-ui, sans-serif; color: #6B6B6B; text-align: center; }

/* the handoff sheet's list */
.ig .checkout-hand { align-items: flex-start; gap: 14px; }
.ig .checkout-hand .ico { width: 24px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.ig .checkout-hand .lbl { font: 400 13px/16px system-ui, sans-serif; color: var(--ig-muted); }
.ig .checkout-hand .val { font: 400 15px/20px system-ui, sans-serif; }

/* taps */
/* the sheet's ✕: a bigger target, same place */
.device .ig .checkout-top > svg:last-child { box-sizing: content-box; padding: 10px; margin: -10px; }
.device .scr:not(.out) .ig :is(.checkout-pay, .checkout-cardpay, .checkout-wcta, .checkout-opt, .checkout-wopt, .checkout-kb span, .checkout-menu > span, .checkout-saved > span:last-child, .checkout-qty > span) { transition: opacity .12s; }
.device .scr:not(.out) .ig :is(.checkout-pay, .checkout-cardpay, .checkout-wcta, .checkout-opt, .checkout-wopt, .checkout-kb span, .checkout-menu > span, .checkout-saved > span:last-child, .checkout-qty > span):active { opacity: .6; transition: none; }

/* pickers: a title row, then options with a radio */
.ig .checkout-oh { justify-content: space-between; padding: 8px 0 8px; }
.ig .checkout-oh .t-name { letter-spacing: 0; }
.ig .checkout-oh2 { padding-top: 18px; }
.ig .checkout-opt { gap: 12px; padding: 10px 0; }
.ig .checkout-opt + .checkout-opt { border-top: 1px solid #FFFFFF14; }
.ig .checkout-radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #FFFFFF4D; flex-shrink: 0; transition: border .15s; }
.ig .checkout-opt.on .checkout-radio { border: 7px solid #fff; }
.ig .checkout-qrow { padding-top: 22px; }
.ig .checkout-qty { gap: 14px; }
.ig .checkout-qty > span { width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: #FFFFFF1F; font: 500 20px/1 var(--ig-text); }
.ig .checkout-qty > b { min-width: 14px; text-align: center; font: 600 15px/18px var(--ig-text); }
.ig .checkout-sum-total { margin-top: 4px; border-top: 1px solid #FFFFFF1A; padding-top: 14px; }
.ig .checkout-sum-total .lbl { color: #fff; font-weight: 600; }
.ig .checkout-newcard { gap: 10px; height: 46px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--ig-line); border-radius: 12px; font: 400 15px/20px var(--ig-text); color: var(--ig-muted); }
.ig .checkout-newcard.on { border-color: #fff; }
.ig .checkout-newcard.err { border-color: #FF453A; }
.ig .ig-btn.checkout-red { color: #FF453A; }
.ig .checkout-menu > span { height: 52px; display: flex; align-items: center; font: 400 16px/20px var(--ig-text); }
.ig .checkout-menu > span + span { border-top: 1px solid #FFFFFF14; }
.ig .checkout-menu > span:last-child { color: #FF453A; }

/* paying: Face ID in the Dynamic Island, a spinner in the button, then ordered.
   For Apple Pay the island grows from its pill into a square and plays iOS's own Face ID spinner: LocalAuthenticationCoreUI's
   face-id-spinner.ca (LACUIFaceIDSpinnerView), the same package in iOS 26.4 and macOS. Its images are ui/img/faceid-*.png
   and its geometry, opacities, blend modes and keyframes are copied from the package's main.caml: a 111pt glyph, a ring of
   blurred light (#1, 160pt, perspective 309) holding three tilted rings that turn (#6, #5, #4, added light) and two flat
   ones (#3, #2), then a green check (#8, 86pt). The ring turns at speed .6, so 1.378s → 2.297s and 1.63s → 2.717s.
   The island's square (150pt) is estimated: the package draws only what's inside it. */
.ig .checkout-fid { left: 201px; top: 14.5px; width: 125px; height: 35.5px; translate: -50% 0; z-index: 25; border-radius: 18px; background: #000; overflow: hidden; }
.ig .checkout-fid .fid { position: absolute; left: 50%; top: 50%; width: 111px; height: 111px; margin: -55.5px 0 0 -55.5px; }
.ig .checkout-fid .ring { position: absolute; left: -24.5px; top: -24.5px; width: 160px; height: 160px; perspective: 309px; opacity: 0; scale: .4; filter: blur(14.2px); }
.ig .checkout-fid .ring > i { position: absolute; left: 45px; top: 44px; width: 71px; height: 71px; transform-style: preserve-3d; }
.ig .checkout-fid .ring i i, .ig .checkout-fid .ring .flat { display: block; width: 71px; height: 71px; background: url(img/faceid-ring.png) center / 100% 100%; }
.ig .checkout-fid .ring .flat { top: 45px; opacity: .618; }
.ig .checkout-fid .ring > :is(.r6, .r5, .r4) { mix-blend-mode: plus-lighter; animation: 2.717s infinite alternate both; }
.ig .checkout-fid .ring > :is(.r6, .r5, .r4) > i { animation: checkout-fid-x 2.297s infinite alternate both; }
.ig .checkout-fid .ring > .r6 { opacity: .901; animation-name: checkout-fid-r6y; animation-delay: -1.933s; }
.ig .checkout-fid .ring > .r6 > i { animation-delay: -1.933s; }
.ig .checkout-fid .ring > .r5 { opacity: .664; animation-name: checkout-fid-r5y; }
.ig .checkout-fid .ring > .r5 > i { animation-name: checkout-fid-r5x; }
.ig .checkout-fid .ring > .r4 { opacity: .664; animation-name: checkout-fid-r4y; animation-delay: -20s; }
.ig .checkout-fid .ring > .r4 > i { animation-delay: -20s; }
.ig .checkout-fid .ok { position: absolute; left: 12.5px; top: 12.5px; width: 86px; height: 86px; background: url(img/faceid-check.png) center / 100% 100%; opacity: 0; scale: .5; filter: blur(12.5px); }
@keyframes checkout-fid-x { 0% { transform: rotateX(-22deg); animation-timing-function: cubic-bezier(.30932, -.0033956, .43596, .96457); } 37.001% { transform: rotateX(-39.66deg); animation-timing-function: cubic-bezier(.39455, .015696, .56615, .99799); } 78.597% { transform: rotateX(-71deg); animation-timing-function: cubic-bezier(.76271, -.0011624, .27542, .99138); } 100% { transform: rotateX(-22deg); } }
@keyframes checkout-fid-r5x { 0% { transform: rotateX(-22deg); animation-timing-function: cubic-bezier(.30932, -.0033956, .43596, .96457); } 37.001% { transform: rotateX(-39.66deg); animation-timing-function: cubic-bezier(.39455, .015696, .56615, .99799); } 70.617% { transform: rotateX(-79.6deg); animation-timing-function: cubic-bezier(.76271, -.0011624, .27542, .99138); } 100% { transform: rotateX(-22deg); } }
@keyframes checkout-fid-r6y { 0% { transform: rotateY(-44deg); animation-timing-function: cubic-bezier(.44128, -.010901, .63898, 1.0004); } 31.288% { transform: rotateY(17.17deg); animation-timing-function: cubic-bezier(.44286, .00030801, .52296, .97962); } 62.168% { transform: rotateY(-38.51deg); animation-timing-function: cubic-bezier(.2875, -.016553, .6675, 1.0042); } 100% { transform: rotateY(-7deg); } }
@keyframes checkout-fid-r5y { 0% { transform: rotateY(-44deg); animation-timing-function: cubic-bezier(.44128, -.010901, .63898, 1.0004); } 35.992% { transform: rotateY(39.77deg); animation-timing-function: cubic-bezier(.44286, .00030801, .52296, .97962); } 59.1% { transform: rotateY(-60deg); animation-timing-function: cubic-bezier(.2875, -.016553, .6675, 1.0042); } 100% { transform: rotateY(-7deg); } }
@keyframes checkout-fid-r4y { 0% { transform: rotateY(-44deg); animation-timing-function: cubic-bezier(.44128, -.010901, .63898, 1.0004); } 30.47% { transform: rotateY(-10deg); animation-timing-function: cubic-bezier(.44286, .00030801, .52296, .97962); } 59.1% { transform: rotateY(-60deg); animation-timing-function: cubic-bezier(.2875, -.016553, .6675, 1.0042); } 100% { transform: rotateY(-7deg); } }
.ig .checkout-spin { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: checkout-spin .7s linear infinite; }
@keyframes checkout-spin { to { rotate: 1turn; } }
@media (prefers-reduced-motion: reduce) { .ig .checkout-fid .ring > :is(.r6, .r5, .r4), .ig .checkout-fid .ring > :is(.r6, .r5, .r4) > i { animation: none; } }
.ig .checkout-done { padding-top: 2px; }
.ig .checkout-hero { align-items: center; gap: 6px; padding: 4px 24px 8px; text-align: center; }
.ig .checkout-ok { width: 52px; height: 52px; margin-bottom: 6px; border-radius: 26px; display: grid; place-items: center; background: #58C322; flex-shrink: 0; }
.ig .checkout-ok.s { width: 22px; height: 22px; margin: 0; border-radius: 11px; }
.ig .checkout-saved .cancel { flex-shrink: 0; font-weight: 600; color: var(--ig-link); }
/* the Basket's checkout, a tray over the Basket (2.0-4b-1): a line per seller in place of the item, then their orders once paid */
.ig .checkout-sellers { padding: 0 16px; border-bottom: 1px solid #FFFFFF1A; }
.ig .checkout-seller { gap: 12px; padding-bottom: 14px; }
.ig .checkout-seller + .checkout-seller { padding-top: 14px; border-top: 1px solid #FFFFFF14; }
.ig .checkout-amt { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ig .checkout-placed .checkout-sellers { padding-top: 8px; }
.ig .checkout-hsub { max-width: 330px; text-wrap: balance; }
.ig .checkout-ok.wait { background: #FFFFFF1A; }
.ig .checkout-ok.wait .checkout-spin { width: 24px; height: 24px; }
/* a seller's items as one 48pt thumb: two photos overlap, the first in front, the sheet's colour around it */
.ig .checkout-thumbs { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.ig .checkout-thumbs.two > .ph { position: absolute; }
.ig .checkout-thumbs.two > .ph:first-child { left: 0; bottom: 0; z-index: 1; box-shadow: 0 0 0 2px var(--ig-sheet); }
.ig .checkout-thumbs.two > .ph:nth-child(2) { right: 0; top: 0; }
/* the order's state on the thumb's corner: going in, placed */
.ig .checkout-mark { position: absolute; right: -5px; bottom: -5px; z-index: 2; width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center;
  background: #3A3D42; box-shadow: 0 0 0 2px var(--ig-sheet); font: 700 13px/1 var(--ig-text); color: #fff; transition: background-color .2s; }
.ig .checkout-mark.ok { background: #58C322; }
.ig .checkout-mark .checkout-spin { width: 10px; height: 10px; border-width: 1.5px; }
/* a seller's breakdown and the order summary, in a sheet over it */
.ig .checkout-bitem { gap: 12px; padding: 6px 0 10px; }
.ig .checkout-bnote { padding-top: 6px; text-wrap: pretty; }
.ig .checkout-saved .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* a long card and address stay on one line */

/* the seller's form: real text boxes, Safari's AutoFill tint, errors */
.ig .checkout-field:focus-within { border-color: #111; box-shadow: 0 0 0 1px #111; }
.ig .checkout-field.auto { background: #FFF9D9; }
.ig .checkout-field.err { border-color: #D72C0D; box-shadow: 0 0 0 1px #D72C0D; }
.ig .checkout-input { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: #111; caret-color: #111;
  user-select: text; -webkit-user-select: text; }
.ig .checkout-input::placeholder { color: #8A8A8A; }
.ig .checkout-newcard .checkout-input { color: #fff; caret-color: var(--ig-link); }
.ig .checkout-newcard .checkout-input::placeholder { color: var(--ig-muted); }
/* iOS's bar over the keyboard */
.ig .checkout-kb { left: 0; bottom: 0; width: 402px; height: 80px; z-index: 12; gap: 2px; padding: 0 6px 36px; background: #F2F2F6F2; border-top: 1px solid #0000001F;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font: 400 15px/20px var(--ig-text); color: #000; }
.ig .checkout-kb .nav { width: 36px; height: 44px; display: grid; place-items: center; }
.ig .checkout-kb .fill { height: 44px; justify-content: center; }
.ig .checkout-kb .fill > span { padding: 0 12px; white-space: nowrap; }
.ig .checkout-kb .fill > span + span { border-left: 1px solid #0000002E; }
.ig .checkout-kb .done { padding: 0 10px; line-height: 44px; font-weight: 600; color: #007AFF; }
/* the next step, and the thank-you */
.ig .checkout-wstep { gap: 18px; }
.ig .checkout-wbox { padding: 0 12px; border: 1px solid #D4D4D4; border-radius: 6px; font: 400 14px/18px system-ui, sans-serif; }
.ig .checkout-wbox > .row { gap: 10px; padding: 12px 0; }
.ig .checkout-wbox > .row + .row { border-top: 1px solid #E6E6E6; }
.ig .checkout-wbox .k { width: 64px; flex-shrink: 0; color: #6B6B6B; }
.ig .checkout-wbox .chg { flex-shrink: 0; text-decoration: underline; }
.ig .checkout-wbox .m, .ig .checkout-wthanks .m { font: 400 13px/16px system-ui, sans-serif; color: #6B6B6B; }
.ig .checkout-wopt > i { width: 18px; height: 18px; border-radius: 9px; border: 1.5px solid #8A8A8A; flex-shrink: 0; }
.ig .checkout-wopt.on > i { border: 6px solid #111; }
.ig .checkout-wopt b { font-weight: 600; }
.ig .checkout-wthanks { gap: 18px; padding-top: 22px; }
.ig .checkout-wok { width: 44px; height: 44px; border-radius: 22px; border: 2px solid #111; display: grid; place-items: center; flex-shrink: 0; }
