.shop-product{margin-block:30px 46px}.shop-product img{width:100%;object-fit:contain}.gift-dialog{box-sizing:border-box;background:#070d10;color:#eee7d7;border:1px solid #a28c58;border-radius:20px;padding:30px;width:min(760px,94vw);max-height:90dvh;overflow:auto}.gift-dialog::backdrop{background:#000c}.gift-dialog label{display:block;margin:18px 0 7px}.gift-dialog input:not([type=checkbox]),.gift-dialog select{box-sizing:border-box;width:100%;padding:12px;color:#eee;background:#121c21;border:1px solid #776c50;border-radius:8px;font:inherit}.gift-close{float:right}.gift-dialog h2{clear:both;font:30px Georgia}.gift-dialog p{line-height:1.65}.gift-dialog #giftPreview{display:block;max-height:420px;max-width:100%;margin:24px auto;background:#000}.gift-consent{line-height:1.6}.gift-consent input{margin-right:9px;accent-color:#dfc68c}.gift-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.gift-actions button{flex:1;min-width:180px}.gift-dialog button:disabled{opacity:.5;cursor:wait}.ss-frame img{height:auto;display:block;width:100%;max-width:100%;image-rendering:auto}#ssSpacing{max-width:100%;padding:12px;margin:10px 0;color:#eee;background:#122027}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f5d987;outline-offset:4px}@media(max-width:600px){.gift-dialog{padding:20px}.shop-product{display:block}.shop-product-copy{margin-top:20px}.gift-dialog #giftPreview{max-height:330px}}
.shop-image{background:#11191e}.shop-image img{aspect-ratio:650/540}.gift-dialog .gift-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px}.gift-dialog .gift-consent input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-width:20px;padding:0;margin:3px 0 0}.gift-dialog p{font-size:15px}.gift-dialog .shop-note{font-size:13px}
.gift-dialog .gift-consent input[type=checkbox]{min-height:20px;max-height:20px;appearance:auto}

/* Preserve the approved 360 CSS px / 64px repeat across phone and desktop. */
.ss-frame{box-sizing:border-box;width:360px;max-width:100%;padding:0;border:0;margin-inline:auto}
.ss-frame img{width:360px;max-width:100%;height:auto}
.shop-sample-buy{display:block;margin:16px 0 18px;color:#f5e5b8;text-decoration:underline;text-underline-offset:4px;line-height:1.6}
.shop-image img{background:#fff;object-fit:contain;aspect-ratio:1/1}

@media(max-width:600px){#page-sacred>.card{padding-inline:0}#page-sacred .ss-intro,#page-sacred .ss-help{padding-inline:12px}}
#couModal{width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:transparent}
#couModal::backdrop{background:rgba(0,0,0,.74)}
.gift-restore-panel,.gift-recovery-banner{border:1px solid #b99c61;border-radius:14px;padding:18px;margin:18px 0;background:#111a1d;text-align:left}
.gift-restore-panel[hidden],.gift-recovery-banner[hidden]{display:none!important}
.gift-restore-panel h3,.gift-recovery-banner h3{margin:0 0 10px;font-size:24px}
.gift-restore-panel button,.gift-recovery-banner button{margin-top:16px}
.gift-recovery-banner p{font-size:15px;line-height:1.7;color:#d2d8d5}
.gift-recovery-banner details{margin:16px 0}.gift-recovery-banner summary{cursor:pointer;min-height:44px;padding:12px 0;color:#f5e5b8}
.gift-recovery-banner img{display:block;max-width:100%;max-height:440px;margin:12px auto}
.gift-recovery-banner{scroll-margin-top:150px}

/* A short permission notice and honest waiting state keep print preparation calm. */
#giftStatus{min-height:1.6em;scroll-margin-block:24px;color:#f5e5b8}
#giftStatus[data-busy="true"]::before{content:"";display:inline-block;width:18px;height:18px;margin-right:10px;vertical-align:-3px;border:2px solid #746640;border-top-color:#f5e5b8;border-radius:50%;animation:gift-wait 1.1s linear infinite}
@keyframes gift-wait{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#giftStatus[data-busy="true"]::before{animation:none}}
#giftPermissionNote{color:#c4c8c4}#giftPermissionNote a{color:#f5e5b8;text-underline-offset:3px}
#giftDownload[hidden],#giftReturnToPrint[hidden]{display:none!important}
#printPrivacyDetails{scroll-margin-top:130px}#giftReturnToPrint{margin:8px 0 18px}

/* Keep date confirmation in the selected product and reduce competing controls. */
.gift-dialog [hidden]{display:none!important}
.gift-dialog[data-restoring="true"] #giftRestorePanel,.gift-dialog[data-restoring="true"] label[for="giftTitle"],.gift-dialog[data-restoring="true"] #giftTitle,.gift-dialog[data-restoring="true"] #giftLabels,.gift-dialog[data-restoring="true"] #giftDates,.gift-dialog[data-restoring="true"] #giftPreview,.gift-dialog[data-restoring="true"] #giftPreviewNote,.gift-dialog[data-restoring="true"] #giftPermissionNote,.gift-dialog[data-restoring="true"] #giftStatus,.gift-dialog[data-restoring="true"] .gift-actions{display:none}
.gift-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.gift-recovery-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:18px;margin-top:22px}
.gift-recovery-compare figure{margin:0;min-width:0}.gift-recovery-compare figcaption{line-height:1.6;font-size:14px;color:#f5e5b8}
.gift-recovery-compare img{display:block;max-width:100%;max-height:340px;margin:12px auto;object-fit:contain}
#giftInlineRecovery button{display:block;width:100%;white-space:normal;min-height:48px}
#giftInlineStatus{color:#f5e5b8}#giftInlineHeading:focus{outline:none}
#giftInlineRecovery button{border:1px solid rgba(245,229,184,.65);border-radius:13px;padding:13px;background:transparent;color:var(--gold);font-weight:700}
#giftInlineRecovery #giftRestoreUse{background:var(--gold);border-color:var(--gold);color:#080b0d}

/* Restorable Gallery backups and contained date recovery. */
[hidden]{display:none!important}
.gallery-backup-tools,.gallery-load-error{border:1px solid #8e7d52;border-radius:14px;padding:20px;margin:24px 0;text-align:left;background:#091216}
.gallery-backup-tools h3{font:24px Georgia;color:var(--gold);margin:0 0 12px}.gallery-backup-tools p,.gallery-load-error p{line-height:1.65}
.gallery-backup-tools input[type=file]{max-width:100%}.gallery-backup-tools button{white-space:normal}
#galleryBackupReview{border-top:1px solid #8e7d52;margin-top:18px;padding-top:18px}#galleryBackupReview button{margin-top:12px}
#galleryBackupStatus{min-height:1.6em;color:var(--gold);overflow-wrap:anywhere}.gallery-backup-tools li{overflow-wrap:anywhere}
#giftRecoveryFields fieldset{min-width:0;border:1px solid #746847;border-radius:10px;padding:14px;margin:18px 0}#giftRecoveryFields legend{padding:0 8px;color:var(--gold);overflow-wrap:anywhere}
#giftRecoveryFields label{overflow-wrap:anywhere}#giftRecoveryFields h4{font:22px Georgia;color:var(--gold);margin:24px 0 12px}
@media(max-width:420px){.gallery-backup-tools{padding:14px}#giftRecoveryFields fieldset{padding:10px}.gift-date-fields{gap:10px}}

/* Backup tools are optional and closed until requested. */
.gallery-backup-launch{text-align:right;margin:12px 0 20px}.gallery-backup-launch .secondary{width:auto;min-height:44px;padding:10px 16px;font-size:13px;letter-spacing:.02em}
.gallery-backup-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.gallery-backup-header h3{margin-top:6px}
#galleryBackupClose{flex:0 0 44px;width:44px;height:44px;border:1px solid #8e7d52;border-radius:50%;background:transparent;color:var(--gold);font:24px Arial;cursor:pointer}
