.evx-checkin {
	width: 100%;
	margin: 24px auto;
	box-sizing: border-box;
}

.evx-checkin,
.evx-checkin * {
	box-sizing: border-box;
}

.evx-checkin__screen[hidden],
.evx-checkin [hidden] {
	display: none !important;
}

.evx-checkin__screen[data-evx-checkin-screen="search"],
.evx-checkin__screen[data-evx-checkin-screen="success"] {
	max-width: 500px;
	margin-inline: auto;
}

.evx-checkin__screen[data-evx-checkin-screen="details"] {
	max-width: 700px;
	margin-inline: auto;
}

.evx-checkin__card {
	padding: 20px;
}
.evx-checkin__card h2, .evx-checkin__card h3, .evx-checkin__card h4 {
    font-size: 18px;
    margin: 0;
}

.evx-checkin__method {
    border: 1px solid var(--evx-border);
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}
.evx-checkin__separator {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	color: #667085;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}
.evx-checkin__button {
    height: 40px;
}
.evx-checkin__separator::before,
.evx-checkin__separator::after {
	content: "";
	height: 1px;
	background: var(--evx-border);
	flex: 1;
}

.evx-checkin__label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.evx-checkin__search-row {
	display: grid;
	gap: 10px;
}

.evx-checkin__button--secondary {
	background: transparent;
	border-color: var(--evx-primary);
	color: var(--evx-primary);
}

.evx-checkin__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 15px;
}

.evx-checkin__actions--center {
	justify-content: center;
}

.evx-checkin__hint,
.evx-checkin__card p {
	color: #667085;
	margin-bottom: 10px;
}

.evx-checkin__hint {
	font-size: 12px;
	margin-bottom: 0;
}

.evx-checkin__notice {
	max-width: 500px;
	margin: 0 auto 16px;
	border-radius: var(--evx-radius);
	padding: 12px 14px;
}

.evx-checkin__notice--info { background: #eff6ff; color: #1d4ed8; }
.evx-checkin__notice--success { background: #ecfdf3; color: var(--evx-success); }
.evx-checkin__notice--error { background: #ecfdf3; color: var(--evx-danger); }

.evx-checkin__video-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	background: #111827;
	min-height: 240px;
	margin-top: 15px;
}

.evx-checkin__reader,
.evx-checkin__video {
	width: 100%;
	min-height: 260px;
	display: none;
}

.evx-checkin__video {
	height: 260px;
	object-fit: cover;
}

.evx-checkin__canvas {
	display: none;
}

.evx-checkin__scanner-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: 24px;
}

.evx-checkin__heading {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.evx-checkin__kicker {
    margin: 0 !important;
    color: #667085;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}
.evx-checkin__link {
	background: transparent;
	border: 0;
	color: var(--evx-info);
	padding: 0;
	margin: 0 0 15px;
	cursor: pointer;
	text-decoration: none;
}

.evx-checkin__status {
	display: inline-flex;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.evx-checkin__status.is-checked-in { background: #ecfdf3; color: var(--evx-success); }
.evx-checkin__status.is-checked-out { background: #eff6ff; color: var(--evx-info); }
.evx-checkin__status.is-not-checked-in { background: #fff7e6; color: var(--evx-warning); }

.evx-checkin__details-grid,
.evx-checkin__success-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 15px;
}

.evx-checkin__field {
	min-width: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--evx-border);
}

.evx-checkin__field span {
	display: block;
	color: #667085;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 3px;
}

.evx-checkin__field strong {
	display: block;
	color: #101828;
	overflow-wrap: anywhere;
}

.evx-checkin__history {
	margin-top: 15px;
	border-top: 1px solid var(--evx-border);
	padding-top: 15px;
}

.evx-checkin__history ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-transform: capitalize;
}

.evx-checkin__history li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	border-bottom: 1px solid var(--evx-border);
	padding: 8px 0;
}

.evx-checkin__success-card {
	text-align: center;
}

.evx-checkin__success-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--evx-success);
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 15px;
}

.evx-checkin__success-summary {
	text-align: left;
	margin-top: 15px;
}

@media (max-width: 640px) {

	.evx-checkin__search-row,
	.evx-checkin__heading,
	.evx-checkin__actions,
	.evx-checkin__history li {
		display: block;
	}

	.evx-checkin__search-row .evx-checkin__button,
	.evx-checkin__actions .evx-checkin__button {
		width: 100%;
		margin-top: 10px;
	}

	.evx-checkin__details-grid,
	.evx-checkin__success-summary {
		grid-template-columns: 1fr;
	}

	.evx-checkin__status {
		margin-top: 10px;
	}

	.evx-checkin__video-wrap,
	.evx-checkin__reader,
	.evx-checkin__video {
		min-height: 200px;
	}

	.evx-checkin__video {
		height: 200px;
	}
}
