 
#giftReceiptPopup{z-index:122}
#giftReceiptPopup .gr-box{width:min(1540px,calc(100vw - 40px));max-width:1540px;height:90vh;max-height:90vh;padding:24px;display:flex;flex-direction:column;overflow:hidden}
.gr-box .modal-head{display:flex;justify-content:space-between;gap:12px;flex:none}
.gr-intro{font-size:13px;margin:6px 0 18px}
.gr-columns{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(340px,1fr);gap:24px;min-height:0;flex:1}
.gr-settings{border:0;padding:0 14px 12px 0;margin:0;min-width:0;overflow:auto}
.gr-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:16px 0;border-bottom:1px solid var(--line)}
.gr-row:first-child{padding-top:0}
.gr-row>b,.gr-row label>b{font-size:13px}
.gr-choices{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.gr-box .rbtn{font-size:12px;padding:7px 12px;white-space:normal}
.gr-choices .rbtn.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.gr-choices label{display:inline-flex;align-items:center;gap:5px;font-size:12px}
.gr-settings input:not([type=checkbox]):not([type=file]),.gr-settings select,.gr-settings textarea,.gr-search input{box-sizing:border-box;width:100%;min-width:0;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font:inherit;font-size:13px}
.gr-settings #grTop{width:72px}
.gr-settings small{font-size:11.5px;line-height:1.7}
.gr-session-list{max-height:180px;overflow:auto;display:flex;flex-direction:column;gap:8px}
.gr-session-list label,.gr-free{display:flex;align-items:center;gap:8px;font-size:13px}
.gr-settings input[type=checkbox],.gr-pick-item input{accent-color:var(--accent);width:16px;height:16px;flex:none}
.gr-dates,.gr-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gr-dates label,.gr-style-grid label,.gr-thanks{display:flex;flex-direction:column;gap:7px;font-size:12px}
.gr-settings details{padding:16px 0;border-bottom:1px solid var(--line)}
.gr-settings summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.7}
#grFilterSummary{font-size:11px;font-weight:400;margin-left:8px}
.gr-amount{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;margin:12px 0}
.gr-settings .gr-amount input:not([type=checkbox]):not([type=file]){width:112px;min-width:0}
.gr-chips{display:flex;flex-wrap:wrap;gap:6px}
.gr-chip{border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);font:inherit;font-size:11px;padding:4px 9px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.gr-picker-trigger{text-align:left}
.gr-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.gr-upload-preview{height:86px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--muted);font-size:12px;background:var(--card);margin-bottom:8px}
.gr-upload-preview img{width:100%;height:100%;object-fit:contain}
[data-upload-preview=cover] img{object-fit:cover}
.gr-upload-label{position:relative;display:inline-block;cursor:pointer;margin-right:4px}
.gr-upload-label input{position:absolute;width:1px;height:1px;opacity:0}
#giftReceiptPopup .gr-logo-size{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:12px}
#giftReceiptPopup #grLogoScale{width:auto;min-width:70px;flex:1 1 80px;padding:0;border:0;background:transparent;accent-color:var(--accent);cursor:pointer}
#giftReceiptPopup .gr-logo-size output{min-width:42px;text-align:right;font-variant-numeric:tabular-nums}
#giftReceiptPopup .gr-theme-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#giftReceiptPopup #grThemeColor{width:44px;height:36px;flex:none;padding:3px;cursor:pointer}
#giftReceiptPopup #grThemeHex{width:132px;flex:1 1 110px;max-width:180px;font-variant-numeric:tabular-nums}
.gr-style-grid{margin:15px 0}
.gr-settings textarea{resize:vertical;max-height:180px}
.gr-actions{display:flex;gap:8px;padding-top:18px}
.gr-preview{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding-left:18px;border-left:1px solid var(--line)}
.gr-preview-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;flex:none}
.gr-preview-toolbar>span{margin-right:auto}
.gr-paper{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.gr-paper p{text-align:center;font-size:13px;margin:60px 16px}
.gr-paper canvas{display:block;width:100%;height:auto}
.gr-preview small{font-size:11px;line-height:1.6}
.gr-status{min-height:20px;font-size:12px;line-height:1.6;margin-top:14px;flex:none}
#giftReceiptPicker{z-index:138}
#giftReceiptPicker .gr-pick-box{width:min(620px,calc(100vw - 32px));height:72vh;max-height:72vh;display:flex;flex-direction:column;overflow:hidden}
#giftReceiptPicker .gr-gift-content{display:flex;flex-direction:column;flex:1;min-height:0}
#giftReceiptPicker .wishgift-box{width:calc(100vw - 32px);display:flex;flex-direction:column;overflow:hidden}
#giftReceiptPicker .wishgift-foot{flex-wrap:wrap}
.gr-crop-box{width:min(720px,calc(100vw - 32px));max-height:90vh;display:flex;flex-direction:column;gap:14px;overflow:auto}
.gr-crop-box p{margin:0;font-size:12px;line-height:1.7}
.gr-crop-stage{display:flex;justify-content:center;align-items:center;min-height:80px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}
.gr-crop-stage canvas{display:block;max-width:100%;max-height:50vh;width:auto;height:auto;touch-action:none;cursor:grab}
.gr-crop-stage canvas:active{cursor:grabbing}
.gr-crop-stage canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.gr-crop-zoom{display:flex;align-items:center;gap:12px;font-size:13px}
.gr-crop-zoom input{flex:1;min-width:0;accent-color:var(--accent)}
.gr-crop-zoom output{min-width:44px;text-align:right;font-variant-numeric:tabular-nums}
.gr-crop-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gr-crop-foot>span{flex:1}
.gr-crop-box .rbtn{font-size:12px;border-radius:9px;padding:7px 12px}
#grCoverHint{display:block;margin:8px 0}
.gr-search{display:flex;gap:8px;margin:14px 0;flex:none}
.gr-search input{flex:1}
.gr-pick-results{overflow:auto;flex:1;min-height:0}
.gr-pick-item{display:flex;align-items:center;gap:10px;padding:12px 9px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer;overflow-wrap:anywhere}
.gr-pick-item small{display:block;font-size:11px;color:var(--muted)}
.gr-pick-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;font-size:12px;flex:none}
.gr-box [hidden],#giftReceiptPicker [hidden]{display:none!important}
.bigscreen-mode #giftReceiptBtn{display:none!important}
 

