/**
 * Member portal tabs: visibility without full Bootstrap bundle.
 * Inactive panes must be hidden; only .tab-pane.active is shown.
 */
#pills-tabContent.tab-content-portal > .tab-pane:not(.active) {
	display: none;
}

#pills-tabContent.tab-content-portal > .tab-pane.active {
	display: block;
}

/* Profile photo module: responsive layout and cleaner controls. */
.my-pmpro-profile-photo-form {
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 1px solid #d9e4ec;
	border-radius: 12px;
	background: #f9fcff;
}

.my-pmpro-profile-photo-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.875rem;
}

.my-pmpro-profile-photo-preview {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid #cddbe6;
	background: #ffffff;
}

.my-pmpro-profile-photo-title-wrap h3 {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
}

.my-pmpro-profile-photo-title-wrap p {
	margin: 0.4rem 0 0;
	color: #4a6173;
}

.my-pmpro-profile-photo-notice {
	margin: 0 0 0.9rem;
	padding: 0.625rem 0.75rem;
	border-left: 4px solid #0a4f75;
	border-radius: 6px;
	background: #e8f3fb;
	color: #14364f;
	font-weight: 600;
}

.my-pmpro-profile-photo-controls {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.my-pmpro-profile-photo-controls label {
	font-weight: 700;
	color: #14364f;
}

.my-pmpro-profile-photo-controls input[type="file"] {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.65rem;
	border: 1px solid #c2d4e1;
	border-radius: 8px;
	background: #ffffff;
}

.my-pmpro-profile-photo-submit {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.my-pmpro-profile-photo-submit .pmpro_btn {
	margin: 0;
	min-height: 42px;
	padding: 0.625rem 0.95rem;
	border-radius: 8px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.my-pmpro-profile-photo-submit .my-pmpro-profile-photo-remove-btn {
	background: #ffffff;
	/* color: #0a4f75; */
	border: 1px solid #0a4f75;
}

.my-pmpro-profile-photo-submit .my-pmpro-profile-photo-remove-btn:hover,
.my-pmpro-profile-photo-submit .my-pmpro-profile-photo-remove-btn:focus {
	background: #e8f3fb;
}

@media (max-width: 640px) {
	.my-pmpro-profile-photo-form {
		padding: 1rem;
	}

	.my-pmpro-profile-photo-header {
		align-items: flex-start;
	}

	.my-pmpro-profile-photo-title-wrap h3 {
		font-size: 1.25rem;
	}

	.my-pmpro-profile-photo-submit {
		flex-direction: column;
	}

	.my-pmpro-profile-photo-submit .pmpro_btn {
		width: 100%;
	}
}
