.resx-card-sheet[open] {
  position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column;
  width:100dvw; height:100dvh; max-width:none; max-height:none; box-sizing:border-box;
  margin:0; padding: max(20px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  overflow:hidden auto; overscroll-behavior:contain; border:0; background:transparent;
  color:#f4f3f1; font-family:inherit;
}
body:has(.resx-card-sheet[open]) { overflow:hidden; }
.resx-card-sheet::backdrop,.resx-card-sheet[open]:not(:modal) { background:rgb(9 9 10 / 82%); backdrop-filter:blur(12px); }
.resx-card-sheet [hidden] { display:none !important; }
.resx-pay-window { flex:none; width:min(100%,464px); box-sizing:border-box; margin:auto; }
.resx-card-inline { display:block; min-width:0; width:100%; color:#f4f3f1; font-family:inherit; }
.resx-card-inline .resx-pay-window { margin-inline:0; }
.resx-pay-method { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; }
.resx-pay-method strong { font-size:clamp(19px,4vw,24px); font-weight:600; line-height:1.2; overflow-wrap:anywhere; }
.resx-pay-method span { color:#e7e4de; font-size:16px; font-variant-numeric:tabular-nums; }
.resx-pay-handoff { margin:0; color:#e2dfd9; line-height:1.45; font-size:14px; }
.resx-card-sheet .resx-pay-continue { align-self:flex-start; min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 18px; color:#252525; background:#edeae4; border-radius:12px; font:inherit; font-weight:600; text-decoration:none; }
.resx-card-sheet a:focus-visible { outline:2px solid #e5ddd0; outline-offset:3px; }
.resx-pay-visual:has([data-stripe-activate]:not([hidden]),[data-stripe-hosted]:not([hidden])) .resx-stripe-mount { display:none; }
.resx-pay-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px; }
.resx-pay-heading h2 { font-size:18px; font-weight:500; letter-spacing:-.025em; margin:0; }
.resx-card-sheet button { font:inherit; border:0; cursor:pointer; }
.resx-card-sheet button:focus-visible,.resx-card-sheet input:focus-visible { outline:2px solid #e5ddd0; outline-offset:3px; }
.resx-card-sheet button:disabled { cursor:default; opacity:.6; }
.resx-card-sheet .resx-pay-close { font-size:24px; line-height:1; font-weight:400; width:44px; height:44px; border-radius:50%; color:#e9e8e5; background:rgb(110 110 114 / 20%); }
.resx-pay-visual {
  position:relative; isolation:isolate; box-sizing:border-box; min-height:clamp(232px,57vw,282px);
  display:flex; flex-direction:column; justify-content:space-between; gap:20px;
  padding:clamp(18px,5vw,30px); border-radius:clamp(18px,4.5vw,25px); color:#f5f3ee;
  background:radial-gradient(ellipse at 9% -10%,#61605f,transparent 57%),linear-gradient(125deg,#434343 4%,#323233 52%,#262627 100%);
  box-shadow:inset 0 1px 0 #ffffff21,inset 0 -1px 0 #ffffff0b,0 18px 50px #0005;
}
.resx-pay-visual::before { content:""; position:absolute; z-index:-1; inset:0; border-radius:inherit; pointer-events:none; background:url('/assets/granite-grain.png') repeat; background-size:114px; mix-blend-mode:soft-light; opacity:.62; }
.resx-card-brand { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.resx-card-brand span { font-size:clamp(21px,5vw,26px); line-height:1; font-weight:600; letter-spacing:-.065em; }
.resx-card-brand i { width:34px; height:25px; border-radius:6px; opacity:.86;
  background:linear-gradient(90deg,transparent 28%,#66645f 29% 31%,transparent 32% 68%,#66645f 69% 71%,transparent 72%),linear-gradient(0deg,transparent 46%,#77736e 48% 51%,transparent 53%),linear-gradient(130deg,#b7b4ab,#dad6ca 34%,#aaa79f 59%,#d6d3ca);
}
.resx-stripe-mount { min-width:0; width:100%; }
.resx-stripe-reveal { height:0; overflow:clip; flex:none; }
.resx-pay-visual:has([data-stripe-activate]:not([hidden]),[data-stripe-hosted]:not([hidden])) .resx-stripe-reveal { display:none; }
@media (prefers-reduced-motion:no-preference) {
  body:not(.still) .resx-stripe-reveal { transition:height .65s cubic-bezier(.45,0,.2,1); }
}
.resx-pay-status,.resx-pay-error { font-size:14px; line-height:1.45; margin:0; }
.resx-pay-status { color:#e6e2dc; }
.resx-pay-error { color:#ffbdb7; }
.resx-pay-retry { align-self:flex-start; color:#f4f3ef; background:#555456; border-radius:10px; padding:10px 14px; }
.resx-pay-actions { display:grid; gap:10px; margin-top:14px; }
.resx-pay-email { display:grid; gap:6px; font-size:13px; }
.resx-pay-email input { box-sizing:border-box; width:100%; padding:12px 14px; border-radius:12px; border:none; background:#29292a; color:#f6f5f1; font:inherit; font-size:16px; }
.resx-pay-wallet { min-width:0; }
.resx-card-sheet .resx-pay-submit { min-height:48px; padding:12px; border-radius:12px; background:#e9e7e1; color:#222221; font-size:15px; font-weight:600; }
.resx-card-sheet .resx-pay-submit:hover:enabled { background:#fffef9; }
.resx-pay-heading,.resx-pay-actions { transition:opacity 200ms cubic-bezier(.32,0,.2,1), transform 220ms cubic-bezier(.16,1,.3,1); }
.resx-pay-exit :is(.resx-pay-heading,.resx-pay-actions) { opacity:0; transform:translateY(6px); pointer-events:none; }
.resx-card-sheet::backdrop { transition:background 240ms cubic-bezier(.16,1,.3,1), backdrop-filter 240ms cubic-bezier(.16,1,.3,1); }
.resx-card-sheet.resx-pay-exit::backdrop { background:transparent; backdrop-filter:blur(0); }
.resx-price-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.resx-price-ink { display:inline-block; white-space:nowrap; font:inherit; line-height:inherit; }
.resx-pay-method .resx-price-ink { font:inherit; }
.resx-price-ink::before { content:attr(data-price); }
.co-fees { display:grid; grid-template-rows:0fr; opacity:0; transform:translateY(-4px); }
.co-fees.fees-open { grid-template-rows:1fr; opacity:1; transform:translateY(0); }
.co-fees > div { min-height:0; overflow:hidden; }
.checkout-summary .co-fees #coBreakdown[hidden] { display:grid; }
@media (prefers-reduced-motion:no-preference) {
  body:not(.still) .co-fees { transition:grid-template-rows 260ms cubic-bezier(.16,1,.3,1), opacity 220ms cubic-bezier(.16,1,.3,1), transform 240ms cubic-bezier(.16,1,.3,1); }
}
.resx-card-sheet.resx-pay-replacement .resx-pay-actions { animation:none; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body:not(.still) .resx-pay-visual { transition:transform .24s ease-out; }
  body:not(.still) .resx-card-sheet:not(.resx-pay-busy,.resx-pay-exit) .resx-pay-stage:hover:not(:focus-within,.resx-pay-editing) > .resx-pay-visual {
    transform:perspective(1050px) rotateX(var(--pay-pitch,1deg)) rotateY(var(--pay-yaw,2deg));
  }
}
@media (prefers-reduced-motion:no-preference) {
  body:not(.still) .resx-card-sheet::backdrop { animation:resx-pay-dim .38s ease-out backwards; }
  body:not(.still) .resx-pay-actions { animation:resx-pay-reveal .18s .32s ease-out backwards; }
  @keyframes resx-pay-dim { from { background:transparent; backdrop-filter:blur(0); } }
  @keyframes resx-pay-reveal { from { opacity:0; transform:translateY(5px); } }
}
.resx-payment-slot { height:410px; min-height:410px; min-width:0; overflow-anchor:none; }
.resx-payment-slot:has(.resx-stripe-reveal iframe), .resx-payment-slot:not(:has(.resx-pay-stage)) { overflow:clip; }
.checkout-summary .co-fees { grid-template-rows:0fr; opacity:0; }
.checkout-summary .co-fees.fees-open { grid-template-rows:1fr; opacity:1; visibility:visible; }
.checkout-summary .co-fees:not(.fees-open) { visibility:hidden; transition:grid-template-rows 240ms cubic-bezier(.22,1,.36,1), opacity 200ms cubic-bezier(.32,0,.2,1), transform 220ms cubic-bezier(.22,1,.36,1), visibility 0s linear 240ms; }
@media (prefers-reduced-motion:no-preference) {
  body:not(.still) .resx-payment-slot { transition:height .32s cubic-bezier(.25,.8,.25,1); }
}
