/* Wedding Suite — guest app, guest bar, notifications. Mobile first. */
:root {
	--wds-app-bg: #faf7f2;
	--wds-bar-h: 64px;
	--wds-safe-b: env(safe-area-inset-bottom, 0px);
	--wds-safe-t: env(safe-area-inset-top, 0px);
}

/* ---------- Full-screen app page ---------- */
body.wds-app-full { margin: 0 !important; padding: 0 !important; background: var(--wds-app-bg) !important; color: var(--wds-ink); -webkit-font-smoothing: antialiased; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html.wds-app-html { -webkit-tap-highlight-color: transparent; scroll-padding-top: 70px; }
.wds-app { max-width: 760px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--wds-bar-h) + var(--wds-safe-b) + 16px); box-sizing: border-box; }
.wds-app *, .wds-app *::before, .wds-app *::after { box-sizing: border-box; }

.wds-app-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--wds-safe-t)) 16px 10px; background: rgba(250, 247, 242, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(0,0,0,.05); }
body.admin-bar .wds-app-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wds-app-top { top: 46px; } }
.wds-app-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.wds-app-brand strong { font-family: var(--wds-serif); font-weight: 500; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wds-app-brand small { font-size: 12px; color: var(--wds-muted); letter-spacing: .02em; }
.wds-app-icon { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--wds-ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; padding: 0; text-decoration: none; }
.wds-app-icon svg { width: 22px; height: 22px; }

.wds-app-main { padding: 12px 16px 8px; }
.wds-app-panel[hidden] { display: none !important; }
.wds-app-panel { animation: wds-panel-in .22s ease; }
@keyframes wds-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wds-app-hello { font-family: var(--wds-serif); font-size: 28px; margin: 6px 0 12px; }
.wds-app-h { font-family: var(--wds-serif); font-weight: 500; font-size: 28px; margin: 28px 0 14px; }
.wds-app .wds-wrap { max-width: none; }
.wds-app .wds-gallery .wds-title, .wds-app .wds-plan-wrap .wds-title { font-size: 30px; }

.wds-app-cards { display: grid; gap: 10px; margin: 0 0 18px; }
.wds-app-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 16px; text-decoration: none !important; color: inherit !important; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(43,38,34,.06); border: 1px solid var(--wds-line); min-height: 72px; transition: transform .12s; }
.wds-app-card:active { transform: scale(.985); }
.wds-app-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wds-app-card small { font-size: 12px; color: var(--wds-muted); text-transform: uppercase; letter-spacing: .08em; }
.wds-app-card strong { font-size: 17px; font-weight: 600; }
.wds-app-card em { font-style: normal; color: var(--wds-accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.wds-app-card-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--wds-soft); color: var(--wds-accent); display: grid; place-items: center; flex: none; }
.wds-app-card-ico svg { width: 24px; height: 24px; }
.wds-app-card.is-seat { border-color: #2fa35a; }
.wds-app-card.is-seat .wds-app-card-ico { background: #e8f6ee; color: #23834a; }
.wds-app-card.is-seat em { color: #23834a; }

/* ---------- Tab bar (app) & guest bar (every other page) ---------- */
.wds-tabbar, .wds-guestbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; justify-content: space-around; align-items: stretch; padding: 6px max(8px, calc((100vw - 760px) / 2)) calc(6px + var(--wds-safe-b)); background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid rgba(0,0,0,.07); box-shadow: 0 -4px 20px rgba(0,0,0,.05); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wds-tab, .wds-gb-item { position: relative; flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; background: none; color: #8a8178 !important; text-decoration: none !important; font-size: 11px; font-weight: 600; letter-spacing: .01em; cursor: pointer; border-radius: 12px; }
.wds-tab svg, .wds-gb-item svg { width: 25px; height: 25px; transition: transform .15s; }
.wds-tab.is-active { color: var(--wds-accent) !important; }
.wds-tab.is-active::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--wds-accent); }
.wds-tab:active svg, .wds-gb-item:active svg { transform: scale(.88); }
body.wds-has-bar { padding-bottom: calc(var(--wds-bar-h) + var(--wds-safe-b)) !important; }

/* Bell / badge */
.wds-badge-dot { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e0245e; color: #fff; font: 700 11px/18px -apple-system, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }
.wds-app-icon .wds-badge-dot { top: -2px; right: -2px; }
.wds-badge-dot[hidden] { display: none !important; }
[data-action="bell"].is-lit { color: var(--wds-accent) !important; }
[data-action="bell"].is-lit svg { animation: wds-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
[data-action="seat"].is-lit { color: #23834a !important; }
@keyframes wds-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(9deg); } 90% { transform: rotate(-6deg); } 95% { transform: rotate(3deg); } }

/* Chat button sits above the bars */
.wds-app .wds-chat-fab, body.wds-has-bar .wds-chat-fab { bottom: calc(var(--wds-bar-h) + var(--wds-safe-b) + 14px); }
.wds-app .wds-chat-panel, body.wds-has-bar .wds-chat-panel { bottom: calc(var(--wds-bar-h) + var(--wds-safe-b) + 80px); }
@media (max-width: 560px) { .wds-app .wds-chat-panel, body.wds-has-bar .wds-chat-panel { bottom: 0; z-index: 9500; } }

/* ---------- Bottom sheet ---------- */
.wds-sheet-wrap { position: fixed; inset: 0; z-index: 99995; background: rgba(20, 16, 12, 0); transition: background .25s; display: flex; align-items: flex-end; justify-content: center; }
.wds-sheet-wrap.is-open { background: rgba(20, 16, 12, .42); }
.wds-sheet { width: 100%; max-width: 560px; max-height: 86vh; max-height: 86dvh; background: #fff; border-radius: 22px 22px 0 0; padding: 6px 0 calc(16px + var(--wds-safe-b)); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -10px 40px rgba(0,0,0,.2); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--wds-ink); }
.wds-sheet-wrap.is-open .wds-sheet { transform: none; }
.wds-sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #ddd5ca; margin: 4px auto 6px; }
.wds-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 10px; }
.wds-sheet-head h2 { margin: 0; font-family: var(--wds-serif); font-weight: 500; font-size: 26px; }
.wds-sheet-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--wds-soft); font-size: 22px; line-height: 1; cursor: pointer; color: var(--wds-muted); }
@media (min-width: 600px) { .wds-sheet-wrap { align-items: center; } .wds-sheet { border-radius: 22px; max-height: 80vh; } }

.wds-alerts { overflow-y: auto; padding: 0 10px; -webkit-overflow-scrolling: touch; }
.wds-alert { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 14px; padding: 10px; cursor: pointer; text-decoration: none !important; color: inherit !important; font: inherit; position: relative; }
.wds-alert:active { background: var(--wds-soft); }
.wds-alert.is-new { background: color-mix(in srgb, var(--wds-accent) 9%, #fff); }
.wds-alert.is-new::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--wds-accent); }
.wds-alert.is-seat { background: #eaf7ef; margin-bottom: 4px; }
.wds-alert.is-seat::after { background: #2fa35a; }
.wds-alert .wds-avatar { width: 44px; height: 44px; flex: none; }
.wds-avatar-seat { background: #2fa35a !important; font-size: 20px; }
.wds-alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wds-alert-text strong { font-size: 15px; font-weight: 600; }
.wds-alert-text small { color: var(--wds-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wds-alert-text em { font-style: normal; color: var(--wds-muted); font-size: 12px; }
.wds-alert.is-seat small { color: #23834a; font-weight: 600; }
.wds-alert-thumbs { display: flex; margin-right: 14px; }
.wds-alert-thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 2px solid #fff; margin-left: -14px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.wds-alert-thumbs img:first-child { margin-left: 0; }
.wds-alerts-empty { text-align: center; padding: 26px 20px; }

.wds-seat-sheet { padding: 4px 20px 6px; text-align: center; }
.wds-seat-big { background: linear-gradient(160deg, #eaf7ef, #fff); border: 1.5px solid #2fa35a; border-radius: 20px; padding: 22px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.wds-seat-big small { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #23834a; font-weight: 700; }
.wds-seat-big strong { font-family: var(--wds-serif); font-weight: 500; font-size: 40px; line-height: 1.1; }
.wds-seat-big span { font-size: 18px; color: var(--wds-muted); }
.wds-seat-go { background: #2fa35a !important; width: 100%; }
.wds-seat-none { text-align: center; padding: 10px 24px 20px; }

/* ---------- Toast ---------- */
.wds-toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--wds-bar-h) + var(--wds-safe-b) + 12px); z-index: 99990; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.2); text-align: left; cursor: pointer; transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s; font: inherit; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--wds-ink); }
.wds-toast.is-in { transform: none; opacity: 1; }
.wds-toast .wds-avatar { width: 40px; height: 40px; flex: none; }
.wds-toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wds-toast-text strong { font-size: 14px; }
.wds-toast-text small { color: var(--wds-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wds-toast-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- Install banner ---------- */
.wds-install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--wds-bar-h) + var(--wds-safe-b) + 12px); z-index: 9100; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.18); animation: wds-panel-in .3s ease; }
.wds-install-ico { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.wds-install-ico[src=""] { display: none; }
.wds-install-text { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.wds-install-text strong { font-size: 15px; }
.wds-install .wds-btn { padding: 9px 14px; min-height: 0; font-size: 14px; }
.wds-install-x { border: 0; background: none; font-size: 24px; color: var(--wds-muted); cursor: pointer; padding: 0 4px; }

/* ---------- Bits used inside the app ---------- */
.wds-post.is-flash { animation: wds-flash 2.4s ease; }
@keyframes wds-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--wds-accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.wds-app .wds-plan-stage { height: var(--wds-plan-h, min(62vh, 560px)); }
@media (max-width: 600px) { .wds-app .wds-plan-stage { height: var(--wds-plan-h, 82vw); } }
.wds-app .wds-countdown { margin-top: 10px; }
.wds-app .wds-info > .wds-title { font-size: 34px; }
body.wds-noscroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .wds-app-panel, .wds-sheet, .wds-toast { animation: none; transition: none; } [data-action="bell"].is-lit svg { animation: none; } }
.wds-sheet-wrap, .wds-sheet-wrap *, .wds-sheet-wrap *::before, .wds-sheet-wrap *::after,
.wds-toast, .wds-toast *, .wds-install, .wds-install *, .wds-guestbar, .wds-guestbar *, .wds-tabbar, .wds-tabbar * { box-sizing: border-box; }
.wds-back-app { position: fixed; z-index: 9100; left: 12px; top: calc(12px + var(--wds-safe-t)); background: rgba(255,255,255,.95); color: var(--wds-ink) !important; text-decoration: none !important; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 11px 16px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
body.admin-bar .wds-back-app { top: calc(58px + var(--wds-safe-t)); }
.wds-seat-card { flex-direction: column; align-items: stretch; gap: 12px; }
.wds-seat-card-top { display: flex; align-items: center; gap: 14px; color: inherit !important; text-decoration: none !important; }
.wds-seat-card-top > span:nth-child(2) { display: flex; flex-direction: column; }
.wds-seat-card-top strong { font-family: var(--wds-serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.wds-seat-no { font-size: 15px; color: #23834a; font-weight: 700; }
.wds-seat-card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wds-seat-card-btns .wds-btn { width: 100%; padding: 11px 10px; font-size: 15px; }
.wds-seat-card-btns .wds-btn:first-child { background: #2fa35a; }
.wds-seat-card-btns .wds-btn-ghost { color: #23834a !important; border-color: #2fa35a; }
.wds-seat-preview-note { margin: 0; font-size: 12px; color: var(--wds-muted); }
/* Back button in the app header */
.wds-app-back { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 12px 0 6px; margin-left: -6px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--wds-ink); font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; flex: none; }
.wds-app-back svg { width: 22px; height: 22px; }
.wds-app-back[hidden] { display: none !important; }
.wds-app.has-back .wds-app-brand strong { font-size: 19px; }
/* Back-to-app pill on other pages: keep it clear of the page's own header */
body.wds-has-back-app { padding-top: 0; }
.wds-back-app { display: inline-flex; align-items: center; gap: 4px; }
