.sheet { padding: 0; border: none; max-width: min(34rem, 100%); width: 100%; background: var(--paper); color: var(--ink); box-shadow: 0 -8px 60px -12px rgba(23, 21, 19, 0.34); } .sheet::backdrop { background: rgba(23, 21, 19, 0.52); backdrop-filter: blur(2px); } @media (max-width: 640px) { .sheet { margin: auto auto 0; max-width: none; border-radius: 20px 20px 0 0; max-height: 92svh; } } @media (min-width: 641px) { .sheet { margin: auto; border-radius: 18px; max-height: 88svh; } } .sheet-inner { padding: clamp(1.4rem, 4vw, 2rem); overflow-y: auto; max-height: inherit; -webkit-overflow-scrolling: touch; } .sheet-grip { display: none; } @media (max-width: 640px) { .sheet-grab { display: block; height: 30px; position: relative; touch-action: none; cursor: grab; } .sheet-grab:active { cursor: grabbing; } .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: rgba(59, 59, 70, 0.22); margin: 0.7rem auto 0; transition: background-color 0.15s ease; } .sheet-grab:active .sheet-grip { background: rgba(59, 59, 70, 0.38); } } @media (min-width: 641px) { .sheet-grab { display: none; } } .sheet.is-dragging { transition: none; } @media (prefers-reduced-motion: no-preference) { .sheet.is-settling { transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1); } } .sheet-close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 3; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: none; border-radius: 50%; cursor: pointer; background: rgba(59, 59, 70, 0.06); color: var(--ink-soft); font-size: 1.45rem; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 0.12s ease, transform 0.12s ease; } .sheet-close svg { display: block; width: 20px; height: 20px; pointer-events: none; fill: currentColor; } .sheet-close::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; } .sheet-close:hover { background: rgba(59, 59, 70, 0.11); color: var(--ink); } .sheet-close:active { background: rgba(59, 59, 70, 0.2); color: var(--ink); transform: scale(0.92); } .sheet-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; } .sheet-eyebrow { font-family: var(--font-label); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); } .sheet-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.05; margin: 0.35rem 0 0; } .sheet-title .sheet-amount { color: var(--muted); font-weight: 700; } .sheet-line { font-size: 0.93rem; color: var(--ink-soft); margin: 0.5rem 0 0; line-height: 1.45; } .sheet-give { margin-top: 1.15rem; } .sheet-give .btn { width: 100%; justify-content: center; } .sheet-give-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0.5rem 0 0; } .sheet [hidden] { display: none; } .sheet-or { display: flex; align-items: center; gap: 0.8rem; margin: 1.25rem 0 0.2rem; font-family: var(--font-label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); } .sheet-or::before, .sheet-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); } .sheet-form { margin-top: 1rem; } .sheet-form .field { margin-bottom: 0.9rem; } .sheet-form .btn { width: 100%; justify-content: center; } .sheet-note > summary { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; list-style: none; font-size: 0.85rem; font-weight: 600; color: var(--orange-ink); padding: 0.2rem 0; margin-bottom: 0.5rem; } .sheet-note > summary::-webkit-details-marker { display: none; } .sheet-note > summary::after { content: ""; width: 0.85rem; height: 0.85rem; background: currentColor; -webkit-mask: var(--icon-more) center/contain no-repeat; mask: var(--icon-more) center/contain no-repeat; transition: transform 0.2s ease; } .sheet-note[open] > summary::after { transform: rotate(45deg); } .sheet-status { margin: 0.8rem 0 0; font-weight: 600; font-size: 0.9rem; min-height: 1.2em; } .sheet-status.is-ok { color: var(--ok); } .sheet-status.is-err { color: var(--err); } .sheet-fine { font-size: 0.78rem; color: var(--muted); margin: 0.8rem 0 0; text-align: center; } .sheet-sent { text-align: center; padding: 0.6rem 0 0.2rem; } .sheet-sent-mark { width: 52px; height: 52px; margin: 0 auto 0.9rem; border-radius: 50%; display: grid; place-items: center; background: rgba(46, 125, 50, 0.1); color: var(--ok); font-size: 1.5rem; font-weight: 700; } .sheet-sent h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.4rem; margin: 0 0 0.5rem; } .sheet-sent p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0 auto; max-width: 36ch; } .sheet-sent .btn { margin-top: 1.2rem; width: 100%; justify-content: center; } @media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: sheet-in 0.26s cubic-bezier(0.22, 1, 0.36, 1); } .sheet[open]::backdrop { animation: sheet-fade 0.26s ease; } @keyframes sheet-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } } @keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } } } @media (prefers-reduced-motion: no-preference) and (max-width: 640px) { @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } } } html.sheet-open, html.sheet-open body { overflow: hidden; } .sheet .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
