/* Gift coupons inherit GifTon type, lavender and existing sheet controls. */
.coupon-intro{color:#c9bfd5;font-size:15px;line-height:1.55;margin:0 0 22px}
.coupon-field{display:flex;flex-direction:column;gap:10px;margin:22px 0}.coupon-field strong{font-size:15px}.coupon-field textarea{resize:vertical;min-height:96px;font:inherit}
.coupon-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.coupon-presets button{width:auto;flex:1;min-width:64px;padding:10px 8px;font-size:14px;min-height:44px}
.coupon-history-title{margin:30px 0 12px;font-size:18px}.coupon-status{color:#c9bfd5;font-size:14px;line-height:1.55;margin:16px 0;overflow-wrap:anywhere}
.coupon-history-item{display:grid;grid-template-columns:24px 1fr auto;gap:8px 12px;align-items:center;width:100%;padding:17px 0;border-bottom:1px solid #303237;background:transparent;text-align:left;color:#f5f5f7}
.coupon-history-item svg{width:22px;height:22px;grid-row:span 2;color:#b795ff}.coupon-history-item span{font-size:18px;font-weight:650}.coupon-history-item small{grid-column:2;font-size:13px;color:#c9bfd5;overflow-wrap:anywhere}.coupon-history-item b{grid-column:3;grid-row:1 / span 2;font-size:12px;font-weight:500;color:#c6aaff}
.coupon-card{display:flex;flex-direction:column;align-items:flex-start;padding:26px 24px;border-radius:16px;background:#a78bfa;color:#1e1e1e;position:relative;overflow:hidden;margin:10px 0 22px}
.coupon-card>img{width:48px;height:48px;position:absolute;right:20px;top:19px}.coupon-card-brand{font-size:20px;font-weight:700;margin:0 60px 35px 0}.coupon-card-amount{font-size:clamp(34px,10vw,46px);font-weight:750;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}
.coupon-card-purpose{font-size:14px;line-height:1.4;margin-top:10px}.coupon-card-recipient{font-size:14px;font-weight:650;margin-top:28px;overflow-wrap:anywhere;max-width:100%}.coupon-card-note{font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0 0}

.coupon-card .coupon-card-note{color:#1e1e1e}
.coupon-presets button{white-space:nowrap}

.coupon-form-actions{display:flex;flex-direction:column;gap:12px;margin:20px 0 8px}
.coupon-form-actions>button{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:0;padding:14px 18px;box-sizing:border-box}
.coupon-form-actions>button.hidden{display:none}

.coupon-payment-group{border:0;padding:0;margin:24px 0;min-width:0}.coupon-payment-group legend{font-size:15px;font-weight:650;padding:0;margin-bottom:12px}.coupon-payment-option{display:flex;align-items:center;gap:12px;width:100%;padding:16px;border:1px solid #b795ff;border-radius:12px;background:#25212d;box-sizing:border-box;cursor:pointer}.coupon-payment-option input{width:20px;height:20px;flex:none;accent-color:#b795ff;margin:0}.coupon-payment-option span{display:flex;flex-direction:column;gap:5px}.coupon-payment-option strong{font-size:15px}.coupon-payment-option small{font-size:14px;color:#d0bfdf}

/* Receipt layout: fixed heading and one scrollable content area. */
.sheet:has(.coupon-receipt){--coupon-surface:#191c1f;background:var(--coupon-surface);display:flex;flex-direction:column;overflow:hidden;padding:0}
.sheet:has(.coupon-receipt) #sheet-content{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden;width:100%}
.sheet:has(.coupon-receipt) #sheet-title{flex:none;font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:0;padding:26px 64px 20px 22px;background:var(--coupon-surface)}
.sheet:has(.coupon-receipt) .sheet-controls{position:absolute;inset:0;pointer-events:none;z-index:5}
.sheet:has(.coupon-receipt) .sheet-close{pointer-events:auto;top:16px;right:14px;background:#272a30;backdrop-filter:none}
.coupon-receipt{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 22px calc(20px + var(--safe-bottom,0px))}
.coupon-card.coupon-voucher{display:block;padding:20px 20px 0;border-radius:16px;margin:0;background:linear-gradient(125deg,#b99bff 0%,#a78bfa 100%);color:#20172f;position:relative}
.coupon-voucher:before,.coupon-voucher:after{content:'';position:absolute;bottom:40px;width:14px;height:14px;border-radius:50%;background:var(--coupon-surface,#191c1f)}
.coupon-voucher:before{left:-7px}.coupon-voucher:after{right:-7px}
.coupon-voucher-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.coupon-voucher-header .coupon-card-brand{font-size:18px;line-height:1.2;margin:0;letter-spacing:-.02em;color:#20172f}
.coupon-voucher-header img{position:static;width:32px;height:32px;object-fit:contain}
.coupon-voucher-value{display:flex;flex-direction:column;gap:9px;padding:24px 0}
.coupon-voucher .coupon-card-amount{font-size:clamp(38px,12vw,52px);line-height:1.05;font-weight:750;letter-spacing:-.035em;color:#20172f;font-variant-numeric:tabular-nums}
.coupon-voucher .coupon-card-purpose{font-size:14px;line-height:1.4;color:#352548;margin:0}
.coupon-voucher-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;border-top:1px dashed #30204055}
.coupon-voucher .coupon-card-recipient{font-size:12px;line-height:1.4;font-weight:500;color:#352548;margin:0;overflow-wrap:anywhere}
.coupon-voucher-state{font-size:11px;line-height:1.3;font-weight:650;color:#352548;white-space:nowrap}
.coupon-greeting{margin:24px 0 0}.coupon-greeting-label{font-size:13px;line-height:1.4;color:#c9bfd5}
.coupon-receipt .coupon-greeting-text{margin:7px 0 0;font-size:16px;line-height:1.5;color:#f5f5f7;white-space:pre-wrap;overflow-wrap:anywhere}
.coupon-receipt .coupon-receipt-status{font-size:14px;line-height:1.5;color:#c9bfd5;margin:22px 0 18px}
.coupon-receipt-actions{display:flex;flex-direction:column;gap:10px}
.coupon-receipt-actions>button{display:flex;align-items:center;justify-content:center;min-height:52px;width:100%;padding:14px 16px;margin:0;box-sizing:border-box;font-size:15px;line-height:1.3}
.coupon-receipt-actions>.quiet-action{min-height:44px;padding:10px 16px;color:#ccb5ff;background:transparent}
.coupon-receipt-actions>.picker-search{width:100%;margin:0}
