/* Live checkout owns its frame. It does not inherit the prototype's checkout-screen/glass overrides. */
html:has(.checkout-store){scroll-padding:16px 0 calc(92px + env(safe-area-inset-bottom))}
body:has(.checkout-store){background:#fff}
body:has(.checkout-store)>:is(.header,footer){display:none}
.checkout-store{
  --checkout-gutter:clamp(16px,5vw,28px);
  --checkout-max:660px;
  --checkout-ink:#1b1b1b;
  --checkout-muted:#575754;
  --checkout-line:#e6e5e1;
  --checkout-panel:#f8f8f6;
  width:100%;min-height:100vh;min-height:100svh;
  padding-block:0 calc(112px + env(safe-area-inset-bottom));
  color:var(--checkout-ink);background:#fff;
}
.checkout-store :is(.checkout-shell,.checkout-dock-inner,.checkout-result){
  width:min(100%,calc(var(--checkout-max) + var(--checkout-gutter)*2));
  min-width:0;margin-inline:auto;box-sizing:border-box;
  padding-inline:max(var(--checkout-gutter),env(safe-area-inset-left)) max(var(--checkout-gutter),env(safe-area-inset-right));
}
.checkout-store .checkout-shell-head{
  min-height:74px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;
  padding:calc(10px + env(safe-area-inset-top)) 0 10px;border:0;margin:0;
}
.checkout-store .checkout-shell-loading{grid-template-columns:auto minmax(0,1fr)}
.checkout-store .checkout-shell-back{
  display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--checkout-line);
  border-radius:6px;background:#fff;color:#242424;touch-action:manipulation;
}
.checkout-store .checkout-shell-back:is(:hover,:active){background:var(--checkout-panel)}
.checkout-head-title{min-width:0;display:grid;gap:4px;justify-items:start}
.checkout-head-title img,.checkout-shell-loading img{width:60px;height:auto;display:block}
.checkout-store .checkout-shell-head h1{
  font:660 clamp(18px,4.8vw,23px)/1.15 var(--body);letter-spacing:-.04em;margin:0;
  overflow-wrap:normal;
}
.checkout-mode{
  padding:4px 7px;border-radius:4px;background:#f1f0ed;color:#50504d;line-height:1.2;font-size:.6875rem;
  font-weight:640;white-space:nowrap;
}
.checkout-live-body{min-width:0}
.checkout-stepper{padding:12px 0 13px;margin:0 0 8px;border-top:1px solid var(--checkout-line)}
.checkout-step-current{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 5px;font-size:.8125rem;color:var(--checkout-muted)}
.checkout-step-current strong{color:var(--checkout-ink);font-weight:650}
.checkout-stepper ol{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:0}
.checkout-stepper li{min-width:0}
.checkout-stepper li>span,.checkout-stepper li>button{
  position:relative;display:flex;align-items:center;gap:6px;width:100%;min-height:44px;
  text-align:start;font:570 .8125rem/1 var(--body);color:#5e5e5a;padding:7px 0 0;background:none;border:0;white-space:nowrap;
}
.checkout-stepper li>span::before,.checkout-stepper li>button::before{
  content:"";position:absolute;inset:3px 0 auto;height:3px;background:#e7e7e3;border-radius:2px;
}
.checkout-stepper li[data-state=done]>button::before{background:#8d8d86}
.checkout-stepper li[data-state=current]>span::before{background:#242423}
.checkout-stepper li[data-state=current]>span{color:#1b1b1a}
.checkout-stepper li>button:hover{text-decoration:underline}
.checkout-step-marker{
  display:grid;place-items:center;width:20px;height:20px;border-radius:50%;flex:none;
  font-size:.75rem;background:#efefeb;color:#4d4d46;
}
.checkout-stepper li[data-state=current] .checkout-step-marker{background:#252524;color:#fff}
.checkout-stepper li[data-state=done] .checkout-step-marker{background:#ecece8;color:#232321}

.checkout-summary-panel{border:1px solid var(--checkout-line);background:var(--checkout-panel);border-radius:7px;margin:0 0 22px}
.checkout-store .checkout-summary-panel summary{
  display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:11px;
  min-height:76px;padding:10px 12px;cursor:pointer;list-style:none;
}
.checkout-summary-panel summary::-webkit-details-marker{display:none}
.checkout-store .checkout-summary-panel summary::after{content:none}
.checkout-summary-panel :is(img,.checkout-summary-photo-placeholder){
  display:grid;place-items:center;width:48px;height:48px;object-fit:contain;background:#fff;color:#666;border-radius:4px;
}
.checkout-summary-name{min-width:0;display:grid;gap:5px}
.checkout-summary-name>strong{
  font:630 .875rem/1.24 var(--body);display:-webkit-box;-webkit-box-orient:vertical;
  -webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;
}
.checkout-summary-meta{display:flex;justify-content:space-between;align-items:baseline;gap:3px 10px;flex-wrap:wrap}
.checkout-summary-panel small{display:block;font-size:.75rem;line-height:1.25;color:var(--checkout-muted)}
.checkout-summary-meta b,.checkout-summary-expanded strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.checkout-summary-meta b{font-size:.875rem}
.checkout-free{color:#2c5b43;font-weight:650}
.checkout-summary-chevron{justify-self:end;color:#555}
.checkout-summary-panel[open] .checkout-summary-chevron{transform:rotate(180deg)}
.checkout-summary-expanded{border-top:1px solid var(--checkout-line);padding:10px 12px;background:#fff;border-radius:0 0 7px 7px}
.checkout-summary-expanded ul{list-style:none;padding:0;margin:0}
.checkout-summary-expanded li{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;padding:0 0 9px;margin-bottom:8px;
  border-bottom:1px solid var(--checkout-line);font-size:.8125rem;overflow-wrap:anywhere;
}
.checkout-summary-expanded li :is(img,.checkout-summary-photo-placeholder){width:34px;height:34px;background:var(--checkout-panel)}
.checkout-summary-expanded .total-line{font-size:.8125rem;padding-block:3px;border:0}
.checkout-summary-expanded .checkout-summary-grand{margin-top:6px;padding:8px 0 1px;border-top:1px solid var(--checkout-line)}

.checkout-live-content{min-width:0}
.checkout-store .checkout-live-content h2{font:660 clamp(22px,5.4vw,28px)/1.12 var(--body);letter-spacing:-.045em;margin:0 0 7px}
.checkout-store :is(.checkout-guest,.checkout-step-lead){margin:0 0 1px;padding:0;border:0;background:none;color:var(--checkout-muted);font-size:.9rem;line-height:1.4}
.checkout-store form{min-width:0;display:grid;gap:10px;margin:0;padding:0;background:none;border:0;box-shadow:none}
.checkout-live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.checkout-location-grid{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}
.checkout-store .checkout-field{min-width:0;margin:0;gap:5px;color:#30302d;font-size:.8125rem;line-height:1.25;font-weight:590}
.checkout-store .checkout-field :is(input,select){
  box-sizing:border-box;min-width:0;width:100%;min-height:45px;height:45px;padding:8px 10px;
  border:1px solid #d9d8d3;background:#fff;border-radius:6px;color:var(--checkout-ink);font:400 max(16px,1rem)/1.2 var(--body);box-shadow:none;
}
.checkout-store .checkout-field :is(input,select):focus{border-color:#55534e;outline:2px solid #55534e38;outline-offset:1px;background:#fff}
.checkout-store .checkout-field input::placeholder{color:#767670}
.checkout-store :is(.checkout-cep-row,[data-live-coupon]){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.checkout-store .checkout-coupon{margin:16px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--checkout-line);border-radius:0}
.checkout-store :is(.checkout-cep-row,[data-live-coupon]) button{
  min-height:45px;padding:7px 13px;white-space:nowrap;font-size:.8125rem;color:#282826;background:#fff;border:1px solid #d9d8d3;border-radius:6px;box-shadow:none;font-weight:640;cursor:pointer;
}
.checkout-store .checkout-secondary:is(:hover,:focus-visible){background:var(--checkout-panel)}
.checkout-store .checkout-secondary:disabled{opacity:.5;cursor:not-allowed}
.checkout-store .checkout-cep-status{min-height:2.6em;font-size:.75rem;line-height:1.3;color:var(--checkout-muted);margin:-3px 0 0}
.checkout-store .checkout-saved{display:flex;flex-wrap:wrap;border:1px solid var(--checkout-line);padding:10px;gap:7px;border-radius:6px}
.checkout-saved p{width:100%;color:var(--checkout-muted);font-size:.875rem}
.checkout-store :is(.checkout-test-unavailable,.checkout-live-error){
  padding:9px 11px;border:1px solid #ecd8d8;border-radius:5px;background:#fbf6f6;color:#762f2f;margin:0 0 12px;font-size:.875rem;line-height:1.4;
}
.checkout-store .checkout-methods{display:grid;gap:8px;margin:3px 0 0;padding:0;border:0;min-width:0}
.checkout-store .checkout-methods legend{font-size:.8125rem;margin:0 0 6px;color:var(--checkout-muted)}
.checkout-store .checkout-method-live{
  display:flex;align-items:center;gap:11px;min-height:58px;padding:9px 11px;cursor:pointer;border:1px solid var(--checkout-line);border-radius:6px;
}
.checkout-store .checkout-method-live:has(:checked){border-color:#585853;background:var(--checkout-panel)}
.checkout-store .checkout-method-live input{width:17px;height:17px;flex:none;accent-color:#242424}
.checkout-store .checkout-method-live span{display:grid;gap:2px}
.checkout-store .checkout-method-live strong{font-size:.9rem;font-weight:650}
.checkout-store .checkout-method-live small,.checkout-card-wrap p,.checkout-methods + p{font-size:.8125rem;color:var(--checkout-muted);line-height:1.4}
.checkout-card-wrap{margin-top:12px;min-width:0}
.checkout-card-wrap a{text-decoration:underline}
.checkout-store .checkout-confirm-live{display:flex;gap:9px;align-items:start;padding:11px;border:1px solid var(--checkout-line);border-radius:6px;font-size:.875rem}
.checkout-store .checkout-confirm-live input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:#242424}
.checkout-store .review-row{align-items:start;font-size:.875rem;gap:8px}
.checkout-store .review-row :is(div,p){min-width:0;overflow-wrap:anywhere}
.checkout-store .review-row p{color:var(--checkout-muted)}
.checkout-store .review-row button{min-height:42px}
.checkout-live-dock{
  position:fixed;z-index:12;inset:auto 0 0;background:#fff;
  border-top:1px solid var(--checkout-line);padding-block:10px max(10px,env(safe-area-inset-bottom));
}
.checkout-dock-inner{display:grid;grid-template-columns:minmax(94px,auto) minmax(0,1fr);gap:12px;align-items:center}
.checkout-total{display:grid;gap:2px;font-variant-numeric:tabular-nums;line-height:1.14}
.checkout-total small{font-size:.75rem;color:var(--checkout-muted)}
.checkout-total strong{font:670 clamp(17px,5vw,22px)/1.08 var(--body);letter-spacing:-.04em;white-space:nowrap}
.checkout-store .checkout-live-dock .btn{
  width:100%;min-height:49px;display:grid;place-items:center;text-align:center;white-space:normal;
  padding:7px 10px;font:640 .9375rem/1.15 var(--body);color:#fff;background:#1b1b1b;border:1px solid #1b1b1b;
  border-radius:6px;box-shadow:none;
}
.checkout-store .btn:disabled{opacity:.48;cursor:not-allowed}
.checkout-result{display:grid;gap:11px;padding-block:clamp(25px,7vw,60px);justify-items:start}
.checkout-result h1{font:660 clamp(25px,6vw,38px)/1.11 var(--body);letter-spacing:-.045em}
.checkout-pix-qr{width:180px;height:180px;object-fit:contain}
@media (max-width:480px){
  .checkout-stepper{padding-bottom:0;margin-bottom:9px}
  .checkout-stepper li>span,.checkout-stepper li>button{justify-content:center;min-height:44px;font-size:.7rem}
  .checkout-step-marker{display:none}
  .checkout-summary-panel{margin-bottom:18px}
}
@media(max-width:350px){
  .checkout-store .checkout-shell-head{gap:6px;grid-template-columns:40px minmax(0,1fr) auto}
  .checkout-store .checkout-shell-back{width:40px;height:44px}
  .checkout-store .checkout-shell-head h1{font-size:17px}
  .checkout-store .checkout-summary-panel summary{grid-template-columns:42px minmax(0,1fr) 14px;gap:8px;padding:9px}
  .checkout-summary-panel summary :is(img,.checkout-summary-photo-placeholder){width:42px;height:42px}
}
@media(orientation:landscape) and (max-height:440px){.checkout-live-dock{padding-block:5px}.checkout-store .checkout-live-dock .btn{min-height:44px}}
.checkout-receipt-card{max-width:580px;gap:16px;padding-bottom:32px}
.checkout-receipt-head{width:100%;display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--checkout-line)}
.checkout-receipt-intro{display:grid;gap:9px}
.checkout-receipt-intro>p:not(.label),.checkout-payment-instructions p{color:var(--checkout-muted);font-size:.9375rem}
.checkout-receipt-intro h1{max-width:20ch}
.checkout-receipt-symbol{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#f1f1ed;color:#31312f;font-weight:700}
.checkout-receipt-facts{width:100%;display:grid;gap:7px;padding:12px;border:1px solid var(--checkout-line);border-radius:6px;background:var(--checkout-panel)}
.checkout-receipt-facts>div{display:flex;justify-content:space-between;gap:10px;font-size:.875rem}
.checkout-receipt-facts dt{color:var(--checkout-muted)}
.checkout-receipt-facts dd{font-weight:640;text-align:right}
.checkout-payment-instructions{display:grid;gap:10px;justify-items:start;width:100%;padding:12px;border:1px solid var(--checkout-line);border-radius:6px;min-width:0}
.checkout-payment-instructions h2{font:645 1rem/1.2 var(--body)}
.checkout-payment-instructions label{width:100%}
.checkout-receipt-status:empty{display:none}

/* Pix receipt: one payment surface, with the raw code out of the way until needed. */
.checkout-store[data-savana-receipt]:has(.checkout-pix-receipt){padding-bottom:0}
.checkout-store .checkout-pix-receipt{
  width:min(100%,580px);margin-inline:auto;
  padding:calc(18px + env(safe-area-inset-top)) max(var(--checkout-gutter),env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(var(--checkout-gutter),env(safe-area-inset-left));
  display:grid;gap:16px;min-width:0;
}
.checkout-pix-receipt .checkout-receipt-head{min-height:37px;padding-bottom:10px}
.checkout-pix-receipt .checkout-receipt-head img{height:auto}
.pix-receipt-intro{display:grid;justify-items:start;gap:8px}
.pix-receipt-state{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:4px;background:#f4f0e6;color:#5a461b;font-size:.875rem;font-weight:630;line-height:1.2}
.pix-receipt-state span{width:6px;height:6px;border-radius:50%;background:#8b6d2e}
.checkout-store .pix-receipt-intro h1{font:660 clamp(1.8rem,7vw,2.4rem)/1.08 var(--body);letter-spacing:-.05em;margin:0}
.pix-receipt-panel{min-width:0;border:1px solid var(--checkout-line);border-radius:8px;overflow:hidden;background:#fff}
.pix-receipt-amount{margin:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#f8f8f6;border-bottom:1px solid var(--checkout-line)}
.pix-receipt-amount>div{display:grid;gap:2px;min-width:0}
.pix-receipt-amount>div:last-child{text-align:right}
.pix-receipt-amount dt{font-size:.875rem;color:var(--checkout-muted)}
.pix-receipt-amount dd{font-weight:650;font-variant-numeric:tabular-nums;margin:0;overflow-wrap:anywhere}
.pix-receipt-amount>div:first-child dd{font-size:1.5rem;letter-spacing:-.035em;line-height:1.2}
.pix-receipt-payment{display:grid;gap:12px;padding:14px 16px;align-items:center;min-width:0}
.pix-receipt-qr{display:grid;justify-items:center;gap:5px;margin:0;min-width:0;text-align:center}
.pix-receipt-qr>div{padding:6px;background:#fff;border:1px solid var(--checkout-line);border-radius:5px;max-width:100%}
.pix-receipt-qr img{display:block;width:176px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;image-rendering:crisp-edges;image-rendering:pixelated}
.pix-receipt-qr figcaption{color:var(--checkout-muted);font-size:.875rem}
.pix-receipt-copy{display:grid;min-width:0;gap:5px}
.pix-receipt-copy>p:first-child{font-weight:650}
.pix-receipt-copy>p:nth-child(2),.pix-receipt-unavailable{font-size:.9375rem;color:var(--checkout-muted);line-height:1.42}
.checkout-store .pix-receipt-primary,.checkout-store .pix-receipt-secondary{
  display:inline-flex;gap:8px;justify-content:center;align-items:center;min-width:0;min-height:46px;
  padding:9px 13px;border-radius:5px;font:650 .9375rem/1.2 var(--body);touch-action:manipulation;
}
.checkout-store .pix-receipt-primary{width:100%;background:#1c1c1c;color:#fff;border:1px solid #1c1c1c;margin-top:5px}
.checkout-store .pix-receipt-primary:is(:hover,:active){background:#363636}
.checkout-store .pix-receipt-primary.is-copied{background:#263a30;border-color:#263a30}
.pix-receipt-manual summary{display:flex;justify-content:center;align-items:center;gap:5px;min-height:44px;color:#42423f;font-size:.875rem;font-weight:620;cursor:pointer;list-style:none;touch-action:manipulation}
.pix-receipt-manual summary::-webkit-details-marker{display:none}
.pix-receipt-manual[open] summary svg{transform:rotate(180deg)}
.pix-receipt-manual label{display:block;margin-bottom:5px;font-size:.875rem;color:var(--checkout-muted)}
.checkout-store .pix-receipt-manual input{display:block;width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--checkout-line);border-radius:4px;background:#fafaf9;color:var(--checkout-ink);font-size:1rem}
.pix-receipt-unavailable{display:grid;gap:8px;padding:16px}
.checkout-store .pix-receipt-footer{display:grid;justify-items:center;text-align:center;gap:3px;background:none;color:var(--checkout-muted);border:0;margin:0;padding:0;font-size:.875rem}
.checkout-store .pix-receipt-secondary{border:0;background:transparent;color:#1b1b1b}
.checkout-store .pix-receipt-secondary:disabled{opacity:.55}
.checkout-store .pix-receipt-footer a{display:grid;place-items:center;min-height:44px;padding-inline:12px;text-decoration:underline;text-underline-offset:3px}
.pix-receipt-feedback{font-size:.875rem;line-height:1.35;color:#334c3e}
.pix-receipt-feedback:empty{display:none}
.checkout-pix-receipt :is(button,a,input,summary):focus-visible{outline:2px solid #5b635d;outline-offset:2px}
@media(min-width:550px){
  .pix-receipt-amount,.pix-receipt-payment{padding-inline:20px}
  .pix-receipt-payment.has-both{grid-template-columns:minmax(0,.85fr) minmax(0,1fr);gap:20px;padding-block:18px}
  .pix-receipt-payment.has-both .pix-receipt-copy{border-left:1px solid var(--checkout-line);padding-left:20px}
}
.checkout-pix-receipt .pix-receipt-manual{margin:0;padding:0;border:0}
.checkout-pix-receipt .pix-receipt-manual summary{padding:0}
.checkout-pix-receipt .pix-receipt-manual summary::after{content:none}

/* Clearer visual hierarchy in the live flow; the receipt keeps its own layout. */
.checkout-store .checkout-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0;
}
.checkout-store .checkout-step-current{justify-content:flex-start;gap:6px;line-height:1.3}
.checkout-progress-compact{display:none}
.checkout-store .checkout-summary-panel summary{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;min-height:64px}
.checkout-store .checkout-summary-panel summary :is(img,.checkout-summary-photo-placeholder){width:44px;height:44px}
.checkout-summary-toggle{
  display:inline-flex;gap:4px;align-items:center;justify-self:end;
  color:#434340;font:630 .75rem/1.25 var(--body);white-space:nowrap;
}
.checkout-summary-toggle .summary-hide,.checkout-summary-panel[open] .summary-show{display:none}
.checkout-summary-panel[open] .summary-hide{display:inline}
.checkout-store .checkout-summary-panel summary:is(:hover,:focus-visible) .checkout-summary-toggle span{
  text-decoration:underline;text-underline-offset:3px;
}
.checkout-store .checkout-method-live{gap:9px}
.checkout-store .checkout-method-live .checkout-method-icon{flex:none;color:#494945}
.checkout-store .checkout-method-live:has(:checked) .checkout-method-icon{color:#202020}
.checkout-store .checkout-method-live span{min-width:0}
.checkout-store .checkout-coupon{margin-top:12px;padding-top:12px}
.checkout-store [data-live-coupon] .checkout-secondary{background:#f8f8f6;border-color:#dfded9}
.checkout-store [data-live-coupon] .checkout-secondary:is(:hover,:focus-visible){background:#eeedea}
.checkout-store .checkout-coupon-remove{
  min-height:44px;margin-top:3px;padding:4px 8px;
  color:#4b4b47;font-size:.8125rem;text-decoration:underline;text-underline-offset:3px;
}
.checkout-store .checkout-coupon-note{
  margin:8px 0 0;color:#2c5b43;font-size:.8125rem;line-height:1.35;
}
.checkout-store .checkout-coupon-note[role="alert"]{color:#762f2f}
@media(max-width:600px){
  .checkout-store .checkout-shell-head:not(.checkout-shell-loading){min-height:62px;padding-block:calc(7px + env(safe-area-inset-top)) 7px}
  .checkout-store .checkout-stepper{padding:9px 0 0;margin-bottom:12px}
  .checkout-store .checkout-stepper ol{display:none}
  .checkout-progress-compact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding-top:3px}
  .checkout-progress-compact span{height:3px;background:#e7e7e3;border-radius:2px}
  .checkout-progress-compact [data-state="current"]{background:#242423}
  .checkout-progress-compact [data-state="done"]{background:#8d8d86}
  .checkout-store .checkout-summary-panel{margin-bottom:15px}
  .checkout-store .checkout-summary-panel summary{padding:8px 9px}
  .checkout-store .checkout-location-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
}
@media(max-width:350px){
  .checkout-store .checkout-summary-panel summary{grid-template-columns:34px minmax(0,1fr) auto;gap:7px}
  .checkout-store .checkout-summary-panel summary :is(img,.checkout-summary-photo-placeholder){width:34px;height:34px}
  .checkout-summary-toggle{font-size:.6875rem;gap:2px}
}

/* Don't chase the keyboard with the dock or lock Safari's native focus scrolling. */
@media (any-pointer:coarse){
  #conteudo[data-checkout-keyboard] .checkout-live-dock{visibility:hidden;pointer-events:none}
  html:has(#conteudo[data-checkout-keyboard]){scroll-behavior:auto}
}
