.ear9aacaa26-checkin-panel,
.ear9aacaa26-checkin-frontend {
	--ear9aacaa26-accent: #0b5fff;
	--ear9aacaa26-accent-dark: #0949c7;
	--ear9aacaa26-green: #1e7a3d;
	--ear9aacaa26-green-bg: #e7f7ed;
	--ear9aacaa26-amber: #9c6b00;
	--ear9aacaa26-amber-bg: #fdf3e7;
	--ear9aacaa26-border: #e2e4e9;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ear9aacaa26-checkin-frontend {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}

.ear9aacaa26-checkin-panel {
	background: #fff;
	border: 1px solid var( --ear9aacaa26-border );
	border-radius: 12px;
	padding: 24px;
	margin: 20px 0;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.04 );
}

.ear9aacaa26-checkin-frontend-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ear9aacaa26-checkin-frontend-header h2 {
	margin: 0;
}

/* Day tabs */

.ear9aacaa26-day-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-day-tab,
.ear9aacaa26-checkin-frontend .ear9aacaa26-day-tab {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	background: #f6f7f9 !important;
	color: inherit !important;
	border: 1px solid var( --ear9aacaa26-border ) !important;
	border-radius: 10px;
	padding: 8px 14px;
	cursor: pointer;
	min-width: 108px;
	text-align: left;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-day-tab:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-day-tab:hover {
	border-color: var( --ear9aacaa26-accent ) !important;
	transform: translateY( -1px );
}

.ear9aacaa26-day-tab-label {
	font-weight: 700;
	font-size: 14px;
	color: #1d2327;
}

.ear9aacaa26-day-tab-date {
	font-size: 12px;
	color: #757980;
}

.ear9aacaa26-day-tab-status {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-top: 2px;
	padding: 1px 7px;
	border-radius: 8px;
	background: #eceef1;
	color: #6b7280;
}

.ear9aacaa26-day-tab--completed .ear9aacaa26-day-tab-status {
	background: var( --ear9aacaa26-green-bg );
	color: var( --ear9aacaa26-green );
}

.ear9aacaa26-day-tab--today .ear9aacaa26-day-tab-status {
	background: #e6f0ff;
	color: var( --ear9aacaa26-accent-dark );
}

.ear9aacaa26-checkin-panel .ear9aacaa26-day-tab--today,
.ear9aacaa26-checkin-frontend .ear9aacaa26-day-tab--today {
	border-color: var( --ear9aacaa26-accent ) !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-day-tab.is-active,
.ear9aacaa26-checkin-frontend .ear9aacaa26-day-tab.is-active {
	background: #fff !important;
	border-color: var( --ear9aacaa26-accent ) !important;
	box-shadow: 0 0 0 2px rgba( 11, 95, 255, 0.15 ) !important;
}

/* Stat cards */

.ear9aacaa26-stat-cards {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 140px, 1fr ) );
	gap: 12px;
	margin-bottom: 20px;
}

