/* TravelKon Passkeys — shared styles for login button, management, and nudge. */

.tk-passkeys-hidden {
	display: none !important;
}

/* ---- login button (sits beside the Log in button, Apple-style) ---- */

/* Flex row that JS builds around the form's submit button. */
.tk-passkeys-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tk-passkeys-actions > * {
	margin: 0 !important;
	float: none !important;
}

.tk-passkeys-login {
	clear: both;
}

/* The theme styles bare <button> elements inside the login form as primary
   (orange) buttons. Match that specificity and force our secondary look, or the
   passkey button becomes visually identical to "Log in". */
button.tk-passkeys-login-button,
button.tk-passkeys-login-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #1d1d1f !important;
	background-color: #1d1d1f !important;
	background-image: none !important;
	color: #fff !important;
	border: 1px solid #1d1d1f !important;
	border-radius: 6px;
	padding: 11px 18px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: none;
	box-shadow: none !important;
	text-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

button.tk-passkeys-login-button:hover:not(:disabled),
button.tk-passkeys-login-button:focus:not(:disabled),
button.tk-passkeys-login-button:focus-visible {
	background: #3a3a3c !important;
	background-color: #3a3a3c !important;
	border-color: #3a3a3c !important;
	color: #fff !important;
}

button.tk-passkeys-login-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.tk-passkeys-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tk-passkeys-login-button {
		width: 100%;
	}
}

/* ---- management ---- */

.tk-passkeys-intro {
	color: #555;
	margin-bottom: 18px;
}

.tk-passkeys-add-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 16px;
}

.tk-passkeys-add-row .tk-passkeys-label {
	display: block;
	font-size: 13px;
	color: #555;
	margin-bottom: 4px;
}

.tk-passkeys-add-row input {
	flex: 1 1 200px;
	padding: 10px 12px;
}

.tk-passkeys-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tk-passkeys-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.tk-passkeys-item-meta {
	display: flex;
	flex-direction: column;
}

.tk-passkeys-item-name {
	font-weight: 600;
}

.tk-passkeys-item-sub {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
}

.tk-passkeys-remove {
	background: none;
	border: 1px solid #d95e1e;
	color: #d95e1e;
	border-radius: 4px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 14px;
}

.tk-passkeys-remove:hover:not(:disabled) {
	background: #d95e1e;
	color: #fff;
}

.tk-passkeys-remove:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tk-passkeys-empty {
	color: #888;
	font-style: italic;
}

/* ---- messages ---- */

.tk-passkeys-message {
	margin-top: 12px;
	font-size: 14px;
}

.tk-passkeys-message.success {
	color: #2f6b2f;
}

.tk-passkeys-message.error {
	color: #cc0000;
}

.tk-passkeys-notice {
	background: #fff8e5;
	border: 1px solid #f0e0b0;
	padding: 12px 14px;
	border-radius: 4px;
	color: #7a6a2f;
}

/* ---- enrollment nudge ---- */

.tk-passkeys-nudge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #f4f8ff;
	border: 1px solid #cddffb;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 24px;
}

.tk-passkeys-nudge-body p {
	margin: 4px 0 0;
	color: #555;
	font-size: 14px;
}

.tk-passkeys-nudge-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tk-passkeys-nudge-dismiss {
	color: #777;
	font-size: 14px;
	text-decoration: none;
}

.tk-passkeys-nudge-dismiss:hover {
	color: #333;
}
