/* BBY dedication popups (Figma "Legacy Wall reservation" + "Donation popup"). */
html.bby-modal-open, html.bby-modal-open body { overflow: hidden; }

/* The inline form section on a single dedication page is replaced by the popup. */
body.single-bby_dedication #give { display: none !important; }

.bby-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
	font-family: var(--bs-font, 'paralucent'), sans-serif;
}
.bby-modal.is-open { visibility: visible; opacity: 1; transition: opacity 0.3s ease-in-out; }
.bby-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 22, 32, 0.78); }
.bby-drawer { z-index: 100010; }
.bby-drawer .bby-modal__backdrop { background: rgba(28, 22, 32, 0.55); }

.bby-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b6470;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.bby-x:hover, .bby-x:focus-visible { background: rgba(58, 31, 77, 0.08); color: #3a1f4d; outline: none; }

/* ---------------------------------------------------------------- detail popup */
.bby-detail { display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.bby-detail__panel {
	position: relative;
	width: min(1100px, 100%);
	margin: auto;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(18px) scale(0.98);
	transition: transform 0.3s ease-in-out;
}
.bby-detail.is-open .bby-detail__panel { transform: none; }
.bby-detail__bar { display: flex; justify-content: flex-end; padding: 6px 12px; border-bottom: 1px solid #e3e3e3; }
.bby-detail__body { padding: 20px 44px 16px; }
.bby-detail__title { margin: 0 0 10px; color: #3a1f4d; font-size: 40px; font-weight: 600; line-height: 1.15; }
.bby-detail__grid { display: grid; grid-template-columns: minmax(0, 2.13fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.bby-detail__media { aspect-ratio: 775 / 510; overflow: hidden; border: 1px solid #2b2c2b; background: #e4dde3; }
.bby-detail__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bby-detail__media.is-empty img { display: none; }
.bby-detail__card {
	padding: 40px 16px 32px;
	border: 1px solid #e3e6ea;
	background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 45%, #e3eef6 100%);
	box-shadow: 0 4px 14px rgba(20, 40, 60, 0.12);
}
.bby-detail__inner {
	position: relative;
	padding: 34px 20px 20px;
	border: 1px solid #64b7d6;
	text-align: center;
}
.bby-detail__crown {
	position: absolute;
	top: -17px;
	left: 50%;
	width: 62px;
	padding: 0 8px;
	transform: translateX(-50%);
	background: #f6f9fb;
	color: #5f2b5f;
	line-height: 0;
}
.bby-detail__crown svg { width: 46px; height: 30px; }
.bby-detail__status {
	display: inline-block;
	margin: 0 0 10px;
	padding: 3px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.bby-detail__status.is-available { background: #e3f3e8; color: #1f6b3a; }
.bby-detail__status.is-pledged { background: #fbf0d4; color: #7a5600; }
.bby-detail__status.is-taken { background: #ece6ee; color: #5f2b5f; }
.bby-detail__name { margin: 0 0 20px; color: #5f2b5f; font-size: 24px; font-weight: 400; line-height: 1.2; }
.bby-detail__price { margin: 0 0 20px; color: #5f2b5f; font-size: 26px; font-weight: 600; }
.bby-detail__btn {
	border: 2px solid #3a1f4d !important;
	min-width: 151px;
	height: 38px;
	padding: 0 22px;
	border: 0;
	border-radius: 5px;
	background: #3a1f4d;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.bby-detail__btn:hover:not(:disabled) { background: #5f2b5f; border-color: #5f2b5f !important; }
.bby-detail__btn:disabled { background: #b59cb5; cursor: not-allowed; border-color: #b59cb5 !important; }
.bby-detail__foot { height: 78px; border-top: 1px solid #e3e3e3; }

/* ---------------------------------------------------------------- gift form popup (full height) */
.bby-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(560px, 100%);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 26px 44px 48px;
	border-radius: 28px 0 0 28px;
	background: #e4dde3;
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bby-drawer.is-open .bby-drawer__panel { transform: none; }
.bby-drawer__x { position: absolute; top: 14px; right: 16px; }
.bby-drawer__logo { display: block; width: 250px; max-width: 70%; height: auto; margin: 18px auto 26px; mix-blend-mode: multiply; }

/* Gift form inside the popup: no card of its own, Figma dividers above/below the amount. */
.bby-drawer #bby-gift { max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.bby-drawer #bby-gift .bby-gf-head { margin: 0 -44px 24px; padding: 22px 44px 24px; border-top: 1px solid rgba(58, 31, 77, 0.12); border-bottom: 1px solid rgba(58, 31, 77, 0.12); }

/* Card status badges on area pages (class added by popups.js). */
.bs-dedi-status.is-available { background: #e3f3e8; color: #1f6b3a; }
.bs-dedi-status.is-pledged { background: #fbf0d4; color: #7a5600; }
.bs-dedi-status.is-taken,
.bs-dedi-status.is-reserved { background: #3a1f4d; color: #fff; }
.bs-dedi-btn.is-reserved,
.bs-dedi-btn.is-reserved:hover { background: #b59cb5; border-color: #b59cb5; box-shadow: none; transform: none; }

/* Buttons + popup titles use the accent font (Paralucent); body text is Runda via --bs-font. */
.bby-detail__btn,
.bby-detail__title { font-family: var(--bs-font-accent, 'paralucent'), sans-serif; }
