/* Wedding Suite — guest-facing styles. Colours inherit from your theme where possible. */
:root {
	--wds-accent: #b08d57;
	--wds-ink: #2b2622;
	--wds-muted: #7a716a;
	--wds-line: #e8e1d8;
	--wds-paper: #ffffff;
	--wds-soft: #faf7f2;
	--wds-yes: #2f7d4f;
	--wds-err: #b3261e;
	--wds-radius: 14px;
	--wds-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
}
.wds-wrap { color: var(--wds-ink); max-width: 760px; margin: 0 auto; box-sizing: border-box; font-size: 16px; line-height: 1.55; }
.wds-wrap *, .wds-wrap *::before, .wds-wrap *::after { box-sizing: border-box; }
.wds-wrap [hidden] { display: none !important; }
.wds-link-btn { white-space: nowrap; }
.wds-wrap img { max-width: 100%; height: auto; }
.wds-card { background: var(--wds-paper); border: 1px solid var(--wds-line); border-radius: var(--wds-radius); padding: clamp(18px, 4vw, 32px); margin: 0 0 20px; box-shadow: 0 1px 2px rgba(43,38,34,.04), 0 8px 24px rgba(43,38,34,.05); }
.wds-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--wds-accent); margin: 0 0 4px; font-weight: 600; }
.wds-title { font-family: var(--wds-serif); font-weight: 500; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0 0 8px; color: var(--wds-ink); }
.wds-sub { color: var(--wds-muted); font-size: 17px; margin: 0 0 18px; }
.wds-muted { color: var(--wds-muted); }
.wds-small { font-size: 14px; }
.wds-error { color: var(--wds-err); background: #fdecea; border-radius: 8px; padding: 8px 12px; margin: 10px 0; font-size: 15px; }
.wds-notice { background: var(--wds-soft); border-left: 3px solid var(--wds-accent); padding: 10px 14px; border-radius: 6px; }

.wds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--wds-accent); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: filter .15s, transform .05s; min-height: 44px; }
.wds-btn:hover { filter: brightness(1.06); }
.wds-btn:active { transform: translateY(1px); }
.wds-btn:disabled { opacity: .55; cursor: default; }
.wds-btn-lg { width: 100%; padding: 15px 22px; font-size: 17px; margin-top: 8px; }
.wds-btn-ghost { background: transparent; color: var(--wds-accent) !important; border: 1.5px solid var(--wds-accent); }
.wds-link-btn { background: none; border: 0; padding: 4px 0; color: var(--wds-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.wds-link-btn:hover { color: var(--wds-ink); }
.wds-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: center; }

.wds-wrap input[type=text], .wds-wrap input[type=password], .wds-wrap input[type=email], .wds-wrap input[type=search], .wds-wrap textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--wds-ink); background: #fff; border: 1.5px solid var(--wds-line); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.wds-wrap select {
	width: 100%; font: inherit; font-size: 16px; color: var(--wds-ink); border: 1.5px solid var(--wds-line); border-radius: 10px; padding: 11px 40px 11px 13px; min-height: 46px; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a716a' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; }
.wds-wrap select:focus { outline: none; border-color: var(--wds-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wds-accent) 20%, transparent); }
.wds-wrap input:focus, .wds-wrap textarea:focus { outline: none; border-color: var(--wds-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wds-accent) 20%, transparent); }
.wds-field { display: block; margin: 12px 0 0; }
.wds-field > span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; color: var(--wds-muted); }
.wds-field small { display: block; margin-top: 4px; font-size: 13px; }

/* Code entry */
.wds-code-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.wds-code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wds-wrap .wds-code-input { flex: 1 1 170px; max-width: 240px; font-size: 24px !important; letter-spacing: .22em; text-transform: uppercase; text-align: center; font-weight: 600; font-family: ui-monospace, Menlo, Consolas, monospace; }
.wds-code-row .wds-btn { flex: 1 1 auto; }
.wds-rsvp [data-step="code"], .wds-rsvp [data-step="done"] { text-align: center; }
.wds-rsvp [data-step="code"] .wds-code-row { justify-content: center; }
.wds-rsvp [data-step="code"] .wds-code-form label { text-align: center; }