.ear9aacaa26-stat-card {
	background: #f6f7f9;
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ear9aacaa26-stat-value {
	font-size: 26px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.1;
}

.ear9aacaa26-stat-label {
	font-size: 12px;
	color: #757980;
}

/* Look-up form */

.ear9aacaa26-checkin-form {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.ear9aacaa26-checkin-input,
.ear9aacaa26-checkin-form input[type="text"] {
	flex: 1;
	min-width: 240px;
	padding: 12px 14px;
	border: 1px solid var( --ear9aacaa26-border );
	border-radius: 8px;
	font-size: 16px;
	box-sizing: border-box;
}

.ear9aacaa26-checkin-input:focus,
.ear9aacaa26-checkin-form input[type="text"]:focus {
	outline: none;
	border-color: var( --ear9aacaa26-accent );
	box-shadow: 0 0 0 3px rgba( 11, 95, 255, 0.12 );
}

.ear9aacaa26-checkin-fastmode {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4b5563;
	margin: 0 0 16px;
	cursor: pointer;
}

/* Messages */

.ear9aacaa26-form-message {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.ear9aacaa26-form-message p {
	margin: 0;
}

.ear9aacaa26-form-message--error {
	background: #fdecea;
	color: #a32a2a;
	border: 1px solid #f4c2c0;
}

.ear9aacaa26-form-message--info {
	background: #e6f0ff;
	color: var( --ear9aacaa26-accent-dark );
	border: 1px solid #bcd4ff;
}

.ear9aacaa26-form-message--success {
	background: var( --ear9aacaa26-green-bg );
	color: var( --ear9aacaa26-green );
	border: 1px solid #b5e3c3;
}

/* Name-search results — shown instead of the card when a typed search
   term (not an exact registration code) matches more than one
   registration, so staff can pick the right person before a card is
   shown. */

.ear9aacaa26-checkin-matches {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	border: 1px solid var( --ear9aacaa26-border );
	border-radius: 10px;
	overflow: hidden;
}

.ear9aacaa26-checkin-matches li + li {
	border-top: 1px solid var( --ear9aacaa26-border );
}

.ear9aacaa26-checkin-panel .ear9aacaa26-checkin-match,
.ear9aacaa26-checkin-frontend .ear9aacaa26-checkin-match {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: #fff !important;
	color: #1d2327 !important;
	border: none !important;
	padding: 12px 16px;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	box-shadow: none !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-checkin-match:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-checkin-match:hover {
	background: #f6f7f9 !important;
}

.ear9aacaa26-checkin-match-detail {
	margin-left: auto;
	color: #757980;
	font-size: 12px;
	text-align: right;
}

/* Result card */

.ear9aacaa26-checkin-card {
	border: 1px solid var( --ear9aacaa26-border );
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 20px;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 220px, 320px );
	gap: 20px;
	max-width: 100%;
	box-sizing: border-box;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

.ear9aacaa26-checkin-card.ear9aacaa26-flash-success {
	background: var( --ear9aacaa26-green-bg );
	box-shadow: 0 0 0 3px rgba( 30, 122, 61, 0.25 );
}

.ear9aacaa26-checkin-card h3 {
	margin: 0 0 6px;
}

.ear9aacaa26-checkin-meta {
	width: 100%;
	margin: 12px 0 0;
}

.ear9aacaa26-checkin-meta th {
	text-align: left;
	color: #555;
	padding: 4px 12px 4px 0;
	font-weight: 600;
	white-space: nowrap;
	vertical-align: top;
}

.ear9aacaa26-checkin-meta td {
	padding: 4px 0;
}

.ear9aacaa26-checkin-card-action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	min-width: 0;
	max-width: 100%;
}

.ear9aacaa26-checkin-card-action > .ear9aacaa26-btn {
	width: 100%;
}

.ear9aacaa26-checkin-toggle-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
	min-width: 0;
}

.ear9aacaa26-checkin-toggle-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #9aa0a9;
}

.ear9aacaa26-checkin-toggles {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
}

.ear9aacaa26-checkin-toggles > .ear9aacaa26-btn {
	flex: 1 1 auto;
}

.ear9aacaa26-checkin-toggles > .ear9aacaa26-btn--active {
	flex-basis: 100%;
}

/* Buttons — this file defines .ear9aacaa26-btn itself (not just its
   modifiers) because checkin.css is loaded standalone on the admin
   Attendance page, without registration.css (which owns .ear9aacaa26-btn
   on the front end) as a dependency.

   Every rule here is scoped under .ear9aacaa26-checkin-panel /
   .ear9aacaa26-checkin-frontend (not just the bare .ear9aacaa26-btn
   class) and backgrounds/borders/text color are !important — both
   host WordPress themes and wp-admin's own core button/link styling
   (.wp-core-ui button, admin color schemes) can otherwise out-rank a
   single class selector and silently strip these colors, which is
   exactly what was happening before this rewrite. */

.ear9aacaa26-checkin-panel .ear9aacaa26-btn,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var( --ear9aacaa26-accent ) !important;
	color: #fff !important;
	border: 1px solid transparent !important;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 8px;
	cursor: pointer;
	min-width: 0;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	transition: background 0.15s ease, transform 0.1s ease;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn:hover {
	background: var( --ear9aacaa26-accent-dark ) !important;
	color: #fff !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn:active,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn:active {
	transform: translateY( 1px );
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn:disabled,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* "Mark Attended" — the primary call to action, same accent blue as
   Look Up so it reads as the natural next step. */
.ear9aacaa26-checkin-panel .ear9aacaa26-btn--attend,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--attend {
	background: var( --ear9aacaa26-accent ) !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn--attend:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--attend:hover {
	background: var( --ear9aacaa26-accent-dark ) !important;
}

/* Materials — amber, distinct from the payment/attendance actions. */
.ear9aacaa26-checkin-panel .ear9aacaa26-btn--materials,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--materials {
	background: #b5650a !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn--materials:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--materials:hover {
	background: #9a5608 !important;
}

/* Payment — teal, distinct again; On-Site vs Offline read as two equal
   choices side by side rather than one button changing meaning. */
.ear9aacaa26-checkin-panel .ear9aacaa26-btn--payment,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--payment {
	background: #0f7a6b !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn--payment:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--payment:hover {
	background: #0c6357 !important;
}

/* Once collected/paid, every toggle button turns the same green — a
   consistent "done" signal regardless of which action it was. */
.ear9aacaa26-checkin-panel .ear9aacaa26-btn--active,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--active {
	background: var( --ear9aacaa26-green ) !important;
}

.ear9aacaa26-checkin-panel .ear9aacaa26-btn--active:hover,
.ear9aacaa26-checkin-frontend .ear9aacaa26-btn--active:hover {
	background: #17632f !important;
}

/* Recently checked in */

.ear9aacaa26-checkin-recent ul,
.ear9aacaa26-checkin-recent-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.ear9aacaa26-checkin-recent li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f1;
}

.ear9aacaa26-checkin-recent-time {
	margin-left: auto;
	color: #777;
	font-size: 13px;
}

/* Badges (shared with admin.css on the admin screen; defined here too so
   the front-end shortcode — which never loads admin.css — still has them) */

.ear9aacaa26-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	background: #f0f0f1;
	color: #3c434a;
}

.ear9aacaa26-badge--attended {
	background: var( --ear9aacaa26-green-bg );
	color: var( --ear9aacaa26-green );
}

.ear9aacaa26-badge--not_attended {
	background: var( --ear9aacaa26-amber-bg );
	color: var( --ear9aacaa26-amber );
}

@media ( max-width: 640px ) {
	.ear9aacaa26-checkin-card {
		grid-template-columns: 1fr;
	}
}
