.mdsi-checkin {
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
}

.mdsi-checkin--denied {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #fef2f2;
	border-radius: 12px;
	color: #991b1b;
}

.mdsi-checkin--customer,
.mdsi-checkin--login {
	box-sizing: border-box;
	width: 100%;
	max-width: 28rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	text-align: center;
	border-radius: 12px;
	border: 1px solid rgba(61, 42, 90, 0.12);
	background: #fff;
	box-shadow: 0 16px 40px rgba(31, 21, 48, 0.06);
}

.mdsi-checkin__customer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	color: #2ecf9a;
	background: rgba(46, 207, 154, 0.1);
	border: 2px solid rgba(46, 207, 154, 0.35);
}

.mdsi-checkin__customer-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display, system-ui, sans-serif);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a1a;
}

.mdsi-checkin__customer-lead {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
	color: #444;
}

.mdsi-checkin__customer-note {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #666;
}

.mdsi-checkin__customer-btn {
	display: inline-flex;
	justify-content: center;
	min-width: min(100%, 14rem);
}

.mdsi-checkin__login-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	color: #7b5cff;
	background: rgba(123, 92, 255, 0.1);
	border: 2px solid rgba(123, 92, 255, 0.28);
}

.mdsi-checkin__login-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-display, system-ui, sans-serif);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
	color: #1a1a1a;
}

.mdsi-checkin__login-lead {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	color: #444;
}

.mdsi-checkin__login-form {
	display: grid;
	gap: 0.75rem;
	text-align: left;
}

.mdsi-checkin__login-form label {
	font-size: 0.85rem;
	font-weight: 600;
}

.mdsi-checkin__login-form input {
	padding: 0.65rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
}

.mdsi-checkin__login-btn {
	width: 100%;
	margin-top: 0.25rem;
}

.mdsi-checkin__login-error {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.9rem;
	text-align: left;
}

.mdsi-checkin__header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.mdsi-checkin__logout {
	flex-shrink: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: #666;
	text-decoration: none;
	padding: 0.35rem 0.65rem;
	border: 1px solid #ddd;
	border-radius: 999px;
}

.mdsi-checkin__logout:hover {
	color: #1a1a1a;
	border-color: #bbb;
}

.mdsi-checkin__header h1 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.mdsi-checkin__header p {
	margin: 0 0 1.5rem;
	color: #666;
	font-size: 0.95rem;
}

.mdsi-checkin__scanner {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	background: #111;
}

.mdsi-checkin__manual label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.mdsi-checkin__manual-row {
	display: flex;
	gap: 0.5rem;
}

.mdsi-checkin__manual input {
	flex: 1;
	padding: 0.65rem 0.75rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
}

.mdsi-btn {
	padding: 0.65rem 1rem;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	background: #e5e5e5;
	color: #1a1a1a;
}

.mdsi-btn--primary {
	background: #7b5cff;
	color: #fff;
}

.mdsi-btn--ghost {
	background: transparent;
	color: #666;
	width: 100%;
}

.mdsi-checkin__result {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 12px;
	background: #f9f9f9;
}

.mdsi-checkin__result--hidden {
	display: none;
}

.mdsi-checkin__status {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.mdsi-checkin__status--valid {
	background: #dcfce7;
	color: #166534;
}

.mdsi-checkin__status--used {
	background: #fef3c7;
	color: #92400e;
}

.mdsi-checkin__status--invalid,
.mdsi-checkin__status--cancelled,
.mdsi-checkin__status--expired {
	background: #fee2e2;
	color: #991b1b;
}

.mdsi-checkin__details {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.mdsi-checkin__details div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.875rem;
}

.mdsi-checkin__details dt {
	font-weight: 600;
	color: #666;
}

.mdsi-checkin__details dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.mdsi-checkin__message {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: #444;
}

.mdsi-checkin__confirm--hidden {
	display: none;
}

.mdsi-checkin--staff {
	max-width: 480px;
	padding: 1.5rem;
}
