/**
 * 2FA user profile (align with login step card: neutral grays, core buttons).
 */

.wpps-2fa-profile {
	max-width: 720px;
	margin: 0 0 24px 0;
	box-sizing: border-box;
}

.wpps-2fa-profile__banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 20px 0 !important;
	padding: 12px 16px !important;
	box-sizing: border-box;
}

.wpps-2fa-profile__banner-text {
	margin: 0 !important;
	flex: 1 1 220px;
	line-height: 1.5;
}

.wpps-2fa-profile__banner-actions {
	margin: 0 !important;
}

.wpps-2fa-profile__card {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 22px 24px 24px;
	margin: 0 0 18px 0;
	box-sizing: border-box;
}

.wpps-2fa-profile__card-title {
	margin: 0 0 6px 0;
	padding: 0;
	font-size: 1.05em;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.wpps-2fa-profile__lead {
	margin: 0 0 18px 0 !important;
	line-height: 1.5;
	max-width: 52em;
}

.wpps-2fa-profile__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.wpps-2fa-profile__methods-group {
	margin: 0 0 4px 0;
}

.wpps-2fa-profile__methods-group .wpps-2fa-profile__method {
	margin: 0;
	padding: 0 0 20px 0;
	border-bottom: 1px solid #dcdcde;
}

.wpps-2fa-profile__methods-group .wpps-2fa-profile__method:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.wpps-2fa-profile__methods-group .wpps-2fa-profile__method + .wpps-2fa-profile__method {
	padding-top: 20px;
}

.wpps-2fa-profile__method-label {
	display: block;
	font-weight: 600;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 6px 0;
}

.wpps-2fa-profile__method-label input {
	margin: -1px 8px 0 0;
	vertical-align: middle;
}

.wpps-2fa-profile__method-desc {
	margin: 0 0 0 24px !important;
	max-width: 48em;
}

.wpps-2fa-profile__method-actions {
	margin: 14px 0 0 24px !important;
}

.wpps-2fa-profile__status-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 14px 0 0 24px;
}

.wpps-2fa-profile__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
}

.wpps-2fa-profile__badge--success {
	background: #edfaef;
	border: 1px solid #68de7c;
	color: #1e4620;
}

.wpps-2fa-profile__badge-icon {
	font-weight: 700;
}

.wpps-2fa-profile__default-method {
	margin-top: 20px;
	padding: 16px 18px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	box-sizing: border-box;
}

.wpps-2fa-profile__default-method-title {
	margin: 0 0 4px 0 !important;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-2fa-profile__default-method-hint {
	margin: 0 0 12px 0 !important;
}

.wpps-2fa-profile__radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.wpps-2fa-profile__radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
}

.wpps-2fa-profile__danger-zone {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #dcdcde;
}

.wpps-2fa-profile__backup-row {
	margin: 0;
	padding: 14px 16px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	box-sizing: border-box;
}

.wpps-2fa-profile__backup-count {
	margin: 0 0 12px 0 !important;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.wpps-2fa-profile__backup-actions {
	margin: 0 !important;
}

/* Modals */
.wpps-2fa-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.wpps-2fa-modal-content {
	background: #fff;
	padding: 24px 26px;
	max-width: 480px;
	width: 100%;
	border: 1px solid #c3c4c7;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.wpps-2fa-modal-content h3 {
	margin: 0 0 12px 0;
	padding: 0;
	font-size: 1.15em;
}

.wpps-2fa-qr-wrap {
	min-height: 200px;
}

.wpps-2fa-setup-loading {
	align-items: center;
	justify-content: center;
}

@media screen and (max-width: 782px) {
	.wpps-2fa-profile__method-desc,
	.wpps-2fa-profile__method-actions,
	.wpps-2fa-profile__status-row {
		margin-left: 0 !important;
	}

	.wpps-2fa-profile__status-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
