/* Scoped invitation component; hidden must win over layout rules. */
.md-tg[hidden]{display:none!important}.md-tg,.md-tg *{box-sizing:border-box}
.md-tg{color:var(--md-ink, #342b23);background:var(--md-paper, #fff9ee);border:1px solid var(--md-line, #e6d7bd);border-radius:18px;overflow:hidden;font-family:inherit;text-align:left;line-height:1.45}
.md-tg--popup{position:fixed;right:24px;bottom:24px;width:400px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow-y:auto;z-index:900;box-shadow:0 14px 50px #342b2330;animation:md-tg-enter .25s ease-out}
.md-tg .md-tg__image{display:block;width:100%;height:150px;object-fit:cover;margin:0}
.md-tg--logo .md-tg__image{object-fit:contain;padding:14px;background:#f1e5cd}
.md-tg__body{padding:20px 24px 24px}.md-tg__label{display:block;color:#806c48;font-size:10px;font-weight:700;letter-spacing:1.5px;margin-bottom:8px}
.md-tg .md-tg__title{font-family:inherit;font-size:25px;line-height:1.15;font-weight:700;margin:0 0 10px;color:var(--md-ink, #342b23)}
.md-tg .md-tg__text{font-size:15px;line-height:1.5;margin:0 0 18px;color:#675744}
.md-tg a.md-tg__button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:11px 16px;border:0;border-radius:10px;background:#715236;color:#fff;font-size:15px;font-weight:700;text-decoration:none;box-shadow:none}
.md-tg a.md-tg__button:hover{background:#563c26;color:#fff}.md-tg__button svg{flex-shrink:0}
.md-tg .md-tg__close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--md-line, #e6d7bd);border-radius:50%;background:#fffdf7;color:var(--md-ink, #342b23);font:28px/1 sans-serif;cursor:pointer;z-index:1}
.md-tg :focus-visible{outline:3px solid #287ba2;outline-offset:3px}.md-tg__close:hover{background:#f1e5cd}
.md-tg--inline{display:grid;grid-template-columns:180px 1fr;margin:32px 0}.md-tg--inline .md-tg__image{height:100%;min-height:220px}.md-tg--inline .md-tg__button{width:fit-content}
@keyframes md-tg-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
.md-tg--popup{right:10px;left:10px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-width:none;display:grid;grid-template-columns:80px minmax(0,1fr);max-height:42dvh;border-radius:14px}
.md-tg--popup .md-tg__image{height:100%;min-height:180px}.md-tg--popup.md-tg--logo .md-tg__image{padding:8px}
.md-tg--popup .md-tg__body{padding:14px 14px 14px 12px}.md-tg--popup .md-tg__label{font-size:8px;padding-right:30px;letter-spacing:.5px;margin-bottom:7px}
.md-tg--popup .md-tg__title{font-size:19px;padding-right:22px;margin-bottom:7px}.md-tg--popup .md-tg__text{font-size:12px;line-height:1.4;margin-bottom:10px}
.md-tg--popup .md-tg__button{font-size:13px;padding:9px 8px;min-height:44px}.md-tg--popup .md-tg__close{top:4px;right:4px;background:transparent;border:0}
.md-tg--inline{grid-template-columns:1fr}.md-tg--inline .md-tg__image{height:145px;min-height:0}.md-tg--inline .md-tg__title{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.md-tg--popup{animation:none}}
@media print{.md-tg{display:none!important}}