.desktop-receipt-host{--text:var(--btn-text)}
.desktop-receipt-host #giftReceiptPopup .gr-box{width:100%;max-width:none;height:100%;max-height:none;padding:16px}
.desktop-receipt-host #giftReceiptPopup .gr-box>.modal-head{margin-bottom:0}
.desktop-receipt-host .gr-intro{margin:6px 0 14px;font-size:12px}
.desktop-receipt-host .gr-columns{grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);grid-template-areas:"preview settings";gap:20px;overflow:hidden}
.desktop-receipt-host .gr-settings{grid-area:settings;padding:0 4px 8px 0}
.desktop-receipt-host .gr-preview{grid-area:preview;border-left:0;padding:0;min-height:0;max-height:100%;margin:0}
.desktop-receipt-host .gr-paper{background:transparent;max-height:none;min-height:0;flex:1}
.desktop-receipt-host .gr-row{padding:14px 0;gap:8px}
.desktop-receipt-host .gr-row:first-child{padding-top:0}
.desktop-receipt-host .gr-row>b,.desktop-receipt-host .gr-settings summary{font-size:13px;font-weight:600}
.desktop-receipt-host .gr-box .rbtn,.desktop-receipt-host .gr-chip{border-radius:9px;font-size:12px;padding:7px 11px;box-shadow:none}
.desktop-receipt-host .gr-choices .rbtn:not(.on){background:rgba(var(--accent-rgb),.045);color:var(--text)}
.desktop-receipt-host .gr-settings :is(input:not([type=checkbox]):not([type=file]),select,textarea){background:rgba(255,255,255,.48);border-radius:9px;font-size:13px}
.desktop-receipt-host.dark .gr-settings :is(input:not([type=checkbox]):not([type=file]),select,textarea){background:rgba(18,19,28,.32)}
.desktop-receipt-host .gr-desktop-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px;margin-top:12px;flex:none}
.desktop-receipt-host .gr-actions{padding:0;flex:none}
.desktop-receipt-host .gr-preview-toolbar{gap:8px;margin-left:auto}
.desktop-receipt-host .gr-status{margin-top:8px;font-size:11.5px}
.desktop-receipt-host #giftReceiptPicker .modal-box{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:760px){
 .desktop-receipt-host .gr-columns{display:grid;grid-template-columns:1fr;grid-template-areas:"settings" "preview";overflow:auto}
 .desktop-receipt-host .gr-settings{overflow:visible;padding:0}
 .desktop-receipt-host .gr-preview{min-height:300px;border-top:1px solid var(--line);padding-top:16px}
 .desktop-receipt-host .gr-paper{min-height:260px;max-height:55vh}
 .desktop-receipt-host .gr-preview-toolbar{margin-left:0}
}
@media(max-width:900px){
 #giftReceiptPopup .gr-box{width:calc(100vw - 20px);padding:16px;height:94vh;max-height:94vh}
 .gr-columns{display:block;overflow:auto}
 .gr-settings{overflow:visible;padding-right:0}
 .gr-preview{border-left:0;border-top:1px solid var(--line);padding:20px 0 0;margin-top:20px;min-height:360px}
 .gr-paper{max-height:65vh;min-height:240px;flex:auto}
}
@media(max-width:430px){
 .gr-box .rbtn{padding:7px 9px;font-size:11px}
 .gr-dates,.gr-style-grid{gap:8px}
 .gr-upload-grid{grid-template-columns:1fr}
 .gr-status{font-size:11px}
}
