/*
 * Check-in table mode (DEC-076, EVT-226). Applies only while assets/js/checkin.js
 * has put .vf-checkin on <html>, which happens only for /register/?checkin=1 and
 * the browser tab it was opened in. Every rule is scoped to that class, so the
 * public page is unchanged. Tap targets are at least 48px, as the tablet is used
 * standing up, often by someone who has not used one before.
 */

/* The form alone: no navigation out, no hero, no side column, no email dialog,
 * and not the "register at the check-in table" line under the form (#1016). */
html.vf-checkin header.wp-block-template-part,
html.vf-checkin footer.wp-block-template-part,
html.vf-checkin .vetefits-hero,
html.vf-checkin .skip-link,
html.vf-checkin .vf-optin,
html.vf-checkin .vetefits-eventweek,
html.vf-checkin #vetefits-main .wp-block-column:not(:has(.vetefits-formwrap)),
html.vf-checkin .vf-checkin-hidden,
html.vf-checkin .vetefits-walkin { display: none !important; }

html.vf-checkin #vetefits-main .wp-block-columns { display: block; }
html.vf-checkin #vetefits-main .wp-block-column:has(.vetefits-formwrap) {
	flex-basis: 100% !important;
	max-width: 44rem;
	margin: 0 auto;
}
html.vf-checkin #vetefits-main > .wp-block-post-content > .wp-block-group { padding-top: 1.5rem !important; padding-bottom: 3rem !important; }

html.vf-checkin .vf-checkin-intro {
	max-width: 44rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 0;
}
html.vf-checkin .vf-checkin-intro h1 {
	margin: 0 0 .5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
	color: var(--wp--preset--color--navy);
}
html.vf-checkin .vf-checkin-intro p { margin: 0; font-size: 1.25rem; }

/* Larger type and tap targets than the public form. */
html.vf-checkin .vetefits-formwrap { font-size: 1.1875rem; }
html.vf-checkin .vetefits-formwrap input[type="text"],
html.vf-checkin .vetefits-formwrap input[type="email"],
html.vf-checkin .vetefits-formwrap input[type="tel"],
html.vf-checkin .vetefits-formwrap input[type="number"],
html.vf-checkin .vetefits-formwrap select,
html.vf-checkin .vetefits-formwrap textarea {
	min-height: 56px;
	font-size: 1.25rem;
}
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_radio li.gchoice,
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_checkbox li.gchoice,
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_radio li.gchoice > label,
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_checkbox li.gchoice > label { min-height: 48px; }
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_radio li.gchoice > input[type="radio"],
html.vf-checkin .vetefits-formwrap .gform_legacy_markup_wrapper .gfield_checkbox li.gchoice > input[type="checkbox"] {
	width: 28px;
	height: 28px;
}
html.vf-checkin .vetefits-formwrap .gform_button {
	width: 100%;
	min-height: 64px;
	font-size: 1.375rem;
}

/* Buttons the mode adds. */
html.vf-checkin .vf-checkin-next,
html.vf-checkin .vf-checkin-restart,
html.vf-checkin .vf-checkin-back,
html.vf-checkin .vf-checkin-stay {
	display: block;
	min-height: 48px;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
html.vf-checkin .vf-checkin-next {
	width: 100%;
	min-height: 72px;
	margin-top: 1.5rem;
	border: 0;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 1.5rem;
}
html.vf-checkin .vf-checkin-restart {
	width: 100%;
	margin-top: 1rem;
	padding: .75rem 1rem;
	border: 2px solid var(--wp--preset--color--navy);
	background: transparent;
	color: var(--wp--preset--color--navy);
	font-size: 1.0625rem;
}
html.vf-checkin .vf-checkin-back {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1000;
	padding: .75rem 1.5rem;
	border: 0;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 1.25rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
html.vf-checkin .vf-checkin-next:focus-visible,
html.vf-checkin .vf-checkin-restart:focus-visible,
html.vf-checkin .vf-checkin-back:focus-visible,
html.vf-checkin .vf-checkin-stay:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/* Idle warning. */
html.vf-checkin .vf-checkin-warning {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	z-index: 1001;
	transform: translateX(-50%);
	width: min(36rem, calc(100% - 2rem));
	padding: 1.25rem 1.5rem;
	border-radius: 8px;
	background: var(--wp--preset--color--navy-deep);
	color: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
	font-size: 1.25rem;
}
html.vf-checkin .vf-checkin-warning p { margin: 0 0 1rem; }
html.vf-checkin .vf-checkin-stay {
	width: 100%;
	border: 0;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy-deep);
	font-size: 1.25rem;
}
