/**
 * Santana Rooms – Receipts: page chrome (v1.0.4)
 *
 * Loaded ONLY on the receipts page (see santana_receipts_enqueue_page_style()
 * in the main plugin file) — locked or unlocked — so these rules never touch
 * any other page. The site header is untouched: every rule below is rooted
 * at the <main> content area, except §5, which hides the theme footer on
 * this page only (v1.0.4) because it is Twenty Twenty-Five placeholder
 * links (Blog, About, Shop…) with nothing to do with receipts.
 *
 * What it fixes:
 * - The block theme prints its big page title ("Protected: Receipt") above
 *   the app, which made the page look like a blog post. It is hidden here.
 *
 * What it deliberately does NOT do (v1.0.3 revert of the v1.0.1 mistake):
 * - v1.0.1 stripped the theme's side padding from the content chain on
 *   mobile so the app would go full-bleed, edge-to-edge. That BACKFIRED
 *   on real mobile Safari: the form shifted left and its labels were cut
 *   off ("CEIVED FROM", "OUNT ($)"), and the page scrolled sideways.
 * - Why: Twenty Twenty-Five (WP 6.x) does NOT use width:100vw for
 *   alignfull. Instead, `.has-global-padding > .alignfull` pulls NEGATIVE
 *   margins of -30px on each side (the root padding, clamp(30px, 5vw, 50px)).
 *   The chain here has TWO nested alignfull levels — the title wrapper
 *   group, then .entry-content itself — so the app's container ends up
 *   viewport + 60px wide. The theme's 30px side padding on each level is
 *   what absorbs those negative margins; stripping the padding let the
 *   app inherit the inflated width and the leftward shift.
 * - The fix is to leave the theme's padding alone, exactly like every
 *   other page on the site (home included): the app then sits in the
 *   normal centered content column (370px on a 430px phone, 30px white
 *   gutters each side), with rounded corners, and the page never moves
 *   sideways. The app's own max-width (760px, centered) is restored in
 *   santana-receipts.css for the same reason.
 */

/* --- 1. Never show the theme page title on this page -------------------- */
/* Locked (password form) or unlocked (app), mobile or desktop. */
main .wp-block-post-title {
	display: none !important;
}

/* --- 2. Defensive: hide any post-meta chrome in the title area --------- */
/* Twenty Twenty-Five puts no meta on pages; this only matters if the
   template is ever customized. */
main .entry-meta,
main .wp-block-post-date,
main .wp-block-post-author,
main .wp-block-post-terms,
main .wp-block-post-excerpt {
	display: none !important;
}

/* --- 3. Close the gap the title used to leave -------------------------- */
/* The theme's <main> carries an inline margin-top (var --wp--preset--
   spacing--60); only !important beats an inline style. */
main.wp-block-group {
	margin-top: 0 !important;
}

/* --- 4. Branded Spanish password form (v1.0.4) -------------------------- */
/* The form HTML comes from the the_password_form filter in the main
   plugin file. Same brand as the app: navy + bright blue + white.
   Stays inside the theme's normal content column (see the v1.0.3
   note above): no negative margins, no width tricks, so it cannot
   shift or cut off on mobile. */
.sr-lock {
	--sr-navy: #0b1e3a;
	--sr-blue: #1f6feb;
	--sr-blue-dark: #1859c2;
	--sr-ink: #1e293b;
	--sr-muted: #64748b;
	--sr-line: #e2e8f0;

	box-sizing: border-box;
	max-width: 480px;
	margin: 2.5rem auto 3rem;
	padding: 2rem 1.5rem;
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--sr-line);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(11, 30, 58, 0.08);
}

.sr-lock *,
.sr-lock *::before,
.sr-lock *::after {
	box-sizing: border-box;
}

.sr-lock-logo {
	display: block;
	width: 120px;
	max-width: 60%;
	height: auto;
	margin: 0 auto 1rem;
}

.sr-lock-business {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--sr-blue);
}

.sr-lock-title {
	margin-top: 0.25rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sr-navy);
}

.sr-lock-text {
	margin: 0.75rem 0 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--sr-muted);
}

.sr-lock-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: left;
	color: var(--sr-ink);
}

.sr-lock-form input[type="password"] {
	display: block;
	width: 100%;
	padding: 0.7rem 0.9rem;
	font-size: 1rem;
	color: var(--sr-ink);
	background: #ffffff;
	border: 1px solid var(--sr-line);
	border-radius: 10px;
}

.sr-lock-form input[type="password"]:focus {
	outline: 2px solid var(--sr-blue);
	outline-offset: 1px;
	border-color: var(--sr-blue);
}

.sr-lock-form input[type="submit"] {
	display: block;
	width: 100%;
	margin-top: 0.9rem;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--sr-blue);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.sr-lock-form input[type="submit"]:hover {
	background: var(--sr-blue-dark);
}

.sr-lock-foot {
	margin-top: 1.25rem;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--sr-muted);
}

/* --- 5. Hide the theme footer on this page only (v1.0.4) ---------------- */
/* Twenty Twenty-Five's default footer is placeholder links (Blog, About,
   FAQs, Authors, Events, Shop, Patterns, Themes) with nothing to do with
   the receipts page. This sheet loads ONLY on /receipt/, so the footer
   stays untouched everywhere else. */
footer.wp-block-template-part {
	display: none !important;
}