/* RSVP people */
.wds-person { border: 1.5px solid var(--wds-line); border-radius: 12px; padding: 16px 18px 18px; margin: 16px 0; transition: border-color .2s, background .2s; min-width: 0; }
.wds-person.is-going { border-color: var(--wds-yes); background: color-mix(in srgb, var(--wds-yes) 4%, #fff); }
.wds-person legend { font-family: var(--wds-serif); font-size: 24px; padding: 0 6px; margin-left: -6px; }
.wds-going-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 17px; padding: 6px 0; user-select: none; }
.wds-going-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wds-check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--wds-line); background: #fff; display: inline-grid; place-items: center; flex: none; transition: all .15s; }
.wds-going-label input:checked + .wds-check { background: var(--wds-yes); border-color: var(--wds-yes); }
.wds-going-label input:checked + .wds-check::after { content: ""; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.wds-going-label input:focus-visible + .wds-check { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wds-accent) 35%, transparent); }
.wds-thanks-icon { font-size: 54px; line-height: 1; margin-bottom: 8px; }

/* Countdown & info */
.wds-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 26px; text-align: center; }
.wds-countdown > div { background: var(--wds-soft); border: 1px solid var(--wds-line); border-radius: 12px; padding: 14px 6px; }
.wds-countdown span { display: block; font-family: var(--wds-serif); font-size: clamp(28px, 7vw, 44px); line-height: 1; color: var(--wds-accent); font-variant-numeric: tabular-nums; }
.wds-countdown small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--wds-muted); }
.wds-countdown-done { grid-column: 1 / -1; font-family: var(--wds-serif); font-size: 30px; color: var(--wds-accent); margin: 0; }
.wds-info { text-align: left; }
.wds-info > .wds-eyebrow, .wds-info > .wds-title { text-align: center; }
.wds-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.wds-panel { background: var(--wds-paper); border: 1px solid var(--wds-line); border-radius: var(--wds-radius); padding: 20px 22px; margin-bottom: 18px; }
.wds-panel h3 { font-family: var(--wds-serif); font-weight: 500; font-size: 26px; margin: 0 0 10px; }
.wds-panel h4 { margin: 14px 0 4px; font-size: 15px; }
.wds-panel p { margin: 0 0 8px; }
.wds-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.wds-dl dt { color: var(--wds-muted); font-size: 14px; }
.wds-dl dd { margin: 0; font-weight: 600; }
.wds-venue { font-size: 18px; }

/* Accommodation */
.wds-wrap:has(.wds-hotels) { max-width: 1100px; }
.wds-hotels { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wds-cols-2, .wds-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .wds-cols-3 { grid-template-columns: repeat(3, 1fr); } }
.wds-hotel { background: var(--wds-paper); border: 1px solid var(--wds-line); border-radius: var(--wds-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.wds-hotel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43,38,34,.1); }
.wds-hotel-link { color: inherit !important; text-decoration: none !important; display: flex; flex-direction: column; flex: 1; }
.wds-hotel-img { position: relative; aspect-ratio: 16 / 10; background: var(--wds-soft); overflow: hidden; }
.wds-hotel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wds-hotel-distance { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--wds-ink); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.wds-hotel-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wds-hotel-domain { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--wds-muted); }
.wds-hotel h3 { font-family: var(--wds-serif); font-weight: 500; font-size: 24px; margin: 0; line-height: 1.2; }
.wds-hotel-ptitle { font-size: 14px; color: var(--wds-muted); margin: 0; }
.wds-hotel-desc { margin: 6px 0 0; font-size: 15px; }
.wds-hotel-meta { margin: 6px 0 0; font-size: 14px; color: var(--wds-muted); }
.wds-hotel-cta { margin-top: auto; padding-top: 10px; color: var(--wds-accent); font-weight: 600; }
.wds-hotel-phone { display: block; padding: 0 18px 16px; font-size: 14px; color: var(--wds-muted) !important; }

