[data-gift-scene]{--gift-bg:#213329;--gift-input:#15251c;--gift-panel:#304233}[data-gift-scene="sf"],[data-gift-scene="drive"]{--gift-bg:#192b3e;--gift-input:#101e30;--gift-panel:#26384c}
.gift-dialog,.gift-preview-dialog,.gift-checkout-dialog{color:#eee7d7;background:var(--gift-bg);border:1px solid #e9cc9950;border-radius:19px;max-height:91dvh;overflow:auto;box-shadow:0 25px 100px #0007}
.gift-dialog::backdrop,.gift-preview-dialog::backdrop,.gift-checkout-dialog::backdrop{background:#071018cf;backdrop-filter:blur(6px)}
.gift-invite{display:flex;align-items:center;gap:24px;margin:26px 0;padding:26px 30px;background:linear-gradient(115deg,var(--gift-panel),var(--gift-bg));border:1px solid #eccd9638;border-radius:14px;scroll-margin:24px}
.gift-invite-icon{flex:0 0 58px;font:42px Georgia,serif;color:var(--gold);transform:rotate(-10deg)}
.gift-invite-copy{flex:1}.gift-invite h2{font-size:clamp(21px,2.1vw,29px);margin:0 0 8px}.gift-invite .eyebrow{font-size:10px;margin-bottom:8px}.gift-invite p:not(.eyebrow){font-size:14px;margin:0}.gift-invite small{font-size:12px;max-width:550px}
.gift-primary,.gift-secondary{border:1px solid #eccd9655;border-radius:9px;padding:13px 18px;min-height:48px;font-size:14px;touch-action:manipulation;line-height:1.5}
.gift-primary{background:var(--gold);color:#243428;font-weight:600}.gift-secondary{background:#ffffff07;color:var(--gold)}.gift-primary:hover{background:#f1dcb3}.gift-secondary:hover{background:#ffffff12}
.gift-dialog{width:min(920px,calc(100% - 28px));padding:28px 32px}.gift-dialog-top{display:flex;align-items:center;gap:12px}.gift-dialog-top .eyebrow{margin:0 auto 0 0;font-size:11px}.gift-dialog-top .language-switch{min-height:38px;padding:8px 12px}
.gift-close{background:none;border:0;font-size:28px;line-height:1;min-width:44px;min-height:44px;padding:8px;color:#d9d9c6;flex-shrink:0}.gift-checkout-dialog>.gift-close{float:right}
.gift-dialog h2{margin:17px 0 8px;font-size:clamp(25px,3vw,34px)}.gift-subtitle{color:#b9c6b5;font-size:14px;margin:0 0 24px;max-width:650px}
.gift-dialog h2,.gift-preview-top h2,.gift-checkout-dialog h2,.gift-invite h2{font-family:var(--serif);font-weight:400;line-height:1.5}
.gift-editor-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:start}.gift-names{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.gift-fields label{display:block;font-size:13px;color:#dfdfcd}
.gift-fields input,.gift-fields textarea{display:block;width:100%;color:#eee9dc;background:var(--gift-input);border:1px solid #d9d5a742;border-radius:8px;padding:11px 12px;font:15px/1.7 'DM Sans',system-ui,sans-serif;margin-top:6px;user-select:text;-webkit-user-select:text;touch-action:auto}
.gift-fields input::placeholder,.gift-fields textarea::placeholder{color:#8ea18e;opacity:1;font-size:13px}.gift-fields textarea{resize:vertical;min-height:190px;max-height:360px}.gift-fields input:focus,.gift-fields textarea:focus{outline:2px solid var(--gold);outline-offset:2px}
.gift-field-footer{display:flex;gap:12px;align-items:baseline;justify-content:space-between;margin:10px 0;color:#a9b7a5;font-size:11px}.gift-field-footer span:last-child{white-space:nowrap}
.gift-paper-wrap{padding:0 10px 15px}.gift-paper-label{display:block;font-size:11px;color:#b9c6b5;text-align:center;margin:0 0 18px}
.gift-paper{min-height:265px;padding:28px 26px 22px;background:linear-gradient(145deg,#f0e6ce,#e8dbbd);color:#35412f;box-shadow:0 14px 35px #0003;border-radius:3px;transform:rotate(-2deg);overflow-wrap:anywhere}
.gift-paper p{white-space:pre-wrap;font:17px/1.9 var(--serif);margin:12px 0 22px}.gift-paper p.paper-name{font-size:13px;margin:0 0 16px;color:#67704f}.gift-paper p:empty{display:none}.gift-paper p.paper-signature{text-align:right;margin:18px 0 5px}.paper-star{display:block;text-align:center;color:#9a865c;font-size:22px;margin-top:20px}
.gift-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;border-top:1px solid #ffffff14;padding-top:22px;margin-top:14px}.gift-fine{font-size:12px;color:#a9b7a5;text-align:center;margin:14px 0 0;line-height:1.65}
.gift-preview-dialog{width:min(1320px,calc(100% - 20px));padding:18px;max-height:96dvh}.gift-preview-top{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}.gift-preview-top .eyebrow{font-size:10px;margin:0}.gift-preview-top h2{font-size:20px;margin:5px 0 0}
#giftPreviewFrame iframe{display:block;width:100%;height:70dvh;min-height:320px;border:1px solid #ffffff20;border-radius:10px;background:#17251f}
.gift-order{display:flex;align-items:center;justify-content:space-between;gap:16px;border-block:1px solid #ffffff20;padding:20px 0;margin:20px 0}.gift-order strong{font:28px Georgia,serif;color:var(--gold);white-space:nowrap}.gift-order span{font-size:14px}
.gift-checkout-dialog{width:min(510px,calc(100% - 28px));padding:28px}.gift-checkout-dialog>p:not(.eyebrow){font-size:14px}.gift-checkout-status{padding:14px;border:1px solid #eccd9630;border-radius:8px;background:#eccd960c;color:#d9d6bd;margin:22px 0}.gift-checkout-dialog .gift-primary{width:100%}
.gift-recipient-mode header .brand,.gift-recipient-mode header .edition,.gift-recipient-mode header .other-night{display:none}.gift-recipient-mode header{padding-top:12px;padding-bottom:12px}.gift-recipient-mode .intro{display:block}.gift-recipient-welcome{font-size:15px;color:var(--gold);overflow-wrap:anywhere;margin:0 0 15px}.gift-recipient-mode .room-letter p{white-space:pre-wrap;overflow-wrap:anywhere}.gift-recipient-mode .room-letter .recipient-note-name{font-size:12px;color:#687152;margin-bottom:10px}.gift-recipient-mode .room-letter>span{white-space:pre-wrap;overflow-wrap:anywhere}
.painting:has(.room-letter:not([hidden])){touch-action:pan-y}.room-letter{touch-action:pan-y;overscroll-behavior:contain}.room-letter button{position:sticky;top:0}
.gift-placements{border:1px solid #eccd9635;padding:12px 14px;border-radius:10px;margin:0 0 22px;display:flex;flex-wrap:wrap;gap:10px 18px}.gift-placements legend{font-size:13px;color:#d9d6bd;padding:0 5px}.gift-placements label{display:flex;align-items:center;gap:8px;font-size:13px;margin:0;cursor:pointer;min-height:36px}.gift-placements input[type="checkbox"]{display:inline-block;width:18px;height:18px;padding:0;margin:0;accent-color:var(--gold)}#giftPlacementError{font-size:13px;color:#ffbdac;margin:0;flex-basis:100%}
.gift-fields #giftSleeve,.gift-fields #giftGlass{min-height:90px}[data-gift-scene="sf"] .gift-fields #giftMessage{min-height:150px;height:150px}
.paper-slot-label{display:block;color:#797650;font:11px/1.6 system-ui,sans-serif;border-bottom:1px solid #79765033;padding-bottom:6px}.gift-fields label+label{margin-top:14px}.gift-paper>div>p{margin-top:10px}.scene-gift-letter{max-width:600px;margin:24px auto;padding:28px;background:#eddfc3;color:#35412f;border-radius:4px;box-shadow:0 12px 35px #0003;text-align:left;overflow-wrap:anywhere}.scene-gift-letter p{white-space:pre-wrap;font:20px/1.8 var(--serif)}.scene-gift-letter .scene-gift-name{font:13px/1.7 system-ui,sans-serif;color:#687152}.scene-gift-letter .scene-gift-name:last-child{text-align:right}.scene-gift-name:empty{display:none}
[data-gift-scene="drive"] .gift-paper{background:#314635;color:#f0ebdc;border:1px solid #627c66;border-radius:20px 20px 5px 20px;transform:none}[data-gift-scene="drive"] .gift-paper p.paper-name{color:#bfd2bf}[data-gift-scene="drive"] .paper-star{color:#cadabf}.gift-recipient-mode #localSleeveEditor{display:none}
.gift-glass-words{font:clamp(12px,2vw,24px)/1.7 var(--serif);text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;color:#f4ecd9;min-height:35px;margin:14px 0}
@media(max-width:700px){.gift-invite{flex-wrap:wrap;padding:22px 18px;gap:12px}.gift-invite-icon{flex-basis:34px;font-size:32px}.gift-invite-copy{flex-basis:calc(100% - 50px)}.gift-invite>.gift-primary{width:100%;margin-top:6px}.gift-dialog{padding:20px 18px}.gift-dialog-top{gap:5px}.gift-dialog-top .eyebrow{font-size:9px;letter-spacing:.1em}.gift-dialog-top .language-switch{font-size:12px;min-width:60px}.gift-editor-grid{grid-template-columns:1fr;gap:20px}.gift-paper-wrap{padding:0 8px 15px}.gift-paper{min-height:210px}.gift-paper p{font-size:16px}.gift-names{gap:10px}.gift-actions{flex-direction:column;margin-top:10px;padding-top:16px}.gift-actions>button{width:100%}.gift-fine{font-size:11px}.gift-preview-dialog{padding:12px}.gift-preview-top h2{font-size:16px}.gift-preview-top{gap:8px}#giftPreviewFrame iframe{height:71dvh}.gift-preview-dialog .gift-fine{margin-top:10px}.gift-checkout-dialog h2{font-size:25px}}

.gift-recipient-mode header a{display:none}

.gift-loading{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:30px;background:#101b2b;color:#ecd2a0;text-align:center}.gift-preview-mode #giftInvite{display:none!important}#stripePay{margin-bottom:12px}

.gift-invite-actions{flex:0 0 250px;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.gift-share-free{border:0;background:transparent;color:#b6c5c3;font:12px/1.6 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px 2px;cursor:pointer;touch-action:manipulation}
.gift-share-free:hover{color:#eee7d7}.gift-share-free:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.gift-share-status{font:12px/1.6 system-ui,sans-serif;color:#b6c5c3;margin:0!important;overflow-wrap:anywhere}.gift-share-status:empty{display:none}
.gift-share-link{box-sizing:border-box;width:100%;min-width:0;background:var(--gift-input);color:#eee7d7;border:1px solid #eccd9655;border-radius:6px;padding:10px;font:13px/1.5 system-ui,sans-serif;user-select:text;-webkit-user-select:text}
@media(max-width:700px){.gift-invite-actions{flex-basis:100%;width:100%;margin-top:6px}}
