.sv-html { color-scheme: light; background: white; }
.sv-html.sv-locked { overflow: hidden; }
.sv-body { margin: 0; background: white; }
.sv-content { display: none; }
.sv-opened .sv-content, .sv-preview .sv-content { display: block; }
#sv-envelope { cursor: pointer; touch-action: none; }
#sv-envelope [data-sv-envelope-flap], #sv-envelope [data-sv-envelope-bottom] { transition: transform 1.15s ease-in-out, opacity 1.15s ease-in-out; }
#sv-envelope.sv-opening [data-sv-envelope-flap] { transform: translateX(-50%) translateY(-140%) rotate(45deg) !important; opacity: 0; }
#sv-envelope.sv-opening [data-sv-envelope-bottom] { transform: translateY(105%); opacity: 0; }
#sv-envelope.sv-opening { pointer-events: none; transition: opacity .45s 1s; opacity: 0; }
.sv-tools { position: fixed; z-index: 60; bottom: 16px; width: min(100%,448px); left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; flex-direction: column; gap: 16px; pointer-events: none; }
.sv-tools > button { border: 0; border-radius: 50%; width: 32px; height: 32px; padding: 4px; margin-right: 20px; color: white; background: #575757; display: grid; place-items: center; cursor: pointer; pointer-events: auto; }
.sv-tools > button[hidden] { display: none; }
#sv-music { padding: 0; }
.sv-scroll-hint { position: fixed; left: max(calc(50% - 204px),20px); bottom: 16px; z-index: 50; pointer-events: none; }
.sv-scroll-hint svg { animation: sv-scroll-hand 2s infinite; }
.sv-locked .sv-scroll-hint,.sv-preview .sv-scroll-hint,.iv-editing .sv-scroll-hint { display: none; }
@keyframes sv-scroll-hand { 0%,100% { transform:translateY(0) rotate(-25deg); } 50% { transform:translateY(-10px) rotate(-10deg); } }
.iv-editing [data-editor-type="mainPhoto"] .absolute:has(> img[src*="vintage-frame-"]) { pointer-events: none; }
.iv-editing img[src*="vintage-frame-"] { pointer-events: none; }
.sv-locked .sv-tools { bottom: 64px; }
.sv-locked .sv-tools { visibility: hidden; }
#sv-swatches { position: absolute; right: 60px; bottom: 48px; padding: 8px; gap: 8px; background: white; box-shadow: 0 2px 12px #0003; border-radius: 6px; pointer-events: auto; }
#sv-swatches:not([hidden]) { display: flex; }
#sv-swatches button { border: 2px solid white; width: 28px; height: 28px; border-radius: 50%; outline: 1px solid #ddd; }
.sv-map-dialog,.sv-rsvp-dialog { position: fixed; border: 0; padding: 16px; border-radius: 4px; color: #000; background: #fff; z-index: 100; box-sizing: border-box; }
.sv-map-dialog::backdrop,.sv-rsvp-dialog::backdrop { background: #0005; }
.sv-rsvp-dialog { top: 16px; margin: 0 auto; width: calc(100% - 32px); max-width: 1024px; max-height: calc(100dvh - 32px); overflow-y: auto; font-family: __altFont_719be3,__altFont_Fallback_719be3; font-size: 16px; line-height: 24px; }
.sv-rsvp-header { padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; position: relative; text-align: left; }
.sv-rsvp-header button { position: absolute; top: -3px; right: 0; font: 25px/25px Arial,sans-serif; cursor: pointer; }
#sv-rsvp .sv-rsvp-header .sv-rsvp-close { position: static; font: inherit; }
#sv-rsvp .sv-rsvp-submit svg { width: 20px; height: 20px; }
.sv-map-dialog { width: calc(100% - 32px); max-width: 880px; }
.sv-map-dialog iframe { border: 0; width: 100%; height: min(65dvh,550px); }
.sv-map-dialog [data-sv-close] { float: right; font-size: 28px; margin: -6px 0 8px; }
.sv-map-dialog a { display: block; padding: 8px 0; text-align: right; text-decoration: underline; }
.sv-body .iv-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(15px); opacity: 0; background: #252525; color: #fff; border-radius: 6px; padding: 10px 18px; font: 14px/1.5 Arial,sans-serif; pointer-events: none; z-index: 100; transition: .2s; }
.sv-body .iv-toast.is-show { opacity: 1; transform: translateX(-50%); }
.sv-body [data-sv-text] { font-kerning: none; }
.sv-body [data-sv-text="rise"] > dtc-e { letter-spacing: -.05em; }
.sv-body [data-sv-track] { transition: transform .45s ease-out; }
.sv-body [data-sv-viewport] { touch-action: pan-y; }
.sv-letter { opacity: 0; animation: sv-text-rise .7s both; animation-delay: var(--sv-delay,0s); }
[data-sv-text="blur"] .sv-letter { animation-name: sv-text-blur; }
.sv-wait .sv-letter { animation-play-state: paused; }
@keyframes sv-text-rise { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: translateY(0); } }
@keyframes sv-text-blur { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
.sv-body.iv-editing #sv-envelope, .sv-body.iv-editing .sv-tools { display: none; }
.sv-body.iv-editing [data-sv-text] { opacity: 1 !important; }
.sv-body.iv-editing #iv-content { display: block; }
.sv-body.iv-editing .iv-photo { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sv-letter { animation: none; opacity: 1; } #sv-envelope * { transition-duration: .01ms !important; } [data-sv-track] { transition: none; } }

/* Local Vietnamese typography and a fully rendered catalogue preview. */
.sv-body .__className_089fcf { font-family: "Dancing Script", cursive; font-weight: 500; line-height: 1.18; }
.sv-body .__className_719be3, .sv-body #sv-rsvp { font-family: "Cormorant Garamond", Georgia, serif; }
html.iv-preview #sv-envelope, .sv-preview .sv-tools { display: none !important; }
.sv-preview .sv-content { display: block; }
.sv-preview .sv-letter { opacity: 1 !important; animation: none !important; filter: none !important; transform: none !important; }
.iv-editing [data-editor-type="mainPhoto"] .absolute:not(:has([data-slot])), .iv-editing [data-editor-field="address.img"] > .absolute { pointer-events: none; }