/* Gallery */
.wds-gallery { max-width: 640px; }
.wds-gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.wds-me { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wds-profile-form { display: flex; align-items: center; gap: 8px; }
.wds-wrap .wds-me-name { width: 160px; padding: 7px 10px; font-size: 15px; }
.wds-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wds-accent); color: #fff; display: inline-grid; place-items: center; font-weight: 700; flex: none; font-size: 17px; }
.wds-join { text-align: center; }
.wds-join h3 { font-family: var(--wds-serif); font-weight: 500; font-size: 28px; margin: 0 0 6px; }
.wds-join .wds-code-row { justify-content: center; margin-top: 14px; }
.wds-setup-form { text-align: left; max-width: 380px; margin: 0 auto; }
.wds-pick-list { display: grid; gap: 10px; margin: 16px auto; max-width: 380px; }
.wds-pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--wds-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.wds-pick:hover, .wds-pick:focus-visible { border-color: var(--wds-accent); outline: none; }
.wds-pick .wds-avatar { grid-row: span 2; }
.wds-pick-name { font-weight: 600; font-size: 17px; }
.wds-pick small { color: var(--wds-muted); }

.wds-composer { padding: 16px; }
.wds-composer.is-drag, .wds-compose-form.is-drag { outline: 2px dashed var(--wds-accent); }
.wds-wrap .wds-compose-text { border: 0; padding: 6px 4px; resize: vertical; min-height: 54px; box-shadow: none !important; }
.wds-compose-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--wds-line); padding-top: 12px; margin-top: 8px; }
.wds-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--wds-soft); border: 1px solid var(--wds-line); cursor: pointer; font-weight: 600; font-size: 14px; min-height: 40px; }
.wds-pill:hover { border-color: var(--wds-accent); }
.wds-compose-status { flex: 1; font-size: 14px; color: var(--wds-muted); min-width: 80px; }
.wds-post-btn { margin-left: auto; }
.wds-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.wds-previews:not(:empty) { margin: 8px 0; }
.wds-preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--wds-soft); display: grid; place-items: center; }
.wds-preview img { width: 100%; height: 100%; object-fit: cover; }
.wds-preview-name { font-size: 11px; padding: 4px; word-break: break-all; text-align: center; }
.wds-preview-rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.wds-progress { height: 4px; background: var(--wds-line); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.wds-progress span { display: block; height: 100%; width: 0; background: var(--wds-accent); transition: width .2s; }

.wds-new-posts { position: sticky; top: 12px; z-index: 20; display: block; margin: 0 auto 12px; background: var(--wds-ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.wds-post { background: var(--wds-paper); border: 1px solid var(--wds-line); border-radius: var(--wds-radius); margin: 0 0 18px; overflow: hidden; animation: wds-in .3s ease; }
@keyframes wds-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wds-post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.wds-post-head > div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wds-post-head time { font-size: 13px; color: var(--wds-muted); }
.wds-post-del { background: none; border: 0; color: var(--wds-muted); font-size: 13px; cursor: pointer; padding: 6px; }
.wds-post-del:hover { color: var(--wds-err); }
.wds-post-text { padding: 0 16px 12px; margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.wds-post-images { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; }
.wds-post-images.n1 { grid-template-columns: 1fr; }
.wds-post-images.n3 .wds-post-img:first-child { grid-column: span 2; }
.wds-post-images.n5 { grid-template-columns: repeat(6, 1fr); }
.wds-post-images.n5 .wds-post-img:nth-child(-n+2) { grid-column: span 3; }
.wds-post-images.n5 .wds-post-img:nth-child(n+3) { grid-column: span 2; }
.wds-post-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--wds-soft); }
.wds-post-images.n1 .wds-post-img { aspect-ratio: auto; max-height: 80vh; }
.wds-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wds-post-images.n1 .wds-post-img img { height: auto; max-height: 80vh; object-fit: contain; background: #111; }
.wds-post-img.is-extra { display: none; }
.wds-more-count { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.wds-post-foot { padding: 6px 10px; }
.wds-like { background: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 8px; color: var(--wds-muted); border-radius: 8px; }
.wds-heart { font-size: 22px; line-height: 1; transition: transform .15s; }
.wds-like.is-liked { color: #e0245e; }
.wds-like.is-liked .wds-heart { transform: scale(1.15); }
.wds-empty { text-align: center; color: var(--wds-muted); padding: 30px 0; }
.wds-feed-foot { text-align: center; margin: 10px 0 90px; }

.wds-lightbox { position: fixed; inset: 0; background: rgba(10,8,6,.94); z-index: 100000; display: grid; place-items: center; padding: 16px; }
.wds-lightbox[hidden] { display: none; }
.wds-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: pointer; }
.wds-lightbox-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }
body.wds-noscroll { overflow: hidden; }

/* Chat */
.wds-chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 99990; background: var(--wds-ink); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; font-weight: 700; font-size: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.25); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.wds-chat-badge { background: #e0245e; color: #fff; border-radius: 999px; font-size: 12px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; }
.wds-chat-badge[hidden] { display: none; }
.wds-chat-panel { position: fixed; right: 18px; bottom: 84px; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.28); z-index: 99991; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wds-line); }
.wds-chat-panel[hidden] { display: none; }
.wds-chat-head { padding: 14px 48px 12px 16px; border-bottom: 1px solid var(--wds-line); position: relative; display: flex; flex-direction: column; background: var(--wds-soft); }
.wds-chat-head small { color: var(--wds-muted); font-size: 12px; }
.wds-chat-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--wds-muted); line-height: 1; padding: 4px 8px; }
.wds-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }
.wds-msg { align-self: flex-start; max-width: 82%; background: var(--wds-soft); border: 1px solid var(--wds-line); border-radius: 16px 16px 16px 4px; padding: 7px 12px; display: flex; flex-direction: column; }
.wds-msg.is-mine { align-self: flex-end; background: var(--wds-accent); border-color: var(--wds-accent); color: #fff; border-radius: 16px 16px 4px 16px; }
.wds-msg-author { font-size: 12px; font-weight: 700; color: var(--wds-accent); }
.wds-msg-text { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.wds-msg-time { font-size: 11px; opacity: .7; align-self: flex-end; display: flex; gap: 8px; }
.wds-msg-del { background: none; border: 0; padding: 0; color: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; opacity: .8; }
.wds-chat-empty { text-align: center; color: var(--wds-muted); margin: auto; }
.wds-chat-error { color: var(--wds-err); font-size: 13px; text-align: center; margin: 0; }
.wds-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--wds-line); }
.wds-wrap .wds-chat-input, .wds-chat-input { flex: 1; font: inherit; font-size: 16px; border: 1.5px solid var(--wds-line); border-radius: 999px; padding: 10px 14px; min-width: 0; }
.wds-chat-form .wds-btn { padding: 10px 16px; }
@media (max-width: 560px) {
	.wds-chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
	body.wds-chat-open .wds-chat-fab { display: none; }
	.wds-me-name { width: 120px !important; }
}
.wds-hotel-img::before { content: "🏨"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .35; }
.wds-hotel-img img { position: relative; }

/* Profile pictures */
.wds-avatar { overflow: hidden; position: relative; }
.wds-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.wds-me-photo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wds-avatar-edit { width: 52px; height: 52px; font-size: 21px; cursor: pointer; overflow: visible; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wds-line); }
.wds-avatar-edit img { position: absolute; inset: 0; }
.wds-avatar-cam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--wds-line); display: grid; place-items: center; font-size: 11px; line-height: 1; z-index: 1; }
.wds-avatar-edit:hover .wds-avatar-cam, .wds-avatar-edit:focus-within .wds-avatar-cam { border-color: var(--wds-accent); }
.wds-avatar-edit.is-busy { opacity: .5; pointer-events: none; }
.wds-avatar-edit.is-busy::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--wds-accent); animation: wds-spin .8s linear infinite; }
@keyframes wds-spin { to { transform: rotate(360deg); } }
.wds-avatar-remove { font-size: 12px; padding: 0; }
.wds-me .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wds-avatar-xs { width: 20px; height: 20px; font-size: 10px; display: inline-grid; vertical-align: -5px; margin-right: 6px; }
.wds-msg-author { display: inline-flex; align-items: center; }
